User Tools

Site Tools


the_ntp_functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
the_ntp_functions [2017/03/18 13:25] – [to do] walkeradminthe_ntp_functions [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 268: Line 268:
  
 ---- ----
-==== to do ====+==== Raspberry Pi Dropping of Wireless Network ====
  
-wireless dropping out on ntp server. I need to document this, I found my raspberry Pi Zero, that is using the official Raspberry Pi Wireless Dongle drops off the wireless network after around a week. Only a reboot gets it back (as I have no keyb/mouse connected) so I figured just using Cron to reboot the thing every 24 hours will be a suitable work around.+I found my raspberry Pi Zero, that is using the official Raspberry Pi Wireless Dongle drops off the wireless network after around a week. Only a reboot gets it back (as I have no keyb/mouse connected) so I figured just using Cron to reboot the thing every 24 hours will be a suitable work around.
 \\  \\ 
 \\  \\ 
-Will document the Cron command here. 
-\\  
-\\  
- 
- 
- 
- 
 To use cron (should already be installed): To use cron (should already be installed):
 \\  \\ 
 \\  \\ 
     sudo crontab -e (reboots require super user rights)     sudo crontab -e (reboots require super user rights)
-\\  
 \\  \\ 
 Insert the following line: Insert the following line:
Line 290: Line 282:
 \\  \\ 
     0 0          /sbin/shutdown -r     0 0          /sbin/shutdown -r
-\\  
 \\  \\ 
 Explanation: Explanation:
Line 298: Line 289:
 m      h    dom        mon   dow       command m      h    dom        mon   dow       command
 minute hour dayOfMonth Month dayOfWeek commandToRun minute hour dayOfMonth Month dayOfWeek commandToRun
- 
  
 so the line  so the line 
   0 0          /sbin/shutdown -r   0 0          /sbin/shutdown -r
- 
  
 would reboot your system every day at 00:00. would reboot your system every day at 00:00.
 </file> </file>
- +\\  
- +Use Ctrl+X, Y, Enter. This will save and exit crontab (if using nano) 
-Ctrl+X, Y, Enter should get you out of crontab (if using nano) +\\  
- +\\  
-Note: you might have to run crontab -e as root, because shutdown needs root. +
-  +
- +
  
the_ntp_functions.1489843531.txt.gz · Last modified: 2023/03/09 22:35 (external edit)