Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-07-2003, 11:43 PM
|
#1
|
|
Member
Registered: Jan 2003
Distribution: Slackware 10.1
Posts: 46
Rep:
|
Changing the time in Slack?
I must have accidently set a wrong setting in the config of Slack. But somehow my time got knocked about 4 hours off. There is no option to change the time but i know there is some way. How do I change the time of the clock.
Mike
|
|
|
|
08-08-2003, 12:37 AM
|
#2
|
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
That happened to me, too, somehow. It's actually the 'date' command but when I tried to fix it I ended up in 1977 - couldn't get the syntax right for some reason - so I just reset it from the BIOS.
-- Oh, and during setup you're given the option of 'universal time coordinate' or 'local' and you'll probably want local. I think installing Mandrake screwed mine up, but I'm not sure how, as it's local and I always say local whenever the issue comes up.
Last edited by slakmagik; 08-08-2003 at 12:39 AM.
|
|
|
|
08-08-2003, 04:37 AM
|
#3
|
|
Member
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware
Posts: 262
Rep:
|
Always remember: "apropos", "whatis" and "man" are your friends!
Use "date" (probably as root) to change the date and the time on a Slackware Linux system.
I am not in front of my Slackware machine right now, but here is a link to the man page of a Red Hat system (should be the same on Slackware):
http://www.freebsd.org/cgi/man.cgi?q...nux%2fi386+7.3
Hope this helps! 
|
|
|
|
08-08-2003, 08:30 AM
|
#4
|
|
Member
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250
Rep:
|
just do it from X? easyer 
|
|
|
|
08-08-2003, 09:02 AM
|
#5
|
|
Member
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370
Rep:
|
From the man page...
date [OPTION] [MMDDhhmm[[CC]YY][.ss]]
This has to be run as root. you have to specify at least the month, day, hour, and minute, so to set the time to 4:00 PM on August 7th, you would run the command date 08071600.
If you need to change the year you can add the year onto the end of the number, and if you want to set it down to the second, you use a period, then the number of seconds, at the very end of the number. So, to set it to 4:00:23 PM on August 7th, you would use date 08071600.23. And in the case of it having been set back to 1977 like digiot mentioned, you would just use the command date 080716002003.23 to set it to the appropriate year.
Last edited by Locura; 08-08-2003 at 09:04 AM.
|
|
|
|
08-08-2003, 11:38 AM
|
#6
|
|
Member
Registered: Jan 2003
Distribution: Slackware 10.1
Posts: 46
Original Poster
Rep:
|
Hey thanks for the info. I got it changed right away. Also I did try using man and whereis but not for date i used the word clock because that what the clock program is called. It turned out to be some program to measure your cpu. Thanks again.
Mike
|
|
|
|
08-09-2003, 01:03 AM
|
#7
|
|
Member
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799
Rep:
|
Check this link and it'll never happen again:
http://members.cox.net/laitcg/new/time.html
There are a lot of other great Slack tips there, too.
Enjoy!
--- Cerbere
|
|
|
|
08-10-2003, 09:38 AM
|
#8
|
|
Member
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 660
Rep:
|
I like setting my time based on the command 'ntpdate time.nist.gov' ... That usually works fine for me. :-)
root@trance:/home/astro# ntpdate time.nist.gov
10 Aug 10:37:59 ntpdate[17140]: step time server 192.43.244.18 offset -23.311424 sec
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:52 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|