Hello,
I would like to run some thin clients with TC and rdesktop.
The hostname used by TC should be the same as the name provided by the DHCP Server.
My idea is to run ifconfig to get the ip of the machine. Then run a nslookup to find out the hostname.
This hostname could be used to change /etc/hostname and set by "hostname -F /etc/hostname.
But what's the right place to do that?
I could set a hostname in bootlocal. This works i.e when using the mac address to set a unique hostname.
But the network connection isn't established as that time, so I can't get the dns name.
And how to run the functions as root? /etc/hostname can't be changed as user...
Henning