Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from dbalatero/download_and_run_netcat_album_…
…kernel_module Add script to download and run netcat album kernel module
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
### LINUX ONLY ALL OTHERS STAY OUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
# Install and load the netcat kernel module for your listening pleasure. | ||
|
||
set -e | ||
|
||
if [ "$(id -u)" != "0" ]; then | ||
echo "This script must be run as root" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
sudo apt-get install build-essential vorbis-tools linux-headers-$(uname -r) | ||
|
||
cd /tmp && git clone https://github.com/usrbinnc/netcat-cpi-kernel-module.git | ||
cd /tmp/netcat-cpi-kernel-module | ||
|
||
make | ||
sudo insmod netcat.ko | ||
|
||
dmesg | tail -n 10 | ||
|
||
echo "// Starting album playback..." | ||
|
||
ogg123 - < /dev/netcat |