LTSP

From DigitalBlacksmith

Jump to: navigation, search

https://wiki.edubuntu.org/HowtoWriteLTSP5Plugins

Contents

[edit] Setting up LTSP with Kubuntu

Having a heck of a time getting the dhcp working with Kubuntu.

[edit] Persitent NIC Bindings

For some reason my eth1 keeps getting renamed, which isn't helpful.

My internal interfac eth1 keeps getting renamed to another alias:

cat /var/log/dmesg | grep eth                                                     
udev: renamed network interface eth1 to eth3


So I added some stuff here to bind the NICs to the proper alias:

cat /etc/iftab
#This file assigns persitent names to network interfaces
eth0 mac 00:1d:60:d9:16:48
eth1 mac 00:1c:f0:ca:b3:00
root@espana:/etc/dhcp3#      

And here:

root@espana:/etc/dhcp3# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# PCI device 0x1106:0x3065 (via-rhine)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1d:60:d9:16:48", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1186:0x4b01 (skge)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1c:f0:ca:b3:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"                               


Saw this bit about udev and eth renaming

So I made this file:

vim /etc/udev/rules.d/010_netinterfaces.rules  

KERNEL=="eth*", SYSFS{address}=="00:1d:60:d9:16:48", NAME="eth0"
KERNEL=="eth*", SYSFS{address}=="00:1e:f0:ca:b3:00", NAME="eth1"

Note, you need to specify all NIC cards (I think) to get this to work. Also, pay close attention to the MAC addresses

[edit] Configuring DHCP

[edit] Binding dhcpd to the correct NIC

Found this helpful howto.

Edit /etc/default/dhcp3-server, and specify the INTERFACES directive

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"

[edit] Which dhcp.conf??

Have discovered that the dhcp start script uses (loads) the dhcp at:

/etc/ltsp/dhcp.conf

So making all dhcp config changes here.

Personal tools