Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: System / Date Setup via Internet at Startup< Next Oldest | Next Newest >
kk75 Offline





Group: Members
Posts: 1
Joined: June 2007
Posted: Nov. 03 2007,11:26 QUOTE

Hello,
in the system menu i found this item "Set Date / Time via Internet".

I would like to add this script to the startup script. Where can I find the command
for starting this time update script ?

Regards,
kk75
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Nov. 03 2007,11:44 QUOTE

From /home/dsl/.fluxbox/menu:
Quote
...
[exec] (Via Internet Time Server) {sudo /usr/local/bin/gettime.lua}
...
Back to top
Profile PM 
danielp Offline





Group: Members
Posts: 57
Joined: May 2007
Posted: Nov. 05 2007,13:19 QUOTE

Just found this thread; interesting!
When you do sudo /usr/local/bin/gettime.lua you get the time back in UTC format. Is there a way to make a script to change the PC's time as well? Where is the timezone saved?
Back to top
Profile PM 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Nov. 05 2007,13:26 QUOTE

Try this. ;)

--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Nov. 05 2007,15:34 QUOTE

Quote (danielp @ Nov. 05 2007,05:19)
Just found this thread; interesting!
When you do sudo /usr/local/bin/gettime.lua you get the time back in UTC format. Is there a way to make a script to change the PC's time as well? Where is the timezone saved?

The timezones supported in DSL can be found in /usr/share/zoneinfo
To use local time just boot with the tz boot option set to a supported timezone. For example, I use

tz=US/Pacific

Combing this boot option and the gettime.lua you will have accurate local time set.


Edited by roberts on Nov. 05 2007,15:35
Back to top
Profile PM WEB 
7 replies since Nov. 03 2007,11:26 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: System / Date Setup via Internet at Startup

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code