1、编辑软件源配置文件: sudo vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi
执行sudo apt-get update
2、命令行连接wifi:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
文档增加以下内容
network={
ssid="***"
psk="***"
priority=1
}
重启后ifconfig查看ip地址
3、pip临时使用其它镜像源:可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple
例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent,这样就会从清华这边的镜像去安装gevent库。
永久修改,一劳永逸:inux下,修改 ~/.pip/pip.conf (没有就创建一个), 修改 index-url至tuna,内容如下:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
4、服务器后台运行,命令行关闭后也运行
setsid node app.js
5、卸载软件
sudo apt-get autoremove ***
6、安装python3-pip
sudo apt-get install python3-pip
7、更新pip3(pip3更新完成后默认成为pip)
pip3 install --upgrade pip