Linux for your phone

AnLinux: простой способ установить Linux-окружение на Android-телефон без рута

Любой телефон или планшет, работающий на Android, — это устройство, которое управляется ОС Linux. Да, очень модифицированной ОС, но все же основа Android — ядро Linux. Но, к сожалению, для большинства телефонов опция «снести Android и поставить дистрибутив по своему вкусу» недоступна.

Поэтому, если хочется Linux на телефоне, приходится покупать специализированные гаджеты вроде PinePhone, о котором мы уже писали в одной из статей. Но есть еще один способ получить Linux-окружение практически на любом смартфоне, причем без root-доступа. Поможет в этом инсталлятор, который называется AnLinux.

Что такое AnLinux?

Это специализированное ПО, которое дает возможность использовать Linux на телефоне при помощи монтирования образа, содержащего root-файловую систему любого из дистрибутивов, включая Ubuntu, Kali, Fedora, CentOS, OpenSuse, Arch, Alpine и многих других. Инсталлятор использует PRoot для эмуляции root-доступа.

PRoot перехватывает все выполняемые пользователем вызовы, которые требуют в обычной ситуации root-доступа, и обеспечивает их работоспособность в обычных условиях. В PRoot используется системный вызов ptrace для отладки ПО, который помогает достичь цели. С PRoot все это можно сделать как с chroot, но без root-прав. Кроме того, PRoot предоставляет фейковый доступ пользователю для пседвофайловой системы.

AnLinux — небольшая программа. Но этого достаточно, ведь единственное ее предназначение — установка образов систем и запуск скриптов, поднимающих пользовательское окружение. Когда все сделано, пользователь получает вместо смартфона Linux-ПК, причем Android продолжает работать на фоне. Подключаемся к устройству при помощи VNC-вьювера или терминала, и можно работать.

Конечно, это не идеальный вариант «завести» Linux на смартфоне, но он вполне рабочий.

С чего начать?

Основное — Android-смартфон с версией ОС не ниже Lollipop. Кроме того, пойдет и 32-битное или 64-битное ARM или x86-устройство. Кроме того, потребуется солидный объем свободного файлового пространства. Для этого можно использовать карту памяти или просто устройство с большим объемом внутренней памяти.

  • AnLinux (вот ссылка на Google Play).
  • Termux (снова понадобится Google Play).
  • VNC Client (VNC Viewer — хороший вариант).
  • Bluetooth-клавиатура (опционально).
  • Bluetooth-мышь (опционально).
  • HDMI кабель для мобильного телефона (опционально).

Что же, приступим

Как только установлен Termux, получаем полноценную консоль. Да, рута нет (если телефон не рутован), но ничего страшного. Следующий шаг — установка образа для дистрибутива Linux.

Теперь нужно открыть AnLinux и затем — выбрать Dashboard из меню. Всего есть три кнопки, но выбрать можно лишь одну, первую. После этого появляется меню выбора дистрибутива. Можно выбрать даже не один, а несколько, но в этом случае понадобится большой объем свободного файлового пространства.

Читайте также:  Сделать zip архив linux

После выбора дистрибутива активируются две другие кнопки. Вторая позволяет загрузить в буфер обмена команды, необходимые для загрузки и установки Linux. Обычно это pkg, wget команды и скрипт для их выполнения.

Третья кнопка запускает Termux, так что команды можно вставлять в консоль. Как только все сделано, запускается скрипт, позволяющий загрузить окружение дистрибутива. Для вызова дистрибутива нужно каждый раз запускать скрипт, но установку проводим только один раз.

А что с графической оболочкой?

Если она нужна, то следует лишь выбрать меню для десктопного окружения и использовать больше кнопок — появится не три, а больше. Кроме самого дистрибутива, нужно выбрать еще и оболочку, например, Xfce4, Mate, LXQt или LXDE. В целом, ничего сложного.

Потом кроме скрипта, который запускает дистрибутив, потребуется еще один — он активирует сервер VNC. В целом, весь процесс простой и понятный, он вряд ли способен вызвать затруднения.

После запуска сервера VNC подключаемся со стороны клиента, воспользовавшись вьювером. Требуется знать порт и localhost. Все это сообщает скрипт. Если все сделано правильно, то пользователь получает доступ к своей виртуальной Linux-системе. Производительность современных телефонов на высоте, так что особых проблем не будет. Конечно, вряд ли смартфон сможет полностью заменить десктоп, но, в целом, все это работает.

Этот способ может пригодиться, если вдруг нужно срочно подключиться к серверу, а вы в машине, без ноутбука (конечно, в этом случае все описанные выше операции с AnLinux уже должны быть выполнены). Виртуальная Linux-машина позволяет подключиться к рабочему или домашнему серверу. А если в автомобиле по какой-то причине оказался дисплей и беспроводная клавиатура, то за считанные секунды в салоне можно организовать рабочий кабинет.

Источник

The 6 Best Linux-based OS for Android Smartphones

Try 6 alternative operating systems for Android built on Linux.

The 6 Best Linux-based OS for Android Smartphones

If you are tired of Android and are looking for an alternative operating system for your smartphone then Linux is the best choice but which one to install in today’s era of hundreds of versions? Well, don’t worry as we have compiled your list of the 6 best Linux distros for Android. This would be the same as you making your Windows PC look like Linux while keeping all the GUI features.

6 Linux OS for your Smartphones (Alternative Choices)

PostmarketOS – Based on Alpine Linux

This is a simplified version of Alpine for smartphone devices and describes itself as a “real distro for mobiles”.

For now, it is in its beta stage to create a sustainable mobile operation that too with long-term support.

At the time it is providing support to many devices including Samsung Galaxy A3 (2015) and A5 (2015) along with Samsung Galaxy S4 mini value Edition as well as the following:

  • Nokia N900
  • PINE64 PinePhone
  • PINE64 PineTab
  • Purism Librem 5
  • Wileyfox Swift
  • ASUS MeMo Pad 7
  • BQ Aquaris X5
  • Motorola Moto G4 Play

This runs of any device including:

As it offers users multiple desktop environments it is able to create a long-term sustainable mobile OS.

Читайте также:  Линукс операционная система интерфейс

Ubuntu Touch – Your Ubuntu experience at fingertips

Ubuntu Touch

This was released by the Ubuntu developers Canonical who is one of the most famous Linux mobile OS, Ubuntu Touch and for now, is maintained by UBports.

It has an intelligent touch approach towards smartphone devices, dealing with the lack of applications by providing news, social as well as photo tools natively. All of this is done in the guise of scopes, multiple pages of the home screen which provide a lot of customized news, weather, applications as well as social networks. You can also install Ubuntu themes if you gett bored with how it looks by default by changing the icons and fonts.

This one again works well, too, though there is always a time when applications are required. If we talk about this one then its biggest strength is Convergence.

This is a system similar to Samsung DeX. In this, the mobile device is connected to a wireless HDMI device, mouse, and keyboard and is used as a desktop PC. For those who don’t know the only difference between this and desktop Linux is that the phone device carries an ARM processor.

For now, it provides support to Volla Phone, OnePlus One, Fairphone 2 and BQ Aquaris tablet. Many other phone devices can run Ubuntu touch.

Mobian – Debian on mobile

Mobian OS

This is a Linux phone operating system that is simply described as “Debian for Mobile”. It was developed back in the year 2002. For now, this one is available for phones and tablets and also has an x86-based device like standard PCs, laptops, hybrids as well as Windows tablets.

  • PinePhone Pro
  • PineTab
  • Xiaomi Pocophone F1
  • Surface Pro 3 tablet
  • Librem 5
  • OnePlus 6
  • OnePlus 7
  • OnePlus 9 / Pro
  • PinePhone

Sailfish 4 (Sailfix X) – Privacy respecting OS

Sailfish OS

This is yet another option that was jointly developed by Jolla, Mer ( middleware stack developer), Sailfish Alliance (group of corporations) and community members. This Operating system is deemed to be a continuation of abandoned OS MeeGo, based on Maemo and Moblin.

Its latest version is called Sailfish X which runs on Sony Xperia X devices. This however is not open-source and its free version too has a time-limited trial. Now, most of the phones compatible with Linux run this though the development is focused on Sony Xperia, Gemini PDA devices and Sony Xperia 10.

Its full version will cost you around $50 and can be found only within the European Union, Norway and Switzerland.

Moreover, it comes with Android application support along with Microsoft Exchange support. If you are appealed to all this then make sure to give it a try.

Plasma Mobile UI – A minimalistic interface

Plasma Mobile Interface

If you already run a Linux phone distro and are not amused by how it looks then you need to have a look at this option. it is a smartphone-focused spin on popular plasma which is seemed to be the ideal pick for many scenarios.

Читайте также:  Пароль usr1cv8 по умолчанию linux

This is a desktop environment rather than Linux based mobile operating system. It provides its users with phone-optimized distributions. It comes with an easy-to-use interface so you might find Manjaro ARM, OpenSUSE and Arch ARM. For now, one of Fedora’s versions which intends to work with Plasma mobile is in the development phase. Moreover, you can also run PostmarketOS with plasma other than the default environment.

It provides support to desktop plasma applications and widgets along with Ubuntu touch applications.

It can run on PinePhone and others which are supported by PostmarketOS.

PureOS – Secure and Simplistic

PureOS

This is a security-focused Linux phone operating system all from Purism which is a default OS for Purism’s very first smartphone which is the Librem 5.

This is seemed to be one of the most secured and private mobile phone platforms but keep in mind that most of this depends upon the hardware of Librem 5 which includes a mic, camera as well as connectivity.

At this stage, few other devices can run this successfully. Keep in mind that this is yet another Linux mobile OS that can be installed on the PinePhone.

Frequently Asked Questions on Replacing Android OS

#1 – Can Android be replaced with Linux on a tablet?

Few devices on which these distros work are in fact tablets. Most of these are tablets though you might get Linux on windows tablets with plasma mobile.

You need to check out every mobile operating system with different smartphones and check if they are compatible with the Processor or RAM. Make sure to investigate as you can’t replace Android on most tablets due to manufacturer limits and locks.

Keep one thing one your mind that you can’t install it on an iPad. Talking about Apple then it keeps its OS and hardware firmly locked so there is no avenue for Linux (or android) here.

#2 – Do we have many choices for Distros?

Yes, you have over 8 choices to choose from however there are still more in development.

  1. Plasma.
  2. PureOS.
  3. Mobian.
  4. Sailfish OS.
  5. PostmarketOS.
  6. Kali Linux.
  7. Parrot OS.
  8. Ubuntu Touch.

Linux for mobile devices shall become more popular as today people have become more privacy-conscious and want more control of their phones.

#3 – Would I get monthly security updates?

No, however you may get patches and updates that are similar and provide fixes and improvements. This is because all of these projects are open source and are maintained by community members that dedicate their time when they are free.

Final Statement

It all comes down to usability. We may like the terminal and how useful it is allowing for automation and quick access to configuration. But, is it really usable? This is why we researched 6 Linux OS for Android devices that are user-friendly and have a graphical interface that you can interact with to make the experience more fun and unique.

Источник

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