树莓派:进入系统
阅读 72 作者 小林丶子


> 提示:如果你没有显示器,你就需要登录路由器进行查看树莓派的IP地址,或者在电脑里面扫描局域网中的设备,找到树莓派的IP地址,然后进行SSH连接。
Windows里面需要下载软件,可使用Putty软件(或者Xshell)。
登录账号:用户名:pi 密码:raspberry

假如出现这种情况:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:EqIFQoWYDISyGnJggyqnk8888LeNn3tr1+QmBQaso0.
Please contact your system administrator.
Add correct host key in /Users/caolijian/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/caolijian/.ssh/known_hosts:12
ECDSA host key for 192.168.1.112 has changed and you have requested strict checking.
Host key verification failed.

则是需要清理一下之前保存的认证密钥。

// 查看
ssh-keygen -l -f ~/.ssh/known_hosts
// 清理192.168.1.112的认证rsa
ssh-keygen -R 192.168.1.112

成功进入的界面:

Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Nov 3 08:36:37 2017

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.

pi@raspberrypi:~ $

// 查看莓派版本信息
cat /proc/cpuinfo


> 校正树莓派时间


// 设置时区为 亚洲(Asia) 上海(Shanghai)
sudo dpkg-reconfigure tzdata
// 启动 NTP 使计算机时钟与 Internet 时间服务器同步
sudo timedatectl set-ntp true

> 改变键盘布局

树莓派(raspberry pi)是英国产品,默认键盘布局是英国(UK),我们用的键盘布局一般是美国(US)。

// 进入设置页面 方法一
sudo dpkg-reconfigure keyboard-configuration
// 进入设置页面 方法二
sudo raspi-config
// 选择 4 Localisation Options -> I3 Change Keyboard Layout

通用的101键PC键盘-> English(US) -> English(US, alternative international) -> OK

> vnc远程屏幕软件

 

// (基于Debian 9)直接执行
sudo apt-get install -y xrdp
// (基于Debian 8)请执行如下
sudo apt-get install -y tightvncserver xrdp
[编辑于 2019/10/12 17:00]