Post
Topic
Board Mining software (miners)
Re: Linux mining distro for the Raspberry PI - MinePeon
by
Malakai
on 14/08/2013, 02:50:55 UTC
thats what i'm going off of except i did it from bottom to top so
Code:
sudo systemctl enable openntpd.service
sudo ntpd -s
date
to make sure its the right date
webpage says :Server Time: Wed, 31 Dec 1969 18:04:03 CST
and at the top it says:Graph error: the first entry to fetch should be after 1980 (-3357)
so did i do it in the wrong order?

The issue isn't that the service isn't started the problem is more likely it is starting before the Pi gets an IP. And cannot update the time since it cannot reach the server.

It's sort of my understanding that everything pretty much has a hardware clock except the Pi so everything is kind of written to take advantage of that. So it isn't really all too easy to get the time updated at boot. You could purchase a RTC module for the Pi and the problem would be solved very easily but it costs money unfortunately.

It would be better to check the status of the service no sense enabling something that is already active.

Code:
sudo systemctl status openntpd.service

The only thing you really should need to run is

Code:
sudo ntpd -s

Then open the web page

Trivia:

Code:
ssh -t minepeon@serverip sudo ntpd -s

It will ask for the password twice but will run ntpd -s

From a Windows machine something like this is possible to setup a batch file or shortcut on your Desktop with Putty's plink installed. You would need to play around with it a bit but could possibly work. I need to get home to test it out.

Code:
C:\Program Files\Putty\plink.exe -ssh -t User@server sudo ntpd -s


Download plink from here http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Create a batch file and paste the info into it modify where you downloaded plink I put mine in C:\ this way you run the batch file enter the pass twice and away you go. I think the possibility after it executes to open a browser on a specific site it even possible. Not sure though.


There is also some fixes available in this thread if Neil or anyone is interested:

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=53&t=30570 No time sync on boot when Pi is using WiFi