找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5051|回复: 9

[N1盒子] N1或杰赛S65(S905)安装centos8教程

[复制链接]
发表于 2021-6-13 19:00 | 显示全部楼层 |阅读模式
本帖最后由 gzxief 于 2021-6-13 19:18 编辑

最近在玩S905盒子系统,有armbain、centos7,想玩玩cenos8,但是在恩山或百度都没找到安装S905的centos8的文章,只有fedora的
然后在百度看了一篇arm64(aarch64)安装centos 7.5.1804的文章,https://blog.csdn.net/feixiang3839/article/details/80857138
于是参照这个文章自己弄一个centos8
下载CentOS-8.3.2011-aarch64-minimal.iso(我在阿里云下载https://mirrors.aliyun.com/centos-vault/8.3.2011/isos/aarch64/
U盘启动armbian(U盘大于等于16G)
解压CentOS-8.3.2011-aarch64-minimal.iso,找到images文件夹的install.img,这个文件还不能用,上传到 armbian的root目录下,也可以mount 一次CentOS-8.3.2011-aarch64-minimal.iso得到install.img
mkdir /mnt/{root,img,img2}
e2fsck -y /dev/mmcblk1p2
mount /dev/mmcblk1p2 /mnt/root
cd /root
mount install.img /mnt/img   
cd /mnt/img/LiveOS/
mount rootfs.img /mnt/img2
cd /mnt/root
rm -rf *
cd /root
rsync -av /mnt/img2/ /mnt/root/
cd /mnt/root/
rm -rf etc/systemd/system/default.target
ln -s usr/lib/systemd/system/multi-user.target etc/systemd/system/default.target
cd  /mnt/root/root

解压CentOS-8.3.2011-aarch64-minimal.iso,BaseOS/Packages目录与dnf相关的rmp包(我这里9个包)上传到/mnt/root/root下

新建一个sh运行文件(dnf9个rmp包)
vim dnf.sh
rpm2cpio 文件名和后缀|cpio -idumv
例如:rpm2cpio dnf-4.2.23-4.el8.noarch.rpm|cpio -idumv
保存退出

chmod +x dnf.sh
新安装是没有网络,配置eht0网络
vim /mnt/root/etc/sysconfig/network-scripts/ifcfg-eth0

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eth0
UUID=12458f96-f7f6-4b80-8b95-b166ba31b13e
DEVICE=eth0
ONBOOT=yes

保存退出

cd /mnt/root/etc/
mkdir yum.repos.d
cd yum.repos.d
vim CentOS-BaseOS.repo

# CentOS-BaseOS.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client.  You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[baseos]
name=CentOS Linux $releasever - BaseOS
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
baseurl=https://mirrors.aliyun.com/centos-vault/8.3.2011/BaseOS/aarch64/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

保存退出

cd /mnt/root/root
先建立好sshd_config文件,不然安装完openssh,是没有sshd_config文件的(参照这里的文件建立sshd_config,https://www.cnblogs.com/light-zhang/p/9034588.html)
vim sshd_config
cd /mnt
umount root
umount img2
umount img
reboot
拔掉U盘
进去系统 没有密码
cd /root
bash dnf.sh
等不动时候,回车
现在就有dnf了
dnf makecache
先安装yum
dnf install yum
yum install openssh
cd /root
mv sshd_config /etc/ssh
service ssh restart
service sshd restart
然后就可以用电脑登录ssh了,再安装各类软件了,passwd vim wget等等

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 1恩山币 +1 收起 理由
5asd*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2021-6-13 19:44 | 显示全部楼层
建议安装完yum就安装passwd后,设置密码,再安装openssh,不然要改sshd_config,登录为空密码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2021-6-13 20:05 | 显示全部楼层
service ssh restart
service sshd restart
如果这两个命令无法运行,就直接reboot就好了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-6-13 20:18 | 显示全部楼层
弄个打包镜像就方便多了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-6-13 21:34 | 显示全部楼层
支持一个!我很看好你哦,跟我学挖掘机控制电脑炒菜吧!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-7-25 23:05 | 显示全部楼层
想试试,一看头又大
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-7-28 22:00 | 显示全部楼层
期待打包镜像
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-7-30 01:49 来自手机 | 显示全部楼层
大佬能打包不
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-9-1 14:13 | 显示全部楼层
感谢分享,很详细的步骤
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-4-22 09:25 | 显示全部楼层
s905l3a可以安装centos么???
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 04:49

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表