个人工具

UbuntuHelp:LTSPServerSetup

来自Ubuntu中文

跳转至: 导航, 搜索

<<Include(Tag/ContentCleanup)>> <<Include(Tag/StyleCleanup)>> <<Include(Tag/Unsupported)>>

This page describes the steps needed to setup an LTSP server in Edubuntu

The Edubuntu default install is a LTSP single-classroom solution. All installation steps of the Ubuntu 5.10 ltsp-server package are done in the first part of the CD install automatically. The LTSP configuration is targeted at a special setup of a certain IP range for the thin clients. /!\ If you selected an IP similar to 192.168.0.XXX (where XXX is a number between 1 and 254) during install, there is no need to read on, as your server will already be configured. If you selected an IP from another range, some manual work is required to make the DHCP server part of LTSP work. Follow these steps after the install (you need to know the IP address you used on install; in the following example we'll assume the IP 192.168.100.2 was chosen as the IP address during install):

  • Log in on the server with the administrator account you created during install
  • Hit ALT-F2 and type (or copy and paste) the following command:
gksudo "gedit /etc/ltsp/dhcpd.conf"
  • gedit will present the following file:

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {

 range 192.168.0.20 192.168.0.250;
 option domain-name "example.com";
 option domain-name-servers 192.168.0.1;
 option broadcast-address 192.168.0.255;
 option routers 192.168.0.1;
 option subnet-mask 255.255.255.0;
 filename "/ltsp/pxelinux.0";
 option root-path "/opt/ltsp/i386";

}

  • Now we want to make sure the LTSP server works through the interface we configured during install.
Hit CTRL-R in the editor window and tell the editor to replace all occurrences of:
192.168.0 
with
192.168.100 

After you filled in the two form fields in the search/replace dialog, click on Replace All. The editor should tell you that it made 6 replacements.

  • Make sure the lines for domain-name-servers and routers match your network setup if you want to give the thin clients Internet access.
  • If you think all your settings are right, save the file.
  • Open a Terminal window (Applications->Accessories->Terminal) and run:
sudo /etc/init.d/dhcp3-server start

If you made no mistakes in the above file, this command should exit with a OK message.

  • If all went well, it's now time to boot your thin clients and start the work.

If you change the IP data after you have done the initial setup, please run the command sudo ltsp-update-sshkeys to make the ssh server aware of the change. This workstation isn't authorized to connect to server error message on client, please run commands sudo ltsp-update-sshkeys and sudo ltsp-update-image (in this order) reference:https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/144296 {i} If you want to run your server with two network cards and route the thin client traffic through the server, please see the NAT|Howto on the Ubuntu wiki. {i} If you have trouble with the keymap setting on the thin clients, please see the UbuntuLTSP/LTSPClientKeymap page.