From fc441824056f675e4bb0e7eb89927253c8c407a7 Mon Sep 17 00:00:00 2001 From: daleclack Date: Fri, 20 Nov 2020 21:37:22 +0800 Subject: [PATCH] Add termux scripts --- cpp/README.xerelease => README.xerelease | 0 termux/pulseaudio-termux.sh | 5 +++++ termux/sdl.sh | 2 ++ termux/vncserver-start | 5 +++++ 4 files changed, 12 insertions(+) rename cpp/README.xerelease => README.xerelease (100%) create mode 100644 termux/pulseaudio-termux.sh create mode 100644 termux/sdl.sh create mode 100644 termux/vncserver-start diff --git a/cpp/README.xerelease b/README.xerelease similarity index 100% rename from cpp/README.xerelease rename to README.xerelease diff --git a/termux/pulseaudio-termux.sh b/termux/pulseaudio-termux.sh new file mode 100644 index 0000000..955b023 --- /dev/null +++ b/termux/pulseaudio-termux.sh @@ -0,0 +1,5 @@ +apt install pulseaudio +echo "load-module modules natives protocol-tcp auth-ip-auth=127.0.0.1" >> ../usr/etc/pulse/default.pa +echo "exit-idle-time = -1" >> ../usr/etc/pulse/daemon.conf +pulseaudio -D #pulseaudio# +export PULSE_SERVER=tcp:127.0.0.1:4713 diff --git a/termux/sdl.sh b/termux/sdl.sh new file mode 100644 index 0000000..75e4763 --- /dev/null +++ b/termux/sdl.sh @@ -0,0 +1,2 @@ +export DISPLAY=localhost:0 PULSE_SERVER=tcp:127.0.0.1:4713 +exec openbox-session diff --git a/termux/vncserver-start b/termux/vncserver-start new file mode 100644 index 0000000..89a0003 --- /dev/null +++ b/termux/vncserver-start @@ -0,0 +1,5 @@ +export PULSE_SERVER=tcp:127.0.0.1:4713 +export USER=root +export HOME=/root + +vncserver -geometry 1000x600 -dpi 100 -depth 24 -name remote-desktop :1