Skip to content

Commit 66b6d49

Browse files
author
Sam Alarie
authored
Create setting-up-gui.md
1 parent 226d5ff commit 66b6d49

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

udroid-landing/setting-up-gui.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
## 🖥️ Display
2+
3+
#### Setting up VNC
4+
Vncserver is pre-installed, you can start it manually too instead of `startvnc`.
5+
```
6+
tigervncserver -geometry 2560x1080 -xstartup /usr/bin/xfce4-session -listen tcp :1
7+
```
8+
9+
#### Display over other devices
10+
If you wanna run VNC Viewer on another device then connect both devices in same network (or hotspot from main device name). And then start vncserver like this manually.
11+
```
12+
tigervncserver -geometry 2560x1080 -localhost no -xstartup /usr/bin/xfce4-session -listen tcp :1
13+
```
14+
15+
And in another device use `WLAN IP:port` for connecting. ( use `ip a` in termux and copy the 192.168.xx.xx)
16+
17+
#### Setting up xRDP
18+
RDP is another great way to get gui, even much better input and resolution setups automatically. For using it first install xRDP. (note it'll use VNC for backend and might bugs while rendering).
19+
```
20+
sudo apt install xRDP
21+
```
22+
23+
Now need to configure a bit, first need to create xsession.
24+
```
25+
echo "xfce4-session > ~/.xsession
26+
```
27+
28+
The second file we need to edit is the startup file for XRDP, so it will start the desktop.
29+
```
30+
nano /etc/xrdp/startwm.sh
31+
```
32+
33+
Delete all the content there and paste this: #!/bin/sh
34+
```
35+
if [ -r /etc/default/locale ]; then
36+
. /etc/default/locale
37+
export LANG LANGUAGE
38+
fi
39+
40+
xfce4-session
41+
```
42+
43+
Now start xRDP with
44+
```
45+
sudo service xrdp start
46+
```
47+
Connect it to `localhost:3389` with RDP client.
48+
49+
50+
#### Setting up Xwayland
51+
First in termux install xwayland
52+
```
53+
pkg install xwayland
54+
```
55+
56+
Start wayland server with
57+
```
58+
Xwayland -ac :1 > /dev/null
59+
```
60+
61+
And then start udroid manually with
62+
```
63+
proot-distro login udroid --shared-tmp --bind /dev/null:proc/sys/kernel/cap_last_cap
64+
```
65+
66+
In it, launch desktop with
67+
```
68+
DISPLAY=:1 startxfce4
69+
```

0 commit comments

Comments
 (0)