Date: 29 Jun 2001 10:22:02 -0400 From: Lowell Gilbert <lowell@world.std.com> To: freebsd-questions@freebsd.org Cc: mj@isy.liu.se Subject: Re: Internet browser setup Message-ID: <44n16rl62d.fsf@lowellg.ne.mediaone.net> In-Reply-To: mj@isy.liu.se's message of "29 Jun 2001 07:56:06 %2B0200" References: <49B.5000300@btinternet.com> <XFMail.010629075603.mj@isy.liu.se>
next in thread | previous in thread | raw e-mail | index | archive | help
mj@isy.liu.se (Micke Josefsson) writes: > On 01-Jan-70 John Toon wrote: > > The hostname on your box is not properly set up; as root, edit the text file > > > > > > /etc/defaults/rc.conf NO! Never edit that file. Set the variables in /etc/rc.conf instead, and those settings will *override* the ones in /etc/defaults/rc.conf. That's why it's a "defaults" file. > > Look for the field > > > > hostname="" > > > > and insert your chosen hostname inbetween the commas. e.g. > > > > hostname="hostfoobar" > > > > > > Restart networking (or reboot) for the change to take effect. This > > permanently sets the hostname. > > How do I restart networking (or any other part of the boot process) without > actually having to boot the machine? I've always wondered but never had the guts > to ask... Basically, you don't do it that way. For this example, you set your hostname by the command "hostname hostfoobar", as suggested by John Toon later in the message to which you were replying. This is exactly the same thing that the startup scripts (in this case, /etc/rc.network) do to use your setting of the hostname variable. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44n16rl62d.fsf>