hi,
ik wil graag de tijd aanpassen naar de actuele tijd op internet. ik heb een code gevonden die de tijd aanpast aan de google.com tijd.
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
maar hoe kan je deze code activeren als je je raspberry opstart?
Re: automatisch uitvoeren code terminal bij opstarten
Welk OS heb je geinstalleerd?
Standaard wordt de tijd op Raspbian al automatisch aangepast...
Standaard wordt de tijd op Raspbian al automatisch aangepast...
Re: automatisch uitvoeren code terminal bij opstarten
ik heb het bestand 2018-06-27 respian-stretch gedownload.
helaas past hij niet automatisch de tijd aan terwijl ik dit wel wil hebben.
weet iemand een andere oplossing hiervoor?
helaas past hij niet automatisch de tijd aan terwijl ik dit wel wil hebben.
weet iemand een andere oplossing hiervoor?
Re: automatisch uitvoeren code terminal bij opstarten
Je bedoelt toch geinstalleerd mag ik hopen.ik heb het bestand 2018-06-27 respian-stretch gedownload.
En je rpi heeft wel verbinding met het internet?
-
- Posts: 29
- Joined: Fri Nov 09, 2018 9:27 am
- Location: Netherlands
Re: automatisch uitvoeren code terminal bij opstarten
Code: Select all
sudo apt-get install ntp
Maar waarom die 'oude stretch' ipv buster ?
- DougieLawson
- Posts: 40512
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: automatisch uitvoeren code terminal bij opstarten
sudo systemctl disable systemd-timesyncd
sudo timedatectl set-ntp 1
sudo systemctl restart ntp
sudo timedatectl set-ntp 1
sudo systemctl restart ntp
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.