Every article tag can be clicked to get a list of all articles in that category. Every article tag also has an RSS feed! You can customize an RSS feed too!
HOWTO: Running Linux on your Android Phone
Avehicle7887 Dec 30, 2018
I've been searching a way how to do this for a while now, thought I might share some info how it's done. My Phone is a Nexus 5X (upgraded to Android 8.1), not rooted. I don't have much experience with this so your mileage may vary. Also make sure you have at least 4-5GB space.

Apps you'll need (both are open source and no google play store required):

UserLAnd (ULA): https://userland.tech/ (Git: https://github.com/CypherpunkArmory/UserLAnd )
bVNC_Free: https://github.com/iiordanov/remote-desktop-clients/releases


After installing both software, a simple desktop can be setup with more or less these steps:

1) Open up ULA > choose a distro (I chose Debian)
2) Wait for the initial setup to finish and it will boot you to a simple Window system with a terminal.
3) From there type "su" to switch over to the "system's root" (not actual phone's root).
4) type: apt-get update > when done > apt-get install lxde (for lxde desktop).
5) Wait for all the packages to download and setup (may take a while and have your charger readily available).
6) When all is done go into ULA > go to Sessions list > Kill service on your OS > relaunch it and should boot you to the desktop.

Desktop Resizing:

If the desktop size doesn't fit your screen, in your new Linux home folder create a new file named ".vncrc" and inside add a custom resolution line such as: $geometry = "1280x720";

Restarting the X Server should reload with the correct display settings.

A screenshot of what you can expect:
Shmerl Dec 31, 2018
I'm running SailfishOS on Sony Xperia XA2. No need for chroot and such, but it does rely on libhybris hack. For normal Linux with proper upstream drivers, we'll have to wait for Librem 5.
Salvatos Dec 31, 2018
If only I knew for sure that the Librem 5 can handle office work and a bit of multitasking, I could see it as a replacement for my aging laptop and justify the cost of what could otherwise be a very nice PC upgrade. As it stands, call me old-fashioned but why anyone would pay hundreds of dollars for a phone that will be obsolete, lost or broken in a handful of years is still beyond me.
Avehicle7887 Dec 31, 2018
I've toyed with it for some more, most of it is functional however you can expect random errors around many corners. For example I can use Libreoffice,GIMP and Firefox without issues, but fails to apply a simple icon theme in Xfce and I have yet to successfully start pulseaudio.

It's a nice learning experience, but far from a desktop os in your pocket.
Linacruise1467 Jan 21, 2019
Quoting: ShmerlI'm running SailfishOS on Sony Xperia XA2. No need for chroot and such, but it does rely on libhybris hack. For normal Linux with proper upstream drivers, we'll have to wait for Librem 5.
Agree with you.
Koopacabras Jan 21, 2019
nice tutorial. I'll give it a try, what's the difference with the other apps that also do the same like linux deploy.
anyway, the problem I had is that it was really slow, I have an old phone a moto e2.

I also tried sailfish os, it's a great, I like that it uses rpm packages, but unfortunately the port for my phone lacks the android alien subsystem, so there's lots of apps that don't run.
Avehicle7887 Jan 21, 2019
Quoting: chancho_zombienice tutorial. I'll give it a try, what's the difference with the other apps that also do the same like linux deploy.
anyway, the problem I had is that it was really slow, I have an old phone a moto e2.

I also tried sailfish os, it's a great, I like that it uses rpm packages, but unfortunately the port for my phone lacks the android alien subsystem, so there's lots of apps that don't run.

While the system works, be ready for a few errors here and there, it's usable but far from a pleasant mini desktop on your phone. A few of the issues I encountered: Can't apply themes and icon themes on Xfce, some programs refuse to run unless I open a
terminal > type "su" and then the name of the program and I have yet to get sound working.

On the good side of things, I've been able to run firefox and browse youtube (without sound), run Gimp and Libreoffice and basic programs like calculator and a text editor.

I also tried a couple of games but they crashed upon trying to create the window.
Koopacabras Feb 14, 2019
I'm running arch, and managed to install yaourt now.

you'll probably stumb upon this error, that doesn't let you compile anything w/yaourt
    $ fakeroot
    fakeroot, while creating message channels: Function not implemented
    This may be due to a lack of SYSV IPC support.
    fakeroot: error while starting the `faked' daemon
    kill: usage: ...


so you need to install fake root in opt but bypassing fakeroot on PKGBUILD, just create this PKGBUILD in a directory

pkgname=fakeroot-tcp
_pkgname=fakeroot
pkgver=1.23
pkgrel=1
pkgdesc='Tool for simulating superuser privileges,with tcp ipc'
arch=('i686' 'x86_64' 'armv7h')
license=('GPL')
url="http://packages.debian.org/fakeroot"
install=fakeroot.install
depends=('glibc' 'filesystem' 'sed' 'util-linux' 'sh')
makedepends=('po4a')
provides=("${_pkgname}=${pkgver}-${pkgrel}")
conflicts=("${_pkgname}")
source=(http://ftp.debian.org/debian/pool/main/f/$_pkgname/${_pkgname}_${pkgver}.orig.tar.xz)

wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.23.orig.tar.xz
tar xvf fakeroot_1.23.orig.tar.xz
cd fakeroot-1.23/
./bootstrap
./configure --prefix=/opt/fakeroot \
    --libdir=/opt/fakeroot/libs \
    --disable-static \
    --with-ipc=tcp
make
sudo make install
/opt/fakeroot/bin/fakeroot
exit
exit


make it with makepkg -si it will install fakeroot to opt.
Now add to bashrc

export PATH=/opt/fakeroot/bin:$PATH

now download the fakeroot-tcp PKGBUILD from AUR (and the source patches) and install with makepkg -si (you would probably need to exit vnc and restart the environment to source the variables)

now that you have installed fakeroot-tcp, just remove /opt/fakeroot (with rm )

now you can install yaourt ! :D:D



(me compiling otter browser)
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.