The Linux kernel is the foundation for Android. It enables communication between an operating system and the hardware, whether that hardware is a PC, a smartphone, or another piece of gear. The correct name for the Linux operating system is GNU/Linux. However, the term “Linux” has become a catch-all term for both the kernel and the many operating systems throughout time.

  1. Connect your Android phone to your computer.
  2. Install the Linux kernel on your Android phone.
  3. Connect the Linux system to the Android phone using a USB cable.

Steps to connect Linux system with Android phone

Installing necessary packages

Android users can use a free programme called Andronix to automatically install the Linux distribution of their choice. This programme is available through the Play Store.

Termux is a terminal emulator for Android that lets you run Linux command line apps on your smartphone. ..

Distribution Selection

The entire procedure starts with us opening Andronix. A list of distributions will be offered to you for selection. Ubuntu, Fedora, Manjaro, Arch, and Debian are the most widely used. Even though Alpine is the smallest of them, it takes a lot of tweaking to feel cosy. Pick Ubuntu if this is your first time using Linux. When you click the Install button, a version selection screen will appear. You have a choice between 18.04 or 20.04. 2018 saw the release of 18.04, while 2020 saw the arrival of 20.04. The distribution installation commands are then copied by Andronix to the clipboard

Starting installation

After that, open Termux and paste the text by pressing and holding the command prompt’s screen. Press Enter on the keyboard to begin. The installation procedure entails downloading a number of scripts and packages as well as setting up your phone’s operating system. Make sure you have a quick internet connection and that your disc space is sufficient.

The script can download a large amount of data, depending on the platform you select. There will be a lot of text and scrolling. Only few commands may require your confirmation. Entering will select the default choice. Like installing any other operating system on a physical machine, installation could take some time.

VNC configuration

To access the VNC server, you will need to install the VNC server. The first step is to find the installation’s location. To do this, open a terminal and type: ls -l /usr/local/bin/vnc This will list all of the installed programs on your system. You can use this information to determine which program is responsible for controlling the VNC server. If you are using a Debian or Ubuntu system, then the VNC server is likely located at /usr/local/bin/. If you are using Fedora or CentOS systems, then it may be located at /usr/sbin/. You can also check this information by running: vncserver -info

Connect to VNC server of smartphone

To connect to a VNC server on your computer, open the VNC viewer on your phone and enter the server address in the input field. Then click on the Connect button.

Linux distribution is up and running

Now, you can use the Linux distribution on your smartphone in the same way that you would on a laptop or desktop. You can access the distro’s app store to add more programmes, or you can launch the Linux distribution’s console to add more packages. You can run apps and programmes that won’t ever operate natively on your Android smartphone as well as add backgrounds, save data, and perform a tonne of other things. ..

Shutting down the Linux distribution is the best way to ensure that it shuts down properly. Closing the Termux application will also force the Linux distribution to go down. ..

Booting Linux distribution

Your Linux distribution might not be able to be fixed in a straightforward manner. To fix it, you will need to run Termux and enter ls. Every file in that folder will need to be listed. A file with the.sh extension is required. With the command ./start ubuntu20.sh (or the filename of your Linux distribution), your Linux installation will reboot as a result. You can then log back into the Linux desktop using VNC once it has finished booting after a brief delay. Alternatively, you can enter vncserver into the console and hit Enter even if the VNC server is not active.

There are several ways to access your VNC server from a computer connected to the network. This allows you to use a laptop or PC connected to your network to access the Linux operating system on your phone. To utilise a wireless keyboard or mouse with a PC connected to a TV or monitor, you can alternatively purchase an OTG adapter or use Bluetooth to connect a wireless keyboard or mouse to your phone. The possibilities are endless what you want to do with this setup; the possibilities are unlimited. ..

Final Words

KDE-Connect is a mobile companion that allows us to utilize our android device to remotely control and administer our computer system, and vice versa. It is a great solution for people who are working on a PC and want to have access to their smartphones while they are away from the computer. KDE-Connect can be used on both Android devices and Windows 10 computers.