Webmin Guide


20 posts
by FollowingGhosts » Fri May 18, 2012 2:25 pm
After losing this the first time round by closing the wrong tab, it's time for a Webmin guide.
This assumes you're running headless over SSH and want to be able to easily manage your Pi server with a GUI. Webmin is perfect for that job.
So, firstly let's get all the dependencies etc. out of the way.

We need to start by fixing user permissions then installing LAMP.
Code: Select all
sudo groupadd -f -g33 www-data
sudo apt-get update
sudo apt-get install apache2 php5 libapache2-mod-php5
sudo apt-get install mysql-server mysql-client php5-mysql
sudo apt-get  install  phpmyadmin
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

When you're asked for a password, use something that isn't insecure but something you won't forget either. I just used my Pi password.
Now, we need to download the tar version of Webmin
All this does is make a new directory for the webmin source and then copies it and installs it to your Pi.
Code: Select all
mkdir webmin
cd webmin
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
gunzip webmin-1.580.tar.gz
tar xf webmin-1.580.tar
cd webmin-1.580
sudo ./setup.sh /usr/local/webmin

Note: I recommend not using pi and raspberry or anything similar when the installer prompts you, just for a little extra security. Also, SSL is personal preference, if you're only on a home network, SSL will just make the poor Pi work harder.
Now webmin is set up, just go to http://yourPiipaddress:10000 or whichever port you set.

Note: I take no credit for this guide, I used a LAMP install guide, with some information found on a Pi forum to fix an Apache groups issue, and then the webmin tar instructions. I just thought it would be worth sticking in one place.
Hope this helps someone.
Posts: 29
Joined: Sun Feb 05, 2012 5:55 pm
by damocov » Tue May 29, 2012 10:42 pm
I had a few problems with the tar file method above, so I'd suggest for installs based on the the debian image , downloading the .deb file and installing with dpkg:

I.e. instead of the steps in your second box, do the following:

Code: Select all
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.580_all.deb
sudo dpkg --install webmin_1.580_all.deb
Posts: 9
Joined: Tue May 29, 2012 10:38 pm
by mintz » Tue May 29, 2012 10:46 pm
You don't need to install Apache to run Webmin. It runs it's own web-server independently of Apache.

Simply follow the guide for Debian on http://www.webmin.com/deb.html

Code: Select all
sudo apt-get update
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.580_all.deb
sudo dpkg --install webmin_1.580_all.deb


Then access Webmin remotely at https://[your raspberry pi ip address]:10000 or locally at https://localhost:10000

If you want to install Apache or anything else you can then do it through Webmin.

[EDIT] damocov posted nearly the same info while I was posting this[/EDIT]
Posts: 2
Joined: Mon Dec 12, 2011 11:45 pm
by damocov » Tue May 29, 2012 11:14 pm
A case of great minds thinking alike ? (although it's also said that fools seldom differ!).
Posts: 9
Joined: Tue May 29, 2012 10:38 pm
by BrianHeston » Tue Jun 05, 2012 3:43 am
So, I've installed Webmin per the instructions above, and it appears to be running. But I can't connect to it. I get a connection refused message when I try. Any idea what might be causing this?
Posts: 5
Joined: Mon Jun 04, 2012 2:25 am
by abishur » Tue Jun 05, 2012 3:41 pm
BrianHeston wrote:So, I've installed Webmin per the instructions above, and it appears to be running. But I can't connect to it. I get a connection refused message when I try. Any idea what might be causing this?


Are you attempting to connect to this from a different pc or locally?

What URL are you typing in?
Dear forum: Play nice ;-)
User avatar
Forum Moderator
Forum Moderator
Posts: 4225
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
by BrianHeston » Tue Jun 05, 2012 7:17 pm
I tried connecting both locally and remotely. I figured out the problem though. Turns out my partition filled up while doing the webmin install but it acted like it finished successfully anyway.

I ended up growing my partition and reinstalling webmin and now it works fine.

Thanks!
Posts: 5
Joined: Mon Jun 04, 2012 2:25 am
by abishur » Tue Jun 05, 2012 8:12 pm
BrianHeston wrote:I tried connecting both locally and remotely. I figured out the problem though. Turns out my partition filled up while doing the webmin install but it acted like it finished successfully anyway.

I ended up growing my partition and reinstalling webmin and now it works fine.

Thanks!


Ah, that explains that. Thanks for sharing with the rest of us! :D
Dear forum: Play nice ;-)
User avatar
Forum Moderator
Forum Moderator
Posts: 4225
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
by tinalee » Fri Jul 20, 2012 4:24 pm
Thanks for the guide! Webmin is the first thing I usually like to install, so I was glad to get this help. I too got caught with the partition size issue, but it's all working now after fixing with gparted. One thing I noticed was that other references to partitioning showed a swap partition, but the wheezy image I used does not have a swap? I'm looking forward to putting my little Pi to some good use now.
Posts: 1
Joined: Fri Jul 20, 2012 4:18 pm
by aquarat » Thu Jul 26, 2012 2:38 pm
I just followed the guide on this page : http://www.webmin.com/deb.html

Which entailed that I add the following :

to /etc/apt/sources.list

I then ran these commands :
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc
apt-get update
apt-get install webmin


Webmin started successfully during the apt-get install phase of the operation, after which I logged on using https://ipofmypi:10000, username root and my root password.

Hope that helps.
EOF
User avatar
Posts: 73
Joined: Thu Jul 26, 2012 2:32 pm
Location: Cape Town, South Africa
by andrea1388 » Tue Sep 04, 2012 8:51 am
This worked fine for me (taken from the webmin site):

1)
sudo su
edit the /etc/apt/sources.list file on your system and add the lines :
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsoluti ... repository sarge contrib

2) You should also fetch and install my GPG key with which the repository is signed, with the commands :
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc


3)
apt-get update
apt-get install webmin

All dependencies should be resolved automatically.

Andrea.
Posts: 1
Joined: Tue Sep 04, 2012 8:32 am
by Bioshox » Tue Sep 04, 2012 1:04 pm
use Raspcontrol: http://raspcontrol.com
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)
Posts: 100
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
by mcgyver83 » Tue Oct 16, 2012 10:02 am
I think that raspcontrol is not the same as webmin :D
Raspcontrol only monitor the raspberry...
Posts: 296
Joined: Fri Oct 05, 2012 11:49 am
by kaspencer » Wed Nov 07, 2012 12:16 pm
Now that is what I call fantastic, Andrea ... thanks alot!

Kenneth Spencer
2x256Mb + 2x512Mb RPi, Eth'netLAN+Win2k3R2 svr, 40MbpsFTTC.
RaspBMC: 128G SD, K400 wl Kb+TPd, HD32tv&Rem.
RW'y webserver: 64G SD, Y-RK49 wl Kb+M, HannsG W24" screen
RW'y PDC & fileserver: as above + 2TB disc.
+RiscOSPi on 32G uSD.
Posts: 71
Joined: Wed Mar 07, 2012 11:37 pm
Location: UK, England, Wiltshire
by caviera » Fri Nov 09, 2012 4:26 am
I did all steps, but a got the following error:

webmin ya est� en su versi�n m�s reciente.
Tal vez quiera ejecutar �apt-get -f install� para corregirlo:
Los siguientes paquetes tienen dependencias incumplidas:
webmin : Depende: libnet-ssleay-perl pero no va a instalarse
Depende: libauthen-pam-perl pero no va a instalarse
Depende: libio-pty-perl pero no va a instalarse
Depende: apt-show-versions pero no va a instalarse
E: Dependencias incumplidas. Intente �apt-get -f install� sin paquetes (o especifique una soluci�n).
Posts: 1
Joined: Fri Nov 09, 2012 4:24 am
by JVM » Mon Feb 25, 2013 3:50 am
andrea1388 wrote:This worked fine for me (taken from the webmin site):

1)
sudo su
edit the /etc/apt/sources.list file on your system and add the lines :
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsoluti ... repository sarge contrib

2) You should also fetch and install my GPG key with which the repository is signed, with the commands :
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc


3)
apt-get update
apt-get install webmin

All dependencies should be resolved automatically.

Andrea.


I've been struggling to install this for a while now on 2013-02-09-wheezy-raspbian but I get the same error as the post above after following Andrea's post to sudo apt-get install webmin...

Code: Select all
pi@raspberrypi /root $ sudo apt-get install webmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 webmin : Depends: libnet-ssleay-perl but it is not going to be installed
          Depends: libauthen-pam-perl but it is not going to be installed
          Depends: libio-pty-perl but it is not going to be installed
          Depends: apt-show-versions but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


Thanks, JVM
Posts: 22
Joined: Tue Jun 26, 2012 10:43 am
by Cloudcentric » Mon Feb 25, 2013 8:33 am
Well the post you appended to is old, I have successfully installed WebMin on the latest Raspbian "wheezy" image with the 3.6.xx Kernel see in this more recent thread:

viewtopic.php?f=30&t=34709&p=295535&hilit=webmin#p295535

This is the instructions I followed, it complains about dependencies but following the prompts, apt-get was able to download blah blah blah

http://www.webmin.com/deb.html
I know everything about nothing"
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am
by JVM » Mon Feb 25, 2013 8:57 am
Thanks for the info Cloudcentric, I gave it a rest and googled again and found this post: http://goraspberry.com/pi/webmin-on-your-raspberry, and now it is working finally! Looking at that thread, next thing I'll look into is Baked Raspberry Pi Mod.
Posts: 22
Joined: Tue Jun 26, 2012 10:43 am
by tonyhughes » Mon Feb 25, 2013 9:03 am
Webmin is pretty easy to install. Runs slightly slow on pi but very useful and very usable.
Baked Linux Mod http://www.geek101.co.nz/bakedlinuxmod

Easy install of Drupal, Wordpress, RazorCMS, Chyrp, Apache, Nginx, Lighttpd, firewall, Webmin, VNC, RDP, FTP servers, mailservers, MySQL, SQLite, Transmission and more...

tall.co.nz/webcam.jpg
User avatar
Posts: 931
Joined: Wed Dec 26, 2012 3:46 am
by fireside » Tue Oct 22, 2013 1:43 am
Is there no wifi configuration ability within Webmin?
Posts: 7
Joined: Tue Mar 26, 2013 4:40 pm