RPi 记录
配置
重新烧了RPi的官方系统,仍然connection refused。查了半天才发现2016.11之后官方系统默认关闭SSH了。:(
解决办法:在SD卡根目录下建一个名为ssh的空白文件。
ssh
用nmap查看RPi的IP
先查看本机IP
- Linux
$hostname -I - Mac OS
系统偏好设置->网络->右边状态信息里 - Windows
cmd->ipconfig
用nmap查看
nmap -sn your-ip/24
链接
ssh pi@<pi-ip>
默认密码:raspberry
WIFI
sudo iwlist wlan0 scan
ESSID:"Wifi-name"
wpa_passphrase "Wifi-name" "Wifi-pwd"
Open VNC(Virtual network computin)
Check update
1 | sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer |
Enabling VNC server
sudo raspi-config
and
- Navigate to Interfacing Options
- VNC->Yes
VNC Viewer
- download
- Enter Pi’s username & pwd
遇到的坑
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
启动服务vncserver
后仍然无法打开链接,查看log发现:error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Shadowsocks
安装
1 | apt-get install python-pip python-gevent python-m2crypto // 下载pip |
设置自启动
1 | vi /etc/rc.local |
add nohup ssserver -c /etc/shadowsocks.json &
before exit