Deja Q
(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!
|
RoyGBiv
(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.
|
Deja Q
(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?
|
RoyGBiv
(1000+ posts)
Send PM |
Profile |
Ignore
|
Wed Feb-18-09 07:42 PM
Response to Reply #2 |
|
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?
|
DU
AdBot (1000+ posts) |
Wed Apr 24th 2024, 08:55 PM
Response to Original message |