一:樹莓派引腳輸出高低電平問題
問題描述:在用wiringPi的庫函數編寫led的點燈程序的時候,發現樹莓派的的管腳輸出高電平一段時間後,就會自動跳到低電平狀態,似乎樹莓派的引腳不受程序的控制。
解決方案:可能是環境出了問題,重新燒寫下系統的鏡像就可以了(有過慘痛教訓,倒騰了一下午)。
二:解決ssh不能登錄的問題
有時候想從開發板中考文件出來,發現ssh無法登錄。
解決方法:
1,sudo vim /etc/ssh/sshd_config
在文件末尾添加
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96,hmac-md5-96
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]
,2
2,重新啓動ssh服務,問題解決(不可以登錄root用戶)
sudo service ssh status查看ssh服務狀態
三:Qt文件編譯時,會出現一直循環make warning:file has modification time 9999s in the future
四:Qt信號和槽編程時,出現添加了信號後,無法編譯通過
五:路由器無法綁定樹莓派IP地址,並且IP地址始終在跳變,無法上網
SSID mywifi
inform 192.168.2.115
static routers=192.168.2.1
static domain_name_server=255.255.255.0
static domain_search=255.255.255.03
修改nameserver 8.8.8.8
3,樹莓派修改軟件源的方法
編輯/etc/apt/sources.list文件。刪除原文件所有內容,用以下內容取代:
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
編輯此文件後,請使用sudo apt-get update命令,更新軟件列表。sudo apt-get upgrade,更新已安裝的軟件包。
這樣樹莓派更新軟件就會使用中國科學技術大學的鏡像源,從而大大提高更新速度,要使用其他的軟件源,根據以上代碼就行修改。
注:需要註釋掉/etc/apt/sources.list.d/raspi.list裏面的地址,否則依然會使用這裏面的地址六,Qt莫名奇妙的出現很多錯誤,而且是生成的中間文件(一般是命名空間中提示錯誤)
博文索引 持續更新中。。。