[2] Webmin – Konfigracja
31 stycznia 2024Aby skonfigurować Webmina należy uruchomić prosty skrypt:
root@vfbsd01:~ # /usr/local/lib/webmin/setup.sh *********************************************************************** Welcome to the Webmin setup script, version 2.000 *********************************************************************** Webmin is a web-based interface that allows Unix-like operating systems and common Unix services to be easily administered. Installing Webmin in /usr/local/lib/webmin *********************************************************************** Webmin uses separate directories for configuration files and log files. Unless you want to run multiple versions of Webmin at the same time you can just accept the defaults. Config file directory [/usr/local/etc/webmin]: # [Enter] Log file directory [/var/db/webmin]: # [Enter] *********************************************************************** Webmin is written entirely in Perl. Please enter the full path to the Perl 5 interpreter on your system. Full path to perl (default /usr/local/bin/perl): # [Enter] Testing Perl .. .. done *********************************************************************** Operating system name: FreeBSD Operating system version: 13.1 *********************************************************************** Webmin uses its own password protected web server to provide access to the administration programs. The setup script needs to know : - What port to run the web server on. There must not be another web server already using this port. - The login name required to access the web server. - The password required to access the web server. - If the web server should use SSL (if your system supports it). - Whether to start webmin at boot time. Web server port (default 10000): # [Enter] Login name (default admin): # [Enter] Login password: # wpisz hasło Password again: # ponownie wpisz hasło Use SSL (y/n): y *********************************************************************** Creating web server config files .. .. done Creating access control file .. .. done Creating start and stop init scripts .. .. done Creating start and stop init symlinks to scripts .. .. done Copying config files .. .. done Changing ownership and permissions .. .. done Running postinstall scripts .. .. done Enabling background status collection .. .. done
Konfiguracja zakończona.
Dodajmy teraz wpis do pliku [/etc/rc.conf], który spowoduje uruchomienie serwera Webmin wraz ze startem systemu.
root@vfbsd01:~ # mcedit /etc/rc.conf # dodaj na końcu webmin_enable="YES"
Aby pierwszy raz uruchomić Webmin’a wykonaj
root@vfbsd01:~ # service webmin start