Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Come sincronizzare l'ora all'avvio del sistema?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Gaspyd
Apprentice
Apprentice


Joined: 21 Nov 2004
Posts: 242
Location: Brindisi, Italy

PostPosted: Sun Mar 13, 2005 11:58 am    Post subject: Come sincronizzare l'ora all'avvio del sistema? Reply with quote

Per sincronizzare l'ora lancio un bel
Code:

darshan root # rdate -s time.ien.it
darshan root # hwclock -uw

Vorrei eseguirli ad ogni avvio del sistema, dove devo inserirli ?
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Sun Mar 13, 2005 12:01 pm    Post subject: Reply with quote

Code:
In /etc/init.d/local.start

poi aggiungi il servizio local al runlevel default con
Code:
rc-update add local default
Back to top
View user's profile Send private message
yardbird
l33t
l33t


Joined: 20 Apr 2002
Posts: 689
Location: nl.leiden

PostPosted: Sun Mar 13, 2005 12:12 pm    Post subject: Reply with quote

Puoi usare il pacchetto ntp:
Code:
emerge ntp-client ntpd

_________________
Albert Einstein wrote:
I consider it [...] urgently necessary for [...] workers to get together, both to protect their own economic status and [...] to secure their influence in the political field.


http://www.bluescarni.info
Back to top
View user's profile Send private message
pistodj
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 229

PostPosted: Sun Mar 13, 2005 12:15 pm    Post subject: Reply with quote

Scusate se mi intrometto ma ho una domanda...
Esistono problemi di sicurezza nella sincronizzazione dell'ora??
Ho sentito vagamente che potrebbero esistere... anche se nn so se si trattasse di linux sapete qualcosa al riguardo grazie
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31461
Location: here

PostPosted: Sun Mar 13, 2005 12:33 pm    Post subject: Reply with quote

pistodj wrote:
Ho sentito vagamente che potrebbero esistere... anche se nn so se si trattasse di linux sapete qualcosa al riguardo grazie

L'unica e' guardare tra i bug del programma che usi... qualunque programma che accede alla rete e' potenzialmente vulnerabile
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Gaspyd
Apprentice
Apprentice


Joined: 21 Nov 2004
Posts: 242
Location: Brindisi, Italy

PostPosted: Sun Mar 13, 2005 12:34 pm    Post subject: Reply with quote

=DvD= wrote:
Code:
In /etc/init.d/local.start

poi aggiungi il servizio local al runlevel default con
Code:
rc-update add local default

Perfetto grazie, il file in questione è in /etc/conf.d/
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Sun Mar 13, 2005 12:55 pm    Post subject: Reply with quote

Gaspyd wrote:
=DvD= wrote:
Code:
In /etc/init.d/local.start

poi aggiungi il servizio local al runlevel default con
Code:
rc-update add local default

Perfetto grazie, il file in questione è in /etc/conf.d/


io preferisco usare ntpd e ntp-client.
una volta coonfigurati e avviati fanno tutto da soli e sincronizzano l'ora automaticamente.
http://www.gentoo.org/proj/en/infrastructure/config-ntp.xml
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Sun Mar 13, 2005 1:02 pm    Post subject: Reply with quote

Scusate, lapsus, conf.d non init.d !!
Back to top
View user's profile Send private message
oRDeX
Veteran
Veteran


Joined: 19 Oct 2003
Posts: 1325
Location: Italy

PostPosted: Sun Mar 13, 2005 1:30 pm    Post subject: Reply with quote

Code:
0  3  * * *     root    ntpdate -s -b -u ntps.net4u.it && /sbin/hwclock --utc --systohc

in /etc/crontab, vabbè, forse sono pazzo 8) :lol: :lol: :lol:
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sun Mar 13, 2005 1:39 pm    Post subject: Reply with quote

oRDeX wrote:
Code:
0  3  * * *     root    ntpdate -s -b -u ntps.net4u.it && /sbin/hwclock --utc --systohc

in /etc/crontab, vabbè, forse sono pazzo 8) :lol: :lol: :lol:

Beh se hai un server che riavvii solo per cambiare serie di kernel non sei un pazzo :lol::lol::lol:
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
n3mo
l33t
l33t


Joined: 28 Mar 2004
Posts: 657
Location: In a Cruel World

PostPosted: Sun Mar 13, 2005 3:56 pm    Post subject: Reply with quote

Un consiglio a chi usa ntp, date un'occhiata a openntpd, leggero, sicuro estremamente stabile....che volete di più dalla vita ?
_________________
Google, really.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum