Raspberry Pi 树莓派的系统重装
格式化存储卡
Panasonic_SDFormatter
烧录镜像
Win32DiskImager
write
默认密码
pi
raspberry
切换命令行
空格选中
sudo raspi-config
boot options
启用root
sudo passwd root
sudo passwd --unlock root
su
reboot
键盘定义
raspi-config
Generic 104-key PC
other
chinese
Thedefaultforthekeyboardlayout
NO compose key
连接wifi
查看射频端口
rfkill list
rfkill unblock all
查看网络状态
ifconfig
ifconfig -a
安装网卡驱动(如果没有)
apt-get install wireless-tools wpasupplicant firmware-realtek
启动网卡
ifconfig wlan0 up
设置开机启动
vim /etc/rc.local
rfkill unblock wifi
ifconfig wlan0 up
查看可连接wifi
iwlist wlan0 scan |grep 360wifi
快捷配置
wpa_passphrase 360wifi 12345678
配置文件配置
vim /etc/network/interfaces
vim /etc/wpa_supplicant/wpa_supplicant.conf
ifconfig wlan0 up
刷新配置文件
wpa_cli reconfigure
systemctl restart networking
参考资料
安装vim
apt-get install vim
开启ssh
cd /
systemctl enable ssh
systemctl restart ssh
启用root的ssh
vim /etc/ssh/sshd_config
PermitRootLogin yes
reboot
中文环境
sudo apt-get install ttf-wqy-zenhei
raspi-config
change_locale
zh_CN.UTF-8
连接3.5寸LCD屏幕
参考资料
https://github.com/goodtft/LCD-show
评论已关闭