55 lines
1.0 KiB
Markdown
55 lines
1.0 KiB
Markdown
### 系统环境配置(SSH)
|
||
|
||
- [允许root账户远程SSH登陆](#允许root账户远程SSH登陆)
|
||
- [更新软件](#更新软件)
|
||
|
||
#### 允许root账户远程SSH登陆
|
||
|
||
* 设置root账户密码
|
||
|
||
```
|
||
adb shell passwd
|
||
# 输入密码:quectel
|
||
```
|
||
|
||
* 修改SSH配置文件
|
||
|
||
> 修改 **#PermitRootLogin prohibit-password** 修改为 **PermitRootLogin yes**
|
||
|
||
```
|
||
adb shell
|
||
# :/PermitRootLogin 查找 PermitRootLogin 参数
|
||
vim /etc/ssh/sshd_config
|
||
```
|
||
|
||
* 重启SSH服务
|
||
|
||
```
|
||
systemctl restart sshd
|
||
```
|
||
|
||
#### 更新软件
|
||
|
||
```
|
||
apt update
|
||
apt upgrade -y
|
||
```
|
||
报错后,重新执行 apt update 出现错误:
|
||
|
||
![报错信息](../../.image/3FB06500-317D-4B87-BB76-EFC7B788B33E.png)
|
||
|
||
执行
|
||
```
|
||
apt --fix-broken install -y
|
||
```
|
||
|
||
出现错误:
|
||
|
||
![报错信息](../../.image/B707EB53-9FEF-493C-8095-33AB7D466E4B.png)
|
||
|
||
执行命令
|
||
```
|
||
dpkg -i --force-overwrite /var/cache/apt/archives/libc6-arm64-cross_2.31-0ubuntu9.9cross1_all.deb
|
||
dpkg -i --force-overwrite /var/cache/apt/archives/libx11-data_2%3a1.6.9-2ubuntu1.6_all.deb
|
||
apt upgrade -y
|
||
``` |