Do DO servers have soundcards? If not how can I play audio?

Posted September 24, 2014 6.9k views

The program ‘beep’ seems to run, but I don’t hear anything. Where is the sound going? If I want to do work with playing midi (PortMidi) is this possible too?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

To enable sound, you need to load a “dummy” sound card. You can do this with:

  • sudo modprobe snd-dummy

After doing so, you’ll notice that /proc/asound becomes populated:

$ ls /proc/asound
card0  cards  devices  Dummy  modules  pcm  seq  timers  version

You’ll also want to install alsa-base as it is not included on Ubuntu Server by default:

  • sudo apt-get install alsa-base