Results 1 to 10 of 22
I have a question, when I open aterm (this is just an example) it says: septor@wbar2:~>, my question is, how do I change the wbar2 part? What is it? And ...
- 05-02-2005 #1Just Joined!
- Join Date
- Apr 2005
- Location
- Michigan
- Posts
- 49
Hostname change?
I have a question, when I open aterm (this is just an example) it says: septor@wbar2:~>, my question is, how do I change the wbar2 part? What is it? And why in the world is it wbar2?
- 05-02-2005 #2Just Joined!
- Join Date
- Apr 2005
- Posts
- 88
Hostname..
Greetings,
The wbar2 is ur hostname u can find the entry in the /etc/hosts file. also, you can find the same entry in the /etc/sysconfig/network file. If you want to change your hostname you can change it in either of the files you want.
- 05-02-2005 #3Linux Engineer
- Join Date
- Apr 2005
- Location
- Buenos Aires, Argentina
- Posts
- 908
No, you don't change your hostname in /etc/hosts. Actually it depends on the distro, on some distros you can just change it from /etc/hostname or /etc/HOSTNAME, or anothers it's /etc/sysconfig/network as you well said.
If you're running SuSE then you can change your hostname with YaST, network section.serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
- 05-02-2005 #4Just Joined!
- Join Date
- Apr 2005
- Posts
- 88
Greetings,
The files I have mentioned is specifically for the RedHat Flavour... I apologize that I didnt mentioned it earlier as I shud have to avoid confusion...
Regards
- 05-02-2005 #5Just Joined!
- Join Date
- Apr 2005
- Location
- Michigan
- Posts
- 49
I don't see anywhere in there that says wbar2. Do I have to restart X for the changes to take place?
- 05-02-2005 #6Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
Like for example slackware (10.0) automaticly sets the hostname to "darkstar" if nothing is spesifyed, so maybe this is the case of your distro too. Also, sometimes the computer recieves a hostname over DHCP, in that case you shoul leave it like that.
- 05-02-2005 #7Just Joined!
- Join Date
- Apr 2005
- Location
- Michigan
- Posts
- 49
So you're telling me it's impossible to change it
- 05-02-2005 #8Linux User
- Join Date
- Mar 2005
- Location
- CA
- Posts
- 352
Since you're running SuSE, you should be able to change your hostname by simply starting YAST and go to Network Services. From there, choose DNS and Host Name and click Modify. Then enter in the desired host name. Click finish and that should be it.
- 05-02-2005 #9Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
No, I'm not saying it's impossible to change it. I'm saying that if the case is that the hostname is recieved over DHCP, you must turn off the ability to recieve hostname over DHCP (on gentoo it's in /etc/rc.conf), but in that case you may not be able to connect afterwords. But useally you don't recieve any hostname from the DHCP-server, I just say that on SOME networks you do.
- 05-02-2005 #10
If he turns off DHCP and goes static, he would just have to have DNS servers in /etc/resolv.conf, a static IP address, subnet, etc. and add a default gateway; it's not all that bad to configure that stuff.
Of course, by far the easiest thing would be to use DHCP...There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.
- Jeremy S. Anderson


Reply With Quote