Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Suse Linux - changing computer name

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » DU Groups » Computers & Internet » Computer Help and Support Group Donate to DU
 
Deja Q Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-18-09 06:20 PM
Original message
Suse Linux - changing computer name
Help.

SUse 11.1 -- when I set it up, I did it in advanced mode so I could give it the computer name of my choice.

After the full install and reboot, the name that's present is not what I gave it.

Can this name be changed?

Thanks!
Printer Friendly | Permalink |  | Top
RoyGBiv Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-18-09 07:24 PM
Response to Original message
1. Changing the hostname ...

I assume you mean the hostname.

Using your favorite text editor, as root edit /etc/HOSTNAME

There is only one line. Change it to your desired hostname, e.g. if I want my hostname to be "roygbiv" but accidentally typed bivgroy, this line would read bivgroy.site. To fix, change it to roygbiv.site

Then edit the /etc/hosts file.

Assuming a typical network setup and the previous example, the final line will read:

127.0.0.2 bivgroy.site bivgroy

Change it to 127.0.0.2 roygbiv.site roygbiv

Restart the network. As root:

/etc/init.d/network restart

You can also do this in YaST, I think, under DNS and Networking. I just don't use YaST for things like that and am not sure where it is exactly.
Printer Friendly | Permalink |  | Top
 
Deja Q Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-18-09 07:35 PM
Response to Reply #1
2. Thanks -- this is weird though:
My hostname info is there properly, but when I open a terminal, I get

linux-****: /etc #

What does "linux-****" refer to?
Printer Friendly | Permalink |  | Top
 
RoyGBiv Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Feb-18-09 07:42 PM
Response to Reply #2
3. Huh ...

That's probably something in your .basrc settings. It's odd though 'cause the SuSE installation I have going is the same version, and mine is set up as hostname:/ like you want.

By default, the terminal doesn't give you your hostname for the command prompt. That's put in there with your bash config file, i.e. .bashrc. Or, it could be a system-wide default somewhere else, over in etc/bash.bashrc

Not sure though.

Do

hostname

And see what the output is. It will report your current hostname, and if that's what it is supposed to be, then that's not the problem.

I'm *really* bad (have bad luck for some reason) at altering .bashrc to get it to change terminal settings, so I'm not going to give specific instructions and risk you borking something entirely. You might be able to root around in there and find something.

Are you using Konsole for the terminal?
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Wed Apr 24th 2024, 08:55 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Computer Help and Support Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC