Last active
February 3, 2019 20:21
-
-
Save mailinglists35/f31def9d69bbcdf2eceba9c09f5d6662 to your computer and use it in GitHub Desktop.
How to run Gradio under WSL on windows 10 with pulseaudio for windows and MobaXterm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requirements: | |
mobaxterm | |
WSL | |
pulseaudio for windows | |
gradio fc29 rpm build | |
Setup and run pulseaudio https://token2shell.com/howto/x410/enabling-sound-in-wsl-ubuntu-let-it-sing/ | |
quote: | |
download the linked zipfile containing preview binaries from https://www.freedesktop.org/wiki/Software/PulseAudio/Ports/Windows/Support/ | |
Edit 'etc\pulse\default.pa' | |
Line 42 | |
FROM load-module module-waveout sink_name=output source_name=input | |
TO load-module module-waveout sink_name=output source_name=input record=0 | |
Line 61 | |
FROM #load-module module-native-protocol-tcp | |
TO load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 | |
Edit 'etc\pulse\daemon.conf' | |
Line 39 | |
FROM ; exit-idle-time = 20 | |
TO exit-idle-time = -1 | |
open cmd.exe and navigate where pulseaudio.exe is, start pulseaudio | |
Open an ubuntu bash session in MobaXterm (or an ubuntu bash windows plus vcXsrv if you prefer to separate the Xorg server); add this to /etc/environment | |
PULSE_SERVER=tcp:127.0.0.1 | |
close and restart ubuntu bash session or run "export PULSE_SERVER=tcp:127.0.0.1" | |
download fedora core 29 rpm from https://copr-be.cloud.fedoraproject.org/results/heikoada/gradio | |
update: v7.2 here https://copr-be.cloud.fedoraproject.org/results/atim/gradio/fedora-29-x86_64/ | |
convert rpm to deb with alien | |
sudo alien --to-deb gradio-7.1-1.201805202103git402c85d.fc29.x86_64.rpm | |
install with dpkg | |
sudo eatmydata dpkg -i gradio_7.1-2.201805202103_amd64.deb | |
(eatmydata if you are on hdd, speeds up installation by faking sync calls during dpkg) | |
install media codecs | |
sudo apt-get install ubuntu-restricted-extras | |
sudo eatmydata apt install gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly | |
launch gradio | |
enjoy! | |
make sure << ldd `which gradio` | grep found >> outputs nothing, or else you need some extra apt-get install | |
if it works you don't need to keep ubuntu bash open | |
just run "PULSE_SERVER=tcp:127.0.0.1 gradio & disown" and logout | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment