LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Improper Net config (https://www.linuxquestions.org/questions/linux-newbie-8/improper-net-config-438153/)

kajensen 04-23-2006 07: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 02: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 06: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?)

Thanks.

masonm 04-24-2006 07: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 08: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:
    Code:

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

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

    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 06:41 PM.