07.01
finally installed a webmin on my remote mac mini, been putting it off for a long period of time.
the installation was easy and quick, I was suppose to write 2 paper for my classes’ group projects but end up wandering around and install it. at least i accomplished something!
instruction from http://www.macports.info/Webmin was very helpful. easy and clean perfectly suitable anyone to follow brainlessly (like me as I was trying all I have to write my paper). To make sure this wonderful instruction is not going away perhaps a backup along with some minor update to reflect something a bit more current.
A few Pre-requisite here:
1. Have Apple Developer Tools installed, basically all you need is the compiler. Download and install it. It also comes with your OSX disk so check it out as well can save you time and bandwidth.
2. Download DarwinPorts, macports, anything similar in that nature should be fine.
a) MacPorts: http://www.macports.org/
b) DarwinPorts, the one I am using right now: http://darwinports.com/download/
Install either one of them & update. Installation wizard is a GUI pretty straight forward.
Fire up terminal or SSH and punch in (or even copy & paste):
sudo port -d selfupdate
(then type in your password)
port upgrade outdated
Wait until everything is updated and done then proceed to install Perl and install a component make sure webmin support SSL. Nowadays everything gotta be encrypted to make sure password and other important information transmitted in a more secure fashion!
sudo port install perl5.8
sudo port install p5-net-ssleay
Now we need the webmin files, ALWAYS create a new folder for expanding files ![]()
mkdir ~/Documents/webmin-installation/
curl -O http://voxel.dl.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510.tar.gz
gnutar zxf webmin-1.510.tar.gz
cd webmin-1.510
sudo ./setup.sh /opt/local/webmin
Here is the original MacPorts.info Webmin Tutorial, just ignore the version number:
This instruction starts a shell script which installs Webmin using a number of default responses. We
want to change many of those default responses so that Webmin is installed in the
MacPorts opt directory. The following is a transcript of the installation shell script, with
the required responses:
***********************************************************************
* Welcome to the Webmin setup script, version 1.370 *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin from /webmin-1.370 to /opt/local/webmin …
***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.
Config file directory [/etc/webmin]: /opt/local/etc/webmin
Log file directory [/var/webmin]: /opt/local/var/webmin
***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.
Full path to perl (default /usr/bin/perl): /opt/local/bin/perl
Testing Perl …
Perl seems to be installed ok
***********************************************************************
Operating system name: Mac OS X
Operating system version: 10.4
***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.
Web server port (default 10000):
Login name (default admin):
Login password:
Password again:
Use SSL (y/n): y
Start Webmin at boot time (y/n): y
***********************************************************************
Copying files to /opt/local/webmin ..
..done
Creating web server config files..
..done
Creating access control file..
..done
Inserting path to perl into scripts..
..done
Creating start and stop scripts..
..done
Copying config files..
..done
Configuring Webmin to start at boot time..
..done
Creating uninstall script /opt/local/etc/webmin/uninstall.sh ..
..done
Changing ownership and permissions ..
..done
Running postinstall scripts ..
..done
Attempting to start Webmin mini web server..
Starting Webmin server in /opt/local/webmin
..done
***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to
http://localhost:10000/
and login with the name and password you entered previously.
Because Webmin uses SSL for encryption only, the certificate
it uses is not signed by one of the recognized CAs such as
Verisign. When you first connect to the Webmin server, your
browser will ask you if you want to accept the certificate
presented, as it does not recognize the CA. Say yes.
Don’t forget to add port TCP 10000 to firewall ALLOW with description “Webmin” so you can reach your own server
Source:
http://www.macports.info/Webmin
http://webmin.com/osx.html
No Comment.
Add Your Comment