How to Run ArchLinux Plasma on Android !!

Hi there, this whole in a nutshell is guide to install and setup ArchLinux on your android without root and with KDE Plasma. Some small fixes and that’s it.

Arch Linux is a Linux distribution created for computers with x86-64 processors. Arch Linux adheres to the KISS principle (Keep It Simple, Stupid). The project attempts to have minimal distribution-specific changes, and therefore minimal breakage with updates, and be pragmatic over ideological design choices and focus on customizability rather than user-friendliness

 

Requirements:-

A android device capable of running Termux.

2-3gb free space atleast. 

 

Installation:-

 First installation termux, then install proot-distro with this command:-

pkg update && apt upgrade -y && apt install proot-distro 

 

And install x11-repo, pulseaudio, tigervnc and xorg-xhost for starting VNC.

pkg install x11-repo pulseaudio; pkg install xorg-xhost tigervnc

 

Now starting installing arch linux, prefer using wifi

proot-distro install archlinux

 

Setting up ArchLinux:-

Once it installed, use this to login and it will enable dbus too (required for KDE Plasma)

proot-distro login archlinux --bind /dev/null:/proc/sys/kernel/cap_last_cap

 

Now lets install some required packages and setup a non-root user for KDE Plasma. 

pacman -Syuu & pacman -S sudo neofetch

 

Once both packages installed, add a user (choose name of your choice)

export USER=(username); useradd $USER; echo "$USER ALL=(ALL) ALL" >> /etc/sudoers 

 

Now add a password for that user then login with that user, it, from this you can use sudo command with non-root user.

passwd $USER

 

 

Installing KDE Plasma:-

We’ll install minimal version of KDE Plasma, it will be much faster than whole. It will take sometime to install it, just keep patience.

pacman -S plasma-desktop

 

Once it installed, lets install some useful applications like browser, file manager, terminal etc.

pacman -S dolphin firefox konsole kdeplasma-addons kde-gtk-config

 

Setting up sound:-

Use this command in termux to setup pulseaudio, termux will work as medium for sound.

 
 
  • pulseaudio –start –exit-idle-time=-1

 

 

And then use this command in termux. We’ll export pulseserver while starting vnc

  • pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1

 

 
 

Setting up VNC

Open new session in termux and start vnc:-

  • vncserver -geometry 2264×1080 -listen tcp :1; DISPLAY=:1 xhost +

 

 

And in arch linux session start ArchLinux with:-
  • PULSE_SERVER=127.0.0.1 DISPLAY=:1 dbus-launch plasma_session

 

 
 

I am a seasoned software engineer and passionate tech YouTuber with over 100,000 subscribers. I enjoy exploring emerging technologies and sharing insights with the tech community.

Sharing Is Caring:

0 thoughts on “How to Run ArchLinux Plasma on Android !!”

Leave a Comment