Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2011 00:29:05 -0400
From:      Robert Simmons <rsimmons0@gmail.com>
To:        Zantgo <zantgo@gmail.com>
Cc:        "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Subject:   Re: Urgent!. Problem with / etc / rc.conf
Message-ID:  <CA%2BQLa9By435sthvHgCfu4YKPOe5-4BkdgcZQM%2BwQZRk_hf4vUA@mail.gmail.com>
In-Reply-To: <288821E5-0392-49CA-BC85-0E550769C732@gmail.com>
References:  <288821E5-0392-49CA-BC85-0E550769C732@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 6, 2011 at 12:10 AM, Zantgo <zantgo@gmail.com> wrote:
> Without wanting to erase all contents of / etc / rc.conf, by running "echo" slim_enable = "YES" "> / etc / rc.conf". Please help!.

Well, the absolute basics would be:
hostname="<YourHostNameHere>"
ifconfig_<NameOfNicCardDeviceHere>"="inet <IPADDRESS> netmask <NETMASK>"
defaultrouter="<IPOfGateway/Router>"

You may also have had:
sshd_enable="YES"

You can also look at dmesg -a and get a grasp over what other services
you had started.

Two other things, use >> rather than > to append to the file (better
yet, learn vi, it's much safer), and always backup any changes from
default you make to config files.  I keep them all on pastebin.com for
convenience, but you can keep them anywhere, even scribbled on a
postit note stuck to the front of the server in question (what I used
to do).

Rob



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BQLa9By435sthvHgCfu4YKPOe5-4BkdgcZQM%2BwQZRk_hf4vUA>