[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 and that works in my code.
>I'm wondering are the client hostnames of
>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 would be
ws001.ltsp  BUT... would be ws256.ltsp and 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

More information about the K12OSN mailing list