Termux-packages: Idea: Add support for XServer via XSDL

Created on 26 Feb 2016  Â·  29Comments  Â·  Source: termux/termux-packages

There is fully working but very slow proof of concept of running whole XServer and XFce desktop manager including GTK applications (Gimp and Inkscape) on Android. It downloads huge amount of data and takes tens of minutes to install but a lot of work seems to be already done in that field.

Would it be possible to merge some parts of int into Termux to pave the path for X apps on Android?
References:

enhancement

Most helpful comment

Its working!

https://drive.google.com/file/d/0B8Q4yBRb9PSHRFBUeHZKc0tiMGs/view?usp=drivesdk

Old:
I'll try and report whether my xserver build works on XDSL

All 29 comments

It is my understanding that if a set of x server header files are provided during compilation and the appropriate configure flags are set, it would be possible to compile some applications with x11 support built in. Then running XServer SXDL and exporting DISPLAY=:0 should be enough to enable this.

This would be amazing

Linux deploy requires root though.

I find one way to add support for XServer XSDL
(1) install Fedora via Termux
see https://nmilosev.svbtle.com/fedora-on-nonrooted-android-phones-2016-update
(2) start fedora
startfedora
(3) install KDE
yum|dnf install @kde-desktop
(4) start XServer XSDL
(5) use XSDL
export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4712

I would be willing to implement this feature if there is interest from the developers in including it.

Interested. Would let me extend my VS Code builds to Android (which is the least of what it would enable, let's be honest).

vishalbiswas has done it vnc but not made it into a distributable format as the dependencies and number of packages is a lot.
https://github.com/vishalbiswas/termux-packages

I think that I am not going to use vnc if I implement it because vnc is not super fast. I want to try to target lower end phones. As for getting x I am having a bit of trouble. I want to use xfce4 because A. Lightweight and B. looks good. There's no xfce4 for termux though. So I've tried to install a chroot but there is no chroot for termux and my debootstrap of debian keeps failing. Minor setbacks. Currently I am trying out this fellow here: https://github.com/Neo-Oli/termux-ubuntu/blob/master/ubuntu.sh

I've had good experiences with chrooting Alpine, but it doesn't get me to X.

And a separate application isn't a route that I want to go down (its not
user friendly enough)

On 25 Jul 2017 11:44, "John Morris Beck" notifications@github.com wrote:

I think that I am not going to use vnc if I implement it because vnc is
not super fast. I want to try to target lower end phones. As for getting x
I am having a bit of trouble. I want to use xfce4 because A. Lightweight
and B. looks good. There's no xfce4 for termux though. So I've tried to
install a chroot but there is no chroot for termux and my debootstrap of
debian keeps failing. Minor setbacks. Currently I am trying out this fellow
here: https://github.com/Neo-Oli/termux-ubuntu/blob/master/ubuntu.sh

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/termux/termux-packages/issues/146#issuecomment-317700145,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKYVoHZyuv7AUQ1zEmkzK9e5jLx5Bf_Uks5sRcb1gaJpZM4Hjoh1
.

If what you mean is that there is not permissible to use a chroot in order to get x then I'd either have to make a separate project or else I'd have to get xfce4 into the repositories.

If I add some functionality similar to the arch user repository so that users can add their custom compiled stuff or packaged things so they can be compiled really fast then I may be able to kill two birds with one stone.

Its working!

https://drive.google.com/file/d/0B8Q4yBRb9PSHRFBUeHZKc0tiMGs/view?usp=drivesdk

Old:
I'll try and report whether my xserver build works on XDSL

How did you get x on there?

@johnmorrisbeck as its-pointless mentioned, I previously created packages for libx11, xorg-server(Xvfb only), tigervnc to get gui via VNC.
I just ran the binaries compiled against that library after exporting DISPLAY=:0

How do I get those packages in termux?

@johnmorrisbeck you'll have to compile them ypurself from my x11 branch

@vishalbiswas How to install it? Can you send the step by step here?

@cr4shcod3 you can setup a development environment using the README.
Then just build all the packages I added to that branch by runnimg ./build-package.sh <package-name>
There are a lot of packages.

screenshot_20170807-121840
I install Fedora then I install lxde because it only takes a small space on your storage. I want to install Cinnamon but its too big :/. By the way. Firefox is not working well

Used the same process as @cr4shcod3 with lxde and fedora aarch64, replaced firefox with the latest available fc25 icecat rpm and it works
rpm: ftp://rpmfind.net/linux/fedora-secondary/updates/25/aarch64/i/icecat-52.1.0-2.fc25.aarch64.rpm

Do you have a way to connect the Fedora lxde from remote desktop?

Termux is clearly the best shell available on android and if we can get some compiler tools in here we may just get ourselves a user repository going. I can help to design the user repository but I don't know how to get my compilation tools on there.

Anyone make progress on this? Have binary packages for xorg been uploaded anywhere?

getting X up and running

A couple of years ago @sarimak shared this elusive idea, and now it is real. There are a number of ways to accomplish this goal today, including Arch Linux in Termux PRoot. Screenshots from Android smartphone:

screenshot_20180326-165002

screenshot_20180413-172406

For whatever reason, using DISPLAY=:0 doesn't work for me but DISPLAY=127.0.0.1:0 does.

X11 packages are available here: https://github.com/xeffyr/termux-extra-packages.

For whatever reason, using DISPLAY=:0 doesn't work for me but DISPLAY=127.0.0.1:0 does.

This helped me. Installed Termux and Xserver XDSL. Then the export DISPLAY=127.0.0.1:0 and it all worked out perfectly.
Indeed it didn't work with only DISPLAY=:0 for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Zuccace picture Zuccace  Â·  3Comments

adit picture adit  Â·  3Comments

newmania picture newmania  Â·  3Comments

Cyb3rD3m0n picture Cyb3rD3m0n  Â·  3Comments

thurask picture thurask  Â·  3Comments