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: Hosts config, /etc/hosts< Next Oldest | Next Newest >
numb Offline





Group: Members
Posts: 2
Joined: Mar. 2005
Posted: Mar. 05 2005,20:20 QUOTE

I want to set up DSL on an ancient laptop to play streamed music from another linux box named "Homeserver." Homeserver is running Streamsicle to stream MP3s. The plan fall apart though because the url "http://homeserver:8080/" takes me someware on the internet. I wisely typed in the url "http://192.168.0.4:8080". Thinking I was smart, the web page came up, I hit play and XMMS errored out saying "couldn't lookup host homeserver".  Bummer.

As a noob I figured mapping homeserver's IP address on the /etc/hosts would fix this. Of course I can't because its live CD. D'oh. Sooo, is there a work around or do i have to install this on my hardrive?
Back to top
Profile PM 
irun5k Offline





Group: Members
Posts: 24
Joined: July 2004
Posted: Mar. 05 2005,21:38 QUOTE

Hmm, adding to the hosts file is what I would have done but obviously won't work unless you do a HD install.  Which has a lot of advantages, if you had the HD to spare.

Otherwise, a straight IP address solution should work but you've got something upstream that is referencing "homeserver".  If I were you I'd look into the configuration of your software that handles the streaming and see if it is configured to use "homeserver" in which case you can change it to the IP.

Only other solution I can think of is to set up a DNS server so DSL can get the name resolution right.
Back to top
Profile PM 
numb Offline





Group: Members
Posts: 2
Joined: Mar. 2005
Posted: Mar. 05 2005,21:53 QUOTE

Hey thanks, that got my gears turning again. Setting up a DNS may be the to go. Should have thought of that!
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Mar. 06 2005,07:07 QUOTE

FYI,

You CAN edit the /etc/hosts file when running from livecd.

The /etc/hosts file is a symlink pointing to a read-only file that is located at /KNOPPIX/etc/hosts

To be able to edit, do this:

sudo su
rm /etc/hosts
cp /KNOPPIX/etc/hosts /etc/hosts
beaver /etc/hosts
exit
exit


It should be possible to back the file use using the backup / restore process.
Back to top
Profile PM 
3 replies since Mar. 05 2005,20:20 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Hosts config

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