0. 获取公网IP
curl cip.cc
1. 查看特定网口IP
ip addr show eth0
2. 树莓派桌面恢复
sudo su
rm -rf ~/.config/lxpanel/LXDE-pi
3.树莓派开/关Wifi
sudo ifconfig wlan0 up
sudo ifconfig wlan0 down
4.为root用户加颜色
sudo cp ~/.bashrc /root/.bashrc
5.更新树莓派
sudo apt-get update&&sudo apt-get upgrade
6.树莓派截图
sudo apt-get install scrot&&scrot -s
7.安装 aptitude,代替apt-get
sudo apt-get install aptitude
8.树莓派搭建Nginx网站
sudo apt-get install nginx
9.树莓派安装php
sudo aptitude install -y php7.0-fpm php7.0-cli php7.0-curl php7.0-gd php7.0-mcrypt php7.0-cgi php7.0-mysql
9.查看历史指令
history
10.卸载软件(speedtest-cli)
sudo apt-get autoremove --purge speedtest-cli
11.测试网速
sudo apt install speedtest-cli
speedtest
12.查看串口
ls -l /dev/serial*
13.下载64位Arm wiringpi
wget https://gitee.com/LJYSCIENTIST/raspberry-pi-software-storage/raw/master/wiringpi-2.60-1_arm64.deb
14.安装64 位Arm wiringpi
sudo dpkg -i wiringpi-2.60-1_arm64.deb
15.生成.o文件
gcc -fPIC -g -c SC16IS752GPIO.c -o SC16IS752GPIO.o
16 生成.so文件
gcc -g -shared -Wl,-soname,SC16IS752GPIO.so -o SC16IS752GPIO.so SC16IS752GPIO.o -lc
17 查看I2C地址
sudo apt-get install i2c-tools&&sudo i2cdetect -y 1