刷固件:直接插US线刷就行,刷失败的换线、换usb口,都是老生常谈了。

(一句话概括线刷:usb双公头线连接电脑和赚钱宝,按住reset的同时插电,电脑上USB_Burning_Tool提示连接成功就可以松开reset,软件左上角导入固件开始刷入)

刷完后,如果需要用apt,必要准备事项:(如果只跑甜糖就不用关心这些了)

1、SSH登录,初始root密码为1234,进去后请按照提示修改密码。

2、自动调整根目录空间大小:resize2fs /dev/data

3、设定+0800时区

timedatectl set-timezone "Asia/Hong_Kong"

timedatectl set-timezone "Asia/Shanghai

复制代码

手动设定现在日期与时间

timedatectl set-time "2021-07-14 14:38:40"

复制代码

4、安装ntp服务,自动校时

apt install -y ntp

复制代码

查看ntp服务状态

systemctl status ntp

复制代码

显示active (running)代表已启用及执行中

5、(可选)换源:nano /etc/apt/sources.list,把原有的前面全都加上#号,然后添加以下内容:

deb http://mirrors.ustc.edu.cn/debian buster main contrib non-free

deb http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free

deb http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free

deb http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free

复制代码

6、sudo apt update && sudo apt install armbian-config

7、apt-get upgrade

更新一下系统,必要的。因为这个包制作过程中遇到些小困难,只能用很古老的内核版本,不更新的话装软件成问题。

8、服务器改名

更改机器名:

第一步: 修改/etc/hostname

/etc/hostname中存放的是主机名,hostname文件的一个例子:

root@itcast:~# vim /etc/hostname

第二步:修改/etc/hosts配置文件(可选)

/etc/hosts存放的是域名与ip的对应关系,域名与主机名没有任何关系,你可以为任何一个IP指定任意一个名字。

root@itcast:~# vim /etc/hosts

9、设置临时代理科学上网

代理端口为7890,那么应该设置为

export http_proxy="http://121.17.174.121:17890"

export https_proxy="http://121.17.174.121:17890"

如果是要停用http代理需要使用:

unset http_proxy

unset https_proxy

10、更新软件包列表

首先,我们需要更新软件包列表,以确保我们使用的是最新的软件版本。在终端中输入以下命令:sudo apt update

apt-get upgrade

11、安装lrzsz

apt install lrzsz

标签: none

添加新评论