Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Uhrzeit über ssh syncen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Deutsche Dokumentation
View previous topic :: View next topic  
Author Message
Rene-dev
Apprentice
Apprentice


Joined: 22 Jan 2005
Posts: 163
Location: Münster, Germany

PostPosted: Fri Jun 09, 2006 1:20 pm    Post subject: Uhrzeit über ssh syncen Reply with quote

Hi,

falls ihr ntp nicht benutzen koennt/wollt koennt ihr so die uhrzeit von lokal nach remote syncen, z.b. bei der installation von der livecd.
in meinem fall bringe ich die uhrzeit mit meinem laptop von zuhause mit, da hier ntp geblokt ist.
ergibt zwar eine geringe abweichung von nen paar sekunden, aber das stoert in den meisten faellen nicht.

Code:
date +%m%d%H%M%y | ssh root@host "xargs date && hwclock --systohc"

oder als sudoer
Code:
date +%m%d%H%M%y | ssh user@host "sudo xargs date && sudo hwclock --systohc"


nicht wirklich eine dokumentation, sondern ehr ein tipp, oder mini-howto

rene
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Deutsche Dokumentation 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