| Version 2 (modified by , 15 years ago) ( diff ) |
|---|
Hier werden die Anpassungen an der Standard-Paedml festgehalten. Bei Updates kann es vorkommen, dass die Änderungen überschrieben werden, diese müssen dann von Hand nachgebessert werden oder aber sie liegen im svn und können automatisch eingefügt werden.
Firewall-Einstellungen in /etc/init.d/linuxmuster-base
in der Funktion start_firewall nach :
# accept ipcop
iptables -A IN-$IFACE -s $ipcopip/32 -j ACCEPT
einfügen:
# accept proxy
iptables -A IN-$IFACE -s 10.32.1.251/32 -j ACCEPT
# accept LTSP-SERVER
# Klassenraumserver:
iptables -A IN-$IFACE -s 10.32.1.247/32 -j ACCEPT
iptables -A IN-$IFACE -s 10.32.1.248/32 -j ACCEPT
iptables -A IN-$IFACE -s 10.32.1.249/32 -j ACCEPT
iptables -A IN-$IFACE -s 10.32.1.250/32 -j ACCEPT
# Server fuer Computerraum 128:
iptables -A IN-$IFACE -s 10.32.1.246/32 -j ACCEPT
iptables -A IN-$IFACE -s 10.32.1.245/32 -j ACCEPT
iptables -A IN-$IFACE -s 10.32.1.244/32 -j ACCEPT
Workstationimport in /usr/share/linuxmuster/scripts/wimport.sh
Die Workstations werden beim ersten Booten mit PXE vom paedml in die Datei /etc/linuxmuster/workstations aufgenommen:
Raum;Rechner;Gruppe;MAC;IP;MASK;?;?;?;?;Imaging r128;r128-43;schueler;00:30:05:44:2a:da;10.32.128.43;255.240.0.0;1;1;1;1;0 snilaptop;snilaptopc03;snilaptop;00:0b:5d:93:b0:35;10.32.150.23;255.240.0.0;1;1;1;1;22 r109;semkurs03;schueler;00:30:05:44:76:c9;10.32.104.12;255.240.0.0;1;1;1;1;R
Bei Imaging bedeutet:
- 0: Workstationaccount anlegen aber nicht per Linbo berücksichtigen (Eintrag in /etc/dhcp3/dhcpd.conf.linuxmuster ohne Option pxelinux.configfile)
- 22: Workstationaccount anlegen und per Linbo berücksichtigen (Eintrag in /etc/dhcp3/dhcpd.conf.linuxmuster mit Option pxelinux.configfile)
- R: (Rembo) Workstationaccount anlegen und per Rembo verarbeiten (Eintrag in /etc/dhcp3/rembohosts.conf)
- IP im Bereich 10.16.209.*: Rechner ist im Lehrernetz (Eintrag in die /etc/dhcp3/lehrerhosts.conf)
Optionen 0 und 22 sind Standard-paedml, Option R ist eingefügt und muss in /usr/share/linuxmuster/scripts/wimport.sh beim Workstationimport verarbeitet werden, nach
# check dhcp stuff #[ -z "$DHCPDCONF" ] && exitmsg "Variable DHCPDCONF is not set!" #if [ -e "$DHCPDCONF" ]; then # backup_file $DHCPDCONF 2>> $TMPLOG 1>> $TMPLOG || exitmsg "Unable to backup $DHCPDCONF!" # rm -rf $DHCPDCONF 2>> $TMPLOG 1>> $TMPLOG || exitmsg "Unable to delete $DHCPDCONF!" #fi #touch $DHCPDCONF 2>> $TMPLOG 1>> $TMPLOG || exitmsg "Unable to create $DHCPDCONF!"
einfügen:
# Adaption fuer Rembointegration
REMBO_DHCPCONF="/etc/dhcp3/rembohosts.conf"
LEHRER_DHCPCONF="/etc/dhcp3/lehrerhosts.conf"
# Adaption DHCP-CONF f�r Rembo
[ -z "$REMBO_DHCPCONF" ] && exitmsg "Variable REMBO_DHCPCONF is not set!"
if [ -e "$REMBO_DHCPCONF" ]; then
backup_file $REMBO_DHCPCONF 2>> $TMPLOG 1>> $TMPLOG || exitmsg "Unable to backup $REMBO_DHCPCONF!"
rm -rf $REMBO_DHCPCONF 2>> $TMPLOG 1>> $TMPLOG || exitmsg "Unable to delete $REMBO_DHCPCONF!"
fi
touch $REMBO_DHCPCONF 2>> $TMPLOG 1>> $TMPLOG || exitmsg "Unable to create $REMBO_DHCPCONF!"
# Adaption DHCP-CONF fuer Lehrernetz
[ -z "$LEHRER_DHCPCONF" ] && exitmsg "Variable LEHRER_DHCPCONF is not set!"
if [ -e "$LEHRER_DHCPCONF" ]; then
backup_file $LEHRER_DHCPCONF 2>> $TMPLOG 1>> $TMPLOG || exitmsg "Unable to backup $LEHRER_DHCPCONF!"
rm -rf $LEHRER_DHCPCONF 2>> $TMPLOG 1>> $TMPLOG || exitmsg "Unable to delete $LEHRER_DHCPCONF!"
fi
touch $LEHRER_DHCPCONF 2>> $TMPLOG 1>> $TMPLOG || exitmsg "Unable to create $LEHRER_DHCPCONF!"
anstelle des folgenden Textes :
# write dhcpd.conf entry
echo -n " * DHCP: Writing entry for $hostname ... "
echo "host $hostname {" >> $DHCPDCONF
echo " hardware ethernet $mac;" >> $DHCPDCONF
echo " fixed-address $ip;" >> $DHCPDCONF
echo " option host-name \"$hostname\";" >> $DHCPDCONF
if [[ "$pxe" != "0" && "$imaging" = "linbo" ]]; then
# assign group specific pxelinux config
echo " option pxelinux.configfile \"pxelinux.cfg/$hostgroup\";" >> $DHCPDCONF
fi
echo "}" >> $DHCPDCONF
fi
echo "Ok!"
echo
diesen einfügen
# Adaption für Rembo-Integration (Baumgärtner)
# write dhcpd.conf entry
echo -n " * DHCP: Writing entry for $hostname ... "
if [[ "$pxe" == "R" ]]; then
echo -n "(Rembo-Adaption) ... "
echo "host $hostname {" >> $REMBO_DHCPCONF
echo " hardware ethernet $mac;" >> $REMBO_DHCPCONF
echo " fixed-address $ip;" >> $REMBO_DHCPCONF
echo " option host-name \"$hostname\";" >> $REMBO_DHCPCONF
echo "}" >> $REMBO_DHCPCONF
elif [[ "$ip" =~ "10.16.209.*" ]]; then
echo -n "(Lehrernetz) ... "
echo "host $hostname {" >> $LEHRER_DHCPCONF
echo " hardware ethernet $mac;" >> $LEHRER_DHCPCONF
echo " fixed-address $ip;" >> $LEHRER_DHCPCONF
echo " option host-name \"$hostname\";" >> $LEHRER_DHCPCONF
echo "}" >> $LEHRER_DHCPCONF
else
echo "host $hostname {" >> $DHCPDCONF
echo " hardware ethernet $mac;" >> $DHCPDCONF
echo " fixed-address $ip;" >> $DHCPDCONF
echo " option host-name \"$hostname\";" >> $DHCPDCONF
if [[ "$pxe" != "0" && "$imaging" = "linbo" ]]; then
# assign group specific pxelinux config
echo " option pxelinux.configfile \"pxelinux.cfg/$hostgroup\";" >> $DHCPDCONF
fi
echo "}" >> $DHCPDCONF
fi
echo "Ok!"
echo