Re: Urgent!. Problem with / etc / rc.conf
On Sun, Nov 06, 2011 at 01:10:28AM -0300, Zantgo wrote: > Without wanting to erase all contents of / etc / rc.conf, by > running "echo" slim_enable = "YES" "> / etc / rc.conf". > Please help!. First, please learn to break your lines at about 70 characters. It makes it easier to reply appropriately. Second, you should learn to use a text editor - most particularly the vi(1) editor wihch is distributed in /usr/bin/vi That will help your system administration a whole lot. Here is a web page with simplified info on using vi on a basic level. http://z2.cl.msu.edu/~jerrymc/project/editvi/ Third, to append to a file instead of replacing it when using echo double the '>' character - as in >> In your example, it would be: echo 'slim_enable="YES"' >> /etc/rc.conf jerry > ___ > 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" > ___ 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"
Re: Urgent!. Problem with / etc / rc.conf
On Sun, 6 Nov 2011 05:23:54 -0800 (PST), Bill Tillman wrote: > 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. The defaults in /etc/defaults/rc.conf should be fully sufficient to bring the system up. From this state, running sysinstall could be used to choose settings that will cause /etc/rc.conf to be updated. Furthermore /etc/defaults/rc.conf can be used as a template for settings. Depending on what a system actually will be used for, there can be some "strange" settings required, such as keymap or services to be enabled at boot. Using some web web search, usabe /etc/rc.conf templates can also be revealed. Of course they need changes to conform to local needs. > 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***". I also have a copy /root/etc for the files I have changed, and I keep my changes in a CVS repository. I know this may sound overcomplex at _this_ particular problem, but it helps when you have to deal with various systems and sometimes need to undo changes. >From that repository, I can restore any version from any system. Even in worst case obtaining a complete set of configuration files is possible. The difference in the RESULT between > and >> can be immense, and having a backup you can _quickly_ access is really a happy "oh wow", which is more pleasant than "oh f***", especially if the last one is expressed by others. :-) Politely I'd also like to mention that there are no things called "folder" on FreeBSD in particular, and on operating systems in general. Those things are properly called directories. ;-) PS. Please wrap your lines < 72. Some MUAs don't do that automatically. Thanks! -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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"
Re: Urgent!. Problem with / etc / rc.conf
From: Zantgo To: Robert Simmons Cc: "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 escribió: > On Sun, Nov 6, 2011 at 12:10 AM, Zantgo 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="" > ifconfig_"="inet netmask " > defaultrouter="" > > 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"
Re: Urgent!. Problem with / etc / rc.conf
Le Sun, 6 Nov 2011 01:52:36 -0300, Zantgo a écrit : Hello, > > 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 :( You really don't need to reinstall. All the default rc.conf settings are in /etc/default/rc.conf You may also use sysinstall(8), Configure|Do post-install configuration (networking) and Keymap. It will update rc.conf Regards. ___ 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"
Re: Urgent!. Problem with / etc / rc.conf
On 06/11/2011 04:10, Zantgo wrote: Without wanting to erase all contents of / etc / rc.conf, by running "echo" slim_enable = "YES" "> / etc / rc.conf". Please help!. You could have used the following: echo slim_enable = "YES" >> /etc/rc.conf The ">>" appends the line instead of replacing the existing contents. -- Bruce Cran ___ 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"
Re: Urgent!. Problem with / etc / rc.conf
El 06-11-2011, a las 1:29, Robert Simmons escribió: > On Sun, Nov 6, 2011 at 12:10 AM, Zantgo 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="" > ifconfig_"="inet netmask " > defaultrouter="" > > 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"
Re: Urgent!. Problem with / etc / rc.conf
On Sun, Nov 6, 2011 at 12:10 AM, Zantgo 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="" ifconfig_"="inet netmask " defaultrouter="" 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 ___ 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"
Re: Urgent!. Problem with / etc / rc.conf
> From owner-freebsd-questi...@freebsd.org Sat Nov 5 23:10:17 2011 > From: Zantgo > Date: Sun, 6 Nov 2011 01:10:28 -0300 > To: "freebsd-questions@FreeBSD.org" > Subject: Urgent!. Problem with / etc / rc.conf > > Without wanting to erase all contents of / etc / rc.conf, by running "echo" > slim_enable = "YES" "> / etc / rc.conf". Please help!. If you don't want to erase all contents of / etc / rc.conf, DO NOT RUN "echo" slim_enable = "YES" "> / etc / rc.conf". END OF HELP!. ___ 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"
Urgent!. Problem with / etc / rc.conf
Without wanting to erase all contents of / etc / rc.conf, by running "echo" slim_enable = "YES" "> / etc / rc.conf". Please help!. ___ 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"