Install Webmin

G

gatorparrots

Guest
How to install Webmin on Mac OS X 10.1.x or 10.2

From the README:
Webmin is a web-based interface for system administration for Unix.
Using any browser that supports tables and forms, you can setup user
accounts, Apache, internet services, DNS, file sharing and so on.

Webmin consists of a simple web server, and a number of CGI programs
which directly update system files like /etc/inetd.conf and /etc/passwd.
The web server and all CGI programs are written in Perl version 5, and use
only the standard perl modules.

For more information, see Webmin


Before you install, it would be good to install the Perl SSLeay library:
First, cd to your downloads or source repository. Then:

cd /src
curl -O
(outdated link removed)
tar xzf Net_SSLeay.pm-1.12.tar.gz
mv Net_SSLeay.pm-1.12 netssl
cd netssl
perl Makefile.PL -t
sudo make install


Great, now that SSL functionality is available, let's go get Webmin. First, cd to your downloads or source repository. Then:

curl -O (outdated link removed)
tar -xzf webmin-1.030.tar.gz
You may or may not want it to live in /usr/local/bin; it's up to your particular configuration move it wherever you want the executable to live.
sudo mv webmin-1.030 /usr/local/bin/webmin-1.030
cd /usr/local/bin/webmin-1.030
sudo ./setup.sh

This will run the installation script. The good news is that it is OS X savvy, so you don't have to provide any intervention. Along the way it will ask for locations and settings; the defaults are fine:
Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:
Full path to perl (default /usr/bin/perl):

(Feel free to change the server port to whatever you want)
Web server port (default 10000):
Login name (default admin):
Login password:
Password again:
Start Webmin at boot time (y/n):


Test it out by firing up your favorite web browser (lynx or otherwise) and navigate to:

(outdated link removed)

(or substitute your alternate port, naturally)

If you have a firewall installed, you will have open the port you assigned above (the example below assumes ipfw/Brickhouse):
Load your settings immediately
sudo ipfw add 3014 allow tcp from any to any 10000 in via en0
sudo ipfw add 3014 allow tcp from any 10000 to any out via en0


Then get it to stick. (The hashes make it match Brickhouse entries.) ;)
sudo echo '#################################################' >> /etc/firewall.conf
sudo echo '## webmin' >> /etc/firewall.conf
sudo echo '#################################################' >> /etc/firewall.conf
sudo echo 'add 3014 allow tcp from any to any 10000 in via en0' >> /etc/firewall.conf
sudo echo 'add 3014 allow tcp from any 10000 to any out via en0' >> /etc/firewall.conf


Enjoy your newfound web configurability!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top