How to let LinuxDeploy desktop audio input and output work
- Install LinuxDeploy apk; Install busybox apk, install busybox payloads, reboot your phone
- Select Ubuntu, bionic, File, image size 60GB, set username and password, enable ssh, enable vnc gui, select xfce. Hit the install button, hit the configure button, hit the start button.
- Install “termux” apk, install “com.termux.api” apk
In termux
pkg update pkg install pulseaudio pkg install termux-api termux-microphone-record -l 3 pulseaudio --start --exit-idle-time=-1 pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 pacmd load-module module-sles-source pactl load-module module-sles-source
- In LinuxDeploy system, add “export PULSE_SERVER=127.0.0.1” to the end of “/etc/profile”, do a reboot
- Use fakestandby apk to make sure the network is always on:
For arch system, you may need to:
vim /etc/asound.conf defaults.pcm.card 1 defaults.ctl.card 1
- Now when you use vnc enter your linux system, you should be able to use microphone and speaker without any problems.
Author: yingshaoxo