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