NeuroDesk / neurodesktop

The plug-and-play, browser-accessible, containerised data analysis environment.
https://www.neurodesk.org
MIT License
42 stars 12 forks source link

sound in neurodesktop #103

Open stebo85 opened 2 years ago

stebo85 commented 2 years ago

Currently it's not possible to play sound in neurodesktop. However, this is possible by doing this:

compile xrdp pulseaudio modules for Focal, and then there's some complications around how the modules are loaded with systemd. There's a issue about it here: https://github.com/neutrinolabs/xrdp/discussions/1910

this is how it was solved in Nectar bumblebee: https://github.com/NeCTAR-RC/bumblebee-images/commit/3b3b62eafa56be29e8393f1941bc530b5a01aad8

stebo85 commented 1 year ago

we might need systemd to work for this:

From: https://medium.com/nerd-for-tech/developing-on-apple-m1-silicon-with-virtual-environments-4f5f0765fd2f

Docker makes it very hard to use systemd inside a container but lucky fo me, Matthew Warman had already figured this part out for CentOS and was extremely helpful in getting this to work for me with Ubuntu. With his guidance, I was able to build an Ubuntu 20.04 Docker image that was tailored for my purposes. You can use this image as a vagrant provider to start your own Ubuntu Docker containers that behave like virtual machines for doing development work, compete with an init system.

@sina-mansour