樹莓派開機啓動

-------------------------------

new a XXX.sh file

------------------------------

write like below:

-----------------------------

sleep  20;
cd /home/pi/Downloads #the StartUP file's path
java -jar Hello.jar   #the StartUP file
-----------------------------

sudo chmod 777 /home/pi/Downloads/test.sh

sudo chmod +x /home/pi/Downloads/test.sh

----------------------------------------

mkdir /home/pi/.config/autostart/

nano LXinput-setup.desktop

[Desktop Entry]

Type=Application

Name=testboot

NoDisplay=true

Exec=/home/pi/Dowloads/test.sh
--------------------------------

 

----------------end-----------------

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章