Ubuntu-on-android

Android itself is a great operating system for smartphones. It gives you flexible controls and extensive customization options by installing 3rd party applications (APKs) from Play Store. While that’s incredibly easy but it comes with a privacy compromise.

Ubuntu-on-android

Termux Terminal Emulator running in Android Custom ROM, LineageOS 17.1

Almost every Android app these days asks for Phone’s Storage, Location and Camera access permissions which is questionable act and privacy nightmare.

This is where Ubuntu 20.04.1 (Command Line Interface) comes in. Ubuntu is a widely used distribution flavor of GNU Linux that is easy to use and compatible with many devices. By installing Ubuntu Linux on our Android phones we can simplify, automate and schedule many daily tasks and preserve the phone battery life at same time.

However, the requirement is that we must understand basic commands first, but don’t worry about that now.

Benefits of Installing Ubuntu on your Android phone

Here’s a short list of things that you can do after installing Ubuntu 20.04.1 through Termux (Terminal Emulator) for Android. The great things is that Rooting or Unlocking Bootloader or installing Recovery (e.g. TWRP) is not required.

https://www.youtube-nocookie.com/embed/_XAtV455Hws

• Ability to run + programs and scripts (.py)

• Run (crond) to automatically run Bash scripts/tasks at specified times.

• Make Bootable Windows 10 USBs for your Desktop PC

• Use download manager to download magnet links, get files multi-threaded/connections.

• Host Websites from your Android phone by installing Nginx, MYSQL and PHP

• Install Qbittorrent-nox (WebUI), Transmission WebUI to remotely download legal torrents

• Control your Phone from other devices on your LAN using SSH (openssh-server)

• You can automate your phone to capture a Picture at specific intervals using Termux API.

It is recommended that you use at least Android 6+ for this guide so you don’t get compatibility issues.

Download Termux app from Play Store. It is free and allows you to run Bash terminal where you can run Linux/Unix commands and execute bash scripts.

Ubuntu-on-android

Play Store page of Termux Emulator for Android

Once the installation is done, start Termux from your Launcher or Home Screen. You will be greeted with Black screen with some text, and sign. Don’t panic, it’s totally normal. Just Tap on $ sign and keyboard will pop-up. This is where we will type and enter commands.

Termux Launcher Icon on Android Home Screen on Android 10

The black screen, you are seeing is called Command Line Interface (CLI) or Terminal.

Now type the commands given below, after entering one command, wait for the process to complete and then proceed with the next. Some commands will output what is happening (Logs) some will not. Don’t worry when that happens. Don’t copy the $ sign, it is for reference only.

Ubuntu-on-android

Typing command into termux shell inside Android OS

$ apt update && apt upgrade

This command will update the software package list and upgrade the software afterwards. The sign we placed in between tells terminal to perform one task and then do the other.

$ apt install wget -y

Now that we have upgraded our Terminal packages. It is time to install . It is a file retriever like IDM but for command line, it can download content from many protocols.

$ apt install proot -y

$ apt install git -y

will help us clone the open-source script from Github. The script will be used for installing Ubuntu using on Termux.

$ cd ~ && git clone https://github.com/MFDGaming/ubuntu-in-termux.git && cd ubuntu-in-termux

The above command will open your $HOME directory and then clone (download) the script from git and then access the directory where it is cloned.

$ chmod +x ubuntu.sh

This command will execute and start the downloading and installation of Ubuntu 20.04.1 Root filesystem.

Note that this operating system is minimal and does not have desktop environment (GUI), such as XFCE. The reason we have installed the Ubuntu CLI is that it is not resource hogging and perfect for running on Mobile ARM64 / aarch64 supported CPUs.

Once the installation script has completed the process, now we run finally start the Ubuntu

To exit Ubuntu and go back to Termux Terminal, type

Few Basic Linux Commands

These commands are universal Linux commands, they can be entered in any GNU/Linux shell, regardless of distribution you are currently using. To utilize the Termux to its full potential, you must Google and learn Linux commands, they are really easy but dedication is required.

– Shows present working directory

shows the list of directories and files, including hidden files

– creates new directory in directory in pwd

– removes the file in pwd

– opens the directory

– Shows system information, Linux OS name, Kernel, Platform and so on

What to do after installing Ubuntu in Termux (Android)

0. Important Initial Step

It is a good practice to give Termux permission to internal storage of your phone.

1. First thing you must do is to update the repositories and upgrade the packages.

2. Install Python and PIP for downloading programs and running scripts:

3. Install wget, curl and git for acquiring files from different sources

4. Install useful Python Packages using PIP

[email protected]:-~# pip install —upgrade youtube-dl gallery-dl ffmpeg

5. Install nginx (http) server for hosting websites

Remember! the possibilities as I mentioned are endless. The prerequisite is that you must learn basic Linux (Bash) commands to navigate between directories and give basic arguments to commands. If you would like more tutorials on Termux / Ubuntu, do let me know through comment section.

Дополнительно:  Как исправить подсветку клавиатуры на MSI GT72 2qd Dominator?

Listen to this article

Ubuntu-on-android

Are you looking for a way to install and run Ubuntu 18.04 Linux server on your Android smartphone or tablet without rooting your phone?

Here we will show you how to install and run Ubuntu 18.04 minimal server on Android phone without any rooting process ( root ). This will help you to learn Linux directly on your phone without invalidating the warranty.

Installation of Ubuntu Linux on android without root

When the application opens, you will see several variants of Linux distributions along with their logos , such as KALI Linux , Ubuntu, Alpine, Arch Linux, Debian along with lightweight Debian-based desktops with Xfce and LXDE desktop environment . It also has some Linux development, games and apps to improve performance. Here we are just going to focus on the process of launching Ubuntu on Android. Click on Ubuntu.

Setting up user name and password for user and VNC

After that he will say that the Ubuntu files to download to Android are 80 MB and would like you to download it without Wi-Fi, click Continue if you want to download them to mobile data. It will take a few minutes to set up everything it will depend on your internet connection speed.

Enter Android under Ubuntu

After installation as we have chosen SSH the terminal window will open at the beginning. Now here, just like a regular Ubuntu server, enter the password you created above for your Android-based Ubuntu image.

Ubuntu update works on Android

Besides a small one, unlike Windows 10 WSL, you will not feel any other differences on this Ubuntu Linux image emulated on an Android phone.

sudo apt-get an update

Set the password root for Ubuntu

sudo passwd root

Install Linux Desktop Environment LXDE

sudo apt-get install lxde

Note: running the Linux GUI for Ubuntu on Android is not recommended unless you have a high-end smartphone.

We can use the XSDL application for Android to access the GUI desktop for Ubuntu, but this is a lag and that is why we decided not to use the RealVNC viewer.

sudo apt to establish tightvncserver

Note: during the installation it will ask you to set a password for authentication.

sudo vncserver :1-geometry 1920×1080

Note: I am installing it on OnePlus5 and it has full HD resolution, and use your resolution in the above command.

export display sudo=:1

Install the RealVNC application for Android

At this stage we have already configured the Linux VNC server on Ubuntu, and now it is time to download the Android app called RealVNC Viewer – Remote Desktop.

Connect VNC to Ubuntu LXDE desktop

Click+ on the VNC viewer to create a new connection. Enter 127.0.01:5901 and the name of the installed OS, in my case it was raj . Then click on Create.Since our connection is not encrypted it will warn you about this; here ignore this and just click on OK

Sep in the authentication field enter the password you created when installing TightVNC server above.

So we can use this application to have Ubuntu for fun and experiment Linux on an Android phone or tablet.

Did you like it? Share with friends

If you liked the materials of the site, you can support a financial project, recalculate expenses from a bank card, mobile phone meter.

Ubuntu on Termux

Install Ubuntu on Android using Termux, no need for root.

Develop software using the Ubuntu distribution on your android without the need for root and install software maintained by Canonical.

Pre-requirements

The requirements to install Ubuntu on android is to have termux installed and within termux it is necessary to have proot installed. It is not necessary to have root.

To install Ubuntu in Termux you need to run these commands:

Once the installation is finished to start Ubuntu you have to execute the command: ubuntu

It is also possible to run an Ubuntu command from Termux. For example: ubuntu pwd.

This will allow to run ubuntu commands from termux.

Solution to known issues

groups: cannot find name for group ID 3003
groups: cannot find name for group ID 9997
groups: cannot find name for group ID 50399

To solve this error you must run these commands.

addgroup —system —gid 3003 inet
addgroup —system —gid 9997 everybody
addgroup —system —gid 50399 all_a399

Once these commands have been executed, this error will have been solved.

Authors

You can also look at the list of all contributors who have participated in this project.

License

The license for this project is GPL-3.0.

Run Ubuntu on top of Android with a single click.

No root required! Should work on any high-end device!
Unleash full unrestricted desktop environment onto your mobile device!
Instant frustration guaranteed! (unless you’re using mouse or stylus).

GIMP image editor, or office suite pre-installed (AbiWord and Gnumeric, there’s no PowerPoint support).
You will need 180 Mb free on internal data storage (or 200 Mb for office suite), plus 320 Mb on SD card.

This app is NOT full Ubuntu OS — it is a compatibility layer, which allows you to run many Ubuntu applications.
Your phone is NOT rooted during installation.
Also, this is NOT official Ubuntu.com release.

There are several limitations:

This app was tested Samsung Galaxy Note, HTC Evo and Android 4 emulator. It does not run on Android 2.3 emulator.

How does that work.

The Ubuntu shell is launched using the «fakechroot» method, it starts Xvnc server, and connects with androidVNC client.
It uses LD_PRELOAD with libfakechroot.so and libfakedns.so (which is a re-implementation of the DNS client library,
required because DNS-related calls are incompatible between Android and glibc).

Development.

git submodule update —init

That should compile the .apk file. You’ll also need to change URL to the Ubuntu image inside androidVNC/androidVNC/src/com/cuntubuntu/DataDownloader.java, in array named downloadFiles.
If you want to recompile libfakechroot.so and libfakedns.so you wil need to do that from Debian Lenny,
because default Ubuntu crosscompiler can only compile for CPU with hardware floating point support.
Use script prepare-build-env.sh to set up Debian Lenny environment.

The scripts for creating Ubuntu images are located in directory «img».

Open all relevant .sh files in the text editor, and try to understand what are they doing.

cd img
sudo ./img-debug.sh

it will prepare an image to be installed into directory /data/local/ubuntu on your device.
It will automatically launch the script img/prepare-img.sh, which will mangle the symlinks inside the Ubuntu image,
so that they will work inside fakechroot environment, also it will move all regular non-executable files and dirs which contain
only such files out of the image to be installed onto SD card, this reduces the internal device memory usage from 500 to around 200 Mb.
You may use pre-built image at http://sourceforge.net/projects/libsdl-android/files/ubuntu/dist-debug.zip

Дополнительно:  Why Are My Tomato Plant’s Roots Showing? (How To Stop It)

Plug your Android device into the PC via USB cable, and enable USB debugging inside Settings in Android device.
You may also use Android 4 emulator, Android 2.3 will not work for debug image because it needs armeabi-v7a CPU.
Debian Lenny may be launched on armeabi CPU and Android 2.3 emulator, however creating the system image is complicated.

Determine where your SD card is located (it can be accessed by symlink /sdcard/ on both of my devices and on emulator):

Copy the resulting system image to SD card, and unzip it to directory named «ubuntu», using any file manager for Android.
Do not use command «adb push img/dist-debug/ /sdcard/ubuntu/», it will not copy empty directories.

That script will unpack the Ubuntu directory tree with binaries and symlinks into the current directory
(which should be /data/local/ubuntu), and will do some extra preparations. It might output some errors, ignore them.

Then you will be able to launch Ubuntu commands by running script ./chroot.sh from the directory /data/local/ubuntu, for example

will launch the familiar shell inside chroot, or bash shell (it does not work with Ubuntu 12.04)

export DISPLAY_RESOLUTION=1280×800 #(place your actual screen resolution here)
/fakeroot.sh
/startx.sh

Then click «Connect», then you should be able to interact with your Ubuntu installation through the graphical interface.
You can then launch random commands, like «xeyes» or «xev» from the Bash shell, and see them appear on the device screen.
The error messages dumped to the Bash shell are invaluable source of information about what you need to fix to make each particular application work.

As of now, LibreOffice does not work because Java cannot be launched (however there’s native Android port of LibreOffice in the works now,
so there’s not much point in making it work inside Ubuntu environment).

Not all of these calls are used everywhere, I think it’s enough to implement only the calls referenced by XTerm binary.

Если вы читаете это, вы, вероятно, использовали Linux раньше и знаете, что он работает практически на любом оборудовании. Между тем, у вас есть телефон в кармане, и вы знаете, что он универсален. Так может ли ваш Android-телефон работать под управлением Linux?

Android построен на ядре Linux, программном стеке, который взаимодействует с аппаратным обеспечением устройства. По сути, это позволяет операционной системе взаимодействовать с устройством — будь то ПК, смартфон или другое оборудование.

Операционная система Linux действительно должна называться GNU/Linux . Но со временем слово «Linux» стало взаимозаменяемым для описания ядра, а также различных операционных систем. К ним относятся Arch Linux, Ubuntu, Gentoo и многие другие.

Таким образом, хотя Android использует ядро ​​Linux, он не предлагает среду рабочего стола. Это то, о чем думает большинство людей, рассматривая способы установки Linux для Android.

Зачем устанавливать Linux на Android-устройство?

Итак, зачем вам может понадобиться среда рабочего стола Linux, установленная на вашем телефоне или планшете Android?

Вы можете запустить приложение, которое недоступно на Android. Но в большинстве случаев вам просто нужно получить доступ к какой-либо среде рабочего стола. Может быть, у вас есть запасной Android-планшет, который вы хотите оживить, и установка на него Linux — хороший способ сделать это.

Текущие устройства Android имеют идеальное аппаратное обеспечение для ПК, и установка Linux — отличный способ сделать это.

Конечно, вы можете обнаружить, что задачи, которые вы хотите выполнять в Linux, также работают в Android. Единственным препятствием, сдерживающим вас, может быть одновременная многозадачность Android-приложений . К счастью, эту функцию поддерживают многие современные устройства Android в последних версиях ОС.

Запустить Linux на телефоне или планшете Android непросто. Если вы ищете улучшенную многозадачность, попробуйте вместо этого обновиться до последней версии Android.

Может ли мой телефон или планшет работать под управлением Linux?

Чтобы запустить Linux на Android, у вас есть несколько вариантов. То, что вы должны использовать, определяется тем, рутировано ли ваше устройство Android или нет.

Почти во всех случаях на вашем телефоне, планшете или даже приставке Android TV может работать среда рабочего стола Linux. Вы также можете установить инструмент командной строки Linux на Android. Неважно, рутирован ли ваш телефон (разблокирован, эквивалент джейлбрейка для Android) или нет.

Доступны следующие варианты установки Linux на планшет или телефон Android:

Чтобы установить Linux на Android без рута:

Для установки Linux на Android-устройство с root-правами:

Несколько других методов дадут вам Linux или рабочий стол на Android. Мы их тоже рассмотрим.

Как установить Linux на Android без рута

Во-первых, мы рассмотрим три способа установки Linux на телефон или планшет Android без рутирования устройства.

Как запустить Linux на Android с помощью Debian Noroot

Лучший способ запустить Linux на вашем телефоне с минимальными усилиями — использовать Debian Noroot. Для запуска вам потребуется Android 5 или более поздняя версия.

Преимущество Debian Noroot заключается в том, что он установит Debian Buster на ваш телефон со слоем совместимости. Это позволяет запускать приложения Debian без рутирования Android. Учитывая, насколько сложным может быть рутирование для некоторых устройств, это может быть одна из лучших комбинаций Linux Android, которые вы получите.

Производительность с Debian Noroot невелика, но ее можно использовать. Для достижения наилучших результатов при установке Linux для Android сначала рассмотрите возможность рутирования вашего устройства.

Вы можете установить такие инструменты, как GIMP, Firefox и LibreOffice, прежде чем устанавливать Linux на Android. Просто запустите приложение, согласитесь с разрешениями и выберите дистрибутив для установки. Можно выбрать просмотр установленной версии Linux через SSH (командная строка) или с помощью приложения VNC (для рабочего стола).

Его удивительно просто настроить и использовать. Таким образом, если вы ищете решение для запуска Linux на Android, попробуйте это.

AndroNix устанавливает Linux на Android

Этот полезный инструмент, поставляемый с восемью дистрибутивами, также предлагает модифицированные версии некоторых операционных систем Linux для повышения производительности. Стандартные восемь дистрибутивов:

Из них Ubuntu XFCE, Debian XFCE, Ubuntu KDE и Manjaro XFCE имеют модифицированные версии, доступные для устройств Android с наборами микросхем ARMv8 и более поздних версий. Эти модифицированные версии оптимизированы для работы на вашем смартфоне, и моды позволят вам в полной мере насладиться Linux, особенно Ubuntu на Android.

Чтобы установить операционную систему Linux на Android с помощью Andronix, просто коснитесь нужного дистрибутива и нажмите «  » . Вам нужно будет выполнить шаги, чтобы скопировать команду в окно терминала Termux, а также выбрать среду рабочего стола.

Дополнительно:  How to Root Sony Xperia with or without Computer

Видео выше описывает процесс более подробно. Просто убедитесь, что у вас установлены  и приложение для просмотра VNC (например,  ). Вам понадобится VNC, чтобы использовать выбранный вами рабочий стол Linux.

Andronix бесплатен, но имеет премиальное обновление, которое удаляет рекламу и вводит дополнительные (не жизненно важные) функции. Сюда входит поддержка автономной загрузки операционных систем.

Еще 3 способа запустить Linux на Android без рута

Хотя мы рассмотрели несколько хороших вариантов запуска Linux на вашем устройстве Android, доступны и другие методы:

Как установить Linux на Android с рутом

Для рутированных пользователей или тех, кто готов потратить время на рутирование своего Android-устройства , установка Linux будет проще и быстрее.

Как установить Linux на Android-устройство с root-доступом

Если у вас есть корневое устройство, вы можете установить различные версии Linux на Android с помощью инструмента Linux Deploy. Лучше всего это сделать, сначала подключив телефон к сети Wi-Fi.

Начните с установки  , который предоставляет некоторые расширенные возможности root. Затем установите  . При первом запуске нажмите «  », чтобы убедиться, что root-права включены, затем нажмите «  » в правом нижнем углу.

Используйте отображаемое меню параметров, чтобы выбрать предпочитаемый  . Debian, Ubuntu, Gentoo, Fedora и многие другие доступны для установки. Мы использовали Arch Linux.

Ubuntu-on-android

Ubuntu-on-android

Вам нужно будет установить флажок «  , чтобы просмотреть рабочий стол Linux на своем телефоне. Также убедитесь, что для графической подсистемы выбрано Затем проверьте разрешение экрана в настройках графического интерфейса и убедитесь, что вас устраивает среда рабочего стола .

Наконец, найдите записи имени  . Либо запишите их, либо измените на что-то более запоминающееся для вас.

Выйдите из этого меню, затем коснитесь трех точек в правом верхнем углу и выберите «  », затем «

Когда это будет сделано, установите  из Play Store. В Linux Deploy нажмите  , чтобы запустить Linux. Затем откройте VNC Viewer и подключитесь к  , чтобы просмотреть свой рабочий стол Linux с учетными данными, которые вы ввели ранее.

Ubuntu-on-android

Ubuntu-on-android

После запуска вы можете установить программное обеспечение Linux с помощью терминала обычным способом. Поздравляем: теперь у вас есть Linux, работающий на Android!

Как установить Kali Linux на Android ROOT

Приведенный выше метод развертывания Linux для запуска дистрибутивов Linux на Android, вероятно, лучший из всех, которые вы найдете. Он предоставляет хороший выбор версий Linux, включая Kali Linux.

Хотите использовать свой Android-телефон или планшет в качестве устройства для тестирования на проникновение? Хотя вы найдете различные полезные сетевые инструменты Android, лучшим вариантом является портативная версия Kali Linux. Просто следуйте приведенным выше инструкциям, используя Linux Deploy, и выберите Kali Linux для установки на Android.

После установки у вас в кармане будет портативное решение для проверки пера. Это проверит безопасность любой сети, к которой подключается ваш телефон.

Альтернатива, установите пользовательскую прошивку Android

Не уверен, что установка Linux на Android — это хорошая идея, но хотите больше функциональности от своего телефона? Вы можете просто попробовать другую версию Android.

Оригинал статьи — тут

Если вам понравились материалы сайта, вы можете поддержать проект финансово, переведя некоторую сумму с банковской карты, счёта мобильного телефона или из кошелька ЮMoney.

Ubuntu on android

ubuntu-on-android is yet another utility allowing you to install pre-configured ubuntu with gui, development tools, and software on top of android without root via PRoot and Termux. Check the disclaimer before starting.

codename = udroid

Before you install, please read the wiki and disclaimer. To install stable release of udroid filesystem run

curl -Ls https://bit.ly/udroid-installer

git clone https://github.com/RandomCoderOrg/fs-manager-udroid
fs-manager-udroid
bash install.sh
udroid install jammy:xfce4

For advanced usage, check this.

Status

Contributions are always welcome! We appreciate any type of contribution, not only code. For example, you can help the wiki shape up. Any changes to this repository/code should be submitted as a pull request, with well explained description.

Misc

For building custom linux tarballs, check fs-cook.

Licence

udroid logo «chad the penguin» designed by Сэмми

AndroNix — Linux on Android without root

Последнее обновление программы в шапке: 04.02.2021

Ubuntu-on-android

Краткое описание:Установка Linux на Android в Termux без рут-прав.

Andronix lets you install a Linux system on your Android Device without root. We found out that using Linux on Android is quite useful and lets you do many heavy tasks on your Android device.

* Manjaro is now available with xfce, lxqt, lxde and mate.

* Ubuntu KDE is now available which is great success.

* KDE Performance optimization — Better performance.

* Added multiple Window manager — Better look in KDE.

* Prinstalled softwares and themes — Makes a better aesthetic.

* AndroNix Premium — We have released AndroNix Premium with tons of features.

* Dark Mode — Use AndroNix at night comfortably.

* AndroNix Commands — A special addition to the family of AndroNix. It’s all you need to manage your commands throughout your life. Just copy and paste!

* AndroNix Web App — We have also released our web app to compliment AndroNix commands on Android, so you can now access Commands on any internet connected device.

* AndroNix Feed — We saw that since the last release you guys were really happy about the blogs we posted. So now we have a dedicated blog feed to make a better use of Linux and the power it offers.

* Offline Downloads — Internet can be unpredictable sometimes, but don’t worry we’re introducing offline support of Linux distros, though you’ll be still needing internet to download some files depending upon your device at the time of installing.

* Robust Documentation — We’ve been working on writing some documentations for weeks now. This will enable you to help yourself without waiting for us to reply.

* Priority Support — AndroNix Premium bring priority support with it at no extra cost. IF you’re an AndroNix Premium member just enjoy the blazing fast support, on the platform you like!

* Communities budding — We now support official AndroNix communities on Telegram and WhatsApp. We will soon expand to other platforms as well.

* Automation Added — If you choose AndroNix Premium, we’ll handle everything for you. Just login and forget the rest.

* Profile Tab Added — Profile let’s you see your current status (Premium or not). If you’re a premium member, profile section has many things for you.

* Termux is now available offline — We now offer an offline copy of Termux within AndroNix.

— No root permissions required. — Distros we support:

* Manjaro * Ubuntu * Kali Linux * Debian * Parrot OS * Fedora * Arch Linux

— Desktop environments we support:* KDE * LXDE * LXQT * MATE * XFCE

— One click install/uninstall feature.- Features multiboot linux system.

— Termux in required.

— Android version should be at least 5.1

— Device architecture supported: ARMv7, ARM64, x64.

Требуется Android: 6.0 и вышеРусский интерфейс: Нет

Разработчик: TechrizДомашняя страница: https://techriz.comGoogle Play: https://play.google.com/store/apps/details?id=studio.com.techriz.andronixВидео YouTube: https://www.youtube.com/channel/UC-U-eqbFfzB_3LJSM0kwuJw

Сообщение отредактировал AlexPechkin — 22.04.23, 11:55

Причина редактирования: Удалена неактуальная информация

Оцените статью
Master Hi-technology