How to let LinuxDeploy desktop audio input and output work

  1. Install LinuxDeploy apk; Install busybox apk, install busybox payloads, reboot your phone
  2. 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.
  3. Install “termux” apk, install “com.termux.api” apk
  4. 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
    
  5. In LinuxDeploy system, add “export PULSE_SERVER=127.0.0.1” to the end of “/etc/profile”, do a reboot
  6. Use fakestandby apk to make sure the network is always on:
  7. For arch system, you may need to: 

     vim  /etc/asound.conf
    
     defaults.pcm.card 1
     defaults.ctl.card 1
    
  8. Now when you use vnc enter your linux system, you should be able to use microphone and speaker without any problems.

Author: yingshaoxo