LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-06-2005, 01:49 PM   #1
thick_guy_9
Member
 
Registered: Jan 2004
Location: Singapore
Distribution: VMS, CentOS
Posts: 109

Rep: Reputation: 16
how to set date and time


Hello all
How do I set Date and Time on SLackware?

Can someone give me the commands please?
thanks
 
Old 07-06-2005, 01:53 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
Try as root :
Code:
/usr/sbin/ntpdate sg.pool.ntp.org
 
Old 07-06-2005, 02:53 PM   #3
thick_guy_9
Member
 
Registered: Jan 2004
Location: Singapore
Distribution: VMS, CentOS
Posts: 109

Original Poster
Rep: Reputation: 16
i can't connect to the internet.

can't i do with date command?
 
Old 07-06-2005, 04:19 PM   #4
cooldave
LQ Newbie
 
Registered: Oct 2004
Location: Colorado
Distribution: Slackware 12.1
Posts: 20

Rep: Reputation: 0
Hi,

date [MMDDhhmm[[CC]YY][.ss]
for instance it is now for me:
date 07061520
or
date 070615202005.25
(as root of course)

more info at man date
-CD-
 
Old 07-06-2005, 11:47 PM   #5
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
I remember do it from another way.. but seens nothing to work, so just one more tip you can set just the time with: #date -s 15:35:00

 
1 members found this post helpful.
Old 07-07-2005, 05:25 AM   #6
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Quote:
Originally posted by keefaz
Try as root :
Code:
/usr/sbin/ntpdate sg.pool.ntp.org
hmm, i can't find ntpdate on my system.. Would /usr/sbin/netdate do the trick ?

edit: nevermind, http://slackware.it/en/pb/searchpkg....ent&string=ntp

Last edited by xushi; 07-07-2005 at 05:27 AM.
 
Old 07-07-2005, 06:19 AM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
As a note, I suggested sg.pool.ntp.org time server,
as I see thick_guy_9 was in Singapore, more time
servers are available at :
http://ntp.isc.org/bin/view/Servers/NTPPoolServers
 
Old 07-07-2005, 08:36 AM   #8
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
The generous NTPd folks actually prefer home users to use just plan ol' "pool.ntp.org". Is a round robin look up and tags a random server for updates. It's easy to remember too, which is always helpful.
 
Old 07-07-2005, 08:46 AM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
Good advise ghight, I wasn't aware of this.
(it is even printed black on white on the link I posted )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Erm, how do I set my system date/time? vasudevadas Slackware 4 09-14-2004 03:40 PM
date command do not keep time set shanenin Linux - Software 1 09-04-2004 08:16 PM
Set Date/Time Under AIX dvong3 AIX 2 04-10-2004 11:54 AM
How to correctly set date/time? Jakerohs Linux - General 5 01-08-2004 03:48 AM
set date and time maggielmk Programming 3 10-24-2001 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration