Установка Webmin в ubuntu

В первую очередь разберемся, что такое webmin и зачем он нужен.

Webmin представляет собой веб-интерфейс для администрирования систем основных на *nix.  Используя любой современный веб-браузер, вы можете настроить учетные записи пользователей, Apache, DNS, файловые серверы Samba и многое другое. Если вы используете Webmin, у вас отпадает необходимость вручную редактировать конфигурационные файлы, с помощью Webmin стало возможно управлять системой с консоли,  удаленно через веб-интерфейс.

Итак, приступим к установке, первое что нам необходимо сделать,  это выбрать директорию для установки приложения и перейти в нее, например:

cd /inst

sudo mkdir /inst/webmin

cd /inst/webmin

Затем скачать исходники программы для этого делаем следующее:

sudo wget http://prdownloads.sourceforge.net/webadmin/webmin-1.480.tar.gz

Распакуем:

sudo tar xzvf webmin-1.480.tar.gz

Установим дополнительные модули:

sudo apt-get install libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl perl perl-modules

И собственно долгожданная установка:

cd webmin-1.480/
sudo ./setup.sh

Вот тут начнется самое интересное на мой взгляд, пошаговая настройка:

***************************************************
* Welcome to the Webmin setup script, version 1.480*
***************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin in /opt/webmin/webmin-1.480 …
***************************************************
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 [/etc/webmin]:

Если вам что-то непонятно, но разбираться не хочется то лучше принимать значения предлагаемые по умолчанию:

Config file directory [/etc/webmin]: [enter]
Log file directory [/var/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/bin/perl): [enter]
Testing Perl …
Perl seems to be installed ok
***************************************************
Operating system name: Ubuntu Linux
Operating system version: 7.04
***************************************************
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 webserver should use SSL (if your system supports it).
— Whether to start webmin at boot time.

Далее, webmin предложит вам выбрать порт для установки, а так же ввести имя пользователя и пароль:

Web server port (default 10000): [enter]
Login name (default admin): [enter]
Login password: type_password
Password again: confirm_password
Use SSL (y/n): y
Start Webmin at boot time (y/n): y

The install starts:
***************************************************
Creating web server config files..
..done
Creating access control file..
..done
Inserting path to perl into scripts..
..done
Creating start and stop scripts..
..done
Copying config files..
..done
Configuring Webmin to start at boot time..
Created init script /etc/init.d/webmin
..done
Creating uninstall script /etc/webmin/uninstall.sh ..
..done
Changing ownership and permissions ..
..done

Attempting to start Webmin mini web server..
Starting Webmin server in /opt/webmin/webmin-1.480
..done
***************************************************
Webmin has been installed and started successfully. Use your web
browser to go to
https://server1.example.com:23646/
and login with the name and password you entered previously.
Because Webmin uses SSL for encryption only, the certificate
it uses is not signed by one of the recognized CAs such as
Verisign. When you first connect to the Webmin server, your
browser will ask you if you want to accept the certificate
presented, as it does not recognize the CA. Say yes.
user@server1.example.com:/opt/webmin/webmin-1.480$

Все Webin установлен
Что бы запустить/перезапустить/остановить Webmin используем:

sudo /etc/init.d/webmin start/restart/stop

В записи использована информация с сайта Русскоязычного сообщества Ubuntu Linux