On 6/8/06, akonsu <[EMAIL PROTECTED]> wrote:
hello,
my openbsd machine is conected to a windows machine. the windows machine has
a wireless connection and gets its ip using dhcp. the openbsd machine gets
its ip from the windows machine also by using dhcp on boot.
the windows machine runs cygwin X server and the openbsd machine uses its
display when running various x applications.
so i need to set up DISPLAY variable on openbsd to point to this screen.
is there a way to automatically retrieve the ip address of the windows
machine and set up DISPLAY variable in the login script on openbsd machine?
also, how to handle ip renewals?
So, are you saying the windows machine is the gateway for the OpenBSD
machine? If that's the case, then you can just screen-scrape `route
show` (there's probably a better way than screen-scraping tho). If
that's not the case, then perhaps you can scrape the boot logs (I
believe dhclient says something like 'bound to X.X.X.X from Y.Y.Y.Y').
Be aware though, that in either of these set ups you must trust that
the dhcp server is actually your trusted windows box.
-Nick