Networking :: Is there a way to auto display ip address?



Greetings-

Through various online tutorials and DSL forum posts, I've managed to use DSL to turn an old laptop into a digital picture frame with wireless capabilities. If needed, I can either SSH or VNC into it to do administration, add pics, etc. When it boots up, it starts the wifi (myndis), starts SHH, starts VNC server, and starts the slideshow fullscreen.

Here's my problem: I plan to put it at my desk at work where we have a wifi network and I won't know the IP address in order to SSH or VNC. Is there some way I can have the "DSL frame" show the ip address at boot when it starts the net connection? Is there some other way I can transmit the ip address? Can I VNC based on the computer name? (I've tried this using the hostname but it wasn't able to find it. Do I need characters around the hostname when I enter the name into the field in tightVNC?)

Any help appreciated here. This project will be perfected once I figure out a way to either find the unknown ip address or connect via computer name. Many thanks in advance.

-Kyle

If you place "ifconfig eth0; sleep 3" at the end of bootlocal.sh, it will show the ip configuration of eth0 for 3 secs.. Replace if you have ath0 or wlan0, for example.

Then you could also make it have a static ip by editing the wlan router (identified by MAC address)

Thanks! I'll give that a whirl. Is there a way to make the output text another color, say red?

I'd like to make the ip static but 1. I don't have admin access to it and 2. There are constantly other devices connecting and reconnecting. Hence the need to have the ip displayed every time I turn it on.

Yes, the color is changeable. If you echo a color code for red before it, and back to white after it, it will be in red :)

I don't remember those right now, you can find them at tldp.org in the customizing your prompt howto, but they're the form
Quote
echo -e "\0m\04\30"
^ that is not a working code, don't try that :P


original here.