admin 管理员组文章数量: 1184232
目录
1. 前言
2. 效果图展示
3. 安装termux
4. 安装Centos系统
4.1 更换源
4.2 拉取镜像
4.3 启动centos
5.结尾
1. 前言
大家好,我是jiaoxingk
今天这篇文章让你能够在手机或者平板上使用Linux-Centos系统
让你随时随地都能操作命令行进行装13
2. 效果图展示
3. 安装termux
废话不多说,咋们直接开干!
首先下载termux,并且安装到手机或者平板上面:
链接:https://pan.baidu/s/1LUhUqHyevYfuIYXjpf1oUQ
提取码:yrcf
4. 安装Centos系统
安装完之后,应该是这样的:
4.1 更换源
我们先更换源,加速下载
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu/termux/termux-packages-24 stable main@' $PREFIX/etc/apt/sources.list
sed -i 's@^\(deb.*games stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu/termux/game-packages-24 games stable@' $PREFIX/etc/apt/sources.list.d/game.list
sed -i 's@^\(deb.*science stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu/termux/science-packages-24 science stable@' $PREFIX/etc/apt/sources.list.d/science.list
pkg update
4.2 拉取镜像
先安装依赖:
pkg install proot git python -y
接着执行:
git clone https://github/sqlsec/termux-install-linux
cd termux-install-linux
python termux-linux-install.py
此时会出现这种:
我们选择7就好了,然后等待安装完成
4.3 启动centos
等待安装完成后,我们ctrl + c退出
依次执行:
cd ..
cd Termux-Linux/
cd CentOS
最后执行
./start-centos.sh
ok,当显示出[root@localhost]就算成功啦
5.结尾
通过本篇文章,你就可以愉快地操作Centos系统了。
本文标签: 系统 鸿蒙 Termux Linux centos
版权声明:本文标题:鸿蒙系统和安卓系统通过termux搭建Linux系统—Centos 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1766138379a3440856.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论