2、通过Putty登录树莓派,树莓派默认是开启SSH的。默认用户名 pi ,默认密码 raspberry。
3、由于我的树莓派出现了时间不同步的情况,因此需要修改NTP服务器
打开ntp服务的配置文件
sudo nano /etc/ntp.conf
找到这两行
# You do need to talk to an NTP server or two (or three).
# server ntp.your-provider.example
在下面添加以下内容。第一行最后的perfer表示优先使用此服务器,也就是复旦大学的ntp服务器。添加之后按Ctrl+X保存退出。
server ntp.fudan.edu.cn iburst perfer
server time.asia.apple.com iburst
server asia.pool.ntp.org iburst
重启ntp服务
sudo /etc/init.d/ntp restart