[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:hardware:arm:automatically_setting_system_time_on_arm_devices [2021/03/14 22:56 (UTC)] – [Automatically setting the system time with an Internet connection] revised header exaga | howtos:hardware:arm:automatically_setting_system_time_on_arm_devices [2021/03/22 09:26 (UTC)] (current) – [Automatically setting the system time with an Internet connection] typo script filename extension exaga | ||
---|---|---|---|
Line 12: | Line 12: | ||
Most (if not all?) modern PC systems come with an onboard real time clock (RTC) installed on the mainboard, whereas most single board computer ARM devices do not. | Most (if not all?) modern PC systems come with an onboard real time clock (RTC) installed on the mainboard, whereas most single board computer ARM devices do not. | ||
- | For example, the Raspberry Pi (a.k.a. the most common and popular single board computer on the planet) cannot seem to factor in an onboard timekeeper within its MSRP, even on the more expensive models which feature larger amounts of RAM but still no RTC. The Banana Pi, Orange Pi, and Asus Tinkerboard devices do not feature an onboard RTC. Less common devices, such as SolidRun' | + | For example, the Raspberry Pi (a.k.a. the most common and popular single board computer on the planet) cannot seem to factor-in an onboard timekeeper within its MSRP, even on the more expensive models which feature larger amounts of RAM but still no RTC. The Banana Pi, Orange Pi, and Asus Tinkerboard devices do not feature an onboard RTC. Less common devices, such as SolidRun' |
On those which don't have a RTC as standard it's prudent, and easily affordable, to buy a RTC module and install it yourself, with some [[https:// | On those which don't have a RTC as standard it's prudent, and easily affordable, to buy a RTC module and install it yourself, with some [[https:// | ||
Line 37: | Line 37: | ||
The quickest and laziest method is with the Bash script code below, which is a representation of an '/ | The quickest and laziest method is with the Bash script code below, which is a representation of an '/ | ||
- | <file sh rc.local.sh> | + | <file sh rc.local> |
#!/bin/sh | #!/bin/sh | ||
# | # | ||
Line 72: | Line 72: | ||
I've got this code in the '/ | I've got this code in the '/ | ||
+ | ===== Setting the system time with a local NTP server ===== | ||
+ | |||
+ | The SlackDocs [[howtos: | ||
+ | |||
+ | Once you have a NTP server running on your local network, you are able to set any other computer system or device that uses a time protocol from it; Linux systems, Windows computers, Android devices, tablets, smart phones, etc. Therefore, it's possible to have everything set with an accurate date and time that's capable of communicating with the NTP server. | ||
+ | |||
+ | Setting the date and time on other Slackware [Linux] systems using a local network NTP server is achieved by typing one simple command: | ||
+ | |||
+ | < | ||
+ | ~# sntp -Ss 192.168.1.17 | ||
+ | </ | ||
+ | |||
+ | On Slackware ARM 14.2 this can be achieved using the following command: | ||
+ | |||
+ | < | ||
+ | ~# ntpdate 192.168.1.17 | ||
+ | </ | ||
+ | |||
+ | In the example above, the IP address is our local network NTP server machine. Obviously you would enter the IP address of the machine running the NTP server daemon on your own local network. | ||
====== Help ====== | ====== Help ====== | ||
Any requests for help/ | Any requests for help/ | ||
- | Thank you for being interested in automatically setting the system date and time on a Slackware ARM installed device, and in this SlackDoc | + | Thank you for being interested in automatically setting the system date and time on a Slackware ARM installed device, and in this SlackDocs |
====== Sources ====== | ====== Sources ====== | ||
# Documentation which assisted in this SlackDoc project: | # Documentation which assisted in this SlackDoc project: | ||
- | TODO | + | https:// |
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> |