Page 1 of 2

Webmin Guide

Posted: Fri May 18, 2012 2:25 pm
by FollowingGhosts
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.

Re: Webmin Guide

Posted: Tue May 29, 2012 10:42 pm
by damocov
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

Re: Webmin Guide

Posted: Tue May 29, 2012 10:46 pm
by mintz
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]

Re: Webmin Guide

Posted: Tue May 29, 2012 11:14 pm
by damocov
A case of great minds thinking alike ? (although it's also said that fools seldom differ!).

Re: Webmin Guide

Posted: Tue Jun 05, 2012 3:43 am
by BrianHeston
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?

Re: Webmin Guide

Posted: Tue Jun 05, 2012 3:41 pm
by abishur
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?

Re: Webmin Guide

Posted: Tue Jun 05, 2012 7:17 pm
by BrianHeston
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!

Re: Webmin Guide

Posted: Tue Jun 05, 2012 8:12 pm
by abishur
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

Re: Webmin Guide

Posted: Fri Jul 20, 2012 4:24 pm
by tinalee
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.

Re: Webmin Guide

Posted: Thu Jul 26, 2012 2:38 pm
by aquarat
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.

Re: Webmin Guide

Posted: Tue Sep 04, 2012 8:51 am
by andrea1388
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.

Re: Webmin Guide

Posted: Tue Sep 04, 2012 1:04 pm
by Bioshox
use Raspcontrol: http://raspcontrol.com

Re: Webmin Guide

Posted: Tue Oct 16, 2012 10:02 am
by mcgyver83
I think that raspcontrol is not the same as webmin :D
Raspcontrol only monitor the raspberry...

Re: Webmin Guide

Posted: Wed Nov 07, 2012 12:16 pm
by kaspencer
Now that is what I call fantastic, Andrea ... thanks alot!

Kenneth Spencer

Re: Webmin Guide

Posted: Fri Nov 09, 2012 4:26 am
by caviera
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).

Re: Webmin Guide

Posted: Mon Feb 25, 2013 3:50 am
by JVM
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

Re: Webmin Guide

Posted: Mon Feb 25, 2013 8:33 am
by Cloudcentric
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:

http://www.raspberrypi.org/phpBB3/viewt ... in#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

Re: Webmin Guide

Posted: Mon Feb 25, 2013 8:57 am
by JVM
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.

Re: Webmin Guide

Posted: Mon Feb 25, 2013 9:03 am
by tonyhughes
Webmin is pretty easy to install. Runs slightly slow on pi but very useful and very usable.

Re: Webmin Guide

Posted: Tue Oct 22, 2013 1:43 am
by fireside
Is there no wifi configuration ability within Webmin?

Re: Webmin Guide

Posted: Tue Mar 24, 2015 7:43 pm
by ronnyvdbr
Hi, if u want to configure a wireless, see my project:
http://ronnyvdbr.github.io

Re: Webmin Guide

Posted: Wed Mar 25, 2015 7:58 pm
by ronnyvdbr
Hi everyone, Version 1.1 of the image is now ready and implements a captive portal on the Raspberry WAP.
The version is downloadable from the projects site at http://ronnyvdbr.github.io

Re: Webmin Guide

Posted: Tue May 05, 2015 8:44 pm
by wynken
Does anyone know how to start/stop Webmin manually from the terminal? The regular commands for Debian don't work.

I don't want it running at boot all the time, it's something of a resource hog on the pi..

Re: Webmin Guide

Posted: Sun May 21, 2017 2:38 pm
by firdaus
sudo apt-get -f install

Re: Webmin Guide

Posted: Mon Oct 09, 2017 4:22 am
by tfbiii
Replace all references to "php5" with "php7.0"

-Fred