Downloading+and+Installing+Webmin

=Downloading and Installing Webmin=

[|Webmin] is a fantastic program we will use to remotely manage our server via any web browser. It is free and being regularly updated. Installation is not difficult if you follow these instructions ([|some taken directly from the Webmin website]).

1. From the server, type the following command at the prompt. This command will bring you to the base level of the hard drive file structure. code cd / code

2. If you have a SSH connection setup between you and your server, this next part will not be as tricky. If you are working directly on the server, you will have to pay particular attention to your syntax. If you go to the Webmin website, you will find a direct link to where you can get the TAR file of Webmin. Copy that link.

3. From the command line of the server (or SSH connected client), type the following command to download the Webmin installation file: code wget http://prdownloads.sourceforge.net/webadmin/webmin-1.350.tar.gz code This will begin the download automatically. It is a 13 MB file, so it should not take too terribly long depending on your connection. You will see something like the following: code format="dos" --23:49:34-- http://prdownloads.sourceforge.net/webadmin/webmin-1.350.tar.gz           => `webmin-1.350.tar.gz' Resolving prdownloads.sourceforge.net... 66.35.250.217 Connecting to prdownloads.sourceforge.net|66.35.250.217|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://downloads.sourceforge.net/webadmin/webmin-1.350.tar.gz [following] --23:49:35-- http://downloads.sourceforge.net/webadmin/webmin-1.350.tar.gz           => `webmin-1.350.tar.gz' Resolving downloads.sourceforge.net... 66.35.250.203 Connecting to downloads.sourceforge.net|66.35.250.203|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://superb-west.dl.sourceforge.net/sourceforge/webadmin/webmin-1.350.tar.gz [following] --23:49:35-- http://superb-west.dl.sourceforge.net/sourceforge/webadmin/webmin-1.350.tar.gz           => `webmin-1.350.tar.gz' Resolving superb-west.dl.sourceforge.net... 209.160.59.253 Connecting to superb-west.dl.sourceforge.net|209.160.59.253|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 12,832,134 (12M) [application/x-gzip]

13% [=============>                                                                                                ] 1,683,106    177.87K/s    ETA 01:08 code

4. If you issue the list command you should see your downloaded tar.gz file. code format="dos" ls -l code This command will produce similar output. code format="dos" total 12664 drwxr-xr-x 2 root root     4096 2007-07-26 14:01 bin drwxr-xr-x 2 root root     4096 2007-07-26 14:01 boot lrwxrwxrwx 1 root root       11 2007-06-18 06:47 cdrom -> media/cdrom drwxr-xr-x 15 root root   13760 2007-07-28 06:25 dev drwxr-xr-x 60 root root    4096 2007-07-28 23:15 etc drwxr-xr-x 3 root root     4096 2007-06-18 07:04 home drwxr-xr-x 2 root root     4096 2007-06-18 06:53 initrd drwxr-xr-x 15 root root    8192 2007-07-26 14:01 lib drwxr-xr-x 2 root root    49152 2007-06-18 06:46 lost+found drwxr-xr-x 3 root root     4096 2007-06-18 06:47 media drwxr-xr-x 2 root root     4096 2006-08-03 05:58 mnt drwxr-xr-x 2 root root     4096 2007-06-18 06:53 opt dr-xr-xr-x 70 root root       0 2007-07-26 15:02 proc drwxr-xr-x 3 root root     4096 2007-07-28 23:16 root drwxr-xr-x 2 root root     4096 2007-07-26 14:01 sbin drwxr-xr-x 2 root root     4096 2007-06-18 06:53 srv drwxr-xr-x 10 root root       0 2007-07-26 15:02 sys drwxrwxrwt 3 root root     4096 2007-07-27 06:25 tmp drwxr-xr-x 10 root root    4096 2007-06-18 06:53 usr drwxr-xr-x 15 root root    4096 2007-07-26 13:39 var -rw-r--r-- 1 root root 12832134 2007-05-31 23:58 webmin-1.350.tar.gz code

5. The tar.gz file is like a zip file, so we need to extract its contents. To do that, issue the following command: code format="dos" tar zxvf webmin-1.350.tar.gz code You will see the contents scroll by as they are expanded.

6. When the file is done expanding, we will change directory (cd) into the new Webmin folder. code cd webmin-1.350 code

7. Now, we will install Webmin. There will be some prompts along the way, and the default answer is the best answer. The process will look something like the following. Note, I did choose to have SSL and Webmin start at boot. You will also have to enter a password for your Webmin admin account.

To start the installation type the following command: code ./setup.sh /usr/local/webmin code You will then see the following process:

code Webmin is a web-based interface that allows Unix-like operating systems and common Unix services to be easily administered.
 * Welcome to the Webmin setup script, version 1.350       *
 * Welcome to the Webmin setup script, version 1.350       *

Installing Webmin from /webmin-1.350 to /usr/local/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 [/etc/webmin]: Log file directory [/var/webmin]:

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):

Testing Perl ... Perl seems to be installed ok

Operating system name:   Ubuntu Linux Operating system version: 6.06.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 webserver should use SSL (if your system supports it). - Whether to start webmin at boot time.

Web server port (default 10000): Login name (default admin): Login password: Password again: Use SSL (y/n): y Start Webmin at boot time (y/n): y Copying files to /usr/local/webmin .. ..done

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

Running postinstall scripts .. ..done

Attempting to start Webmin mini web server.. Starting Webmin server in /usr/local/webmin ..done

Webmin has been installed and started successfully. Use your web browser to go to

https://172.17.254.1:10000/

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.

code

8. Now from a remote web brower, if you type in [|https://172.17.254.1:10000] you will be taken to the Webmin login interface. If you leave the "s" out of "http" you will be prompted to use "https" instead and provided a direct link.