-   Linux - Newbie (
-   -   Improper Net config (

kajensen 04-23-2006 06:55 PM

Improper Net config

Everytime I re-boot I have to re-configure my Network connection via wizard. Everything is there: my IP address, hardware, etc. But the config. is lost everytime I re-boot.

The message is: Could not look up Internet address for SBC. This will prevent GNOME from operating correctly. Add SBC to the file /etc/hosts

Re Add SBC to the file /etc/hosts

I don't have any idea how to do this. Please list exact steps raather than generic solution. Thanks. Add SBC to the file /etc/hosts

scheidel21 04-24-2006 01:47 AM

I'm not 100% clear on what keeps getting erased, however, if you have not yet edited the hosts file, I would open up the hosts file in a editor such as nano, the add the SBC entry, I'm not sure what you'll have to type as I am not familiar with your netonfig and what information you have to enter

kajensen 04-24-2006 05:50 PM

Re Add SBC to the file /etc/hosts

I don't know what's being lost when I re-boot either, but I also don't understand your recommendation re: above.

I am a newbie starting with GNOME. I don't know anything about the text editor nano or how to use it. Or how to fine file /etc/hosts

Could you give me some concrete steps for finding the latter as well as opening nano (Is it in GNOME?)


masonm 04-24-2006 06:39 PM

Nano is a CLI editor. You can use any text editor to edit config files.

su to root, go to /etc find and open the hosts file with a text editor add SBC to it and save

Even easier in Gnome is to use the system>Administration>Networking GUI tool. click on the Hosts tab and enter the information.

archtoad6 04-24-2006 07:20 PM

Scripting Notes
  1. jschwial's suggestion about mv "$i" "${i//[ \!,:]/_}" is especially good
  2. My personal preference is to indent w/ 2, 3, or 4 spaces, not tabs -- things are more readable.
  3. ls -pR | grep :$ | sed '/:$/s,:$,,' will give you a recursive list of sub directories suitable for the outer loop:

    for D in `ls -pR | grep :$ | sed '/:$/s,:$,,'`
    do cd $D

  4. You don't need 3 inner loops to kill the spaces:
    1st, do the lower casing, THEN use:

    for i in *.{mp3,ogg}; do mv "$i" ...
  5. I think there is an easier way to do the lower casing also, but it escapes me right now.

All times are GMT -5. The time now is 07:19 AM.