That seemed to get it. Now I need to get the date set correctly. This laptop sat for a while and the clock is wrong. Thanks. Rob
-----Original Message----- From: Duane Attaway [mailto:[email protected]] Sent: Tuesday, November 09, 2004 11:55 AM To: Rob Becker Cc: [email protected] Subject: [SPAM] Re: backing up symlinks Importance: Low
On Tue, 9 Nov 2004, Rob Becker wrote:
I'm playing with optimizing the startup scripts on an old redhat box. In order to avoid completely monkeying things up, I would like to back up the /etc/rc.d/rc3.d directory prior to making changes. I've read
the
man pages on both cp and ln and I'm coming up short regarding backing
up
the symlinks in this directory. Is there a way to create symlinks
with
the same names that point to the same files as the original symlinks?
I
know I can do it manually, but I'd prefer to use the * wildcard to get it all done in one shot if possible. Does anyone have any ideas? Am
I
thinking about this the wrong way? Please enlighten me if I am
missing
an obvious solution. Thanks. Rob
I use:
cp -aR
Does that work?
On Tue, 9 Nov 2004, Rob Becker wrote:
That seemed to get it. Now I need to get the date set correctly. This laptop sat for a while and the clock is wrong.
The date command lets you set the system clock from a formatted string:
date -s "Tue Nov 9 12:09:54 CST 2004"
...but that only sets the system clock. You want to put that into the hardware clock too, so you will have the correct time next time you boot:
hwclock --systohc
If you use Gentoo you can emerge NTP and then set it up to run at boot to ensure your date is right on. This snip assumes you are in Central Timezone:
#ln -sf /usr/share/zoneinfo/CST6CDT /etc/localtime #emerge net-misc/ntp #ntpdate ntp1.kansas.net #echo "ntpdate ntp1.kansas.net" >> /etc/conf.d/local.start
Regards, Steven (Tallen)
On Tue, 9 Nov 2004 12:07:28 -0600, Rob Becker [email protected] wrote:
That seemed to get it. Now I need to get the date set correctly. This laptop sat for a while and the clock is wrong. Thanks. Rob
-----Original Message----- From: Duane Attaway [mailto:[email protected]] Sent: Tuesday, November 09, 2004 11:55 AM To: Rob Becker Cc: [email protected] Subject: [SPAM] Re: backing up symlinks Importance: Low
On Tue, 9 Nov 2004, Rob Becker wrote:
I'm playing with optimizing the startup scripts on an old redhat box. In order to avoid completely monkeying things up, I would like to back up the /etc/rc.d/rc3.d directory prior to making changes. I've read
the
man pages on both cp and ln and I'm coming up short regarding backing
up
the symlinks in this directory. Is there a way to create symlinks
with
the same names that point to the same files as the original symlinks?
I
know I can do it manually, but I'd prefer to use the * wildcard to get it all done in one shot if possible. Does anyone have any ideas? Am
I
thinking about this the wrong way? Please enlighten me if I am
missing
an obvious solution. Thanks. Rob
I use:
cp -aR
Does that work?
Kclug mailing list [email protected] http://kclug.org/mailman/listinfo/kclug
Steven Hildreth wrote:
If you use Gentoo you can emerge NTP and then set it up to run at boot to ensure your date is right on. This snip assumes you are in Central Timezone:
#ln -sf /usr/share/zoneinfo/CST6CDT /etc/localtime #emerge net-misc/ntp #ntpdate ntp1.kansas.net #echo "ntpdate ntp1.kansas.net" >> /etc/conf.d/local.start
"pool.ntp.org" might be a better choice. If the box stays up for any length of time, you may want to setup ntpd instead. This should be a matter of
emerge net-misc/ntp rc-update add ntpd default /etc/init.d/ntpd start
under Gentoo. The default ntpd.conf points to pool.ntp.org by default nowadays, AFAIK.