1、默认不开SSH的,需要设置
默认帐号,密码:
帐号:pi
密码:raspberry
2、更改:/etc/ssh/sshd_config
把这项更为:PermitRootLogin yes
3、systemctl enable ssh 默认启动SSH服务,不然重启以后不能登陆
4、设置源
/etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib
/etc/apt/sources.list.d/raspi.list
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/ jessie main ui
#deb-src http://mirrors.ustc.edu.cn/archive.raspberrypi.org/ jessie main ui
官方认证的源:http://www.raspbian.org/RaspbianMirrors
5、设置时区
tzselect 按照提示进地选择
之后在/root/.profile里面,添加TZ=’Asia/Shanghai’; export TZ
停止服务:
systemctl disable dhcpcd
systemctl disable ntp
systemctl disable avahi-daemon
同步时间:ntpdate cn.pool.ntp.org
6、更改固定IP地址
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.31.187
netmask 255.255.255.0
gateway 192.168.31.1
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
这时你的树莓派,不会自动启动网卡,需要设置自启动
在/etc/rc.local最上面加上这个命令,即可。
ifup eth0
echo “nameserver 192.168.31.1” > /etc/resolv.conf
7、安装VIM
apt-get install vim
设置代码高亮
在/etc/vim/vimrc最下面加以下3行,也可以更改里面的配置,可自动记录上次编译的点
set number
syntax on
set tabstop=4
8、