From owner-freebsd-questions Fri Jun 29 7:22: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id 0F37D37B401 for ; Fri, 29 Jun 2001 07:22:04 -0700 (PDT) (envelope-from lowell@be-well.ilk.org) Received: (from lowell@localhost) by be-well.ilk.org (8.11.4/8.11.4) id f5TEM2503822; Fri, 29 Jun 2001 10:22:02 -0400 (EDT) (envelope-from lowell) To: freebsd-questions@freebsd.org Cc: mj@isy.liu.se Subject: Re: Internet browser setup References: <49B.5000300@btinternet.com> From: Lowell Gilbert Date: 29 Jun 2001 10:22:02 -0400 In-Reply-To: mj@isy.liu.se's message of "29 Jun 2001 07:56:06 +0200" Message-ID: <44n16rl62d.fsf@lowellg.ne.mediaone.net> Lines: 34 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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