树莓派系统攻略

先刷下官网的系统

然后用Win32DiskImager写到sd卡里,启动就好了。 

配置键盘

需要raspi-config 设置下键盘布局,我们用的是en-US的,不然会错乱。

配置root

默认用户是 pi 密码为 raspberry,启动root的步骤如下:

1 sudo passwd root
2 sudo passwd --unlock root

默认ssh是禁止root登录的,需要修改下/etc/ssh/sshd_config,改成PermitRootLogin yes

然后重启即可root登录。

配置wifi

修改/etc/wpa_supplicant/wpa_supplicant.conf,加上wifi配置。

1 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
2 update_config=1
3 country=CN
4 
5 network={
6         ssid="ssid名"
7         psk="密码"
8 }

更新源

1 root@raspberrypi:~# cat /etc/apt/sources.list
2 #deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
3 deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi
4 # Uncomment line below then 'apt-get update' to enable 'apt-get source'
5 #deb-src http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi
6 root@raspberrypi:~# apt-get update

 

posted @ 2018-02-25 20:30  linyx  阅读(191)  评论(0编辑  收藏  举报