Skip to content
Aline Freitas edited this page Apr 24, 2014 · 1 revision

If you use Gentoo, then things seems to be very easy ;)

Clone the repo:

git clone git@github.com:usrbinnc/netcat-cpi-kernel-module.git

Emerge vorbis-tools. Make sure you have ogg123 USE flag enabled (its default so, probably its already enabled).

sudo emerge -av vorbis-tools
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-sound/vorbis-tools-1.4.0  USE="nls ogg123 -flac -kate -speex" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Go inside project repo and, make it!

cd netcat-cpi-kernel-module
make

Load the newly created module

sudo insmod netcat.ko

And finally enjoy the music :D

aline@luiza-mouraria ~/Projects/netcat-cpi-kernel-module $ ogg123 - < /dev/netcat

Audio Device:   Advanced Linux Sound Architecture (ALSA) output

Playing: -
Ogg Vorbis stream: 2 channel, 22050 Hz
ao_alsa WARNING: sample rate 22050 not supported by the hardware, using 44100
Time: 00:13.37  ( 71.9 kbps)  Output Buffer  77.8%  
Clone this wiki locally