You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: udroid-landing/quick-installation-and-usage/setting-up-gui/termux-x11.md
+32-20
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,13 @@ description: guide for setting termux-x11 for udroid GUI
6
6
7
7
### Prerequisites
8
8
9
-
* Termux dev build from [<markstyle="color:orange;">Github actions</mark>](https://github.com/termux/termux-app/actions/workflows/debug\_build.yml)<markstyle="color:orange;"></mark>
10
-
* termux-x11 app from [<markstyle="color:orange;">Github actions</mark>](https://github.com/termux/termux-x11/actions/workflows/debug\_build.yml)<markstyle="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 [<markstyle="color:orange;">Github actions</mark>](https://github.com/termux/termux-x11/actions/workflows/debug\_build.yml) <markstyle="color:orange;"></mark> ( prefer downloading one with a green tick mark )
> based on [<markstyle="color:yellow;">issue 87</mark>](https://github.com/RandomCoderOrg/ubuntu-on-android/issues/87)<markstyle="color:yellow;"></mark>
31
+
{% hint style="info" %}
32
+
Recommended to restart termux
33
+
{% endhint %}
30
34
31
-
> Setting termux is done ✌️
35
+
#### Installing termux-x11 starter
32
36
33
-
### Using Termux-x11to 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
34
38
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 ✌️
36
48
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
38
52
39
53
```bash
40
54
termux-x11
41
55
```
42
56
43
57
this starts termux-x11 with all the required ENV variables
44
58
45
-
1. now back to termux and login to udroid with `--shared-tmp` option. 
46
-
47
59
{% 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 )
49
61
{% endhint %}
50
62
63
+
Log in to your favorite udroid distro
64
+
51
65
```bash
52
-
proot-distro login udroid --shared-tmp
66
+
udroid -l xfce4
53
67
```
54
68
55
-
1. Now export `DISPLAY` environment variable with the value `:0` 
56
-
57
-
{% hint style="info" %}
58
-
 `termux-x11` starts display at `:0` ( default )
59
-
{% endhint %}
69
+
Now export `DISPLAY` environment variable with the value `:0` 
60
70
61
71
```bash
62
72
export DISPLAY=:0
63
73
```
64
74
65
-
1.finally start your Desktop Environment ( xfce4 works better )
75
+
finally, start your Desktop Environment ( xfce4 works better )
0 commit comments