FollowingGhosts
Posts: 29
Joined: Sun Feb 05, 2012 5:55 pm

Webmin Guide

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.

damocov
Posts: 9
Joined: Tue May 29, 2012 10:38 pm

Re: Webmin Guide

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

mintz
Posts: 2
Joined: Mon Dec 12, 2011 11:45 pm

Re: Webmin Guide

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]

damocov
Posts: 9
Joined: Tue May 29, 2012 10:38 pm

Re: Webmin Guide

Tue May 29, 2012 11:14 pm

A case of great minds thinking alike ? (although it's also said that fools seldom differ!).

BrianHeston
Posts: 5
Joined: Mon Jun 04, 2012 2:25 am

Re: Webmin Guide

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?

User avatar
abishur
Posts: 4478
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Webmin Guide

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

BrianHeston
Posts: 5
Joined: Mon Jun 04, 2012 2:25 am

Re: Webmin Guide

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!

User avatar
abishur
Posts: 4478
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Webmin Guide

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

tinalee
Posts: 1
Joined: Fri Jul 20, 2012 4:18 pm

Re: Webmin Guide

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.

User avatar
aquarat
Posts: 73
Joined: Thu Jul 26, 2012 2:32 pm
Location: Cape Town, South Africa

Re: Webmin Guide

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

andrea1388
Posts: 1
Joined: Tue Sep 04, 2012 8:32 am

Re: Webmin Guide

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.

Bioshox
Posts: 104
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
Contact: Website

Re: Webmin Guide

Tue Sep 04, 2012 1:04 pm

use Raspcontrol: http://raspcontrol.com
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)

mcgyver83
Posts: 358
Joined: Fri Oct 05, 2012 11:49 am

Re: Webmin Guide

Tue Oct 16, 2012 10:02 am

I think that raspcontrol is not the same as webmin :D
Raspcontrol only monitor the raspberry...

kaspencer
Posts: 79
Joined: Wed Mar 07, 2012 11:37 pm
Location: UK, England, Wiltshire

Re: Webmin Guide

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.

caviera
Posts: 1
Joined: Fri Nov 09, 2012 4:24 am

Re: Webmin Guide

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

JVM
Posts: 22
Joined: Tue Jun 26, 2012 10:43 am

Re: Webmin Guide

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

Cloudcentric
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am

Re: Webmin Guide

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:

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
I know everything about nothing"

JVM
Posts: 22
Joined: Tue Jun 26, 2012 10:43 am

Re: Webmin Guide

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.

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Webmin Guide

Mon Feb 25, 2013 9:03 am

Webmin is pretty easy to install. Runs slightly slow on pi but very useful and very usable.

fireside
Posts: 6
Joined: Tue Mar 26, 2013 4:40 pm

Re: Webmin Guide

Tue Oct 22, 2013 1:43 am

Is there no wifi configuration ability within Webmin?

ronnyvdbr
Posts: 68
Joined: Sun Mar 01, 2015 8:42 pm

Re: Webmin Guide

Tue Mar 24, 2015 7:43 pm

Hi, if u want to configure a wireless, see my project:
http://ronnyvdbr.github.io

ronnyvdbr
Posts: 68
Joined: Sun Mar 01, 2015 8:42 pm

Re: Webmin Guide

Wed Mar 25, 2015 7:58 pm

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

wynken
Posts: 1
Joined: Tue May 05, 2015 8:41 pm

Re: Webmin Guide

Tue May 05, 2015 8:44 pm

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..

firdaus
Posts: 1
Joined: Sun May 21, 2017 2:36 pm

Re: Webmin Guide

Sun May 21, 2017 2:38 pm

sudo apt-get -f install

tfbiii
Posts: 1
Joined: Mon Oct 09, 2017 4:20 am

Re: Webmin Guide

Mon Oct 09, 2017 4:22 am

Replace all references to "php5" with "php7.0"

-Fred

Return to “Networking and servers”

Who is online

Users browsing this forum: kedzier93 and 15 guests