________________________________
From: Zantgo <zan...@gmail.com>
To: Robert Simmons <rsimmo...@gmail.com>
Cc: "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>
Sent: Sunday, November 6, 2011 12:52 AM
Subject: Re: Urgent!. Problem with / etc / rc.conf
El 06-11-2011, a las 1:29, Robert Simmons <rsimmo...@gmail.com> escribió:
> On Sun, Nov 6, 2011 at 12:10 AM, Zantgo <zan...@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
I gave up, and now reinstall everything again :(
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Wow, to reinstall everything is like throwing the baby out with the bath water.
Rather drastic. There are some simple steps you could have taken to get things
back to normal but without knowing what you had in your original rc.conf file
that's probably oversimplifying things.
I keep a little script in my /root/bin folder to backup my config files
periodically to another server. This is something you should look into. We all
make mistakes and when we do, a backup copy can make the difference between "oh
wow" and "oh f***".
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"