Termux安装运行Debian

Jeed

1.换源、更新软件源

1
2
sudo sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
pkg up

2.安装必要依赖

1
2
pkg install proot
pkg install proot-distro

3.安装Debian系统:

1
proot-distro install debian
1
2
3
4
5
6
7
8
9
10
11
12
13
14
~ $ proot-distro install debian
[] Installing Debian...
[] Creating directory '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian'...
[] Creating directory '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/.l2s'...
[] Downloading rootfs tarball...% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 36.4M 100 36.4M 0 0 1665k 0 0:00:22 0:00:22 --:--:-- 1833k[] Checking integrity, please wait...
[] Extracting rootfs, please wait...
[] Creating file '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/etc/profile.d/termux-proot.sh'...
[] Creating file '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/etc/resolv.conf'...
[] Creating file '/data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/etc/hosts'...
[] Registering Android-specific UIDs and GIDs...
[*] Finished.Now run 'proot-distro login debian' to log in.

在Termux终端开启VNC:

1
vncserver-start
  • 标题: Termux安装运行Debian
  • 作者: Jeed
  • 创建于 : 2023-10-02 10:17:11
  • 更新于 : 2023-10-02 10:28:31
  • 链接: https://mlou.xyz/posts/termux-debian.html
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论
目录
Termux安装运行Debian