| Personal View e Roberto Rota sono abbastanza lieti di presentarvi Tevac.com, Open Source Mac Site. |
![]() |
|
| Home | Coming Soon... | Mappa | Forum | Liste | Tutorial | Credits |
|
Installare Webmin su Mac OS X
Webmin fornisce un'interfaccia grafica (che è abbastanza aqua-like)
a quelli che sono i "demoni" (o server) forniti assieme a Mac OS X. In
particolare permette di gestire Apache, MySQL, PostgreSQL, ProFTPd, WuFTPd, Bind,
Jabber IM e tanti altri. Dimentico qualcosa? Ah, si, webmin, così come dice il nome, è utilizzabile via web, quindi permette anche la gestione "da remoto" del server. Oltre a ciò, per coloro che hanno installato OpenSSL, è possibile anche criptare la trasmissione dei dati fra il client e il server. Quest'ultima funzionalità non è indispensabile, quindi se ne può anche fare a meno se non si hanno particolari motivi di sicurezza. Tutte le operazioni qui sotto descritte vanno eseguite come utente root. Per fare ciò, bisogna digitare "sudo su" e poi inserire la propria password utente. Ma veniamo al dunque... Ci dobbiamo perciò dotare dei seguenti files: 1. OpenSSL [download
diretto (v. 0.9.6c) PACCHETTO] <== SOLO SE VOLETE SSL OpenSSL <== SOLO SE VOLETE SSL Scaricato OpenSSL, bisogna installarlo, procediamo quindi come tutti i pacchetti di Mac OS X. Esso verrà installato nella directory /usr/local/ssl Net::SSLeay <== SOLO SE VOLETE SSL Si tratta di un modulo che interfaccia Perl a OpenSSL, serve agli script di webmin. Essendo un modulo di perl, l'installazione funziona in maniera diversa rispetto alle altre applicazioni... Decomprimiamo Net::SSLeay tar zxvf Net_SSLeay.pm-1.13.tar.gz ed entriamo nella directory cd Net_SSLeay.pm-1.13 configuriamo perl Makefile.pl compiliamo make e installiamo make install poi torniamo alla directory di installazione cd.. Webmin Scompattiamo webmin tar zxvf webmin-0.92.tar.gz visto che webmin non si installa in posti particolari, ma si auto-esegue dalla locazione dove è stato eseguito l'installer muoviamo la cartella di webmin dentro alla cartella /Library mv webmin-0.92 /Library/ entriamo quindi in /Library/webmin-0.92 cd /Library/webmin-0.92 ed eseguiamo l'installer sh setup.sh l'installer ci porrà alcune domande, che vediamo qui sotto nel dettaglio... [localhost:/Library/webmin-0.92] root# sh setup.sh *********************************************************************** * Welcome to the Webmin setup script, version 0.92 * *********************************************************************** Webmin is a web-based interface that allows Unix-like operating systems and common Unix services to be easily administered. Installing Webmin in /Library/webmin-0.92 ... *********************************************************************** 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]: premiamo invio senza discutere... Log file directory [/var/webmin]: idem come sopra *********************************************************************** 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): anche qui premiamo invio... Testing Perl ... Perl seems to be installed ok *********************************************************************** For Webmin to work properly, it needs to know which operating system type and version you are running. Please select your system type by entering the number next to it from the list below --------------------------------------------------------------------------- 1) Sun Solaris 2) Caldera OpenLinux eServer 3) Caldera OpenLinux 4) Redhat Linux 5) Slackware Linux 6) Debian Linux 7) SuSE Linux 8) Corel Linux 9) turboLinux 10) TurboLinux 11) Cobalt Linux 12) Mandrake Linux 13) Mandrake Linux Corporate Server 14) Delix DLD Linux 15) Conectiva Linux 16) MSC Linux 17) MkLinux 18) LinuxPPC 19) XLinux 20) LinuxPL 21) Linux From Scratch 22) Trustix 23) Cendio LBS Linux 24) Ute Linux 25) Lanthan Linux 26) Yellow Dog Linux 27) Corvus Latinux 28) FreeBSD 29) OpenBSD 30) NetBSD 31) BSDI 32) HP/UX 33) SGI Irix 34) DEC/Compaq OSF/1 35) IBM AIX 36) SCO UnixWare 37) SCO OpenServer 38) Darwin 39) Mac OS X 40) Mac OS X / OS X Server 41) Cygwin --------------------------------------------------------------------------- Operating system: digitiamo 38, e cioè Darwin... Please choose which version of Darwin you are running, by entering the number next to it from the list below --------------------------------------------------------------------------- 1) Darwin 1.0 2) Darwin 1.2 3) Darwin 1.3 4) Darwin 1.4 --------------------------------------------------------------------------- Version: digitiamo 4, visto che la versione 1.4 di Darwin è quella che più si avvicina alla 5.2 Operating system name: Darwin Operating system version: 1.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. - The hostname of this system that the web server should use. - If the webserver should use SSL (if your system supports it). - Whether to start webmin at boot time. Web server port (default 10000): premiamo invio... Login name (default admin): questo è l'utente di webmin che corrisponde all'utente "root" di OSX, e webmin vi invita a sceglierne il nome. Nel mio caso ho scelto idave... Login password: Password again: qui dovete scegliere la password dell'utente di cui sopra... Web server host name (default localhost): a meno che non abbiate un server web con relativo dominio, premete invio, oppure inserite il nome del dominio Use SSL (y/n): digitiamo y, visto che l'abbiamo installato. Se Webmin non pone questa domanda, allora vuol dire che l'installazione di OpenSSL o Net::SSLeay non è andata a buon fine oppure non è nemmeno stata eseguita... Start Webmin at boot time (y/n): digitiamo y se vogliamo che webmin parta all'avvio di OSX, n se non lo vogliamo *********************************************************************** 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 /etc/webmin/uninstall.sh .. ..done Changing ownership and permissions .. ..done Attempting to start Webmin mini web server.. Starting Webmin server in /Library/webmin-0.92 ..done *********************************************************************** Webmin has been installed and started successfully. Use your web browser to go to https://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. [localhost:/Library/webmin-0.92] root# Quest'ultima nota dell'installer di webmin dice che il browser potrebbe fare storie durante la connessione SSL, dato che è stata usata un'autorità finta... Con Internet Explorer, ad esempio, appare il seguente messaggio...
Ora puntiamo il nostro browser su https://127.0.0.1:10000/ (o http://127.0.0.1:10000/, nel caso non abbiate installato SSL) e dovrebbe apparire la schermata di login di webmin...
Dopo aver inserito nome utente e password (quelli scelti sopra) possiamo finalmente goderci le meraviglie di webmin...
3 marzo 2002 |
|
|
Note generali e disclaimer: Tevac.com non è un sito di informazione risultato di un prodotto editoriale. Segnalazioni, tips e tutorial non seguono una pubblicazione regolare e si basano per la maggior parte sul contributo spontaneo e gratuito dei lettori. I responsabili del sito, per quanto cerchino di verificare ogni contributo, non si assumono nessuna responsabilità su problemi o danni derivanti dall'attuazione di quanto indicato su segnalazioni, tips e tutorial. |
|
|
Tevac © Roberto Rota / Personal View 1998-2003 Tutti i diritti riservati |