本帖最后由 redwine950 于 2023-3-25 14:28 编辑
N1&Armbian之间的爱恨情仇
作者:yeyu999999(恩山ID:redwine950)
版本:Linux 5.15.103-flippy-82+o Debian 11 Bullseye
前言:这个帖子是个缝合怪。作者没啥技术,只知道扒帖子,然后就磕磕绊绊的刷起来了。然后把,我也不下想造轮子,直接放上链接更省事。
1. N1降级
全新的N1是要降级的,刷过的不要。
判断方式:你的N1盒子是不是除官方之外的系统。如果是,那就不需要降级了;如果是官方给的系统,大概率是要降级。
@dky666【3月29日后加视频教程】N1降级刷OP及设置旁路由【小白专属】 https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=3348254&highlight=N1%BD%B5%BC%B6
2.Armbian镜像
版本:Armbian_23.05.0_amlogic_s905d_bullseye_5.15.103_server_2023.03.21
地址:https://github.com/ophub/amlogic-s9xxx-armbian/releases
说明:https://github.com/ophub/amlogic ... b/main/README.cn.md
文档:https://github.com/ophub/amlogic ... uments/README.cn.md
软件:https://github.com/ophub/amlogic ... armbian_software.md
3.烧录
烧录工具:balenaEtcher https://www.balena.io/etcher
教程和固件:YYF http://www.yyfrom.com/cms/
Note:第一步降级的链接,烧录op的方式也可以烧录armbian,只是写入emmc的脚本不一样。
@weiding920 ★★★自从我玩N1 armbian以来踩过的各种坑,有辛酸也有欢乐,感恩恩山★★★ https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=4067398&highlight=N1%2Barmbian
@gzwyq 小白折腾了几天刷N1,稍总结下N1刷机和N1救砖,大神略过 https://www.right.com.cn/forum/thread-480477-1-4.html
4.写入EMMC
- 1. armbian-install # 将引导写入emmc;ophub的文档有说明。
复制代码
5.添加armbian显示信息脚本
@lupo armbian显示系统信息的脚本 https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=1312285&highlight=armbian%2B%CF%D4%CA%BE%2B%D0%C5%CF%A2
Note:帖子开篇说了一种代码,#7又说了一种代码。两种脚本出来的显示样式不一样,取喜欢的一种就行。
6.换清华源(或者你会购物头)
清华源地址:https://mirrors.tuna.tsinghua.edu.cn/help/debian/
- # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
- deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
- # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
- deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
- # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
- deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
- # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
- # deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
- # # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
- deb https://security.debian.org/debian-security bullseye-security main contrib non-free
- # deb-src https://security.debian.org/debian-security bullseye-security main contrib non-free
复制代码
7.安装docker
ophub的文档有说明 https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/documents/armbian_software.md
- armbian-softwoare # 运行软件列表,根据软件列表填写数字去安装
复制代码
8.U盘扩容
目前找到的教程有三个帖子,我才用的是第一个帖子。
@daniel.chan.cn n1盒子 U盘扩容法 解决其安装armbian之后使用docker和宝塔的空间不足问题 https://www.right.com.cn/forum/thread-4066384-1-1.html
@babylf n1刷armbian迁移docker到移动硬盘、挂网心云、装omv记录贴 https://www.right.com.cn/forum/thread-8243170-1-3.html
ophub的文档有说明TF/SD/USB三种外设的教程 https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/README.cn.md#%E5%9C%A8-tfsdusb-%E4%B8%AD%E4%BD%BF%E7%94%A8-armbian
9. 安装wordpress
搭建这个需要LNMP的环境,由于已经U盘扩容并且docker已经迁移进去了,不想占用N1那可怜的内存。就用docker去安装wordpress,省点内存。
参考教程:
https://blog.csdn.net/WANTAWAY314/article/details/116454230
https://www.jianshu.com/p/1d0d803bd949
https://blog.csdn.net/zero_only/article/details/107567135
- 1. armbian-software # 脚本的软件列表 102 可以安装porrainer
复制代码
想法&准备:
、图床、书站、监控、frp、电影站。。。。目前就能想起这些,慢慢弄,慢慢更新。
问题1:25号上午,出现了一次ssh的问题。【未解决】
场景:ping 正常,portainer正常。
ssh提示:Remote side unexpectedly closed network connection
系统log:没有记录ssh service 异常活动。
目前能搜到的解决办法:重启ssh service,重启服务器。或者,增加一个VNC。
|