Skip to content

Commit f6ff019

Browse files
SaicharanKandukurigitbook-bot
authored andcommitted
GitBook: [#12] fixes & rewrites
1 parent 6fb9b18 commit f6ff019

File tree

8 files changed

+67
-31
lines changed

8 files changed

+67
-31
lines changed

SUMMARY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
* [📖 Installation & Usage](udroid-landing/quick-installation-and-usage.md)
88
* [👩‍💻 Basic Usage](udroid-landing/basic-usage.md)
99
* [🖥️ Display](udroid-landing/setting-up-gui.md)
10-
* [🔉 Audio](udroid-landing/setting-up-sound.md)
10+
* [🔊 Audio](udroid-landing/setting-up-sound.md)
1111
* [📺 Hardware Acceleration](udroid-landing/hardware-acceleration.md)
1212
* [👩🏻‍🔧 Tips & Tricks](udroid-landing/tips-&-tricks.md)
13-
* [🦊 Fixing Firefox Sound](udroid-landing/fixing-firefox-sound.md)
1413
* [🎮 Playing Games](udroid-landing/playing-games.md)
14+
* [🦊 Fixing Firefox Sound](udroid-landing/fixing-firefox-sound.md)
1515
* [💳 Credits](udroid-landing/credits.md)
1616
* [💀 The End](udroid-landing/the-end.md)

udroid-landing/credits.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# 💳 Credits
12

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# 🦊 Fixing Firefox Sound
2-
Well if you're trying to play youtube or any other web music player inside firefox in it, probabily sound will not work even though pulseaudio is running. It can be fixed easily, just follow the below steps.
32

4-
Open firefox and type `about:config` in address bar. Then click on "Accept the Risk and Continue".
3+
Well if you're trying to play youtube or any other web music player inside firefox in it, probabily sound will not work even though PulseAudio is running. It can be fixed easily, just follow the below steps.
54

6-
![an image showing proceed and caution while opening `about:config`](<https://github.com/RandomCoderOrg/udroid-wiki/blob/wiki-main/.gitbook/assets/firefox%201.jpg>)
5+
Open Firefox and type`about:config` in the address bar. Then click on "Accept the Risk and Continue".
76

7+
![](<../.gitbook/assets/firefox 1.jpg>)
88

9-
Then search "sandbox" and do the same changes marked in last screenshot and restart firefox.
10-
![an image showing changes done in firefox after searching "sandbox"](<https://github.com/RandomCoderOrg/udroid-wiki/blob/wiki-main/.gitbook/assets/firefox%202.jpg>)
9+
Then search "sandbox" and do the same changes marked in last screenshot and restart firefox.&#x20;
1110

12-
Sound will work now.
11+
![](<../.gitbook/assets/firefox 2.jpg>)
12+
13+
The Sound will work now.
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# 📺 Hardware Acceleration
22

33
#### Important Note
4-
This is fully experimental and not finalized in termux-x11 release yet. You might face glitches or rendering issues with it. Or it might not work cause there's alot vendors and likly will not work for all.
4+
5+
{% hint style="warning" %}
6+
This is fully experimental and not finalized in termux-x11 release yet. You might face glitches or rendering issues with it. Or full app crash on open
7+
{% endhint %}
58

69
#### So what's this?
7-
Its patched mesa for termux and using termux:x11 (xwayland). Checkout the [source](https://github.com/suhan-paradkar/tewmux-disabled/releases/tag/mesa-hw). Installation instrcutions are there too.
8-
There is [video guide](https://www.youtube.com/watch?v=sbrif7lbkXE&t=70s) too for this.
10+
11+
Its patched mesa for termux and using termux:x11 (XWayland). Checkout the [source](https://github.com/suhan-paradkar/tewmux-disabled/releases/tag/mesa-hw). Installation instructions are there too. There is a [video guide](https://www.youtube.com/watch?v=sbrif7lbkXE\&t=70s) too for this.
12+
13+
{% embed url="https://www.youtube.com/watch?t=70s&v=sbrif7lbkXE" %}

udroid-landing/playing-games.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# 🎮 Playing Games
22

3-
Well its possible to run games in it, just follow the [hardware acceleration](https://github.com/RandomCoderOrg/udroid-wiki/blob/wiki-main/udroid-landing/hardware-acceleration.md). Small games like Neverball, SuperTuxKart works impressively. Here is some gameplay.
3+
Well its possible to run games in it, just follow the [hardware acceleration](hardware-acceleration.md). Small games like Neverball, SuperTuxKart works impressively. Here is some gameplay.
44

5-
6-
{% embed url="https://www.youtube.com/watch?v=zNhey7a0zQs"}
5+
{% embed url="https://www.youtube.com/watch?v=zNhey7a0zQs" %}

udroid-landing/setting-up-gui.md

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,53 @@
1-
## 🖥️ Display
1+
# 🖥️ Display
2+
3+
### Setting up VNC
24

3-
#### Setting up VNC
45
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
6+
7+
```bash
8+
tigervncserver \
9+
-geometry 2560x1080 \
10+
-xstartup /usr/bin/xfce4-session \
11+
-listen tcp :1
712
```
813

9-
#### Display over other devices
14+
### Display over other devices
15+
1016
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
17+
18+
```bash
19+
tigervncserver \
20+
-geometry 2560x1080 \
21+
-localhost no \
22+
-xstartup /usr/bin/xfce4-session \
23+
-listen tcp :1
1324
```
1425

1526
And in another device use `WLAN IP:port` for connecting. ( use `ip a` in termux and copy the 192.168.xx.xx)
1627

17-
#### Setting up xRDP
28+
### Setting up xRDP
29+
1830
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).
31+
1932
```
2033
sudo apt install xRDP
2134
```
2235

2336
Now need to configure a bit, first need to create xsession.
24-
```
37+
38+
```bash
2539
echo "xfce4-session > ~/.xsession
2640
```
2741
2842
The second file we need to edit is the startup file for XRDP, so it will start the desktop.
29-
```
43+
44+
```bash
3045
nano /etc/xrdp/startwm.sh
3146
```
3247
3348
Delete all the content there and paste this: #!/bin/sh
34-
```
49+
50+
```bash
3551
if [ -r /etc/default/locale ]; then
3652
. /etc/default/locale
3753
export LANG LANGUAGE
@@ -41,29 +57,35 @@ xfce4-session
4157
```
4258
4359
Now start xRDP with
60+
4461
```
4562
sudo service xrdp start
4663
```
64+
4765
Connect it to `localhost:3389` with RDP client.
4866
67+
### Setting up Xwayland
4968
50-
#### Setting up Xwayland
5169
First in termux install xwayland
70+
5271
```
5372
pkg install xwayland
5473
```
5574
5675
Start wayland server with
57-
```
76+
77+
```
5878
Xwayland -ac :1 > /dev/null
5979
```
6080
6181
And then start udroid manually with
82+
6283
```
6384
proot-distro login udroid --shared-tmp --bind /dev/null:proc/sys/kernel/cap_last_cap
6485
```
6586
6687
In it, launch desktop with
88+
6789
```
6890
DISPLAY=:1 startxfce4
6991
```

udroid-landing/setting-up-sound.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
# 🔊 Audio
12

2-
# 🔉 Audio
3-
pulseaudio starts everytime you invoke start commands with `udroid`
3+
pulseaudio starts every time you invoke start commands with `udroid`
44

55
> You can start audio manually with this command
6+
67
```bash
7-
pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1
8+
pulseaudio --start \
9+
--load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" \
10+
--exit-idle-time=-1
811
```

udroid-landing/tips-&-tricks.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
description: >-
3+
In this category, you'll find some tips and tricks for udroid. Such as running
4+
games in it, fixing sound for firefox etc.
5+
---
6+
17
# 👩🏻‍🔧 Tips & Tricks
28

3-
In this category, you'll find some tips and tricks for udroid. Such as running games in it, fixing sound for firefox etc.

0 commit comments

Comments
 (0)