Tuesday, April 26, 2011

Install Webmin via terminal

Ok so,
now you may have a problem because although LAMP is installed, webmin is not yet installed.To download and install webmin:

1. In terminal:
a) First download some needed perl related libraries & also (this is for webmin 1.5x) apt-show-versions
sudo apt-get install apt-show-versions perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl
b) Then download webmin either by visiting http://www.webmin.com/download.html and downloading the .deb version of the file or via terminal using the following code:
wget http://www.webmin.com/download/deb/webmin-current.deb
If you use the former method of downloading the debian package, please copy the download to your home folder or the folder that you are currently in (you can determine which folder that is from terminal, by typing the following code dir)
c) install webmin via terminal by one of the following two options:
sudo dpkg -i webmin-current.deb
or
sudo dpkg --install webmin_1.5xx_all.deb
(where the xx in the webmin package name stands for the webmin version you downloaded).

And that should be it ... it may take a few minutes to do the installation, but, after that you should be ready ... when you see a message something like the following, the installation will be complete:
Webmin install complete. You can now login to https://YourServerNameOrIpAddress:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.

Please note that installing webmin via terminal does not mean you will automatically be able to sign in to webmin using your regular user name and password ... you might initially be required to sign into webmin using root as your user name and set a password for root via terminal ... using the method described in the previous post.

However, once logged in as root, you can add your regular user account to webmin, by:
1. clicking on the "Webmin" link on the top left column and then
2. selecting "Webmin Users"
3. Clicking on the link (on top) titled "Create New User"
4. Enter the user name and where it says password, select, from the drop down menu, change "set to" to "Unix authentication", enter the real name (as identified when you first registered for your server's user account);
5. Next, click on the "Available Webmin Modules" blue bar and from the drop down select the module options you would like this user to have access to, or click the "Select All" option and then click the Create button, down below.

That's it, your new webmin user is now created using your default linux user name and password.

No comments:

Post a Comment