[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
Rick Timmis wrote:When you are running VNC is there any way in which the session can tell which terminal is in use? (This is quite simple with LTSP.) That way, instead of expecting the user to know which printer they should use, the computer can automatically select the appropriate one.Each VNC session, Connects onto an individual port, I guess if you were really clever you could use this. But if you fire up VNC through Xinetd then forget it, as Xinetd will allocate the next available port. <In a Nutshell> No. </In a Nutshell>They have a unique MAC address - ergo a solution exists - although you'll have to record it with DHCP or get DHCPD to allocate IP addresses based on MAC address.
With dynamic IP address assignment you could find out the MAC address either from the dhcp lease file or by looking in the ARP cache. Which is easily accessable under Linux as /proc/net/arp.
I think Mark uses the later approach at St Peters, he said he only issues IP addresses to known MAC addresses.
Lots of lines of the form: host a14-1 { hardware ethernet 00:05:5d:06:af:d2; fixed-address 10.3.50.1; } and a few of the form: host a14-pr { hardware ethernet 00:60:b0:e6:41:74; fixed-address 10.3.50.61; option log-servers 10.3.48.81;} The magic line being deny unknown-clients; Which results in: Dec 20 16:57:37 stpeters dhcpd: DHCPDISCOVER from 00:20:ed:19:a2:3e via eth0 Dec 20 16:57:37 stpeters dhcpd: no free leases on subnet 10.3.48.0 Dec 20 16:57:41 stpeters dhcpd: DHCPDISCOVER from 00:20:ed:19:a2:3e via eth0 Dec 20 16:57:41 stpeters dhcpd: no free leases on subnet 10.3.48.0 -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.