Ubuntu server: install Alsa sound and MOC (Music On Console)
1. To install Alsa sound (alsa-base, alsa-utils, alsa-tools and libasound2) enter this command:
sudo apt-get install alsa alsa-tools
2. Add yourself to the group audio:
sudo adduser yourusername audio
3. Reboot to take effect
sudo init 6
4. Alsamixer is sometimes muted by default, so you might need to unmute it. Run alsamixer:
down to change volume,
right to change source. To mute/unmute press
Note: Alsamixer might look different in any machine. It depends on your sound device (sound card). Please, read audio source labels. For example: PCM in Virtualbox is on fifth place instead of the second in VMWare.
Alsamixer in VMWare
Alsamixer in Virtualbox
To quit press
If any error occurs, look here.
Play some music
1. Install MOC (Music On Console) player:
sudo apt-get install moc
2. Run MOC:
H for HELP.