respberry pi3 上手随记
?
入門篇:
?
raspberry 官網:
https://www.raspberrypi.org/
?
各個系統鏡像下載地址:
https://www.raspberrypi.org/downloads/
?
樹莓派實驗室:
http://shumeipai.nxez.com/
?
新手入門,下載一個raspbian 系統。
在這之前,你得有一張class 10 的sd卡,建議16g 80M 速度的那種。
利用sd formatterv 對sd claa10 ?進行格式化。
下載地址:
鏈接:http://pan.baidu.com/s/1slEjaKd?密碼:5itz
?
?
再利用 win32diskimager 對卡進行少些系統
下載地址:
鏈接:http://pan.baidu.com/s/1c1JcZL2 密碼:zgb9
?
?
?
?然后把卡插入樹莓派卡槽。
連上網線到你的路由器。
把USB電源線插上,開機。
?
進入你得路由器控制臺,找到raspberry pi 的ip
利用ssh 登錄.
?
ssh 下載地址:
鏈接:http://pan.baidu.com/s/1c2gJ8Ve 密碼:ows0
?
輸入剛才路由器控制臺看到的ip,保存一個名字,保存,在打開。
?
輸入賬號:pi
密碼:raspberry
登錄進去。
sudo passwd root
設置一個root密碼。
更改pi的密碼也行。
到此,ssh遠程登錄樹莓派成功。
?
?
下面介紹一下在沒有hdmi顯示器的情況下利用vnc進入 系統桌面:
剛才利用ssh登錄終端后。安裝一個tigervnc
在用vncpasswd設一個密碼。
?
再用vi 在/etc/init.d/里面創建一個文件。
?
sudo vi?/etc/init.d/tightvncserver
#!/bin/sh### BEGIN INIT INFO # Provides: tightvncserver # Required-Start: $local_fs # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/stop tightvncserver ### END INIT INFO# More details see: # http://www.penguintutor.com/linux/tightvnc ### Customize this entry # Set the USER variable to the name of the user to start tightvncserver under export USER='pi' ### End customization requiredeval cd ~$USERcase "$1" instart)# 啟動命令行。此處自定義分辨率、控制臺號碼或其它參數。su $USER -c '/usr/bin/tightvncserver -depth 16 -geometry 800x600 :1'echo "Starting TightVNC server for $USER ";;stop)# 終止命令行。此處控制臺號碼與啟動一致。su $USER -c '/usr/bin/tightvncserver -kill :1'echo "Tightvncserver stopped";;*)echo "Usage: /etc/init.d/tightvncserver {start|stop}"exit 1;; esac exit 0?
?給這個文件加權限
并添加進開機自啟腳本
sudo chmod 755 /etc/init.d/tightvncserver sudo update-rc.d tightvncserver defaults?
在windows 或者其他什么操作系統下下載一個vnc ?客戶端:
連接:
ip:1
?
?
?
參考:http://shumeipai.nxez.com/2013/09/04/login-rpi-with-vnc.html?variant=zh-cn
?
轉載于:https://www.cnblogs.com/chenfulin5/p/5983649.html
總結
以上是生活随笔為你收集整理的respberry pi3 上手随记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2016 CCPC 杭州站 小结
- 下一篇: vba 相关