Portable native MOD player based on Raspberry PI (plays MOD,S3M,IT,XM etc...). Uses BassPlay library.


Step 7: Software part - Installation of control scripts.

Please download file scripts.zip from project's intro page.

Upload file to the raspberry and unpack by command:

unzip scripts.zip

Put project included scripts in the directories and change privileges as shown:

chmod 777 /etc/init.d/player_control.sh
chmod 777 /usr/bin/gpout.sh
chmod 777 /usr/bin/gpin.sh

Add the following lines in /etc/rc.local for auto-start of the button-control script on boot:

# player control
/etc/init.d/player_control.sh > /dev/null &

Scripts gpin.sh and gpout.sh are used to set up pins and return values depending on button press (button pressed = 0 button released = 1).

Script player_control.sh is used to play/stop player and change songs.

Modules must be put by default in (can be changed in player_control.sh as wished) this path:


During start of player_control.sh, the playlist is created to select particular songs.