How to install ubuntu to android
How to install ubuntu to android
How to install a Linux desktop on your Android device
Have you ever wished your Android phone or tablet could replace your entire computer? You’re in luck — you can install a Linux or Ubuntu desktop environment on virtually any modern Android device. You could even combine it with a Bluetooth keyboard and mouse (and maybe an external display) for a powerful desktop-grade experience. While the experience is far from perfect, it’s usable in a pinch.
QUICK ANSWER
To install Linux on your Android device, install an app like Debian NoRoot or UserLAnd. If you choose the latter, you’ll be able to select between various distributions like Kali Linux, Arch, and Ubuntu. Neither option installs a full operating system, but they offer a complete desktop environment and the ability to run popular Linux programs.
JUMP TO KEY SECTIONS
Debian NoRoot: One-click Linux desktop
Debian NoRoot offers one of the easiest and least complicated ways to access a Linux desktop on Android. It’s a free app that you need to install via the Play Store. If you haven’t heard of Debian, it’s the flavor of Linux that the popular Ubuntu distribution is based upon. This guarantees compatibility with a wide range of Linux apps and the apt package manager.
Debian NoRoot is pretty lightweight and should run on most Android smartphones and tablets. It’s not the complete Debian operating system — instead, its developer describes it as a “compatibility layer, which allows you to run Debian applications.” Still, the app includes all of the basics, including a desktop environment and a terminal application. All in all, it’s a perfect starting point for experienced and novice users alike.
Once you’ve installed the Debian NoRoot app on your Android device and open it for the first time, it will present you with a list of display resolutions and font scales. Select the default options here, and it will eventually bring you to the desktop.
From this point on, you can immediately get to installing additional Linux programs and apps. We’ll explain how you can do this via the terminal in a later section. For now, consider plugging in a keyboard and mouse since the on-screen touch keyboard can take up a big chunk of your screen’s real estate.
Install Ubuntu and other Linux flavors with UserLAnd
Select your Linux distribution of choice
Enter a username and password
Select VNC if you’d like a graphical user interface or SSH for a text-based session
If Debian NoRoot doesn’t satisfy your needs or you’d like to install a different Linux distribution, another option is the UserLAnd application. It lets you install various Linux distros on your Android device, including Arch, Kali, Ubuntu, Debian, and Alpine. You can also choose to launch applications like Gimp and LibreOffice independently, eliminating the need for a full-blown desktop environment.
Here’s a step-by-step guide on how to install Ubuntu on your Android device:
You can also initiate a VNC connection from a different device on the same network. First, determine your Android device’s IP address, either from your router or using a free app like Fing. Finally, add :51 to the end of the IP address (example: 192.168.0.101:51) and connect to it using a VNC app like TightVNC on the other device.
Final steps: How to use Linux on your Android device
Now that you’ve got your preferred flavor of Linux installed on your Android phone, you may be wondering what you can and can’t do with it. Let’s start with the latter — you can only install and run programs designed for ARM processors. This rules out certain apps like Steam, which only support the desktop x86 architecture. Still, most of the standard productivity-related programs you’d want — ranging from Firefox to LibreOffice — offer ARM versions these days.
To install third-party applications on Ubuntu or Debian, open a terminal window and enter the following commands one by one:
sudo apt update
sudo apt install firefox-esr
You may replace firefox-esr in the above command with the desired program of your choice. Some other examples include vlc and libreoffice.
Once installed, you can launch the program from within the Applications menu, as shown below:
Besides which Linux apps you can install, there are a couple of other limitations you should consider too. You cannot access low-level hardware functions like Wi-Fi or Bluetooth from within Linux because those are still completely controlled by Android. Likewise, you cannot expect hardware acceleration or complex 3D graphics to work at full speed. Remember that you aren’t running full-fledged Linux — it’s just a compatibility layer on top of the base Android operating system. You’ll be better off with a Chrome OS device if those aspects are important to you.
How to Install Ubuntu on Your Android Phone Using Linux Deploy
It’s easy to forget that Android is a Linux-based operating system sometimes. But it is, and it retains some of that openness and flexibility that attracts people to the Linux platform.
As an example, you can actually install a full Linux distro on your Android device. We’ll demonstrate how to install Ubuntu on Android using an app called Linux Deploy, which will install the Linux desktop environment, but you can use this same method to install Debian or various other Linux distros.
Note: you’ll need to root your Android device before starting this process.
Install and Deploy Linux on Android
First, install BusyBox. This is a toolkit that unlocks your Android phone for various Linux commands that are essential to getting Ubuntu up and running. You won’t need to actively use this after installing it.
You’ll also need VNC Viewer, a remote desktop app that creates the window within which Ubuntu will run on your Android device. This is what you’ll ultimately be using to get Linux up and running.
Finally, you need to install Linux Deploy, which you’ll use to install Ubuntu (or one of several different versions of Linux, for that matter).
After installing Linux Deploy, open it and tap the icon with the three sliders (bottom-right corner).
Here you can select the Linux distro you want to install. (Just tap “Distribution,” then select the distro name – we went with Ubuntu.)
After that, scroll to the GUI section at the bottom, tap the “Enable” box and make sure “VNC” is selected under “Graphics subsystem.”
Once you’ve done that, you can also go into “GUI Settings” to set the resolution of Linux once it runs. Unless you have a tablet, the default 1920 x 1080 resolution on most smartphones is probably too high to practically use Linux, so we recommend lowering it to 1024×576 or 1152×648.
Finally, scroll back up about halfway until you find “User name” and “User password.” Make a note of them, or replace them with your own.
Those are all the settings you need to tweak. Go back to the Linux Deploy home screen, tap the three-dotted menu icon at the top-right and tap “Install.”
The installation may take from one to several minutes, depending on the speed of your smartphone.
Once it’s finished (denoted by the “
Tap the new connection in VNC Viewer to open it, and your Linux build should open up!
It won’t have anything installed on it by default, but you can go to the Terminal and sudo apt-get install various software like you normally would in Linux.
Conclusion
That’s it. You now have a fully functional Linux distro on your Android device.
If at any point you decide that you don’t want Linux any more, it’s not a case of uninstalling Linux Deploy. Instead, you’ll need to use a file explorer with root access (we used Root Browser), find the directory “/data/user/0/ru.meefik.linuxdeploy/env” and delete it. (You can change the default Linux install directory in Linux Deploy’s settings menu).
Our latest tutorials delivered straight to your inbox
Устанавливаем рабочий стол Linux на Android
Привет, Хабр! Представляю вашему вниманию перевод статьи из журнала APC.
В данной статье рассматривается полная установка операционной среды Linux вместе с графическим окружением рабочего стола на Android-устройствах.
Одной из ключевых технологий, которую применяют многие из систем Linux на Android, является pRoot. Это реализация утилиты chroot в пользовательском пространстве, которая пользуется большой популярностью в настольных системах и серверах Linux. Однако для инструмента chroot нужны полномочия пользователя root, которые не доступны по умолчанию на Android. pRoot же даёт это преимущество за счёт установления привязки к директории.
Терминалы Linux
Не во всех эмуляторах терминалов Linux для Android имеется набор утилит BusyBox, в отличие, например, от Termux. Причиной тому является то обстоятельство, что весь смысл подобных систем состоит в обеспечении «полной» установки всех компонентов ОС, в то время как BusyBox предназначена для того, чтобы свести всё множество общих утилит в один двоичный файл. В системах, где не установлена BusyBox, используется начальная загрузка для Linux, содержащая полные версии программ. «
Задайте логин и пароль для дистрибутива и VNC в UserLAnd.
Однако в этих системах присутствует дополнительная технология, которая не требует наличия Termux. В этой статье будет рассматриваться полнокомплектная инсталляция дистрибутива Linux, а также рабочего стола GUI. Но прежде необходимо выбрать способ установки графической системы.
Linux на Android
Как было упомянуто ранее, программные пакеты, которые мы будем устанавливать, запускаются в пользовательском пространстве.
Это означает, что у них есть только разрешение для текущего пользователя, который в случае ОС Android всегда является обычным пользователем, т.е. не имеет полномочий администратора. Однако для того, чтобы установить рабочий стол Linux, нам понадобится установить графический сервер, например, X или Wayland. Если бы мы делали это в операционной среде Linux, то он запустился бы с полномочиями обычного пользователя, не имея при этом доступа к графическому уровню ОС Android. И потому мы должны смотреть в сторону установки сервера «стандартным» андроидовским способом, чтобы у него был доступ к железу и способность поддерживать графическую среду.
Умные ребята из сообщества разработчиков предложили два решения этой проблемы. Первое заключается в том, чтобы использовать собственные версии Linux (как правило, это сервер X). После того, как те начнут работу в фоновом режиме, у вас появится доступ к данному фоновому процессу через VNC. Если же на вашем устройстве Android уже имеется программа VNC viewer для удаленного взаимодействия с другими компьютерами, просто используйте её, чтобы получить удалённый доступ к локальному узлу. Это простое в исполнении решение, однако некоторые пользователи сообщают о том, испытывают затруднения с работой программы.
Второй вариант – установить сервер, предназначенный специально для устройств на базе Android. Некоторые серверы доступны на Play Store в платной и бесплатной версиях. Перед установкой необходимо проверить, поддерживается ли выбранный вариант или по крайней мере работает ли с тем программным пакетом Linuх для Android, который вы собираетесь установить. Мы отдали предпочтение системе X-Server, и потому использовали программный пакет XServer XSDL (ссылка). В статье будет описываться процесс установки данного сервера, хотя он может немного отличаться, если у вас установлено другое приложение или же используете VNC.
Выбор системы
Как в случае с X-Servers, в Play Store существует несколько приложений по установке дистрибутивов системы Linux. Здесь также, как и с Termux, мы сконцентрируемся на вариантах, которые не требуют полномочий суперпользователя, что в свою очередь предполагает определённую степень риска. Эти приложения предоставляют весь необходимый для большинства пользователей функционал, сохраняя при этом ваши данные в безопасности. Ниже представлены примеры таких приложений в Play Store:
— UserLAnd: весьма популярный выбор пользователей. Приложение включает в себя набор распространенных дистрибутивов: Debian, Ubuntu, Arch и Kali. Любопытно, что несмотря на отсутствие вариантов на базе RPM, UserLAnd включает Alpine Linux для устройств с меньшим объёмом памяти.
— AnLinux: данное приложение помогает в установке одного или нескольких списков дистрибутивов большого объёма и может включать в себя Ubuntu/Debian, Fedora/ CentOS, openSUSE и даже Kali. Там также можно выбрать низкозатратные десктопные варианты: Xfce4, MATE, LXQtand LXDE. Для работы требуется установленный Termux, а операционная система Android должна быть от 5.0 и выше.
— Andronix очень похож на AnLinux. Возможно, имеет лучший дизайн, чем предыдущее приложение, однако поддерживает меньшее число дистрибутивов.
— GNURoot WheezyX: этот проект стартовал как вариант Linux на Android и разрабатывался для программ c открытым исходным кодом. Как подсказывает название, он фокусируется на дистрибутивах Debian, в то время как ‘X‘ на конце означает, что приложение ориентировано на графический рабочий стол. И несмотря на то, что создатели остановили разработку проекта ради UserLAnd, GNURoot WheezyX всё ещё доступен на Play Store, если у кого-то есть в нём нужда.
Авторы данной статьи будут использовать приложение UserLAnd для установки рабочего стола Linux на Android, и тому есть несколько причин. Во-первых, приложение имеет открытый исходный код (хотя AnLinux тоже его имеет). Во-вторых, оно предлагает хороший набор дистрибутивов (хотя в него и не включены Fedora или CentOS), также с помощью него можно установить дистрибутивы с минимальными системными требованиями, которые не займут много места в памяти смартфона. Но главное преимущество UserLAnd в том, что оно имеет инструменты поддержки для установки отдельных приложений вместо целых дистрибутивов. Мы выясним, что конкретно это значит для нас, позже. А сейчас давайте установим UserLAnd на ваше устройство.
Приложение UserLAnd
Скачайте приложение из Google Play или F-Droid (ссылка) на ОС Android. Оно устанавливается как и любое другое приложение – ничего особенного здесь делать не надо. После этого запустите его из панели приложений.
Первое, что вы увидите там – это список дистрибутивов. В конце можно найти пару десктопных вариантов: LXDE and Xfce4. Замыкает его приложение Firefox, пара игр и несколько офисных утилит: GIMP, Inkscape и LibreOffice. Это вкладка называется «Приложения». Предназначена она для установки приложений.
После того, как вы установите что-нибудь, на вкладке «Session» появится соответствующая запись об этом. Здесь можно начать или остановить текущую сессию, а также посмотреть запущенные процессы.
“Filesystems” – последняя вкладка, которая показывает уже завершённые установки. Стоит отметить, что после того, как вы удалите любой элемент из Filesystems, сведения о нём будут стёрты из вкладки Session, что, однако, не доказывает обратного. Это значит, что вы сможете создать новую сессию на базе текущей файловой системы. Понять, как работает эта взаимосвязь, намного проще, если увидеть это в действии, и потому мы начнём с установки приложения в системной среде UserLAnd.
Перед тем, как установить дистрибутив на смартфоне, необходимо предоставить UserLAnd доступ к хранилищу.
Дистрибутивы в UserLAnd
Выберите один из дистрибутивов, расположенных на экране Apps, для установки на устройство. В качестве примера мы будем использовать Ubuntu. При нажатии на значок появляется диалоговое окно, где спрашивается имя пользователя, пароль и пароль VNC. Затем выберите способ, посредством которого вы получите доступ к дистрибутиву. Начнётся загрузка, в ходе которой будет задействован базовый образ выбранного дистрибутива. Распаковка файла будет осуществляться в директории UserLAnd.
По окончании загрузки вернитесь к эмулятору терминала xterm. Можете ввести служебную команду, чтобы узнать, какую версию Linux вы установили:
Следующий шаг заключается в том, чтобы инсталлировать рабочий стол, используя служебную команду Ubuntu:
Последний шаг состоит в том, чтобы убедиться, что ваше новое окружение рабочего стола готово к запуску. Чтобы сделать это, нужно отредактировать файл .xinitrcfile, в котором в настоящее время имеется всего одна строка /usr/ bin/twm. Её необходимо изменить на /usr/bin/startlxde. Теперь выйдите из сессии XSDL (убедитесь, что нажали кнопку STOP в области уведомлений), удерживайте кнопку «Ubuntu listing» на вкладке Sessions, затем нажмите «Stop Sessions» и повторно запустите сессии. Через несколько секунд должна появиться системная среда LXDE. В ней можно делать то же самое, что и на обычном рабочем столе. Она просто может быть немного меньше и работать чуть медленнее: чтобы нажать кнопку на устройстве, вам придётся ждать дольше, чем если бы вы это делали с клавиатурой и мышью. Давайте посмотрим, как конкретно мы можем усовершенствовать системную среду Linux на смартфоне.
Краткое руководство к UserLAnd
При внимательном изучении содержимого рабочего стола можно обнаружить точное воссоздание дексктопной версии. Если вы используете UserLAnd на устройстве с клавиатурой и мышью (подключённых через Bluetooth-соединение или каким-либо иным образом), вам будет легко приспособиться к использованию системной среды Linux в таком формате. За исключением небольшого отставания, которое происходит за счёт того, что курсор X-Windows синхронизируется с курсором устройства на Android, всё работает плавно.
Возможно, первое, что вы захотите сделать, это отрегулировать установленную по умолчанию систему шрифтов, поскольку размер шрифтов рабочего стола слишком велик для экрана телефона. Перейдите в главное меню, затем выберите «Настройки» → «Настройка внешнего вида и виджетов» → «Виджет». Здесь можно поменять размер шрифта по умолчанию на более подходящий вариант для вашего телефона.
Возможно, дальше вы захотите установить свои любимые программы в системную среду Linux. Как сказано выше, служебные команды в этом случае не будут работать, так что смело используйте поистине незаменимый инструмент, который установлен в системной среде UserLAnd, под названием ASAP:
Дистрибутивы в приложении представлены в виде сессий. Вы можете начать и закрыть их.
После установки дистрибутива можно добавить среду рабочего стола со стандартными командами.
Вероятно, вам также понадобятся альтернативные способы установления соединения для своего дистрибутива. Тот факт, что вы изначально установили XSDL, не означает, что он должно быть неизменным всё время. Вы можете создать ещё одну учётную запись на вкладке Session и выбрать другой сервер. Только убедитесь, что указали его в одной и то же файловой системе. UserLAnd попытается направить вас на нужное приложение, чтобы установить новый тип соединения: либо XSDL, ConnectBot для SSH, или bVNC.
Однако настойчивость, с которой приложение автоматически направляет вас в Play Store при попытке переподключения, может раздражать. Чтобы прекратить это, достаточно сменить сервер посредством установки специального приложения. Для установки SSH выберите старый проверенный VX ConnectBot. Просто войдите в порт 2022 на рабочей станции под вашим именем и паролем. Для того, чтобы подключиться к серверу VNC достаточно установить коммерческое, но во многих отношениях продвинутое приложение Jump Desktop, и набрать адрес 127.0.0.1:5951.
Надеемся, вы помните пароль VNC, который задали, когда создавали файловую систему.
Получить доступ к текущей сессии UserLAnd также можно используя похожие инструменты на другом компьютере в вашей сети. Достаточно подключить SSH к работающему сеансу (с типом соединения SSH, естественно) посредством терминала Linux, например, Konsole, или подключиться к сеансу VNC с помощью KRDC. Просто замените локальные адреса на экране компьютера IP-адресами вашего Андроида.
В сочетании с парой переносных приложений эта установка даст вам удобную портативную систему Linux, к которой можно подключиться с помощью любого компьютера, доступного вам в данный момент.
RandomCoderOrg/ubuntu-on-android
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Ubuntu-21.04 on android
End of Life distros
arch | status |
---|---|
arm64 | |
armv7l | |
armv8l | |
amd64 | |
Others | not started |
Just before starting the installation, you can check this.
More can be found here.
for building custom linux tarballs go here
these people are fuel for this project
MIT Copyright (c) 2021 Saicharan Kandukuri
feel free to contribute to this repo 🤍
About
Run Ubuntu with pre-installed Desktop Environments in android/termux with ease! Everything is preinstalled so just download install and done 🚀 🚀
Topics
Resources
License
Code of conduct
Stars
Watchers
Forks
Releases 10
Sponsor this project
Contributors 10
Languages
Footer
© 2022 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Ubuntu Wiki
DualBootInstallation
Ubuntu Dual Boot Installer is provided as a tech preview for developers who want to run Ubuntu and Android on a single device. It is not intended to be used by regular users, neither at this point nor as its ultimate goal. Those developers installing it should be familiar with the Ubuntu and Android partition layouts and should also feel at home with manually flashing partitions in case something goes wrong.
Ubuntu Dual Boot Installer was born as an internal skunkworks project some Canonical Engineers dedicated a limited amount of their time to. Seeing the good progress, it was decided to release this preview for the developer community to test, study and contribute to.
Dual boot is not part of the regular Ubuntu release.
What to expect after installation
Requirements
To install dual-boot, you’ll need:
A Nexus 4 device (other supported Nexus devices should in theory work but have not been tested at the time)
Android 4.4.2 or higher running on the device, either stock firmware or based on Cyanogen Mod or AOSP.
2.7GB of free storage on the device to install Ubuntu
ADB tools running on your desktop computer
The device needs its bootloader to be unlocked and USB debugging enabled. Follow steps 1 to 3 below to do this, or alternatively, if your device is already unlocked and has USB debugging enabled, you can skip to the installation process >
Include: Ничего не найдено по регулярному выражению «StartDeviceSetup».
Include: Ничего не найдено по регулярному выражению «EndDeviceSetup».
Dual boot installation or upgrade instructions
The procedure at this point is effectively the same for both new installations and upgrades of an existing dual boot installation.
Installing the Ubuntu Installer app in Android
Note: if you had installed a previous version of Ubuntu dual boot, please make sure to uninstall Ubuntu from the Android app before upgrading to the new Ubuntu dual boot. You can keep the user data, only uninstallation of the base system is recommended.
Install dual-boot by running this command on a terminal:
After installation, the phone will reboot several times. Once finished, it will boot into Android and you will find the dual boot app as “Ubuntu Dual Boot” in the Apps section.
Optionally, for alternative ways of using the installer script, check out the installer reference >.
Now follow the instructions below to install Ubuntu from Android.
Installing Ubuntu from Android
Note: 2.7GB of free memory space is required on your device for the Ubuntu installation.
Browse the apps to find the Ubuntu Dual Boot icon and press it to start the app
When the app launches, press on Choose channel to install and choose a channel to download from (the recommended channel is utopic). Make sure you tick on the «bootstrap» option.
Once download is completed you need to Grant SU permissions to the application for the install to be successful. Press the Grant button, when prompted.
All channels supported by the phablet-flash tool are also supported by the Ubuntu Installer on Android
When selecting an Ubuntu channel, the bootstrap checkbox lets you wipe user data from Ubuntu, otherwise it is kept between installations. Since you’re installing for the first time now, it won’t make a difference
When selecting an Ubuntu channel, unticking the latest version checkbox will let you select a particular image number. Otherwise, if checked it will default to the latest image.
If during installation the Ubuntu download finished while the phone was locked or when the Ubuntu Installer app was not on the foreground, the installation button will change to Resume install. This will resume installation to the point where Super User permissions are requested.
Additional notes
Updating to a new Ubuntu image
This effectively means there are two possible ways to upgrade your Ubuntu image:
If you are running Ubuntu, use the standard upgrade mechanism to download new images via System Settings, but do not choose to install the image after having downloaded it. Instead, once the dowload has finished, reboot to Android and the Dualboot app there will resume the installation. Once finished, you can then reboot to Ubuntu.
To update Ubuntu to a newer version, On the android Ubuntu dual boot application, Once Ubuntu has been uninstalled, follow the same installation step to download a newer version of Ubuntu.
Dual boot installer command reference
For the majority of cases, running the installer script in auto mode with no arguments will suffice. For more advanced usage, additional commands can be used.
Auto mode: it detects if the SuperUser app installation is required and instals or updates the Dualboot application on Android
Full mode: it installs the SuperUser and Dualboot apps on Android
The script also takes a device ID in case there are more devices connected to the computer. The device ID is the first parameter passed to the script. If it is not provided first connected device is used. E.g.
dualboot.sh channel devel-customized
Using a custom image server
If you need to use a custom image server that provides ported images for those devices outside of the officially supported, you can use a custom image server with the Dualboot app. To do so, open a terminal, and with your device connected over USB, issue the following command (replacing $CUSTOM_SERVER_URL with the URL or your custom server):
The next time you start the Dualboot app on Android, it will use that server to fetch and install images instead of the official Ubuntu one.
If something goes wrong
Run the following command to reboot into the bootloader
Once in the bootloader, run this command to reflash the boot partition:
Without exiting the bootloader, run this command to reflash the recovery partition:
After flashing, reboot and your phone should start into Android:
Contributing
The dual boot project, as with the rest of Ubuntu is open source and open for participation, you can help making it better too!
How does dual boot work?
An Android-based phone has multiple partitions which serve different purposes. Those relevant for dual booting are /boot, /recovery, /system and /data.
The boot partition is loaded by the bootloader during a normal boot. The boot image in that partition is a combination of the kernel and a ramdisk. In short, the bootloader unpacks the boot image, creates a ramdisk and copies the content of the boot image’s ramdisk into it. Then the kernel is started by executing the init process from ramdisk.
The recovery partition contains the recovery image, which is just a different kind of boot image. It also includes a kernel and a ramdisk, where the init binary is replaced by a recovery binary inside the ramdisk.
The system partition holds all the read-only system files (except the ones in ramdisk), and it is mounted by the init process.
The data partition is then a writable partition used by the system for user data.
Ubuntu uses partitions in a slightly different way:
The boot and recovery partitions have the same functionality as in Android
The system image holds the Android part of the system which is executed inside the LXC.
The data partition contains the Ubuntu system under /data/ubuntu/
In order to enable the user to choose their own flavour of Android, the Android boot image cannot be modified, as the original kernel needs to be preserved. Thus the recovery partition is used to boot into Ubuntu.
Which versions of Android does dual-boot work with?
Cyanogen Mod (based on Android 4.4.2 or higher).
Which devices does dual-boot work for?
Which Ubuntu releases does dual-boot support?
Dual boot supports the same channels that phablet-flash supports.
How is the user data partition shared between Android and Ubuntu?
The user data partition hosts also the Ubuntu system image at /data/system.img which is around 2 GB.
The Ubuntu swap file is also present in the data partition at /data/SWAP.img (around (540 MB)
The Ubuntu user and system data are also present at:
The Android data partition usage is unchanged.
Is booting into recovery no longer possible when dual-booting?
The recovery partition when dual booting is currently used by the Ubuntu boot image. This means that when booting into recovery mode, Ubuntu will boot.
Access of the recovery will be resolved in future releases. However when the Ubuntu image is uninstalled, the original (Android stock or CWM) recovery is restored by the Ubuntu Install android app.
How can I do an Android upgrade with dual boot installed?
Note: if you simply want to restore your original recovery partition on Android, you can always uninstall the Ubuntu installation from within the Dual Boot app. While you are doing this, you can also choose to remove its user data.
Can I uninstall dual boot?
Yes, when Ubuntu is uninstalled from the Android side via the dual boot app, the original Android recovery partition is restored to the original state before dual boot was installed.
Uninstalling Ubuntu also deletes the Ubuntu system image and swap file. Optionally, also the Ubuntu user data can be deleted.
The dual boot app installs a copy of the the SuperUser app. Can I use another SuperUser app instead?
Yes indeed! The supplied SuperUser app is only for those who don’t have it installed yet.
However, one word of caution: tests were only performed only with the SuperUser app version from the CyanogenMod build and with the one installed by dualboot.sh script. But as long as you own SuperUser app behaves in similar way of those two tested, you should be fine.
When installing Ubuntu, can I switch channels without deleting user data?
Yes you can, but this is something that hasn’t been thoroughly tested. Therefore some applications might not function properly. The same applies for switching between different versions.
Can I make boot to Ubuntu the default and move the Android boot to the recovery partition?
Right now swapping the default boot OS is not possible. However, this is something we might look to support if there is demand for it.
Why do you use the recovery partition to boot Ubuntu, rather than a combined boot image for Android and Ubuntu?
One of the initial principles when designing dual boot was not to tie it to a particular Android flavour and version and leave the user the flexibility to use their own choice. Thus the Android boot image and the kernel it contains are left untouched.
The choice was then to reuse the recovery partition, and instead focus on restoring it back to its original state if it’s necessary to go back to single boot with Android.
I already have CWM recovery installed and know how to use it, can I use a zip file and flash manually instead?
Absolutely, we provide dualboot.sh to make it easy to install the apps and the custom recovery. If you prefer to install the recovery manually yourself, it’s also possible. Check out the source code for the dualboot.sh script to see exactly what it’s doing.
Why does the Ubuntu Installer app need to be installed to the system partition via recovery?
The Ubuntu Installer app needs to be installed as an Android (preinstalled) system app. Unlike use-installed apps, which live in the data partition, system apps always live in system partition and are granted additional privileges on top of the standard permissions set available to 3rd party applications.
The extra permissions that the Ubuntu installer app needs are just two: cache partition write access to store the downloaded files for Ubuntu installation and power management capability to reboot the system.
Touch/DualBootInstallation (последним исправлял пользователь julia-palandri 2014-07-03 13:48:50)