Giter Site home page Giter Site logo

ubuntu-in-termux's Introduction

ubuntu-in-termux

DISCORD

What's This?

This is a script that allows you to install Ubuntu in your termux application without a rooted device

Updates

• Updated to ubuntu 22.04

Important

• If you have to use ubuntu in termux with a x86/i*86 architecture or prefer ubuntu 19.10 you can use this branch -> https://github.com/MFDGaming/ubuntu-in-termux/tree/ubuntu19.10

• If you get an error message that says "Fatal Kernel too old" you have to uncomment the line that reads "command+=" -k 4.14.81"" (remove the # that is located in front of the line) in the "startubuntu.sh" file

Installation steps

  1. Update termux: apt-get update && apt-get upgrade -y
  2. Install wget: apt-get install wget -y
  3. Install proot: apt-get install proot -y
  4. Install git: apt-get install git -y
  5. Go to HOME folder: cd ~
  6. Download script: git clone https://github.com/MFDGaming/ubuntu-in-termux.git
  7. Go to script folder: cd ubuntu-in-termux
  8. Give execution permission: chmod +x ubuntu.sh
  9. Run the script: ./ubuntu.sh -y
  10. Now just start ubuntu: ./startubuntu.sh

ubuntu-in-termux's People

Contributors

estebanvz avatar gl513 avatar mdsremon avatar mfdgaming avatar slonkazoid avatar z4npu90 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  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

ubuntu-in-termux's Issues

Proot can't change root directory

proot warning: can't sanitize binding "ubuntu-fs/tmp": 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/ubuntu-in-termux/ubuntu-fs, cwd = /, $PATH=(null))
fatal error: see proot --help.

question about proot & pie

I'm a bit confused.

after my note 8 was upgraded to pie, all my proot ubuntu installations were broken, as I couldn't "apt update" anymore. l was told it was proot.

To my surprise, I installed your ubuntu and everything is working fine....

Fatal error proot help

This is my error:proot warning: can't sanitize binding "ubuntu-fs/tmp": 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/ubuntu-in-termux/ubuntu-fs, cwd = /, $PATH=(null))
fatal error: see proot --help.
$

Apt upgrade issue

how to I resolve this issue
Setting in Start via TCSAFLUSH for stdin failed! - tcsetattr (13: Permission denied)
Also I hope the dpkg warning doesn't do have:
Preparing to unpack .../archives/apt_1.8.1_arm64.deb ...
Unpacking apt (1.8.1) over (1.8.0) ...
dpkg: warning: symbolic link '/usr/lib/aarch64-linux-gnu/libapt-private.so.0.0' size has changed from 26 to 23
dpkg: warning: symbolic link '/usr/lib/apt/methods/https' size has changed from 18 to 4
dpkg: warning: symbolic link '/usr/lib/apt/methods/mirror+copy' size has changed from 18 to 6
dpkg: warning: symbolic link '/usr/lib/apt/methods/mirror+file' size has changed from 18 to 6
dpkg: warning: symbolic link '/usr/lib/apt/methods/mirror+ftp' size has changed from 18 to 6
dpkg: warning: symbolic link '/usr/lib/apt/methods/mirror+http' size has changed from 18 to 6
dpkg: warning: symbolic link '/usr/lib/apt/methods/mirror+https' size has changed from 18 to 6
dpkg: warning: symbolic link '/usr/lib/apt/methods/ssh' size has changed from 18 to 3
dpkg: warning: symbolic link '/usr/lib/apt/planners/dump' size has changed from 18 to 15
dpkg: warning: symbolic link '/usr/share/doc/apt/NEWS.Debian.gz' size has changed from 34 to 31
dpkg: warning: symbolic link '/usr/share/doc/apt/changelog.gz' size has changed from 34 to 29
Setting up apt (1.8.1) ...

proot i/o error

When I run vncserver on Huawei Honor device, the console terminates vncserver (i can't connect remote desktop) and output proot i/o error message like this:
Screenshot_20190515_090301_com termux
However, when i do same thing on ubuntu 18.04 in termux, it runs normally and i can connect successfully.
Can anybody help me? thanks.

ALSA Error in Ubuntu chroot

I'm getting the following error message when I use espeak , espeak "Hello World!"

ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM sysdefault
...

Using mpv or festival will also get ALSA errors.
However, these tools work fine in termux.
Could anyone give me a hand ?

why symlink is not working

I tried symlinking start.sh file to /bin
Still it can't start. The file is linked but can't execute. Can we make start.sh executable from anywhere?
Thank you for the work!

./startubuntu.sh

script executed successfully
But running ./startubuntu.sh come with t'his error
"./startubuntu.sh
proot warning: can't sanitize binding "ubuntu-fs/tmp": 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/ubuntu-fs, cwd = /, $PATH=(null))
fatal error: see proot --help. "
I have tried running the script severally,same error
Pls what can do...

proot warning

Hi
I met this issue when I run the last command ./start.sh

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

Start error

When i type
$ ./start.sh
I get following error

/usr/bin/env: '/bin/bash': No such file or directory
Can any one help me

Error: Invalid system call

Hey. A binary file compiled with static libraries in this Ubuntu, run in other applications only on android 5-7. I tried to run the program compiled by gcc-9 from Ubuntu in another terminal emulator, it produces this error: invalid system call. On android 6.0 marshmallow, everything works fine. Is there any way to fix this? Thanks.

Access sdcard or storage from the root@localhost:~#

Pls how do I access my system storage or sdcard from the ubuntu terminal.
root@localhost:# ls -la
total 40
drwx------. 2 root root 4096 Aug 31 07:11 .
drwx------. 21 root root 4096 Aug 31 09:10 ..
-rw-------. 1 root root 148 Aug 31 09:01 .bash_history
-rw-------. 1 root root 3106 Aug 6 2018 .bashrc
-rw-------. 1 root root 148 Aug 6 2018 .profile
root@localhost:
#
Just like this in the termux terminal
root@localhost:~# exit
logout
$ cd
$ pwd
/data/data/com.termux/files/home
$ ls
storage ubuntu
$

Proof error

Each time I try to do ./startubuntu.sh I get proot
error
$ ./startubuntu.sh
proot warning: can't sanitize binding "ubuntu-fs/tmp": 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/ubuntu-in-termux/ubuntu-fs, cwd = /, $PATH=(null))
fatal error: see proot --help.

I also tried connecting to a vpn it still doesn't work. Any fixes for this?

Unable to delete ubuntu-in-termux directory and its sub-directories

Hello,

I've just uninstalled the ubuntu-in-termux by running rm -rf ubuntu-in-termux to remove its directory. However, the directory is still present and wasn't removed and zsh displays exit code 1 after running that command. By exploring sub-dirs., it turned out that I don't have any permissions to read from or write on there. That little dir. really bugs me and I don't know how to remove that. Did I uninstall ubuntu-in-termux correctly?

PRoot problems

After the security patch of June the proot give error saying that some files don't exists, almost like you never created a proot

We are Hiring - Earn Rs.15000/- Per month - Simple Copy Paste Jobs

Earn Rs.25000/- per month - Simple online Jobs - Are You Looking for Home-Based Online Jobs? - Are You a Student, Housewife, jobseeker ? - Are you ready to Work 1 to 2 Hours daily Online? - Do You need Guaranteed Payment Monthly? Then this is for You, - Clicking on their Advertisement E-mails. - Submitting their Data's online. - Reading their Advertisement Sms. - Filling Forms on their websites, etc,. FREE to Join >> http://dailyonlinejobs.com
DPJ4602162 20 09 2019 07:05:17

It has error when run ./startubuntu.sh

When I run ./startubuntu.sh, it report such error:

$ ./startubuntu.sh
proot warning: can't sanitize binding "/sys": No such file or directory
proot warning: can't sanitize binding "ubuntu-fs/tmp": No such file or directory
proot warning: can't sanitize binding "/sdcard": No such file or directory
proot warning: can't sanitize binding "/mnt": 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/ubuntu-in-termux/ubuntu-fs, 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.

Installation problem for i686

59156192-c546ab00-8ab4-11e9-943d-a97455986aa0-1-1
I reinstalled termux and again tryed to install ubuntu.but its does't worked.I followed every step perfectly.plz fix it

Android 9 git tcsetattr Permission denied

Hi,
I got an error while installing git package using

apt install git

it says ...

E: Setting in Start via TCSAFLUSH for stdin failed! - tcsetattr (13: Permission denied)

I hope you could help. Thanks.

Error in installing ubuntu in termux

I have done everything thing, proot git ,wget..installed Ubuntu but when i try to run that file it says........
proot warning: can't sanitize binding "ubuntu-fs/tmp": 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/ubuntu-in-termux/ubuntu-fs, cwd = /, $PATH=(null))
fatal error: see proot --help.

Plzzz help

Add gui support

I want to run opencv with ubuntu. How do I add a gui support.

Neofetch showing Incorrect uptime

Neofetch shows incorrect uptime from booting time.
Any ways to correct that.
Again executing "uptime" raise error "/proc not mounted"

Screenshot_20200428-174645

Error: mount: /sys/fs/cgroup: permission denied.

When I tried to start docker service, it's failed and got a error message "mount: /sys/fs/cgroup: permission denied.".
commands to reproduce

apt-get update
apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu disco stable"
apt install docker-ce docker-ce-cli
service docker start

It seems like I cannot change /sys/fs/cgroup in ubuntu-in-termux. And I found command+=" -b /sys" in ubuntu.sh which means /sys is linked to the real adroid system directory.
I want to know if I can ONLY set /sys/fs/cgroup to a temp directory that can be changed by user.
As android's kernel doesn't provide cgroups support, this change actually does not take effect to system but it can solve the problem such as lacking of some cgroups.

Device Info

Qualcomm Snapdragon 821 (MSM 8996 Pro)
Android 9.0 (Mokee ROM)
Linux localhost 3.18.140-mokee-g32d4dd5ec223 #1 SMP PREEMPT Sun Jan 5 03:53:43 CST 2020 aarch64 aarch64 aarch64 GNU/Linux
ubuntu19.10-in-termux

.

.

libssl1.0-dev package depreciated

Hello, thank you for your efforts. I need libssl1.0-dev and libssl1.0.2, but these are not available. Is it possible to add them to the packages? Or can I add them manually?

apt/apt-get not working with proxychains4

Hello, this Ubuntu-in-Termux is wonderful. Just wanted to point out some minor issues. I have set up a proxychains4 on my Ubuntu-in-termux to work with a socks5 proxy server. Most commands like wget, git and curl work fine with proxychains4. However installing packages with "proxychains4 apt install [package]" or "proxychains4 apt-get install [package]" is not working. It shows a strange bug trying to connect to port 0 on the repo url rather than port 80. I was able to remedy this issue by installing aptitude. Initially aptitude was also having an issue not wanting to update/upgrade/install throwing an error:
failed to rename /var/lib/aptitude/pkgstates to /var/lib/aptitude/pkgstates.old - save_selection_list (1: Operation not permitted)
What I did here was to create the file /var/lib/aptitude/pkgstates (it was missing).
Running "touch /var/lib/aptitude/pkgstates" did the trick. Then I had a functioning aptitude which surprisingly worked perfectly well with the "proxychains4" command. Thus I am able to install packages through socks proxy with commands like "proxychains4 aptitude install [package]". Just wanted to share this for others that might need to install packages through proxy on their awesome Ubuntu in Termux.

Basic commands not available once I'm root user

Hi,
I ran the commands without pb and I get "root@localhost:~#" when running the last one: ./startubuntu.sh

Pb: I don't even have nano installed anymore :
bash: nano: command not found

Do I have to reinstall all the packages?

Thank you.

Sorry for the possible dumb/linux newbie question :)

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.