[K12OSN] Re: Need script help for fl_teachertool

David Trask dtrask at vcsvikings.org
Wed May 3 13:22:42 UTC 2006


"Support list for opensource software in schools." <k12osn at redhat.com> on
Tuesday, May 02, 2006 at 9:44 PM +0000 wrote:
>Found a solution.
>
>cat /etc/hosts | grep -w `echo $DISPLAY | sed -e 's/:/ /g' | awk
>'{print $1}'` | cut -f1
>
>which returns 127.0.0.1 and that works in my code.
>
>I'm wondering are the client hostnames of
>
>ws253.ltsp
>ws252.ltsp
>ws251.ltsp
>etc...
>
>always
>
>192.168.0.253
>192.168.0.252
>192.168.0.251
>etc...
>
>if they always match like this then I don't need to look in /etc/hosts


One of the problems becomes this....if anyone has set up their range to go
beyond 255 then the numbers do increase, but do not revert back to
zero....for example.....I use the 10.0.x.x range....so 10.0.0.1 would be
ws001.ltsp  BUT...10.0.1.0 would be ws256.ltsp and 10.0.1.1 would be
ws257.ltsp....etc.  This is especially true with those of us who use our
K12LTSP servers in single NIC mode and use them as the DHCP servers for
our networks.  Just a heads up to give you something to consider as you
continue along with fl_teachertool .  (I'm loving the latest
fl_teachertool....can't wait to see what's next!)

David N. Trask
Technology Teacher/Director
Vassalboro Community School
dtrask at vcsvikings.org
(207)923-3100





More information about the K12OSN mailing list