找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 4240|回复: 9

安装龙蜥Anolis OS(U盘)

[复制链接]

14

主题

2

回帖

127

积分

注册会员

积分
127
发表于 2024-11-28 23:46:31 | 显示全部楼层 |阅读模式
视频教程:https://www.bilibili.com/video/BV1aNzbY6EXz
网盘链接:https://pan.baidu.com/s/1pYVfVknpt0q_g7N51fTV_A?pwd=ABI2
123网盘链接:https://www.123865.com/s/UmNsjv-0zkod提取码:ABI2

1、镜像烧录(烧录到U盘)
将anolis-os-23-rootfs-99pi.tar.gz拷贝到久久派
(1)将U盘格式化为ext4格式
sudo mkfs.ext4 /dev/sda
(2)U盘分区(这里以16G U盘为例)
sudo fdisk /dev/sda
先分一个14G的ext4主分区
输入n再输入p
选择分区号,输入1
起始扇区直接默认回车
结束扇区输入+14G
再将剩余空间分给swap
输入n再输入p
选择分区号,输入2
起始和终止扇区都直接默认回车
(3)标记swap分区
在fdisk命令行下,输入t,输入分区2,输入分区类型码为82
(4)写入更改
在fdisk命令行下,输入w写入更改并退出(退出时,会显示分区的信息,我这里显示的是sda1,根据实际情况执行以下命令)
(5)格式化主分区
sudo mkfs.ext4 /dev/sda1
(6)挂载拷贝镜像
sudo mount /dev/sda1 /mnt
sudo cp anolis-os-23-rootfs-99pi.tar.gz /mnt
cd /mnt
sudo tar -zvxf anolis-os-23-rootfs-99pi.tar.gz -C /mnt/ && sync
sudo rm anolis-os-23-rootfs-99pi.tar.gz && cd .. && sudo umount /mnt

2、烧写并配置u-boot
(1)烧写u-boot
-开发板网口跟电脑网口用一根网口对插上。
-开发板串口连接到电脑,然后打开电脑串口终端。
-给开发板上电然后不停地快速按键盘上的c键,小写的c,然后就会进入pmon命令行终端.
-在终端输入ifaddr syn0 192.168.2.2     //192.168.2.2根据实际情况设置,需要跟电脑本地网口一个网段。
-将u-boot-spl-gz.bin跟tftpd32放一个目录下,然后点击tftpd32运行ftp服务器。tftpd32.exe群文件里面有
-在开发板终端输入fload tftp://192.168.2.10/u-boot-spl-gz.bin      //192.168.2.10是电脑的网口IP地址
-等待更新结束,更新的过程千万别断电或者重新启动。
-更新结束后,按开发板重启按钮,等待终端出现SOC字样说明更新固件成功。
(2)配置为U盘启动
开机狂按c进入配置界面
setenv bootargs root=/dev/sda1 rootdelay=5
(3)手动启动系统
ext4load usb 0:1 ${loadaddr} boot/uImage
bootm ${loadaddr}
(4)设置自动启动系统
setenv bootargs root=/dev/sda1 rootdelay=5
setenv bootcmd 'ext4load usb 0:1 ${loadaddr} boot/uImage;bootm ${loadaddr}'
saveenv

3、常规配置
(1)进入系统
root/loong
loong/loong (允许sudo)
修改提示符样式(默认状态的提示符显示路径不全)
sudo nano /etc/profile
添加以下内容
export PS1='\u@\h:\w\$ '
然后立即生效
source /etc/profile
(2)如果划分了swap,让swap生效
sudo mkswap /dev/sda2
sudo swapon /dev/sda2
sudo nano /etc/fstab
添加以下内容(如果系统在emmc,需要修改为/dev/mmcblk0p2 none swap sw 0 0)
/dev/sda2 none swap sw 0 0
(3)关掉审计信息
系统默认每次操作都会打印一堆信息,如果不想要,可以关掉
sudo nano /etc/sysctl.conf
在文本末尾添加kernel.auditd_enabled = 0
应用更改sudo sysctl -p
sudo systemctl enable auditd
(4)配置网络
nmcli con show查看一下当前绿色的有线网络设备,记住NAME(绿色的代表已连接设备)我这里默认是Wired connection 1
sudo nmcli c modify "Wired connection 1" \
ipv4.addresses "192.168.1.150/24" \
ipv4.gateway "192.168.1.1" \
ipv4.dns "192.168.1.1,8.8.8.8" \
ipv4.method "manual"
设置完毕重启网络sudo nmcli connection up "Wired connection 1"
(5)更新源和软件(时间有点久)
sudo yum update
(6)安装常用编译环境
sudo yum install autoconf automake gcc gcc-c++ ncurses-devel cmake clang
(7)安装常用软件
网络sudo yum install net-tools
文件编辑sudo yum install nano
git工具sudo yum install git
下载工具sudo yum install wget
解压工具sudo yum install tar unzip zip
pip安装sudo yum install python3-pip
系统信息工具
git clone https://www.github.com/dylanaraps/neofetch
cd neofetch
sudo make install
系统监控工具
wget https://github.com/htop-dev/htop ... 0/htop-3.3.0.tar.xz
tar -xJvf htop-3.3.0.tar.xz && cd htop-3.3.0
./autogen.sh && ./configure && make
sudo cp htop /usr/bin

13

主题

68

回帖

735

积分

超级版主

积分
735
发表于 2024-11-29 15:05:50 | 显示全部楼层
大佬高产出

0

主题

3

回帖

36

积分

新手上路

积分
36
发表于 2025-8-7 23:59:12 | 显示全部楼层
看明白了:
1. 在 U 盘分区,把 rootfs 放到 U 盘上。
2. 刷机,把 pmon 换成 uboot。
3. 在 uboot 中修改启动项,指定从 U 盘载入 rootfs 和 zImage

想请问一下,这个 龙蜥Anolis OS 能用源更新和安装软件么?

0

主题

1

回帖

4

积分

新手上路

积分
4
发表于 2025-12-16 22:18:57 | 显示全部楼层

Advice for fitting landing treads correctly.






Tips for Maintaining and Caring for Materials

Maintaining the resources used in your endeavors is crucial to making them endure. Whether you’re working with wood, stone, metal, or other components, knowing how to properly care for them can help you avoid spending time and money in the long run.

For wood components, especially outdoors, regular upkeep and sealing are key to maintaining them from rain and rot. Coating with a wood cleaner and adding sealant every few years will help the durability of decks, fences, or wooden furniture. Limiting direct touch with soil or standing water can also prevent damage over time.

Stone resources, like pavers or pathways, may appear durable, but they still call for attention. Regular brushing off and hosing off dirt can preserve them clean, and sealing the stone can ensure chipping or fading from sun exposure. For plant growth buildup, a mild cleaner and brush can get them looking clean again.

Metal, commonly utilized in outdoor furniture or fixtures, can rust if not properly cared for. Regularly using a protective coating or using rust-proof paint can protect metal in strong condition. For smaller items, easily brushing them off and storing them during harsh weather can minimize corrosion.

By dedicating a little time to preserve these resources, you can make sure that your works stay beautiful and functional for years to come. Regular upkeep, along with using good components, will spare you from needing to make expensive repairs or replacements over time.



https://americanstoneandtimber.wordpress.com/2025/12/14/best-pennsylvania-bluestone-pavers-patios-walkways-2025/

Looking into the green gains of using real stones. b987780

0

主题

6

回帖

14

积分

新手上路

积分
14
发表于 2025-12-21 12:23:34 | 显示全部楼层

электрокарниз

электрокарнизы для штор электрокарнизы для штор .

0

主题

6

回帖

14

积分

新手上路

积分
14
发表于 2025-12-21 12:24:30 | 显示全部楼层

электрокарниз


электрокарнизы электрокарнизы .

0

主题

6

回帖

14

积分

新手上路

积分
14
发表于 2025-12-21 12:26:19 | 显示全部楼层

электрокарниз

elektrokarniz_k ??? 2025-12-21 12:23
электрокарнизы для штор электрокарнизы для штор .

электрокарниз купить электрокарниз купить .

0

主题

6

回帖

14

积分

新手上路

积分
14
发表于 2025-12-21 12:27:39 | 显示全部楼层

электрокарниз

elektrokarniz_k ??? 2025-12-21 12:26
электрокарниз купить электрокарниз купить .

карниз с приводом elektrokarniz6.ru .

0

主题

6

回帖

14

积分

新手上路

积分
14
发表于 2025-12-21 12:29:41 | 显示全部楼层

электрокарниз

карниз для штор с электроприводом карниз для штор с электроприводом .

0

主题

6

回帖

14

积分

新手上路

积分
14
发表于 2025-12-21 12:30:32 | 显示全部楼层

электрокарниз

elektrokarniz_k ??? 2025-12-21 12:29
карниз для штор с электроприводом карниз для штор с эл ...

карниз моторизованный elektrokarniz6.ru .
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|深圳中科云信息技术有限公司

GMT+8, 2026-2-1 22:18 , Processed in 0.021502 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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