Install GNU/Linux on a smartphone with Android without root

There are a variety of ways to install GNU/Linux on mobile phone with Android, but most of them require the user zanimayuschegosya this simple case, the presence of administrator privileges in the OS. You should be able to switch to root to make such a major change in the organization of files on the smartphone. And what if desktop GNU/Linux distribution on the gadget you want to start, but picking neither the time nor the inclination? Of course, there is a solution, and not one, and that’s about it speech will go today.

We need:
• actually, the smartphone any Android, preferably not really old junk;
• normal connection of the smartphone with Internet;
• a large enough amount of free space (SD card will come down only if used as internal and not as external storage!);
• care!

For a start, installed on smartphone F-Droid repository, which we have already talked about. Before that, it is very important to find widgets that are responsible for the ability to run software from outside sources, and activate it. Otherwise we will not get anything at all.

Make sure that work with outside programs possible!

Next, we will work exclusively with this repository, forgetting for a while about proprietorship from sources Google. Therefore, do not turn off the function of setting IN the stranger! Of course, this is a serious hole in the security of your device, however, in the presence of direct hands it is possible to live quietly.

From the F-Droid repository we will need to install two programs — a well-known terminal emulator Termux and a thing called AnLinux. In the screenshot below, they are perfectly visible.

We will need a program Termux and AnLinux — the first two in the list.

To log in with the graphical environment we need also the client work with remote desktop. This is, as they say, a matter of taste. If you want my advice — install androidVNC from the same F-Droid repository. Don’t forget to give him all the permissions which it will ask.

Give the program the appropriate permissions.

In General, your Linux kit for smartphone should look like this:

Of course, the last program of your choice.

It’s time to log in Termux and update all software:

apt update && apt full-upgrade -y

Now, leaving the terminal to run in the background, run AnLinux. The program interface is intuitive. Select the package for installation.

I chose Debian GNU/Linux.

In response, the program prompts you to perform a huge team in your Termux. For convenience there is a button “COPY” (“COPY”) that allows you to instantly transfer all that token to the clipboard. Use it.

Here it is, our team!

Go back to Termux and paste the clipboard contents — our team.

Please note! If for some reason the command is not inserted, you may have to enter it by hand… Sorry.

You only have to click “Enter”…

After a few seconds (or minutes) on the smartphone installed base system and a special startup script that will allow us to download it. At the end of the installation process, you must report how to launch your new OS.

In the case of Debian GNU/Linux, the command to run looks like.

Now let’s get into the new system by running the corresponding script.

Changed the prompt in the terminal: we now in Debian!

In the latest OS update VIA the regular ways. For Debian GNU/Linux, for example, the command would look like this:

apt update && apt full-upgrade -y

Now is the time to get out of our system back to the command prompt Termux. This once run:

exit

Note! If you execute exit twice, it will come from the specified distribution, and Termux. Last we need not, therefore, make sure that you have enabled and not doing anything Termux before continuing.

Leave Termux work in the background and again, I turn to AnLinux. In its main menu select “Desktop Environment”.

The desired item is underlined.

The program will ask you to tell her on what kind of system will be a graphical environment.

To start, specify the distribution you want to install the GUI!

The next step is selection of the actual environment. It is not very large because the developers made the installation of only the lungs.

Choose the graphical environment.

And that’s going to happen next, you have already faced: AnLinux again will offer you more command for inserting in Termux, and you follow her there.

The installation process will be long enough. I recommend not to give the phone “to sleep” (because on some devices it can stop the command) and periodically check, not asking whether you have something Termux. For example, language and layout that you want to write English (“English (US)” — “Default”).

There, at the top — my answer system question about layout.

At the end of the installation a command prompt will tell you very important information, namely the address and port on which will be available to your graphical environment. These values should literally kill yourself on the nose!

Pay attention to what he says!

Well, now everything is ready. I suggest at this stage to shut down the robot of our programs. Exit from GNU/Linux, and Termux, twice in a row by running the command:

exit

Close AnLinux and F-Droid the regular means of your smartphone, as well as unload the RAM, completing the maximum number are not really needed. We will need a lot of RAM.

Ready? Run Termux, it is the first command included in a previously installed operating system. It will launch the VNC server, as previously taught command line:

vncserver start

I already entered the command to start the VNC server.

When we launch vncserver for the first time, it prompts you to create security password. Think of some key (and can be very difficult, if not collected from your gadget to hack the Pentagon), enter it in the terminal twice and remember exactly the same as the remembered address and port of the VNC server… You remember, right?

You will then run itself a graphical environment. Here it all depends on what you have installed. For example, to run MATE you should run:

mate-session

To run Xfce4, you need to perform:

startxfce4

Once you start the GUI and Termux “clogged” with a bunch of messages, leave it running in the background, and do, run your program to work with remote desktop. Remember the address, port, and password needed to connect? It’s time to enter them in corresponding fields!

So in the program androidVNC fields look where all this need to enter.

If done correctly, you launch the graphical environment and be able to work in a full-fledged GNU/Linux distribution on your phone without any root.

9.7 Debian “Jessie” Xfce on my cell phone.

It is important to remember that the session times out properly and not just forcibly kill the process.

To correctly enter, to begin, shut down your client work with remote desktop, after that open Termux that runs a GNU/Linux distribution. Follow:

vncserver-stop
exit
exit

Did you install it on your gadget GNU/Linux? Maybe you know some alternative ways to install distros on Android devices? Share them in the comments!

Author: root
Image: screenshots of the author

Reception of works on competition concen! Just received 39 texts. In a few weeks will announce the results!

Source: linuxthebest.net

(Visited 233 times, 1 visits today)