[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Terminal Server after hd install (fixed Patch)



oops - The patch file was a reverse patch .. AND it was missing part of
the critical fix.  The corrected patch is here.

Stephen Samuel wrote:

I have  the patches for the knoppix-terminalserver script that generates
the files (I thought that I had posted them, but I don't see it, so it is attached,
possibly a second time).

--

Stephen Samuel +1(604)876-0426             samnospam@bcgreen.com
		   http://www.bcgreen.com/
  Powerful committed communication. Transformation touching
    the jewel within each person and bringing it to light.

--- /KNOPPIX/usr/sbin/knoppix-terminalserver	2005-09-11 21:01:59.000000000 -0700
+++ /cdrom/home/knoppix40/terminalserver-new	2005-09-29 20:24:45.000000000 -0700
@@ -60,6 +60,7 @@
 for i in $NAMESERVERS; do ALLNAMESERVERS="${ALLNAMESERVERS:+$ALLNAMESERVERS,} $i"; done
 GATEWAYS="$GATEWAY"
 case "$OPTIONS" in *masq*) GATEWAYS="${IP} $GATEWAYS";; esac
+case "$OPTIONS" in *dhcp1067*)  DHCP_PORTS='local-port 1067; remote-port 1068;'  ;;  esac
 ALLGATEWAYS=""
 for i in $GATEWAYS; do ALLGATEWAYS="${ALLGATEWAYS:+$ALLGATEWAYS,} $i"; done
 cat >/etc/dhcp3/dhcpd.conf <<EOT
@@ -70,11 +71,13 @@
 allow bootp;
 default-lease-time 600;
 max-lease-time 7200;
+$DHCP_PORTS
 
 subnet ${NETWORK}.0 netmask ${NETMASK} {
   next-server $IP;
-  if substring (option vendor-class-identifier, 0, 9) = "Etherboot" { filename "etherboot.nbi"; }
-  else { filename "pxelinux.0"; }
+#  if substring (option vendor-class-identifier, 0, 9) = "Etherboot" { filename "etherboot.nbi"; }
+#  else { filename "pxelinux.0"; }
+  filename "pxelinux.0"; 
   option subnet-mask ${NETMASK};
   range ${IPRANGE_FROM} ${IPRANGE_TO};
   ${ALLNAMESERVERS:+option domain-name-servers $ALLNAMESERVERS;}
@@ -449,6 +452,7 @@
 ITEM_SQUID="Transparenter WWW Cache/Proxy"
 ITEM_IPTABLES="IP Masquerading+Forwarding"
 ITEM_NX="NX ThinClient setup"
+ITEM_DHCP1067="DHCP auf wechselnden Toren"
 ;;
 es)
 TITLE_CARD="Selecciona el dispositivo de red conectado a la red de clientes"
@@ -478,6 +482,7 @@
 ITEM_SQUID="Proxy WWW transparente caché"
 ITEM_IPTABLES="Enmascaramiento IP + reenvío"
 ITEM_NX="Configuración del ThinClient NX"
+ITEM_DHCP1067="Alternate DHCP ports"
 ;;
 *)
 TITLE_CARD="Choose network device connected to client network"
@@ -507,6 +512,7 @@
 ITEM_SQUID="Transparent WWW cache/proxy"
 ITEM_IPTABLES="IP masquerading+forwarding"
 ITEM_NX="NX ThinClient setup"
+ITEM_DHCP1067="DHCP on alternate ports (1067/1068)"
 ;;
 esac
 
@@ -581,6 +587,7 @@
 ${USE_BIND:+dns "$ITEM_DNS (+4MB)" on} \
 ${USE_SQUID:+squid "$ITEM_SQUID (+40MB)" off} \
 ${USE_NX:+nx "$ITEM_NX" off} \
+dhcp1067 "$ITEM_DHCP1067" off \
 2>"$TMP" || bailout 2
 OPTIONS="$(sed 's,",,g;s,/, ,g' <$TMP)"
 echo "OPTIONS=\"$OPTIONS\"" >>"$CONFIG"

Reply to: