Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Is there a way to auto display ip address?< Next Oldest | Next Newest >
kyleneitzel Offline





Group: Members
Posts: 19
Joined: Nov. 2006
Posted: Jan. 05 2008,16:56 QUOTE

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
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Jan. 05 2008,17:05 QUOTE

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)


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
kyleneitzel Offline





Group: Members
Posts: 19
Joined: Nov. 2006
Posted: Jan. 05 2008,21:55 QUOTE

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.
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Jan. 06 2008,10:02 QUOTE

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


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
3 replies since Jan. 05 2008,16:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Is there a way to auto display ip address?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code