Installing linux on smartphones

Установил Ubuntu на свой смартфон. Рассказываю, что из этого вышло

К счастью, разработчики уже давно смогли запустить все возможные дистрибутивы на смартфоне , и у вас есть возможно нацепить полноценную Linux-среду внутри обычного Android-смартфона .

Как это работает?

На самом деле, идея далеко не нова, и в году так 2014 были инструкции, описывающие метод установки того же Arch Linux на SD-карту.

Сегодня же, Linux можно установить как отдельное приложение, и даже запустить его, как отдельный процесс в системе!

Происходит это благодаря обычному наложению «среды» нужной ОС Linux поверх самой ОС Android . Дело в том, что сам Android , по сути — модифицированная ОС на базе ядра Linux , поэтому, запуск простых команд, сборка каких-то файлов и даже запуск полноценного интерфейса — совсем не сложно .

Как я это реализовал?

Здесь нет нечего сложного — достаточно иметь смартфон, не раньше 2014 с версией Android , выше 4.4.

Для примера, я буду брать приложение Termux с Play Market .

Также, дополнительно я установлю утилиты AnLinux . Зачем она — расскажу позже.

По сути, после запуска Termux , у нас уже есть более-менее рабочая ОС Linux на смартфоне. По работе она чем-то напоминает Debian/Ubuntu и даже команды, вроде apt работают без проблем.

Однако, нам ведь огрызок не нужен, верно? Обещал полноценный дистрибутив — пожалуйста.

Для этого мы будем использовать ту самую программку AnLinux . Она до боли проста — это сборщик нужных команд, которые нужно просто вставить в Termux и ты получаешь то, что хочешь .

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

Проверял работу Ubuntu, Debian и Archвсе работает без проблем .

Как видите, терминал стал от Ubuntu и прямо сейчас у вас установлен полноценный дистрибутив Ubuntu, как в компьютере !

Полноценный рабочий стол

Думаю, не многим зайдет обычный и скучный терминал. Не беда — есть решение .

Ребята, у нас есть Telegram-группа. Там вы можете задать свой вопрос, поделиться своим мнением или впечатлениями от использования Linux-дистрибутивов.

В той же программке AnLinux , я выбрал Desktop Environment (среду рабочего стола) и поставил XFCE. По сути, после установки у меня будет подобие Xubuntu 19.10. Также, можно поставить LXQT.

Читайте также:  Linux как запустить скрипт питона

Правда, для управление таким рабочим столом удобнее взять мышь и клавиатуру. Так как у меня нет переходника, я подключился удаленно через свой компьютер к рабочему столу своего телефона и могу спокойно управлять системой, заблокировав и положив телефон в карман!

Плюсы, минусы и вывод

Как вы уже поняли, реализовать это — достаточно трудно и новичкам может все это совсем не понравится. И, даже если у вас получится, вы все же столкнетесь с минусами :

  • поиграть в тяжелые игры, заниматься моделированием не выйдет . Все же — это дистрибутив в телефоне, а телефон на базе процессоров архитектуры ARM (но, создать конкуренцию Raspberry Pi можно)
  • для хранения подобной красоты нужно выделить немного памяти (Ubuntu + XFCE + LXQT = 1.2 GB)
  • многим придется будет устанавливать root-права на свой телефон (особенно это касается смартфонов Xiaomi) . Хотя — это зависит от модели вашего телефона и вам может повезти.

Ну и теперь поговорим кратко о плюсах :

  • пусть и на ARM, но это — ОС Linux на вашем смартфоне!
  • есть возможность разгуляться программистам
  • отличный полигон для разных экспериментов, который не испортит вам телефон

Так что, если плюсы вас устраивают и вы готовы мириться с некоторыми минусами — стоит попробовать!

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

Источник

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 not always 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 android

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.

Читайте также:  Docker system requirements linux

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.” How is this possible? Well, Android runs a modified Linux kernel, making it somewhat related to our end-goal. Debian NoRoot also 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.

Debian NoRoot lets you access a full-fledged Linux desktop with a simple download from the Play Store.

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

userland linux android 1

Select your Linux distribution of choice

userland ubuntu install username password

Enter a username and password

userland ubuntu VNC or SSH choice

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:

  1. Download and install the UserLAnd app from the Play Store.
  2. Open the app and select the Linux distribution you wish to install. For the sake of this guide, we’ll proceed with Ubuntu.
  3. Enter a username, password, and VNC password of your choice when prompted. Don’t forget these details or you’ll have to start the process all over again.
  4. The app will now ask you to choose between an SSH or VNC connection. Select the latter if you need a graphical user interface.
  5. Wait until the download completes.
  6. Finally, you should be presented with a login screen, as shown below. Enter the VNC password from earlier to proceed.
Читайте также:  Syslog linux syslog conf

userland vnc connect screenshot

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 install Linux apps 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.

Here’s how to install Linux apps on your Android device

  1. Log into your Ubuntu session via one of the above methods
  2. Open a terminal window
  3. Enter the following commands one by one: sudo apt update and sudo apt install firefox-esr
  4. You can replace firefox-esr in the above command with any other desired program of your choice. Some other examples include vlc and libreoffice.
  5. Once installed, you can launch the program from within the Applications menu, as shown below:

debian noroot app menu

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.

Источник

Оцените статью
Adblock
detector