ʹÓÃK12 LTSP 4.2(Fedore Core 4),´Óhttp://k12ltsp.org/download.htmlÏÂÔØÍêÕûµÄ4¸öisoÎļþ£¬ÔÚÒ»¸ö¾ÉµÄÓ²ÅÌÉϰ²×°£¬Ö»ÐèÒªÔÚ°²×°¹ý³ÌÖÐÉèÖÃÃû³Æserver,Íø¿¨ÉèÖÃip¾ÍokÁË£¬ºÜÊÇ·½±ã£¬Ö»²»¹ýÀïÃæµÄÈí¼þ¶¼ÊÇÃÀ¹úСÅóÓÑÓõġ£
ltsp-4.2u2-0°æµÄ°²×°¹âÅÌ£¨ISO£©Îļþ¿ÉÒÔµ½http://ltsp.mirror.com/ÏÂÔØ£¬LTSP4.2°æÊ¹Óõݲװ¹ÜÀí³ÌÐòltsp-utils_0.25ÌṩÁËdeb¡¢rpmºÍtgzÈýÖÖ¸ñʽµÄ°²×°°ü¡£
ÈçÖ»ÓÃLTSP 4.2£¬Ò²¿Éµ½http://wiki.ltsp.org/twiki/bin/view/Ltsp/LTSP-42ÏÂÔØltsp-4.2u2-0.isoÎļþ,°´ÒÔÏÂ˵Ã÷°²×°¡£
Installing from the LTSP_4.2u2 ISO image
You MUST install a new version of the ltsp-utils package. At least version 0.20 of the ltsp-utils package (containing version 0.15 of ltspadmin) is required.
LTSP-4.2 must be installed to a new directory. You cannot do an in-place upgrade. But this is actually a great way to do it. You can install LTSP-4.2 into a new subdir, such as /opt/ltsp-4.2, and then update the filename and root-path entries in dhcpd.conf to point to the new LTSP tree. This is a great way to test it, because you can change those dhcpd.conf entries for individual workstations very easily. Meanwhile, your other workstations will continue to function using the older version of LTSP.
To install LTSP-4.2, following these instructions:
Download and install the latest ltsp-utils package(ltsp-utils was updated to version 0.25 on April 17th, 2006)
China Mirror
Debian - Download official deb
Debian - Download deb
Ubuntu - Download deb
Redhat/Fedora - Download RPM
Slackware - Download TGZ (contributed by martijn at inlv dot org)
Others - Download TGZ
As root, run ltspadmin.
If you have a previous version LTSP already installed, it is recommended that you install the ltsp-4.2 packages into a separate directory, such as: /opt/ltsp-4.2. You can configure this with the ltspadmin utility.
Install ALL of the packages
Choose the 'Configure LTSP' menu item, which will cause it to run the ltspcfg utility. Use this utility to setup the services.
Installing from the LTSP_4.2u2 ISO image
An ISO image of the LTSP-4.2u2 packages has been created for those who want to download a single file, and install it on multiple servers, without requiring additional downloads.
Installing LTSP from the ISO image:
1. Download the ISO image from the ISO download page China Mirror ltsp-4.2u2-0.iso 06-Jul-2006 21:34 100MB. Save it on your system. For this example, we'll put it in /tmp.Download md5sum
2. Make sure you are either logged in as root, or you've switched to super user using su - (Notice the '-', it's important) #ÏÂÔØISOÎļþµ½Ò»¸öĿ¼ÏÂ
3. Run md5sum on the downloaded file, and make sure the result matches the number in the .md5sum file that accompanies the ISO image.
md5sum
4. Mount the ISO image, using the loopback device:
mount -o loop /tmp/ltsp-4.2u2-0.iso /mnt #ÔÚlinuxϽ«ÏÂÔØµÄISOÎļþ¹ÒÔØµ½Ò»¸öĿ¼
5. Install the ltsp-utils package. It's included in the ISO image.
If your system is RPM based (Redhat, Suse,Mandriva...) you can install the ltsp-utils RPM package:
cd /mnt/ltsp-utils #´ò¿ªltsp-utilsµÄ°²×°Ä¿Â¼
rpm -ivh ltsp-utils-0.25-0.noarch.rpm #°²×°ltspµÄRPM°ü
Or, if you've got a Debian based system, you can install the .deb package:
cd /mnt/ltsp-utils
dpkg -i ltsp-utils_0.25_all.deb #»ò°²×°ltspµÄDEB°ü
Or, if your system doesn't support either the RPM or the DEB package, you can install teh TGZ package:
cd /mnt/ltsp-utils
cp ltsp-utils-0.25-0.tgz /tmp
cd /tmp
tar xvzf ltsp-utils-0.25-0.tgz
cd ltsp-utils
./install.sh #»ò½âѹTGZ°²×°ltsp
6. Run *ltspadmin as root. #Ö´ÐÐltspadminÃüÁî
7. From the main menu in ltspadmin, choose:
Configure the installer options #Ñ¡ÔñÅäÖÃÑ¡Ïî²Ëµ¥(µÚ¶þÑ¡Ïî)
8. Specify the pathname to the files:
file:///mnt #ÊäÈë´Ëfile:///mnt£¬»Ø³µ
Notice that the value MUST be in the form of a URL, and also, notice that there are 3 slashes '///'. The first 2 slashes are part of the URL specification ("file://"), the 3rd slash is for the root directory on your server.
9. Leave the remaining options as is.
10. If you have a previous version of LTSP (Pre-LTSP-4.2) already installed, it is recommended that you install the LTSP-4.2u2 packages into a separate directory, such as /opt/ltsp-4.2. You can configure this with the ltspadmin utility.
11. Install ALL of the packages. #°²×°ËùÓаü(µÚһѡÏî)
12. Choose the 'Configure LTSP' menu item, which will cause it to run the ltspcfg utility. Use this utility to setup the necessary services. #ÅäÖÃltsp(µÚÈýÑ¡Ïî)
13. Unmount the ISO image from /mnt:
umount /mnt #È¡Ïû¹ÒÔØ
Please report any problems you have with this ISO iage to the ltsp-discuss mailing list, or contact me on the #ltsp IRC channel on irc.freenode.net.
ÐèÒªÒÔÏ·þÎñ£º
XFree£º½Ð×÷ XÖÕ¶Ë
DHCP: DHCP ÊÇÒ»¸öÐÒ飬ÓÃÓÚ×Ô¶¯ÅäÖÃʹÓà TCP/IP µÄ¼ÆËã»ú£¬±» ltsp ÓÃÀ´Îª¹¤×÷Õ¾·ÖÅä IP
NFS: NFS ÊÇÒ»¸öÐÒ飬ÔÊÐíͨ¹ýÍøÂç·ÃÎÊÓ²ÅÌ£¬±» ltsp ÓÃÀ´Îª¹¤×÷Õ¾¼ÓÔØ»ù±¾ÏµÍ³
TFTP: TFTP ÊÇÒ»¸ö¼òµ¥Îļþ´«ÊäÐÒ飬±» ltsp ÓÃÀ´Ïò¹¤×÷Õ¾´«µÝÄÚºË
XINETD: Xinetd ÊÇ inetdµÄÇ¿Á¦´úÌæ£¬Óиü¸ß¼¶µÄÌØÐÔ£¬±» ltsp ÓÃÀ´Æô¶¯ tftp
NFSÅäÖÃ:±à¼ÄãµÄ /etc/exports Îļþ£¬ÒÔ±ãÔÊÐí¹¤×÷Õ¾¼ÓÔØ¸ùÎļþϵͳ¡£ÖÁÉÙÒªÓÐÏÂÃæÁ½ÐУº
#vi /etc/exports
/opt/ltsp/i386 10.0.2.0/255.255.255.0(ro,no_root_squash,async)
/var/opt/ltsp/swapfiles 10.0.2.0/255.255.255.0(rw,no_root_squash,async)
×¢ÊÍ£º Äã¿ÉÒԸıäÍøÂç¡¢ÑÚÂëÉèÖÃÒÔÊÊÓ¦ÄãµÄÍøÂç¡£
Æô¶¯ nfs
# rc-update add nfs default
# /etc/init.d/nfs start
xinetd/tftpÅäÖà :ȱʡÏ TFTP ²»»áÆô¶¯£¬Òª¸Ä±äÕâ¸ö£¬±à¼ /etc/xinetd.d/tftp
#vi /etc/xinetd.d/tftp #²¢°Ñ disable=yes Ìæ»»Îª disable=no. È»ºóÆô¶¯ xinitd¡£
Æô¶¯ xinetd
# rc-update add xinetd default
# /etc/init.d/xinetd start
DNSÅäÖÃ:ΪÁËʹ¹¤×÷Õ¾½Ó´¥ËùÓеÄ×ÊÔ´£¬±ØÐëÒªÓÐÕýÈ·µÄÃû×Ö½âÎö¡£Óм¸ÖÖ·½·¨À´´ïµ½Õâµã¡£Ò»ÖÖÊÇΪ±¾µØÍøÂçÅäÖà DNS ·þÎñÆ÷£¬ÁíÒ»ÖÖ£¨¸ü¼òµ¥µÄ£©ÊÇÔÚËùÓеÄϵͳÉÏʹÓü¸ºõÏàͬµÄ /etc/hosts Îļþ¡£ÎÒÃDzÉÈ¡ºóÒ»ÖÖ·½°¸¡£ ËùÓеŤ×÷Õ¾±ØÐëÁÐÔÚ /etc/hosts ÖС£¿´¿´Àý×Ó£º
#vi /etc/hosts
127.0.0.1 localhost
10.0.2.254 server server.yourdomain.com
10.0.2.1 ws-1 ws-1.yourdomain.com
DHCP ÅäÖÃ:ÔÚÎÒ¿´À´ÕâÊÇ×ÔӵIJ½Ö裬ÄãÐèÒª½¨Á¢ÓÐЧµÄ DHCP ÅäÖã¨/etc/dhcp/dhcpd.conf£©¡£ÕâÀïÊÇÀý×Ó£º
#vi dhcpd.conf // Ò»°ãÑ¡Ïî
default-lease-time 21600;
max-lease-time 21600;
use-host-decl-names on;
ddns-update-style ad-hoc;
// Bootp Ñ¡Ïî
allow booting;
allow bootp;
// ÍøÂçÑ¡Ïî
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.2.255;
option routers 10.0.2.202;
option domain-name-servers 10.0.2.202;
option log-servers 10.0.2.254;
option domain-name "yourdomain.com";
// LTSP ·¾¶Ñ¡Ïî
option root-path "10.0.2.202:/opt/ltsp/i386";
filename "tftpboot/lts/vmlinuz-2.6.17.3-ltsp-1";
// Èç¹ûÄãµÄ¹¤×÷Õ¾ÓÐ ISA Íø¿¨£¬È¡ÏûÏÂÃæµÄÐÐ×¢ÊÍ// ²¢ÇÒÑ¡ÔñÄãµÄÇý¶¯ºÍ IO
#option option-128 code 128 = string;
#option option-129 code 129 = text;
#option option-128 e4:45:74:68:00:00;
#option option-129 "NIC=ne IO=0x300";
shared-network WORKSTATIONS {
subnet 10.0.2.0 netmask 255.255.255.0 {
// ·ÖÅ䏸¹¤×÷Õ¾µÄ¶¯Ì¬ IP
range dynamic-bootp 10.0.2.100 10.0.2.200;
// ¹¤×÷Õ¾ÌØ¶¨µÄ PXE Òýµ¼ÅäÖÃ
#host ws001 {
# hardware ethernet 00:E0:06:E8:00:84;
# fixed-address 10.0.2.1;
#}
}
}
Èç¹ûÄãµÄ¹¤×÷Õ¾Ö§³Ö PXE£¬ÄãÓ¦µ±ÁгöËýÃÇÖеÄÿһ¸ö£¬ÏñÎÒÔÚ host ws001 ÖÐËù×÷µÄ£¨±ðÍüÁËÈ¡Ïû×¢ÊÍ£©¡£²»Òª¸øËüÃÇÔÚ¶¯Ì¬·¶Î§ÖеĵØÖ·£¬·ñÔò¿ÉÄÜ»áÓй¤×÷Õ¾ÓÐÏàͬµÄIP £¨½«ÊÇÓÐÎÊÌâµÄ£©¡£
ÐèÒª¹ØÓÚ±¾ÏîÄ¿µÄ¸ü¶àÎĵµ£¬ÇëÔĶÁ dhcp ¹Ù·½Êֲ᣺ http://www.dhcp-handbook.com/
ÏÖÔÚÆô¶¯ DHCP £¬¾ÍÏñÄãÔÚ NFS ºÍ xinetd ÖÐÒ»Ñù£º
Æô¶¯ dhcp # rc-update add dhcp default
# /etc/init.d/dhcp start
×¢ÊÍ£º DHCPD ÐèÒª CONFIG_PACKET ºÍ CONFIG_FILTER ÔÚÄÚºËÖ줻î²ÅÄܹ¤×÷¡£
LTSP ÅäÖà :ÓкܶàÑ¡ÏîÀ´ÅäÖÃÄãµÄ¹¤×÷Õ¾£¬²é¿´ http://www.ltsp.org/documentation/ltsp-3.0-4-en.html#AEN903 À´µÃµ½ /opt/ltsp/i386/etc/lts.conf µÄÍêÕûÃèÊö¡£ ÏÔʾ¹ÜÀíÆ÷ ÏÖÔÚÄãÒª¸Ä±äÄãµÄÏÔʾ¹ÜÀíÆ÷ÅäÖã¬Ê¹Ö®½ÓÊÜÔ¶³ÌÁ¬½Ó¡£ Ê×ÏÈÐÞ¸ÄÄãµÄ Xaccess Îļþ£¬È¥µôÏÂÒ»ÐеÄ×¢ÊÍ£º #vi /etc/Xaccess #any host can get a login window
ÏÖÔÚÐÞ¸ÄÄãËùʹÓõÄÏÔʾ¹ÜÀíÆ÷ÅäÖ㺠XDM£ºÔÚ /etc/X11/xdm/xdm-config ×¢Ê͵ô DisplayManager.requestPort: 0KDM£ºÔÚ /usr/kde/3.1/share/config/kdm/kdmrc ÕÒµ½ [Xdmcp] ²¿·Ö²¢°Ñ Enable = false ¸ÄΪ Enable = true¡£ GDM£ºÔÚ /etc/X11/gdm/gdm.conf ÕÒµ½ [Xdmcp] ²¿·Ö²¢°Ñ Enable = false ¸ÄΪ Enable = true¡£ È»ºóÆô¶¯ÏÔʾ¹ÜÀíÆ÷£º Æô¶¯ xdm # rc-update add xdm default
# /etc/init.d/xdm start ¾¯¸æ£º ºÃÏñ XDM ºÍ GDMÓÐЩÎÊÌâ¡£×÷ÕßʹÓà KDM À´½â¾öÕâЩÎÊÌâ¡£ ´´½¨Òýµ¼ÈíÅÌ Èç¹ûÄãµÄ¹¤×÷Õ¾²»Ö§³ÖPXEÒýµ¼£¬Äã±ØÐë´´½¨Ò»¸öÒýµ¼ÈíÅÌ£¬ÔÚÆô¶¯ÄãµÄ¹¤×÷վʱÐèÒªµÄ¡£µ½ http://www.rom-o-matic.net/5.0.9/£¬Ñ¡ÔñÄãµÄ NIC£¨Íø¿¨£©£¬°´Ï Get ROM ²¢°Ñ¾µÏñдµ½ÈíÅÌÖУº дÈíÅ̾µÏñ # cat nicfile.lzdsk > /dev/fd0
ÒÔÏÂΪ×Ô¶¯ÅäÖÃÎļþ£º
/etc/dhcpd.conf »á×Ô¶¯Éú³ÉÒ»¸ö/etc/dhcpd.conf.sampleÎļþ£¬½«ÏÂÃæÒ»ÐеÄyour_domain.org¸ÄÕýΪÎÒÕæÊµµÄdomain-name=server. ²¢¿½±´Îª/etc/dhcpd.conf ¡£
option domain-name "your_domain.org"; # You really should fix
option domain-name "server"; # You really should fix this
ÆäËû¾ÍÓÃ×Ô¶¯Éú³ÉµÄÅäÖÃÎļþ¼´¿É¡£
/etc/hosts
/etc/hosts.allow
/etc/exports
/opt/ltsp/i386/etc/lts.conf
×ܵĸоõËÙ¶ÈÊDZȽϿìµÄ£¬Ò»¸öÀϵôÑÀPII£¬Ö»Òª¼¸Ãë¾Í½øÈëX window,´ò¿ª
openofficeËٶȺÍP4·þÎñÆ÷²î²»¶à£¬ÕæÀ÷º¦£¬Ê¹ÀϾɵĵçÄÔ¿Ýľ·ê´º¡£ÊµÔÚÊÇÖÐСѧµçÄÔ½ÌÊÒ¸ÄÔìµÄÊ×Ñ¡¡£
ÒòΪÏÈ×°ÁËDRBL,ËùÒÔÒª¿ªÆôLTSP±ØÐë×öÒÔϼ¸²½£º
# /opt/drbl/sbin/drbl-all-service stop ÏÈÍ£Ö¹drbl£¬ËüͬʱֹͣÒÔÏ·þÎñ£º
Stopping xinetd: [ OK ]
Stopping portmap: [ OK ]
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter nat [ OK ]
Stopping YP server services: [ OK ]
Shutting down NIS services: [ OK ]
Stopping YP passwd service: [ OK ]
Stopping YP map server: [ OK ]
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [FAILED]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Stopping NFS locking: [ OK ]
Stopping NFS statd: [ OK ]
Shutting down ntpd: [ OK ]
ËùÒÔÒªÖØÆôÒÔÏ·þÎñ£º
# dhcpd ¿ªÆôdhcp
# /etc/rc.d/init.d/portmap start ¿ªÆôportmap nfs
# service xinetd restart ÖØÆô httpd tftp
xiang5206267 ÓÚ 2011-02-12 17:04:13·¢±í:
ÄÄÀïÓÐlinuxѧϰµÄQQ½»Á÷Ⱥ¡£
poioi555 ÓÚ 2010-11-04 07:47:33·¢±í:
{:2_95:}
snqyss ÓÚ 2006-11-08 17:48:16·¢±í:
:0L