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/setting-up-gui/termux-x11.md
+41-35Lines changed: 41 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -4,80 +4,86 @@ description: guide for setting termux-x11 for udroid GUI
4
4
5
5
# setting up termux-x11
6
6
7
-
Termux:X11 is a termux addon providing android frontend for xwayland. It uses Wayland display protocol, which is aimed to become the successor of the X Window System. Note that it is not a fullyfledged wayland server, its like a X system in wayland.
7
+
termux-x11 is a termux addon providing Android frontend for xwayland. It uses the Wayland display protocol, which is aimed to become the successor of the X Window System. Note that it is not a fully-fledged Wayland server, it's like an X system in Wayland.
8
8
9
9
### 1. How does it work?
10
10
11
-
Through its companion package, the executable creates socket through $XDG\_RUNTIME\_DIR in Termux directory by default.
11
+
Through its companion package, the executable creates a socket through $XDG\_RUNTIME\_DIR in the Termux directory by default.
12
12
13
-
The wayland sockets is the way for the graphical applications to communicate with. Termux X11 applications do not have wayland support yet, this kind of setup may not be straightforward and therefore additional packages should be installed in order for X11 applications to be run in Termux:X11.
13
+
The Wayland sockets are the way for the graphical applications to communicate with. Termux X11 applications do not have Wayland support yet, this kind of setup may not be straightforward and therefore additional packages should be installed in order for X11 applications to be run in termux-x11.
14
14
15
15
### 2. Requirements
16
16
17
-
* Termux from workflows builds
18
-
* Termux:x11 companion app from [<markstyle="color:orange;">Github actions</mark>](https://github.com/termux/termux-x11/actions/workflows/debug\_build.yml) ( prefer downloading one with a green tick mark )
* Termux from [f-droid](https://f-droid.org/en/packages/com.termux/) or [termux-dev builds](https://github.com/termux/termux-app/actions/workflows/debug\_build.yml)
18
+
* termux-x11 app from [GitHub releases page](https://github.com/termux/termux-x11/releases)
First, we need to set `x11-repo` and then to install `termux-x11-nightly`. These commands below do the job of installing both of them. execute these commands in termux-app ( copy, paste, then enter )
24
28
25
29
```bash
26
-
pkg install x11-repo -y
27
-
pkg install termux-x11-nightly
30
+
apt install x11-repo -y
31
+
apt install termux-x11-nightly -y
28
32
```
29
33
34
+
### 4. Starting `termux-x11` app
30
35
31
-
### 4. Using Termux-x11 to run udroid
32
-
33
-
Assuming you installed ubuntu with proot-distro with xfce4 installed, in termux session execute
36
+
To start `termux-x11` app just use this command.
34
37
35
38
```bash
36
39
termux-x11 :0
37
40
```
38
41
39
-
this starts termux-x11 with all the required ENV variables
42
+
This launches the termux-x11 app and XWayland server with the display on address `:0`
40
43
41
44
{% hint style="info" %}
42
-
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 )
45
+
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 )
43
46
{% endhint %}
44
47
45
-
Log in to your favorite udroid distro
48
+
### 5. Using termux-x11 with UDROID
46
49
47
-
```bash
48
-
udroid -l xfce4
49
-
```
50
+
udorid launch script takes care of mounting the termux-x11 default socket directory to the suites tmp directory, you just have to export the **DISPLAY** variable to the correct display address and run the application/Desktop environment to show the GUI in termux-x11
50
51
51
-
Now export `DISPLAY` environment variable with the value `:0`
52
+
### Examples
53
+
54
+
#### Staring `glxgears`
52
55
53
56
```bash
54
57
export DISPLAY=:0
58
+
glxgears
55
59
```
56
60
57
-
finally, start your Desktop Environment ( xfce4 works better )
61
+
#### Staring `xfce4`
58
62
59
63
```bash
60
-
dbus-launch --exit-with-session startxfce4
64
+
export DIPLAY=:0
65
+
startxfce4
61
66
```
62
67
63
-
That's all now if you open minimized Termux:x11 app you see xfce4 running
64
-
65
-
### 5. Troubleshooting
68
+
#### Staring `gnome`
66
69
67
-
will be updated soon...
68
-
69
-
### References
70
+
```bash
71
+
export DISPLAY=:0
72
+
export XDG_CURRENT_DIR=GNOME
70
73
71
-
Official termux-x11 repo
74
+
# PATH GNOME issue with proot
75
+
forfilein$(find /usr -type f -iname "*login1*");do mv -v $file"$file.back";done
0 commit comments