#!/bin/sh # See # https://pc-freak.net/blog/how-to-play-audio-music-cds-in-gnulinux-and-freenetopen-bsds/ # And why is this so hard? Sound plays fine through my browser, yet # regularly fails on the command line. I would like to speak with # someone in customer service, please. if [ "${UID}" = "0" ]; then echo "Don't run this as root. Thanks." >&2 exit 1 fi pulseaudio --kill pulseaudio --start mplayer -cdrom-device /dev/sr0 cdda:// -cache 5000