As I remember, ltspadmin jut download the ltsp packages and untar them. ltspcfg configures some files and tries (but fail because slack is not supported) to launch the services.
Ok, here's some kind of mini-howto.
First, you need to dl (almost) all the ltsp packages from
http://www.ltsp.org/ltsp-4.1/
The complete list is
Code:
ltsp-audiofile-1.0-0-i386.tgz
ltsp-aumix-1.0-0-i386.tgz
ltsp-bash-1.0-0-i386.tgz
ltsp-busybox-1.0-0-i386.tgz
ltsp-devfsd-1.0-0-i386.tgz
ltsp-e2fsprogs-1.1-0-i386.tgz
ltsp-esd-1.0-0-i386.tgz
ltsp-freetype-1.0-0-i386.tgz
ltsp-gdb-1.0-0-i386.tgz
ltsp-getltscfg-1.2-0-i386.tgz
ltsp-glibc-1.0-0-i386.tgz
ltsp-haltsys-1.0-0-i386.tgz
ltsp-kernel-1.4-0-i386.tgz
ltsp-libgcc_s-1.0-0-i386.tgz
ltsp-libpng-1.0-0-i386.tgz
ltsp-libvncserver-1.0-0-i386.tgz
ltsp-localdev-1.1-0-i386.tgz
ltsp-lp_server-1.1-0-i386.tgz
ltsp-ltspinfod-1.1-0-i386.tgz
ltsp-ltsptree-1.7-0-i386.tgz
ltsp-modules-1.4-0-i386.tgz
ltsp-modutils-1.0-0-i386.tgz
ltsp-ncurses-1.0-0-i386.tgz
ltsp-net-tools-1.0-0-i386.tgz
ltsp-open-1.1-0-i386.tgz
ltsp-openssl-1.0-0-i386.tgz
ltsp-pam-1.0-0-i386.tgz
ltsp-pci_scan-1.0-0-i386.tgz
ltsp-popt-1.1-0-i386.tgz
ltsp-portmap-1.0-0-i386.tgz
ltsp-prep_swap-1.0-0-i386.tgz
ltsp-rdesktop-1.3-0-i386.tgz
ltsp-samba-1.0-0-i386.tgz
ltsp-snmpd-1-0-i386.tgz
ltsp-ssh-1.0-0-i386.tgz
ltsp-startsess-1.1-0-i386.tgz
ltsp-strace-1.0-0-i386.tgz
ltsp-sysvinit-1.0-0-i386.tgz
ltsp-tcp_wrappers-1.0-0-i386.tgz
ltsp-util-linux-1.0-0-i386.tgz
ltsp-vidlist-1.1-0-i386.tgz
ltsp-x-core-1.2-0-i386.tgz
ltsp-x-fonts-1.0-0-i386.tgz
ltsp-x-fonts-100dpi-1.0-0-i386.tgz
ltsp-x336_3DLabs-1.0-0-i386.tgz
ltsp-x336_8514-1.0-0-i386.tgz
ltsp-x336_AGX-1.0-0-i386.tgz
ltsp-x336_I128-1.0-0-i386.tgz
ltsp-x336_Mach32-1.0-0-i386.tgz
ltsp-x336_Mach64-1.0-0-i386.tgz
ltsp-x336_Mach8-1.0-0-i386.tgz
ltsp-x336_Mono-1.0-0-i386.tgz
ltsp-x336_P9000-1.0-0-i386.tgz
ltsp-x336_S3_S3V-1.0-0-i386.tgz
ltsp-x336_SVGA-1.0-0-i386.tgz
ltsp-x336_VGA16-1.0-0-i386.tgz
ltsp-x336_W32-1.0-0-i386.tgz
ltsp-xinetd-1.0-0-i386.tgz
ltsp-ypbind-1.0-0-i386.tgz
ltsp-zlib-1.0-0-i386.tgz
ltsp_nasd-1.1-0-i386.tgz
The ".ltsp" files contain information like dependences, description... : the are not needed for us.
The files ltsp-sound-1.0-0.1{tar.bz2,noarch.rpm} can be installed on the server for re-directing sound to the client, but I didn't try.
The tarball "ltsp-kernel-1.4-0-i386.tgz" need to be untared in /tftpboot/lts",
while all other's need to be untared in "/opt/ltps/" (ltsp-sound is not concerned !)
Four services are required : DHCP, TFTP, NFS, XDMCP and optionaly DNS.
So the following (Slackware) packages must be installed :
dhcpcd, portmap, nfs-utils, tcpip and X off course
The network :
Netmask 255.255.255.0
The LTS has the IP 192.168.0.1
The first client named "ws001" will have IP 192.168.0.21
The second named "ws002" 192.168.0.22 and so on.
Now the config files :
In order to make the tftp service available, we need to uncomment the following line in "/etc/inetd.conf"
Code:
tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot -r blksize
Next, "/etc/dhcpd.conf" :
Code:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option domain-name "home";
option domain-name-servers 192.168.0.1;
option routers 192.168.0.1;
option root-path "192.168.0.1:/opt/ltsp/i386";
subnet 192.168.0.0 netmask 255.255.255.0 {
}
group {
use-host-decl-names on;
# option log-servers 192.168.0.1;
host ws001 {
hardware ethernet 00:AA:F5:17:CD:7D;
fixed-address 192.168.0.21;
filename "/lts/vmlinuz-2.4.26-ltsp-2";
}
host ws002 {
hardware ethernet BB:F3:7E:71:DC:D6;
fixed-address 192.168.0.22;
filename "/lts/vmlinuz-2.4.26-ltsp-2";
}
}
The "hardware ethernet" are the MAC addresses of the client ethernet cards.
You can uncomment the line "# option log-servers 192.168.0.1;" if you want the clients to send their logs to the server, but syslog need to be configured to accept remote logs.
The option domain-name-servers can be your internet provider's dns ip.
Let's configure NFS now:
"/etc/exports" needs to contain the two lines
Code:
/opt/ltsp 192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
/var/opt/ltsp/swapfiles 192.168.0.0/255.255.255.0(rw,no_root_squash,async)
If your "/etc/hosts.deny" contains "ALL: ALL" (as it should be
), "/etc/hosts.allow" should contain the following lines
Code:
portmap: 192.168.0.0/255.255.255.0
# for nfs
lockd: 192.168.0.0/255.255.255.0
mountd: 192.168.0.0/255.255.255.0
rquotad: 192.168.0.0/255.255.255.0
statd: 192.168.0.0/255.255.255.0
# for ltsp
in.tftpd: 192.168.0.0/255.255.255.0
dhcpcd: 192.168.0.0/255.255.255.0
bootpd: 192.168.0.0/255.255.255.0
otherwise you can let the files /etc/hosts.{allow,deny} empty (this is a good idea in a first time because simpler)
Put the names and IPs of the clients in the "/etc/resolv.conf" file :
Code:
192.168.0.21 ws001.home ws001
192.168.0.22 ws002.home ws002
...
OK, now, XDMCP must be activated. It depends on what you use : xdm, gdm or kdm.
For xdm :
edit "/etc/X11/xdm/xdm-config" and comment the (last for me) line (with a "!" not a "#") :
Code:
!DisplayManager.requestPort: 0
For gdm :
edit "/etc/X11/gdm/gdm.conf", in the section "[xdmcp]" enable :
For kdm :
I don't know ! But it should be similar.
Now the services are configured. The last file to edit (and maybe create) is "/opt/lts/i386/etc/lts.conf", mine is
Code:
[Default]
SERVER = 192.168.0.1
XSERVER = auto
X_MOUSE_PROTOCOL = "PS/2"
X_MOUSE_DEVICE = "/dev/psaux"
X_MOUSE_RESOLUTION = 400
X_MOUSE_BUTTONS = 3
USE_XFS = N
SCREEN_01 = startx
[ws001]
XF86CONFIG_FILE = X11/xorg-ws001.conf
[ws002]
XF86CONFIG_FILE = X11/xorg-ws002.conf
where "xorg-ws00[12].conf" files are in "/opt/ltsp/i386/etc/X11/". See
http://www.ltsp.org/documentation/lt...en.html#AEN524 for more infos about that (and about all done before as well).
This is it !
Now start the services and force inetd to reread it's conf file :
Code:
killall -HUP inetd
/etc/rc.d/rc.portmap start
/etc/rc.d/rc.nfsd start
/etc/rc.d/rc.dhcpd start
CTRL+SHIFT+BACKSPACE #to restart X, ok this a little barbarian but this is the *true* power ! ;)
It's all folks !
Note that, for the services to start at boot time, you have to
Code:
chmod +x /etc/rc.d/rc.{portmap,nfsd,dhcpd}