Overclock.net › How To's › How To Install Webmin

How To Install Webmin

Note: below is draft state. Will be adding more information as well information about different versions of different distros...

I posted this to the official webmin-on-ubuntu sticky thread but apparently no one noticed. kc-tr seems okay with an updated re-post. I did revise the below slightly.

The sticky on this subject hasn't been updated since mid-2009 so I'm going to post an update. I'll leave decisions about making it a sticky and what to do with the old one up to the mods.

This is an easy method to get the latest version of webmin installed on Ubunutu Server 10.10 (the mid-2009 original post points to a really outdated version).

Pre-requisites:
  • SSH deamon already running. If you don't have this or are not sure this will let you know or install it:
    sudo apt-get install openssh-server
  • Some kind of SSH client. If you're on Linux or other "UNIX-like" OS you're already there. The defacto standard for Windows seems to be PuTTY

I tested this at the very first login. No updates or dependency checks of any kind. I did select the "OpenSSH server" option during install which makes it much easier.

Assuming you have an SSH connection you can simply paste the code directly into Putty or whatever and it'll just run it. Or just manually type each line.

Note: as always you can sudo su and authenticate so you don't have to enter your password a bunch of times or just insert sudo before each line below, entering a password as necessary.
Code:
echo deb http://download.webmin.com/download/repository sarge contrib >> /etc/apt/sources.list
echo deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib >> /etc/apt/sources.list
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc 
apt-get -y update
apt-get -y install webmin

The >> portion of the
Code:
echo deb [B]...[/B] >> /etc/apt/sources.list
type lines are my own "innovation" to avoid the horrors of vi (noobs like me prefer Vim). Anyway the lines simply redirects the output of the echo command into the sources.list file, appending the lines to the end.

This method enables the apt-get magic and should be "future proof" (well relatively).

For reference pretty much all this information (except the above noted "innovation") was regurgitated from information found on this page at webmin.com.

Separate note: I could attach this script as a text file to this post and then put in a wget line above (along with how to make the file executable). Then the script could be both retrieved and run from the CLI in Ubuntu server (and converted to an executable). I would kind of like to know from a moderator if "wgetting" directly from this board if this is allowed (bandwidth is expensive, I know). wave2.gif

Update September 2011: Apparently something has changed in Ubuntu Server 11.04 and you cannot just login as you could with 10.10. The solution is to change the root password at the command line (through SSH or whatever)
Code:
sudo /usr/share/webmin/changepass.pl /etc/webmin root <newpassword>

Once this is done you will be able to login to webmin as root.


Please post any issues/comments about the procedure below.

Comments

There are no comments yet
Overclock.net › How To's › How To Install Webmin