Differences between revisions 12 and 18 (spanning 6 versions)
Revision 12 as of 2008-08-16 18:18:12
Size: 6062
Comment: muutin, siten, että ajettavat komennot on ruskeella taustalla
Revision 18 as of 2011-09-20 05:28:17
Size: 6990
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#dcc585; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Sisällysluettelo'''[[BR]][[TableOfContents(3)]]|| ||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#dcc585; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Sisällysluettelo'''<<BR>><<TableOfContents(3)>>||
Line 7: Line 7:
== Webmin-ohjelmiston lataus == Tämä ohje soveltuu myös uusimmille Ubuntun versioille (8.10).
Line 9: Line 9:
Tässä ohjeessa Webmin asennetaan Ubuntu 7.10-ympäristöön. Jos oheinen linkki ei toimi, niin voit hakea Webmin-ohjelmiston ja sen uusimman version Webmin-ohjelmiston kotisivulta. Tässä ohjeessa ladataan TAR-tiedosto, ei DEB-pakettia. [http://www.webmin.com Webmin-ohjelmiston kotisivu] == Webmin-ohjelmiston asennus paketista ==
Vieraile osoitteessa http://www.webmin.com/download.html ja valitse webmin_1.430_all.deb tai uudempi lataa koneelle ja asenna tuplaklikkaamalla.
Tämän jälkeen pääset webmin-hallintaan selaimella osoitteesta https://localhost:10000/

Jos webmin asennettaan deb-paketista ja komentoriviltä, asennus menee näin.

{{{
ltsp5-804@ubuntu-hardy-ltsp5:~$ sudo -s
}}}

{{{
root@ubuntu-hardy-ltsp5:~# cd /root
}}}

{{{
root@ubuntu-hardy-ltsp5:/root# wget http://heanet.dl.sourceforge.net/sourceforge/webadmin/webmin_1.441_all.deb
}}}

{{{
root@ubuntu-hardy-ltsp5:/root# chmod 755 *
}}}

{{{
root@ubuntu-hardy-ltsp5:/root# apt-get install libmd5-perl libio-pty-perl libauthen-pam-perl libnet-ssleay-perl
}}}

{{{
root@ubuntu-hardy-ltsp5:/root# dpkg -i webmin_1.441_all.deb
}}}

== Webmin-ohjelmiston asennus käsin ==

Tässä ohjeessa Webmin asennetaan Ubuntu 7.10-ympäristöön. Jos oheinen linkki ei toimi, niin voit hakea Webmin-ohjelmiston ja sen uusimman version Webmin-ohjelmiston kotisivulta. Tässä ohjeessa ladataan TAR-tiedosto, ei DEB-pakettia. [[http://www.webmin.com|Webmin-ohjelmiston kotisivu]]
Line 16: Line 48:
--09:49:23-- http://surfnet.dl.sourceforge.net/sourceforge/webadmin/webmin-1.370.tar.gz [[BR]]
           => `webmin-1.370.tar.gz'[[BR]]
Selvitetään osoitetta surfnet.dl.sourceforge.net... 130.59.138.20, 2001:620:0:1b::20[[BR]]
Yhdistetään palvelimeen surfnet.dl.sourceforge.net|130.59.138.20|:80... yhdistetty.[[BR]]
HTTP-pyyntö lähetetty, odotetaan vastausta... 200 OK[[BR]]
[[BR]]

Pituus: 13 132 344 (13M) [application/x-tar][[BR]]
[[BR]]

100%[==>] 13 132 344 90.93K/s ETA 00:008 [[BR]]
[[BR]]

09:51:43 (91.69 KB/s) - "webmin-1.370.tar.gz" tallennettu [13132344/13132344][[BR]]
[[BR]]

ltsp@ltsp5:/root$[[BR]]
--09:49:23-- http://surfnet.dl.sourceforge.net/sourceforge/webadmin/webmin-1.370.tar.gz <<BR>>
           => `webmin-1.370.tar.gz'<<BR>>
Selvitetään osoitetta surfnet.dl.sourceforge.net... 130.59.138.20, 2001:620:0:1b::20<<BR>>
Yhdistetään palvelimeen surfnet.dl.sourceforge.net|130.59.138.20|:80... yhdistetty.<<BR>>
HTTP-pyyntö lähetetty, odotetaan vastausta... 200 OK<<BR>>
<<BR>>

Pituus: 13 132 344 (13M) [application/x-tar]<<BR>>
<<BR>>

100%[==>] 13 132 344 90.93K/s ETA 00:008 <<BR>>
<<BR>>

09:51:43 (91.69 KB/s) - "webmin-1.370.tar.gz" tallennettu [13132344/13132344]<<BR>>
<<BR>>

ltsp@ltsp5:/root$<<BR>>
Line 45: Line 77:
'''Älä anna tunnukseksi ehdotettua "admin"-tunnusta! Älä keksi uutta salasanaa!''' [[BR]]
'''Login name (default admin): root'''[[BR]]
'''Login password:'''[[BR]]
'''Password again:'''[[BR]]
'''Älä anna tunnukseksi ehdotettua "admin"-tunnusta! Älä keksi uutta salasanaa!''' <<BR>>
'''Login name (default admin): root'''<<BR>>
'''Login password:'''<<BR>>
'''Password again:'''<<BR>>
Line 54: Line 86:
{{{ ltsp@ltsp5:/root/webmin-1.370$ sudo ./setup.sh }}} {{{
ltsp@ltsp5:/root/webmin-1.370$ sudo ./setup.sh
}}}
Line 56: Line 90:
*********************************************************************** [[BR]]
* Welcome to the Webmin setup script, version 1.370 * [[BR]]
*********************************************************************** [[BR]]

Webmin is a web-based interface that allows Unix-like operating [[BR]]
systems and common Unix services to be easily administered. [[BR]]
 [[BR]]

Installing Webmin in /root/webmin-1.370 ... [[BR]]
[[BR]]
*********************************************************************** [[BR]]

Webmin uses separate directories for configuration files and log files. [[BR]]
Unless you want to run multiple versions of Webmin at the same time [[BR]]
you can just accept the defaults. [[BR]]
[[BR]]

Config file directory [/etc/webmin]: [[BR]]
Log file directory [/var/webmin]: [[BR]]
[[BR]]
*********************************************************************** [[BR]]

Webmin is written entirely in Perl. Please enter the full path to the [[BR]]
Perl 5 interpreter on your system.[[BR]]
[[BR]]

Full path to perl (default /usr/bin/perl): [[BR]]
[[BR]]

Testing Perl ... [[BR]]
Perl seems to be installed ok [[BR]]
[[BR]]
*********************************************************************** [[BR]]

Operating system name: Ubuntu Linux [[BR]]
Operating system version: 7.10[[BR]]
[[BR]]
***********************************************************************[[BR]]

Webmin uses its own password protected web server to provide access[[BR]]
to the administration programs. The setup script needs to know :[[BR]]
 - What port to run the web server on. There must not be another[[BR]]
   web server already using this port.[[BR]]
 - The login name required to access the web server.[[BR]]
 - The password required to access the web server.[[BR]]
 - If the webserver should use SSL (if your system supports it).[[BR]]
 - Whether to start webmin at boot time.[[BR]]
[[BR]]

Web server port (default 10000):[[BR]]
[[BR]]

Login name (default admin): root[[BR]]
Login password: [[BR]]
Password again: [[BR]]
The Perl SSLeay library is not installed. SSL not available.[[BR]]
Start Webmin at boot time (y/n):[[BR]]
[[BR]]

Start Webmin at boot time (y/n): y[[BR]]
***********************************************************************[[BR]]

Creating web server config files..[[BR]]
..done[[BR]]
[[BR]]

Creating access control file..[[BR]]
..done[[BR]]
[[BR]]

Inserting path to perl into scripts..[[BR]]
..done[[BR]]
[[BR]]

Creating start and stop scripts..[[BR]]
..done[[BR]]
[[BR]]

Copying config files..[[BR]]
[[BR]]
..done[[BR]]
[[BR]]

Configuring Webmin to start at boot time..[[BR]]
Created init script /etc/init.d/webmin[[BR]]
..done[[BR]]
[[BR]]

Creating uninstall script /etc/webmin/uninstall.sh ..[[BR]]
..done[[BR]]
[[BR]]

Changing ownership and permissions ..[[BR]]
..done[[BR]]
[[BR]]

Running postinstall scripts ..[[BR]]
..done[[BR]]
[[BR]]

Attempting to start Webmin mini web server..[[BR]]
Starting Webmin server in /root/webmin-1.370[[BR]]
..done[[BR]]
[[BR]]
***********************************************************************[[BR]]

Webmin has been installed and started successfully. Use your web[[BR]]
browser to go to[[BR]]
[[BR]]

  http://ltsp5:10000/ [[BR]]
[[BR]]

and login with the name and password you entered previously.[[BR]]
[[BR]]

ltsp@ltsp5:/root/webmin-1.370$[[BR]]
*********************************************************************** <<BR>>
* Welcome to the Webmin setup script, version 1.370 * <<BR>>
*********************************************************************** <<BR>>

Webmin is a web-based interface that allows Unix-like operating <<BR>>
systems and common Unix services to be easily administered. <<BR>>
 <<BR>>

Installing Webmin in /root/webmin-1.370 ... <<BR>>
<<BR>>
*********************************************************************** <<BR>>

Webmin uses separate directories for configuration files and log files. <<BR>>
Unless you want to run multiple versions of Webmin at the same time <<BR>>
you can just accept the defaults. <<BR>>
<<BR>>

Config file directory [/etc/webmin]: <<BR>>
Log file directory [/var/webmin]: <<BR>>
<<BR>>
*********************************************************************** <<BR>>

Webmin is written entirely in Perl. Please enter the full path to the <<BR>>
Perl 5 interpreter on your system.<<BR>>
<<BR>>

Full path to perl (default /usr/bin/perl): <<BR>>
<<BR>>

Testing Perl ... <<BR>>
Perl seems to be installed ok <<BR>>
<<BR>>
*********************************************************************** <<BR>>

Operating system name: Ubuntu Linux <<BR>>
Operating system version: 7.10<<BR>>
<<BR>>
***********************************************************************<<BR>>

Webmin uses its own password protected web server to provide access<<BR>>
to the administration programs. The setup script needs to know :<<BR>>
 - What port to run the web server on. There must not be another<<BR>>
   web server already using this port.<<BR>>
 - The login name required to access the web server.<<BR>>
 - The password required to access the web server.<<BR>>
 - If the webserver should use SSL (if your system supports it).<<BR>>
 - Whether to start webmin at boot time.<<BR>>
<<BR>>

Web server port (default 10000):<<BR>>
<<BR>>

Login name (default admin): root<<BR>>
Login password: <<BR>>
Password again: <<BR>>
The Perl SSLeay library is not installed. SSL not available.<<BR>>
Start Webmin at boot time (y/n):<<BR>>
<<BR>>

Start Webmin at boot time (y/n): y<<BR>>
***********************************************************************<<BR>>

Creating web server config files..<<BR>>
..done<<BR>>
<<BR>>

Creating access control file..<<BR>>
..done<<BR>>
<<BR>>

Inserting path to perl into scripts..<<BR>>
..done<<BR>>
<<BR>>

Creating start and stop scripts..<<BR>>
..done<<BR>>
<<BR>>

Copying config files..<<BR>>
<<BR>>
..done<<BR>>
<<BR>>

Configuring Webmin to start at boot time..<<BR>>
Created init script /etc/init.d/webmin<<BR>>
..done<<BR>>
<<BR>>

Creating uninstall script /etc/webmin/uninstall.sh ..<<BR>>
..done<<BR>>
<<BR>>

Changing ownership and permissions ..<<BR>>
..done<<BR>>
<<BR>>

Running postinstall scripts ..<<BR>>
..done<<BR>>
<<BR>>

Attempting to start Webmin mini web server..<<BR>>
Starting Webmin server in /root/webmin-1.370<<BR>>
..done<<BR>>
<<BR>>
***********************************************************************<<BR>>

Webmin has been installed and started successfully. Use your web<<BR>>
browser to go to<<BR>>
<<BR>>

  http://ltsp5:10000/ <<BR>>
<<BR>>

and login with the name and password you entered previously.<<BR>>
<<BR>>

ltsp@ltsp5:/root/webmin-1.370$<<BR>>

Sisällysluettelo

Webmin-palvelinohjelmisto

Webmin on palvelimelle tarkoitettu perl-ohjelmisto, joka avataan selaimeen. Webmin on kevyt, se ei vaadi LAMP-palvelinohjelmistoja, pelkästään perl-ohjelman. Webmin on graafinen, sen avulla on helppo hallita vaikkapa MySQL-tietokantaa.

Tämä ohje soveltuu myös uusimmille Ubuntun versioille (8.10).

Webmin-ohjelmiston asennus paketista

Vieraile osoitteessa http://www.webmin.com/download.html ja valitse webmin_1.430_all.deb tai uudempi lataa koneelle ja asenna tuplaklikkaamalla. Tämän jälkeen pääset webmin-hallintaan selaimella osoitteesta https://localhost:10000/

Jos webmin asennettaan deb-paketista ja komentoriviltä, asennus menee näin.

ltsp5-804@ubuntu-hardy-ltsp5:~$ sudo -s

root@ubuntu-hardy-ltsp5:~# cd /root

root@ubuntu-hardy-ltsp5:/root# wget http://heanet.dl.sourceforge.net/sourceforge/webadmin/webmin_1.441_all.deb

root@ubuntu-hardy-ltsp5:/root# chmod 755 *

root@ubuntu-hardy-ltsp5:/root# apt-get install libmd5-perl libio-pty-perl libauthen-pam-perl libnet-ssleay-perl

root@ubuntu-hardy-ltsp5:/root# dpkg -i webmin_1.441_all.deb

Webmin-ohjelmiston asennus käsin

Tässä ohjeessa Webmin asennetaan Ubuntu 7.10-ympäristöön. Jos oheinen linkki ei toimi, niin voit hakea Webmin-ohjelmiston ja sen uusimman version Webmin-ohjelmiston kotisivulta. Tässä ohjeessa ladataan TAR-tiedosto, ei DEB-pakettia. Webmin-ohjelmiston kotisivu


{{{ ltsp@ltsp5:~$ cd /root ltsp@ltsp5:/root$ sudo wget http://surfnet.dl.sourceforge.net/sourceforge/webadmin/webmin-1.370.tar.gz [sudo] password for ltsp: }}} --09:49:23-- http://surfnet.dl.sourceforge.net/sourceforge/webadmin/webmin-1.370.tar.gz

  • => `webmin-1.370.tar.gz'

Selvitetään osoitetta surfnet.dl.sourceforge.net... 130.59.138.20, 2001:620:0:1b::20
Yhdistetään palvelimeen surfnet.dl.sourceforge.net|130.59.138.20|:80... yhdistetty.
HTTP-pyyntö lähetetty, odotetaan vastausta... 200 OK

Pituus: 13 132 344 (13M) [application/x-tar]

100%[==>] 13 132 344 90.93K/s ETA 00:008

09:51:43 (91.69 KB/s) - "webmin-1.370.tar.gz" tallennettu [13132344/13132344]

ltsp@ltsp5:/root$


Webmin-ohjelmiston purkaminen

Seuraavaksi Webmin-ohjelmisto puretaan ja siirrytään Webmin-hakemistoon.

ltsp@ltsp5:/root$ sudo tar zxvf webmin*
ltsp@ltsp5:/root$ cd webmin*
ltsp@ltsp5:/root/webmin-1.370$ 

Webmin-ohjelmiston asentaminen

Seuraavaksi Webmin asennetaan pääkäyttäjänä ajamalla skripti "setup.sh". Asennuksessa riittää pelkkä "Enter" eli ehdotusten hyväksyminen, mutta Webmin tunnukseksi pitää antaa "root" ja salasanaksi pääkäyttäjän salasana.

Älä anna tunnukseksi ehdotettua "admin"-tunnusta! Älä keksi uutta salasanaa!
Login name (default admin): root
Login password:
Password again:

Vastaa kyllä (y), kun Webmin kysyy käynnistetäänkö se palvelimen käynnistyksen yhteydessä.


ltsp@ltsp5:/root/webmin-1.370$ sudo ./setup.sh 

***********************************************************************
* 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 in /root/webmin-1.370 ...

***********************************************************************
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]:
Log file directory [/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):

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name: Ubuntu Linux
Operating system version: 7.10

***********************************************************************
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): root
Login password:
Password again:
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n):

Start Webmin at boot time (y/n): y
***********************************************************************
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..
Created init script /etc/init.d/webmin
..done

Creating uninstall script /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 /root/webmin-1.370
..done

***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to


and login with the name and password you entered previously.

ltsp@ltsp5:/root/webmin-1.370$


Avataan Webmin selaimeen

Avaa selain ja anna osoitteeksi asennuksen yhteydessä kerrottu osoite, tässä asennuksessa "http://ltsp5:10000/".