Inhaltsverzeichnis

DHCP-Server

option domain-name "network.local";
option domain-name-servers 129.27.2.3, 129.27.3.3;
option routers 192.168.100.1;
ddns-update-style none;
ddns-updates off;
log-facility local7;
subnet 192.168.100.0 netmask 255.255.255.0 {
  option routers 192.168.100.1;
  range 192.168.100.100 192.168.100.200;
  default-lease-time 600;
  max-lease-time 7200;
}
dhcpd_interface="eth0"

Netzwerkkarte Workaround

über auto.xml

Apache

Listen 192.168.100.1:80

LDAP

base dc=network,dc=local

(Verschlüsselung mit SSHA, Passwort-String erzeugen mit slappasswd)

Profil (NFS Server)

...
echo -n "Starting NFS server"
...
startproc /usr/sbin/rpc.mountd $PARAMS -P 1119

SSH-Tunnel

Routing von eth0 auf eth1

LDAP-Client einrichten

NFS-Freigabe importieren

fstab anpassen:

localhost:/daten   /daten   nfs   tcp,intr,bg,port=2002,mountport=2030,user,noauto,exec 0 0

Startkde anpassen

#s4e section
chmod 777 $HOME/.DCOP* $HOME/.dcop* $HOME/.ICE* $HOME/.wine $HOME/.local $HOME/.bash_history $HOME/Desktop $HOME/.kde $HOME/.mozilla $HOME/.ooo-2.0 $HOME/.gimp-2.2
rm -rf $HOME/.DCOP*
rm -rf $HOME/.dcop*
rm -rf $HOME/.ICE*
rm -rf $HOME/.wine
rm -rf $HOME/.local
rm -rf $HOME/.kde
rm -rf $HOME/.bash_history
rm -rf $HOME/Desktop
rm -rf $HOME/.mozilla
rm -rf $HOME/.ooo-2.0
rm -rf $HOME/.gimp-2.2
rm -rf /profile/local/*
rm -rf /profile/local/.*
cp -R /profile/profiles_linux/.kde /profile/local
cp -R /profile/profiles_linux/Desktop /profile/local
cp -R /profile/profiles_linux/.wine /profile/local
cp -R /d4e/.ooo-2.0 /profile/local/.ooo-2.0
cp -R /d4e/.gimp-2.2 /profile/local/.gimp-2.2
chmod -R 777 /profile/local
ln -sf /profile/local/.kde $HOME
ln -sf /profile/local/.wine $HOME
ln -sf /profile/local/Desktop $HOME
ln -sf /profile/local/.ooo-2.0 $HOME
ln -sf /profile/local/.gimp-2.2 $HOME
#e4s

SSH-Tunnel

startproc -f -p $SSHD_PIDFILE /usr/sbin/sshd $SSHD_OPTS -o "PidFile=$SSHD_PIDFILE"

# s4e section
ssh -N -L 2002:192.168.100.1:2049 -L 2030:192.168.100.1:1119 -c blowfish tunnel@server -f sleep 24h
mount localhost:/daten
echo 
echo "Home directories mounted"
	rm -rf /profile/*
	cp /daten/profiles_linux.tar.bz2 /profile/
	tar -xjf /profile/profiles_linux.tar.bz2 -C /profile
	rm -rf /profile/profiles_linux.tar.bz2
echo "Default profile created"
mkdir /profile/local
chmod 777 /profile/local
# noitces e4s

Tunnel graben

192.168.100.1 server

UserList

UserList=false

Runlevel

ohne

Webserver

Profil anpassen

Konsole startet automatisch