###### tags: `Raspberry PI` ### 開機自動執行 `sudo nano /etc/xdg/lxsession/LXDE-pi/autostart` ``` @lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash @lxterminal -e sh runAPP.sh ``` ### 定期重開機 1. 開啟終端機(Terminal),開啟例行性工作排程 ``` sudo crontab -e ``` ![](https://hackmd.io/_uploads/rJEAV2Qc2.png) 2. Press #1 to choose the nano file editor. Then press the down arrow to scroll to the very bottom. ![](https://hackmd.io/_uploads/BJj0NnX53.png) 3. Step 3: Add Scheduled Reboot Time ``` 0 0 * * * /sbin/shutdown -r now ``` ### 建立捷徑 ` ln -s /home/pi/runAPP.sh /home/pi/Desktop `