樹莓派安裝git
sudo apt-get install git-core
如果安裝失敗,請確認Raspbian
版本是否爲最新的,可以輸入以下命令更新:
sudo apt-get update
sudo apt-get upgrade
安裝
使用git進行安裝
git clone git://git.drogon.net/wiringPi
更新
進入到wiringPi
後進行更新
cd wiringPi
-> git pull origin
自動安裝
進入到wiringPi
目錄並安裝
cd wiringPi
使用build
腳本進行自動安裝。./build
樹莓派重啓開關命令
重啓:
sudo reboot
sudo shutdown -r now
sudo shutdown -r 04:00:00
#定時重啓自定義時間重啓
關機:
sudo shutdown -h now
sudo halt
sudo poweroff
sudo init 0