Add termux scripts

This commit is contained in:
daleclack 2020-11-20 21:37:22 +08:00
parent 989bd0eb0a
commit fc44182405
4 changed files with 12 additions and 0 deletions

View File

@ -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

2
termux/sdl.sh Normal file
View File

@ -0,0 +1,2 @@
export DISPLAY=localhost:0 PULSE_SERVER=tcp:127.0.0.1:4713
exec openbox-session

5
termux/vncserver-start Normal file
View File

@ -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