Skip to content

Commit 27b555e

Browse files
SaicharanKandukurigitbook-bot
authored andcommitted
GitBook: [#31] update termux-x11 docs #6
1 parent 5456c01 commit 27b555e

File tree

5 files changed

+32
-20
lines changed

5 files changed

+32
-20
lines changed

.gitbook/assets/image (1).png

108 KB
Loading

.gitbook/assets/image (2).png

49.9 KB
Loading

.gitbook/assets/image (3).png

108 KB
Loading

.gitbook/assets/image.png

108 KB
Loading

udroid-landing/quick-installation-and-usage/setting-up-gui/termux-x11.md

+32-20
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ description: guide for setting termux-x11 for udroid GUI
66

77
### Prerequisites
88

9-
* Termux dev build from [<mark style="color:orange;">Github actions</mark>](https://github.com/termux/termux-app/actions/workflows/debug\_build.yml)<mark style="color:orange;"></mark>
10-
* termux-x11 app from [<mark style="color:orange;">Github actions</mark>](https://github.com/termux/termux-x11/actions/workflows/debug\_build.yml)<mark style="color:orange;"></mark>
9+
* Get termux from [termux.com](https://termux.com) or [F-Droid.](https://f-droid.org/en/packages/com.termux/)
10+
* termux-x11 app from [<mark style="color:orange;">Github actions</mark>](https://github.com/termux/termux-x11/actions/workflows/debug\_build.yml) <mark style="color:orange;"></mark> ( prefer downloading one with a green tick mark )
11+
* <img src="../../../.gitbook/assets/image (3).png" alt="" data-size="original">![](<../../../.gitbook/assets/image (2).png>)
1112

1213
### Setting up termux
1314

14-
`xwayland` ( binaries for Wayland ) & `termux-x11` ( scripts to start termux-x11 app from termux ) are in `x11-repo`
15+
`xwayland` ( binaries for Wayland ) is in `x11-repo` & `termux-x11` ( available as zip in action builds )
1516

1617
```bash
1718
pkg install x11-repo -y
@@ -24,45 +25,54 @@ set property `allow-external-apps` to `true` in `~/.termux/termux.properties`
2425

2526
```
2627
echo 'allow-external-apps = true' >> ~/.termux/termux.properties
28+
termux-reload-settings
2729
```
2830

29-
> based on [<mark style="color:yellow;">issue 87</mark>](https://github.com/RandomCoderOrg/ubuntu-on-android/issues/87)<mark style="color:yellow;"></mark>
31+
{% hint style="info" %}
32+
Recommended to restart termux
33+
{% endhint %}
3034

31-
> Setting termux is done ✌️
35+
#### Installing termux-x11 starter
3236

33-
### Using Termux-x11 to run `proot-distro` Linux
37+
The zip you installed from[ STEP 2](termux-x11.md#prerequisites) contains a `.deb` file. to start `termux-x11` the server we need to install it in `termux` session
3438

35-
assuming you installed ubuntu with proot-distro with xfce4 installed
39+
```
40+
termux-setup-storage
41+
cp /sdcard/Download/termux-x11.zip ~
42+
unzip termux-x11.zip
43+
cd termux-x11
44+
dpkg -i --force-depends termux-x11.deb
45+
```
46+
47+
Setting termux is done ✌️
3648

37-
in your termux execute
49+
### Using Termux-x11 to run `proot-distro` Linux
50+
51+
assuming you installed ubuntu with proot-distro with xfce4 installed, in your termux execute
3852

3953
```bash
4054
termux-x11
4155
```
4256

4357
this starts termux-x11 with all the required ENV variables
4458

45-
1. now back to termux and login to udroid with `--shared-tmp` option.&#x20;
46-
4759
{% hint style="info" %}
48-
by default, Wayland socket is stored in termux `$TMPDIR` so using `--shared-tmp` bind `/tmp` in proot Linux to `$TMPDIR` of termux app
60+
by default, the Wayland socket is stored in termux `$TMPDIR` so using --shared-tmp binds `/tmp` in proot Linux to `$TMPDIR` of termux app \[ udroid manages to do this by default )
4961
{% endhint %}
5062

63+
Log in to your favorite udroid distro
64+
5165
```bash
52-
proot-distro login udroid --shared-tmp
66+
udroid -l xfce4
5367
```
5468

55-
1. Now export `DISPLAY` environment variable with the value `:0`&#x20;
56-
57-
{% hint style="info" %}
58-
&#x20;`termux-x11` starts display at `:0` ( default )
59-
{% endhint %}
69+
Now export `DISPLAY` environment variable with the value `:0`&#x20;
6070

6171
```bash
6272
export DISPLAY=:0
6373
```
6474

65-
1. finally start your Desktop Environment ( xfce4 works better )
75+
finally, start your Desktop Environment ( xfce4 works better )
6676

6777
```bash
6878
dbus-launch --exit-with-session startxfce4
@@ -80,6 +90,8 @@ Official termux-x11 repo
8090

8191
{% embed url="https://github.com/wayland-project/wayland" %}
8292

83-
&#x20;Docs Wayland implementation in android
93+
#### Check this section for suites
8494

85-
{% embed url="https://at.projects.genivi.org/wiki/display/DIRO/Wayland+Application+on+Android" %}
95+
{% content-ref url="broken-reference" %}
96+
[Broken link](broken-reference)
97+
{% endcontent-ref %}

0 commit comments

Comments
 (0)