Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Install Webmin
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="gatorparrots" data-source="post: 124"><p><strong>How to install Webmin on Mac OS X 10.1.x or 10.2</strong></p><p></p><p>From the README:</p><p><em>Webmin is a web-based interface for system administration for Unix.</em></p><p><em>Using any browser that supports tables and forms, you can setup user</em></p><p><em>accounts, Apache, internet services, DNS, file sharing and so on.</em></p><p><em></em></p><p><em>Webmin consists of a simple web server, and a number of CGI programs</em></p><p><em>which directly update system files like /etc/inetd.conf and /etc/passwd.</em></p><p><em>The web server and all CGI programs are written in Perl version 5, and use</em></p><p><em>only the standard perl modules.</em></p><p><em></em></p><p><em>For more information, see <a href="http://www.webmin.com/" target="_blank">Webmin</a></em></p><p></p><p>Before you install, it would be good to install the Perl SSLeay library:</p><p>First, <strong>cd</strong> to your downloads or source repository. Then:</p><p></p><p><span style="color: blue">cd /src</span></p><p><span style="color: blue">curl -O </span><span style="color: rgb(0, 0, 0)">(outdated link removed)</span></p><p><span style="color: blue">tar xzf Net_SSLeay.pm-1.12.tar.gz</span></p><p><span style="color: blue">mv Net_SSLeay.pm-1.12 netssl</span></p><p><span style="color: blue">cd netssl</span></p><p><span style="color: blue">perl Makefile.PL -t</span></p><p><span style="color: blue">sudo make install</span></p><p></p><p>Great, now that SSL functionality is available, let's go get Webmin. First, <strong>cd</strong> to your downloads or source repository. Then:</p><p></p><p><span style="color: blue">curl -O </span><span style="color: rgb(0, 0, 0)">(outdated link removed)</span></p><p><span style="color: blue">tar -xzf webmin-1.030.tar.gz</span></p><p>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.</p><p><span style="color: blue">sudo mv webmin-1.030 /usr/local/bin/webmin-1.030</span></p><p><span style="color: blue">cd /usr/local/bin/webmin-1.030</span></p><p><span style="color: blue">sudo ./setup.sh</span></p><p>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:</p><p><span style="color: blue">Config file directory [/etc/webmin]: </span></p><p><span style="color: blue">Log file directory [/var/webmin]: </span></p><p><span style="color: blue">Full path to perl (default /usr/bin/perl): </span></p><p>(Feel free to change the server port to whatever you want)</p><p><span style="color: blue">Web server port (default 10000):</span></p><p><span style="color: blue">Login name (default admin):</span></p><p><span style="color: blue">Login password: </span></p><p><span style="color: blue">Password again: </span></p><p><span style="color: blue">Start Webmin at boot time (y/n):</span></p><p></p><p>Test it out by firing up your favorite web browser (lynx or otherwise) and navigate to:</p><p></p><p>(outdated link removed)</p><p></p><p><em>(or substitute your alternate port, naturally)</em></p><p></p><p>If you have a firewall installed, you will have open the port you assigned above (the example below assumes ipfw/Brickhouse):</p><p>Load your settings immediately</p><p><span style="color: blue">sudo ipfw add 3014 allow tcp from any to any 10000 in via en0 </span></p><p><span style="color: blue">sudo ipfw add 3014 allow tcp from any 10000 to any out via en0</span></p><p></p><p>Then get it to stick. (The hashes make it match Brickhouse entries.) <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p><span style="color: blue">sudo echo '#################################################' >> /etc/firewall.conf</span></p><p><span style="color: blue">sudo echo '## webmin' >> /etc/firewall.conf</span></p><p><span style="color: blue">sudo echo '#################################################' >> /etc/firewall.conf</span></p><p><span style="color: blue">sudo echo 'add 3014 allow tcp from any to any 10000 in via en0' >> /etc/firewall.conf </span></p><p><span style="color: blue">sudo echo 'add 3014 allow tcp from any 10000 to any out via en0' >> /etc/firewall.conf </span></p><p></p><p>Enjoy your newfound web configurability!</p></blockquote><p></p>
[QUOTE="gatorparrots, post: 124"] [B]How to install Webmin on Mac OS X 10.1.x or 10.2[/B] From the README: [I]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 [URL='http://www.webmin.com/']Webmin[/URL][/I] Before you install, it would be good to install the Perl SSLeay library: First, [B]cd[/B] to your downloads or source repository. Then: [COLOR=blue]cd /src curl -O [/COLOR][COLOR=rgb(0, 0, 0)](outdated link removed)[/COLOR] [COLOR=blue]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[/COLOR] Great, now that SSL functionality is available, let's go get Webmin. First, [B]cd[/B] to your downloads or source repository. Then: [COLOR=blue]curl -O [/COLOR][COLOR=rgb(0, 0, 0)](outdated link removed)[/COLOR] [COLOR=blue]tar -xzf webmin-1.030.tar.gz[/COLOR] 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. [COLOR=blue]sudo mv webmin-1.030 /usr/local/bin/webmin-1.030 cd /usr/local/bin/webmin-1.030 sudo ./setup.sh[/COLOR] 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: [COLOR=blue]Config file directory [/etc/webmin]: Log file directory [/var/webmin]: Full path to perl (default /usr/bin/perl): [/COLOR] (Feel free to change the server port to whatever you want) [COLOR=blue]Web server port (default 10000): Login name (default admin): Login password: Password again: Start Webmin at boot time (y/n):[/COLOR] Test it out by firing up your favorite web browser (lynx or otherwise) and navigate to: (outdated link removed) [I](or substitute your alternate port, naturally)[/I] 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 [COLOR=blue]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[/COLOR] Then get it to stick. (The hashes make it match Brickhouse entries.) ;) [COLOR=blue]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 [/COLOR] Enjoy your newfound web configurability! [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Install Webmin
Top