在没有屏幕没有网线的情况下开启树莓派的ssh并连接到wifi。
https://www.jianshu.com/p/2e379fd069ae
Raspbian系统默认不开启ssh,开启ssh的方法很简单,在boot分区下创建一个空白的ssh文件,即可,这个文件没有后缀名。
在boot分区下创建文件wpa_supplicant.conf
内容如下
- WPA/WPA2加密
network={
ssid="wifi名"
psk="wifi密码"
}
- WEP加密
network={
ssid="wifi名称"
key_mgmt=NONE
wep_key0="wifi密码"
}
- Open
network={
ssid="wifi名称"
key_mgmt=NONE
}
然后把内存卡插在树莓派上通电开机,进入路由器查看IP地址就行了。
装debian无桌面版 发现wifi并不生效·
进入系统后wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf 才可连接上wiif
常用命令
sudo raspi-config
free
top
df -h
netstat -tunlp #查看运行的网络端口
树莓派Raspbian系统默认用户名为pi,密码为raspberry,ubuntu mate默认密码为ubuntu,如果你想用ssh登录,直接在boot目录建立一个名为ssh的空文件。
nginx:
nginx -s reload 重启
反向代理
修改 nano /etc/nginx/sites-available/default
server {
listen 80;
# ......
location /***/ {
proxy_pass https://127.0.0.1:8080/; #最后的/要加否则404
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} }
二级目录的代理 注意项目中不要使用绝对路径 会找不到
nat123 :
http://www.nat123.com/pages_17_619.jsp
安装 sudo apt-get install mono-complete
xrdp:
windows 远程连接桌面
teamviewer:
安装步骤
https://www.teamviewer.com/en/download/linux/
找到 TeamViewer Host 中的 Debian, Ubuntu, Raspbian 的 下载地址
image.png
wget https://dl.teamviewer.cn/download/linux/version_14x/teamviewer-host_14.6.2452_armhf.deb
sudo dpkg -i teamviewer-host_14.6.2452_armhf.deb
sudo apt-get -f install









网友评论