Giter Club home page Giter Club logo

atilo's Introduction

Atilo

A program to install linux on termux

Test

中文用户点击这里

Installation

echo "deb [trusted=yes arch=all] https://yadominjinta.github.io/files/ termux extras" >> $PREFIX/etc/apt/sources.list.d/atilo.list
apt update && apt install atilo

Usage

atilo [command] [Arguments]
Atilo           2.0
Usage: atilo [Command] [Argument]

Atilo is a program to help you install some GNU/Linux distributions on Termux.

Commands:
images           list available images
remove           remove installed images
pull             pulling an image
run              run an image
clean            clean tmps
help             show this help.

Support Linux

Distribution aarch64 arm x86_64 i686
Alpine
CentOS × ×
Debian
Fedora ×
Kali
openSUSE × ×
Ubuntu

GUI

Using GUI on termux

Group

Telegram:Termux Group ZH_CN

Relate Projects

EXALAB/AnLinux-App: APP to help install Linux on termux.
sdrausty/TermuxArch: Arch install script
Neo-Oli/termux-ubuntu: Ubuntu chroot on termux
Hax4us/Nethunter-In-Termux: Install Kali nethunter (Kali Linux) in your termux application without rooted phone
nmilosev/termux-fedora: A script to install a Fedora chroot into Termux
sp4rkie/debian-on-termux: Install Debian 9 (stretch) on your Android smartphone

Hax4us/TermuxAlpine: Use TermuxAlpine.sh calling to install Alpine Linux in Termux on Android

atilo's People

Contributors

dependabot[bot] avatar latticeladder avatar pernat1y avatar urain39 avatar wangxiaoeryah avatar yadominjinta avatar z5x67280 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atilo's Issues

执行

pkg in atilo-cn
的时候
返回Malformed line 1 in source list /data/data/com.termux/files/usr/etc/apt/sources.list (type)
E: The list of sources could not be read.

can't start kali with termux on Huawei P30

$ startkali
proot warning: can't sanitize binding "/sdcard": No such file or directory
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /home/.atilo/kali, cwd = /, $PATH=(null))
fatal error: see proot --help.
proot error: trying to remove a directory outside of '/data/data/com.termux/files/usr/tmp', please report this error.
$

terminated with signal 11

proot info: vpid 1: terminated with signal 11
[ 全部完成 ]
startubuntu 以开始
$ startubuntu
:proot info: vpid 1: terminated with signal 11

Debian Arch 等发行版错误相同。

Xiaomi Mi 4,Android 8.1

Ubuntu使用sudo报错

sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: unable to load /usr/lib/sudo/sudoers.so: /usr/lib/sudo/sudoers.so: cannot stat shared object: Bad file descriptor
sudo: fatal error, unable to load plugins

i

ubuntults
$ atilo install arch
[ Checking for requirements ... ]
[ Downloading ... ]
curl: (48) An unknown option was passed in to libcurl
[ Extracting ... ]
pv: arch: No such file or directory
[ Configuring ...]
/data/data/com.termux/files/usr/bin/atilo: line 268: /data/data/com.termux/files/home/.atilo/arch/etc/resolv.conf: No such file or directory
/data/data/com.termux/files/usr/bin/atilo: line 269: /data/data/com.termux/files/home/.atilo/arch/etc/profile: No such file or directory
[ Upgrading ... ]
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.atilo/arch, cwd = /, $PATH=(null))
fatal error: see proot --help.
[ All done ]
startarch To start

pie upgrade

yesterday my note 8 upgraded to Pie.

did it break atilo?

atilo

用atilo装的archlinux无法使用makepkg

Android系统版本6.0.1
未root
termux为最新版本,内部包也是更新到最新了
本来就为了aur用的archlinux,结果makepkg都用不了
makpkg运行时不停报

/usr/share/makepkg/util/pkgbuild.sh:行69: /dev/fd/62: 没有那个文件或目录

/usr/share/makepkg/source/file.sh:行44: /dev/fd/62: 没有那个文件或目录

大概搜了一下隔壁TermuxArch好像也有这样的问题

sudo

关于使用sudo

在ubnutu系统下,无法使用sudo

using gui on alpine

After using atilo to install alpine, I found this article:
https://www.hax4us.com/2018/12/setup-basic-gui-in-termuxalpine.html

But it gets an error, after the last step "DISPLAY=:1 xfce4-terminal &", I get "D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open /etc/machine-id: no such file or directory", and when I launch the vnc client, all I get is black screen and a mouse cursor. I notice in the article, you refer to your other script for installing alpine - https://github.com/Hax4us/TermuxAlpine. So, I'm confused, which of your two install scripts should I use?

issue

/data/data/com.termux/files/usr/bin/atilo: line 282: /data/data/com.termux/files/home/.atilo/ubuntu/etc/resolv.conf: No such file or directory
/data/data/com.termux/files/usr/bin/atilo: line 283: /data/data/com.termux/files/home/.atilo/ubuntu/etc/profile: No such file or directory
/data/data/com.termux/files/usr/bin/atilo: line 287: etc/apt/sources.list: No such file or directory
[ 升级中 ... ]
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.atilo/ubuntu, cwd = /, $PATH=(null))
fatal error: see proot --help.

安装tigervnc-server时报错

前面安装fedora正常,并且startfedora了。
但安装tigervnc-server时报错了,请教一下能不能解决,谢谢。
(64/66): mesa-libGL-18.0.5-4.f 436 kB/s | 182 kB 00:00
(65/66): mesa-dri-drivers-18.0 431 kB/s | 11 MB 00:25
(66/66): llvm-libs-6.0.1-8.fc2 426 kB/s | 14 MB 00:33

Total 761 kB/s | 39 MB 00:53
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : perl-Exporter-5.72-396.fc28.noarc 1/66
Installing : perl-Carp-1.42-396.fc28.noarch 2/66
Installing : perl-libs-4:5.26.2-414.fc28.aarch 3/66
Error unpacking rpm package perl-libs-4:5.26.2-414.fc28.aarch64
Error unpacking rpm package perl-libs-4:5.26.2-414.fc28.aarch64
error: unpacking of archive failed on file /usr/lib64/libperl.so.5.26;5beee106: cpio: symlink
Installing : libICE-1.0.9-12.fc28.aarch64 4/66
Error unpacking rpm package libICE-1.0.9-12.fc28.aarch64
Error unpacking rpm package libICE-1.0.9-12.fc28.aarch64
error: perl-libs-4:5.26.2-414.fc28.aarch64: install failed
error: unpacking of archive failed on file /usr/lib64/libICE.so.6;5beee106: cpio: symlink
Installing : libstdc++-8.2.1-5.fc28.aarch64 5/66
Error unpacking rpm package libstdc++-8.2.1-5.fc28.aarch64
Error unpacking rpm package libstdc++-8.2.1-5.fc28.aarch64
error: libICE-1.0.9-12.fc28.aarch64: install failed
error: unpacking of archive failed on file /usr/lib64/libstdc++.so.6;5beee106: cpio: symlink
Installing : libSM-1.2.2-8.fc28.aarch64 6/66
Error unpacking rpm package libSM-1.2.2-8.fc28.aarch64
Error unpacking rpm package libSM-1.2.2-8.fc28.aarch64
error: libstdc++-8.2.1-5.fc28.aarch64: install failed
error: unpacking of archive failed on file /usr/lib64/libSM.so.6;5beee106: cpio: symlink
Installing : perl-Scalar-List-Utils-3:1.49-2.f 7/66
Error unpacking rpm package perl-Scalar-List-Utils-3:1.49-2.fc28.aarch64
Error unpacking rpm package perl-Scalar-List-Utils-3:1.49-2.fc28.aarch64
error: libSM-1.2.2-8.fc28.aarch64: install failed
error: unpacking of archive failed: cpio: mkdir failed - Permission denied
Installing : libxshmfence-1.3-1.fc28.aarch64 8/66
Error unpacking rpm package libxshmfence-1.3-1.fc28.aarch64
Error unpacking rpm package libxshmfence-1.3-1.fc28.aarch64
error: perl-Scalar-List-Utils-3:1.49-2.fc28.aarch64: install failed
error: unpacking of archive failed on file /usr/lib64/libxshmfence.so.1;5beee106: cpio: symlink
Installing : libXau-1.0.8-11.fc28.aarch64 9/66
Error unpacking rpm package libXau-1.0.8-11.fc28.aarch64
Error unpacking rpm package libXau-1.0.8-11.fc28.aarch64

请问怎么备份安装好的ubuntu18.04?

用了一个月,感觉很好。真是感谢作者!

想请教一下,如果以后换手机,如果还想把装好的ubuntu环境移到新手机的termux,要如何备份转移操作?

Folders access

How could I access folders of the phone by terminal? I am using the Debian.

错误

报错了怎么办啊proot warning: can't sanitize binding "/sdcard": No such file or directory
CANNOT LINK EXECUTABLE "/bin/bash": library "libandroid-support.so" not found
proot info: vpid 1: terminated with signal 6

能加上centeos吗

表示比较喜欢centos,但源上好像删了termux能用的那种,有什么解决方法没?另外你群号多少。。

Please consider add $LANG environment variable, and add /usr/local/ in $PATH

++ command+=" $LANG=C.UTF-8"
this could help display Asian characters correctly

-- command+=" PATH=/bin:/usr/bin:/sbin:/usr/sbin"
++ command+=" PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
user installed packages (not from the package manager, but compiled and installed by user himself) are usually in /usr/local/(bin or sbin)
Linux distributions usually have /usr/games and /usr/local/games in $PATH, but they are barely used...

Cant install ANY linux systems

I tried installing all of them but got the same error, here I tried kali

$ atilo install kali
[ Checking for requirements ... ]
[ Downloading ... ]
curl: (48) An unknown option was passed in to libcurl
[ Extracting ... ]
pv: kali: No such file or directory
[ Configuring ...]
/data/data/com.termux/files/usr/bin/atilo: line 268: /data/data/com.termux/files/home/.atilo/kali/etc/resolv.conf: No such file or directory
/data/data/com.termux/files/usr/bin/atilo: line 269: /data/data/com.termux/files/home/.atilo/kali/etc/profile: No such file or directory
[ Upgrading ... ]
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.atilo/kali, cwd = /, $PATH=(null))
fatal error: see proot --help.
[ All done ]
startkali To start

$ startkali
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.atilo/kali, cwd = /, $PATH=(null))
fatal error: see proot --help.

请问termux更新的时候报错是啥原因呢?是不是跟nghttp2有关

apt update

CANNOT LINK EXECUTABLE: could not load library "libcurl.so" needed by "/data/data/com.termux/files/usr/lib/apt/methods/https"; caused by could not load library "libnghttp2.so" needed by "libcurl.so"; caused by library "libnghttp2.so" not found
Reading package lists... Done
E: Method https has died unexpectedly!
E: Sub-process https returned an error code (1)
E: Method /data/data/com.termux/files/usr/lib/apt/methods/https did not start correctly
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/termux/dists/stable/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.

add i686 for the supported architecture

I have Toshiba Chromebook 2015 with Celeron CPU
Please, add i686 architecture to supported list.
When i run

$ atilo install alpine
[ Unknown architecture i686]

apt-get update报错

E: setgroups 65534 failed - setgroups (38: Function not implemented)
E: setegid 65534 failed - setegid (38: Function not implemented)
E: setegid 0 failed - setegid (38: Function not implemented)
E: setgroups 0 failed - setgroups (38: Function not implemented)
Reading package lists... Done
E: setgroups 65534 failed - setgroups (38: Function not implemented)
E: setegid 65534 failed - setegid (38: Function not implemented)
E: setegid 0 failed - setegid (38: Function not implemented)
E: setgroups 0 failed - setgroups (38: Function not implemented)
E: Method gave invalid 400 URI Failure message: Failed to setgroups - setgroups (38: Function not implemented)
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (112)
root@localhost:~#

百度找不到答案

I686

Asus z00ad
atilo install ubuntults
[ Unknown architecture i686]
$ atilo install centos
[ Unknown architecture i686]
$ atilo install debian
[ Unknown architecture i686]
$ atilo install fedora
[ Unknown architecture i686]
$ atilo install arch
[ Unknown architecture i686]
$ atilo install alpine
[ Unknown architecture i686]
$

一直卡在Processing triggers for systemd(239-13)

魅蓝note6 ,flyme6 ,base on Android 7.1.2
已经完全root(第三方rec刷了superuser),安装了busybox,f-droid版termux0.65,按照脚本执行无遗漏步骤,确认root已经授权给termux了
在Processing triggers for systemd(239-13)卡了6个小时,安装的是kali

Docker

can docker be installed under Kali?

thanks.

无法启动Ubuntu

复现过程

安装后startubuntu,显示

proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.atilo/ubuntu, cwd = /, $PATH=(null))
fatal error: see `proot --help`.

机型

华为P10 Android 8.0 未root
读写权限已开

Sent from my P10 using FastHub

Ubuntu:cannot get security labeling handle: No such file or directory

Flyme 6,ARM 64,apt install aptitude.

The following packages will be upgraded: perl-base
1 upgraded, 27 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B/10.2 MB of archives.
After this operation, 53.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing archive /var/cache/apt/archives/perl-base_5.22.19ubuntu0.3_arm64.deb (--unpack):
cannot get security labeling handle: No such file or directory
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

经查可能是 SElinux 问题,在 Linux_Delopy 应用中也有发生。

无法跑arch

我无法在termux下运行archlinux,具体如下:

$ atilo install arch
[ Checking for requirements ... ]
[ Downloading ... ]
-=O#- #  #   #
[ Extracting ... ]
0.00 B 0:00:00 [0.00 B/s] [<=>                                    ]
[ Configuring ...]
/data/data/com.termux/files/usr/bin/atilo: line 213: /data/data/com.termux/files/home/.atilo/arch/etc/resolv.conf: No such file or directory
/data/data/com.termux/files/usr/bin/atilo: line 214: /data/data/com.termux/files/home/.atilo/arch/etc/profile: No such file or directory
[ Upgrading ... ]
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.atilo/arch, cwd = /, $PATH=(null))
fatal error: see `proot --help`.
[ All done ]
startarch To start
$ startarch
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.atilo/arch, cwd = /, $PATH=(null))
fatal error: see `proot --help`.

还请dalao给看看是怎么回事

报错

proot warning: can't sanitize binding "/sdcard": No such file or directory

找不到tmp.html

atilo install ubuntu
[ 检查依赖中 ]
sed: tmp.html: No such file or directory
rm: can't remove 'tmp.html': No such file or directory
sed: tmp.html: No such file or directory
rm: can't remove 'tmp.html': No such file or directory
[ 正在下载中 ... ]
CANNOT LINK EXECUTABLE "curl": library "libz.so.1" not found
[ 解压中 ... ]
pv: ubuntu: No such file or directory
[ 配置中 ...]
/data/data/com.termux/files/usr/bin/atilo: line 282: /data/data/com.termux/files/home/.atilo/ubuntu/etc/resolv.conf: No such file or directory
/data/data/com.termux/files/usr/bin/atilo: line 283: /data/data/com.termux/files/home/.atilo/ubuntu/etc/profile: No such file or directory
/data/data/com.termux/files/usr/bin/atilo: line 287: etc/apt/sources.list: No such file or directory
[ 升级中 ... ]
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/.atilo/ubuntu, cwd = /, $PATH=(null))
fatal error: see proot --help.
[ 全部完成 ]
startubuntu 以开始

startubuntu后出现下面这些

groups: cannot find name for group ID 3003
groups: cannot find name for group ID 9997 groups: cannot find name for group ID 20132
groups: cannot find name for group ID 50132

现在没有影响使用,不知道有没有什么未知问题

怎样开机启动服务

比如安装了arch,那termux-boot开机启动后会执行.termux/boot下的文件,比如创建一个start-arch文件,在这个文件中加上startarch就可以开机启动arch了

那怎么自动启动arch里安装的服务?

蜜汁报错

bash: xmalloc: .././locale.c:81: cannot allocate 2 bytes (0 bytes allocated)

硬是没看明白图形界面那里的vim添加的代码

For Fedora

$ startfedora
dnf makecache
dnf install tigervnc-server
dnf groupinstall LXDE

for Debian

$ startdebian
apt update
apt install --no-install-recommands tigervnc-standalone-server lxde

启动Vnc

vncserver :1

与上面相同

Fedora

vim ~/.vnc/xstartup
--- exec /etc/X11/xinit/xinitrc
+++ exec startlxde
killall Xvnc
rm -rf /tmp/X1*
vncserver :1

Debian

vim /etc/X11/Xvnc-session
--- exec /etc/X11/Xsession "$@"
+++ exex startlxde
killall Xtigervnc # 这里进程名为Xtigervnc,与Fedora不同
rm -rf /tmp/.X1*

前几行的意思应该是安装tigervnc-server和lxde,但是后面的啥意思啊,看得我一脸懵逼:sweat_smile::sweat_smile:

未知架构

这个不支持x86_64吗?诺基亚n1安装时显示未知的架构

Failed on Android Pie

[ Upgrading ... ]
bash: xmalloc: .././shell.c:1709: cannot allocate 10 bytes (0 bytes allocated)
[ All done ]
startdebian To start
$ startdebian
bash: xmalloc: .././shell.c:1709: cannot allocate 10 bytes (0 bytes allocated)

Failed to install debian on Android Pie because of proot's bug termux/proot#52

安装kali时报错

默认安装会报fatal错误,看了下代码发现需要把./atilo/kali/kail-linux(好像这个?)重新命名并放到./atilo/kail这个位置,删掉原kali文件夹,安装完毕后,出现bash: xmlalloc:.././locale.c:81:cannot allocate 2 bytes (0 bytes allocated)错误,有人知道这个问题怎么解决么?

太奇怪了

curl "https://mirrors.tuna.tsinghua.edu.cn/lxc-images/images/debian/stretch/${time_arch}/default/" -o tmp.html
ttime=sed -n '7p' tmp.html | cut -d'>' -f2 | cut -d'<' -f1
rm tmp.html
aarch64=https://mirror.tuna.tsinghua.edu.cn/lxc-images/images/debian/stretch/arm64/default/${ttime}rootfs.tar.xz
arm=https://mirror.tuna.tsinghua.edu.cn/lxc-images/images/debian/stretch/armhf/default/${ttime}rootfs.tar.xz
zip=pJx
WARNING: linker: Unsupported flags DT_FLAGS_1=0x8
WARNING: linker: Unsupported flags DT_FLAGS_1=0x8
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:-- 0 0 0 0 0 0 0 0 --:--100 169 100 169 0 0 380 0 --:--:-- --:--:-- --:--:-- 379
[/workdir]▶ echo $aarch64
https://mirror.tuna.tsinghua.edu.cn/lxc-images/imagrootfs.tar.xzetch/arm64/default/
[
/workdir]▶

我把atlio获取debian url的命令单独拖出来运行,得到的结果如上。
我使用的是zsh,没用ohmyzsh.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.