Re: [newbie] Change hostname?
On Sat, 2002-12-14 at 08:36, RichardA wrote: Can I change my hostname without causing problems? I ask because there is a file in KDE called kdontchangethehostname. I think in theory it gets set from a file at boot (/etc/hosts?), a variable gets set and everything else should reference that variable rather than be hard coded. In theory. Richard If you want to you can use the hostname command to temporarily change the hostname of the system for that session, and it should return to normal with a reboot or a reuse of the hostname command. Do 'man hostname' and check it out. :) l8r, LX -- °°° Kernel 2.4.18-6mdk Mandrake Linux 8.2 Enlightenment 0.16.5-11mdkEvolution 1.0.2-5mdk Registered Linux User #268899 http://counter.li.org/ °°° Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] change hostname
Ah, yes, I forget about that one. Also the DOMAIN line in the same file. On Sunday 17 June 2001 00:18, you wrote: You should also change the line in /etc/sysconfig/network for HOSTNAME On 15 Jun 2001 20:39:03 -0400, Jay DeKing wrote: I've never had any luck with the hostname command; it works fine until I reboot, then my changes are lost. The best way to do it is to edit (as root) the /etc/hosts file. DO NOT change or delete the line that says localhost.localdomain localhost - some aspects of the system really want that to be there. Rather, copy that line, but in the new line change both instances of localhost to the new hostname and change localdomain to your desired domain name. The DNS address for both lines should be 127.0.0.1 . I personally don't use Linuxconf because it always insists on changing a lot of things that I don't want changed - for example, I lose my user-level pppd privileges if I let Linuxconf do things its way. I'll use it as a reference tool but not to modify settings. And, just in case I've been awake hacking away too long and do save the fubar'd changes, I have scripts set up to fix the usual offenders (such as chmods and chowns) Jay DeKing On Friday 15 June 2001 10:46, Tim Holmes wrote: You can also use the hostname command. Just type hostname mymachine.name.domain.com That will do the trick as well. That's what I've used in FreeBSD. Since there's no Linuxconf to use that I know of, and I don't have X installed to find another GUI. tdh -- T. Holmes - UNIXTECHS.org [EMAIL PROTECTED] - Real Men Us Vi! | How do I change the hostname that is set during startup | (localhost.localdomain)? The hostname command changes it, but at | startup it is always set back to localhost.localdomain during boot. | | -Noah Richards -- -- I thought I had an appetite for destruction, but all I really wanted was a club sandwich -- Support your local law enforcement agency - this week commit the crime of your choice!
Re: [newbie] change hostname
You can also use the hostname command. Just type hostname mymachine.name.domain.com That will do the trick as well. That's what I've used in FreeBSD. Since there's no Linuxconf to use that I know of, and I don't have X installed to find another GUI. tdh -- T. Holmes - UNIXTECHS.org [EMAIL PROTECTED] - Real Men Us Vi! | How do I change the hostname that is set during startup | (localhost.localdomain)? The hostname command changes it, but at startup it | is always set back to localhost.localdomain during boot. | | -Noah Richards | --
Re: [newbie] change hostname
I've never had any luck with the hostname command; it works fine until I reboot, then my changes are lost. The best way to do it is to edit (as root) the /etc/hosts file. DO NOT change or delete the line that says localhost.localdomain localhost - some aspects of the system really want that to be there. Rather, copy that line, but in the new line change both instances of localhost to the new hostname and change localdomain to your desired domain name. The DNS address for both lines should be 127.0.0.1 . I personally don't use Linuxconf because it always insists on changing a lot of things that I don't want changed - for example, I lose my user-level pppd privileges if I let Linuxconf do things its way. I'll use it as a reference tool but not to modify settings. And, just in case I've been awake hacking away too long and do save the fubar'd changes, I have scripts set up to fix the usual offenders (such as chmods and chowns) Jay DeKing On Friday 15 June 2001 10:46, Tim Holmes wrote: You can also use the hostname command. Just type hostname mymachine.name.domain.com That will do the trick as well. That's what I've used in FreeBSD. Since there's no Linuxconf to use that I know of, and I don't have X installed to find another GUI. tdh -- T. Holmes - UNIXTECHS.org [EMAIL PROTECTED] - Real Men Us Vi! | How do I change the hostname that is set during startup | (localhost.localdomain)? The hostname command changes it, but at startup | it is always set back to localhost.localdomain during boot. | | -Noah Richards -- -- I thought I had an appetite for destruction, but all I really wanted was a club sandwich
Re: [newbie] change hostname
As root, run linuxconf. There's an option for that somewhere in there. On Tue, 12 Jun 2001 01:39, Noah Richards wrote: How do I change the hostname that is set during startup (localhost.localdomain)? The hostname command changes it, but at startup it is always set back to localhost.localdomain during boot. -Noah Richards -- Sridhar Dhanapalan. There are two major products that come from Berkeley: LSD and UNIX. We don't believe this to be a coincidence. -- Jeremy S. Anderson
[newbie] change hostname
How do I change the hostname that is set during startup (localhost.localdomain)? The hostname command changes it, but at startup it is always set back to localhost.localdomain during boot. -Noah Richards