Android上免root安装Linux

准备工作 Link to heading

安装Termux 下载地址:官方 国内

建议将Termux软件源替换为国内,参考Termux编辑软件源

安装Linux系统 Link to heading

安装ubuntu pkg install wget openssl-tool proot -y && hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Ubuntu/ubuntu.sh && bash ubuntu.sh

源地址无法访问,国内可使用http://unixetc.com/res/ubuntu.sh替换。

安装完成后使用./start-ubuntu.sh启动进入系统。

替换ubuntu port软件源并更新系统

sed -i 's,http://ports.ubuntu.com/ubuntu-ports,http://mirrors.ustc.edu.cn/ubuntu-ports,' /etc/apt/sources.list
apt update&&apt upgrade -y

安装桌面环境 Link to heading

安装xfce

wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Xfce4/de-apt-xfce4.sh && bash de-apt-xfce4.sh

源地址无法访问,国内可使用http://unixetc.com/res/de-apt-xfce4.sh替换。

安装mate

wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/Mate/de-apt-mate.sh && bash de-apt-mate.sh

源地址无法访问,国内可使用http://unixetc.com/res/de-apt-mate.sh替换。

安装lxqt

wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/LXQt/de-apt-lxqt.sh && bash de-apt-lxqt.sh

源地址无法访问,国内可使用http://unixetc.com/res/de-apt-lxqt.sh替换。

安装lxde

wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/DesktopEnvironment/Apt/LXDE/de-apt-lxde.sh && bash de-apt-lxde.sh

源地址无法访问,国内可使用http://unixetc.com/res/de-apt-lxde.sh替换。

开启SSH登录 Link to heading

安装开启SSH

wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/SSH/Apt/ssh-apt.sh && bash ssh-apt.sh

源地址无法访问,国内可使用http://unixetc.com/res/ssh-apt.sh替换。