diff --git a/doc/rpi_setup.md b/doc/rpi_setup.md index 89fa9c4..4ecc87a 100644 --- a/doc/rpi_setup.md +++ b/doc/rpi_setup.md @@ -13,6 +13,8 @@ sudo reboot ``` ## Install requirements ## +*Alternatively you can execute the [rpi2_raspbianWheezy.sh](install/rpi2_raspbianWheezy.sh) which will install all the dependencies listed below* + First we need to install the dependencies: * node.js v0.10.x * mongoDB @@ -119,8 +121,6 @@ Lastly, change the playlist in `config.js` by changing `defaultPlaylist` to your - - ## Troubleshouting ## If you encounter any audio quality issues, look [here](https://docs.mopidy.com/en/latest/installation/raspberrypi/#appendix-a-fixing-audio-quality-issues). \ No newline at end of file diff --git a/install/rpi2_raspbianWheezy.sh b/install/rpi2_raspbianWheezy.sh new file mode 100755 index 0000000..02c851e --- /dev/null +++ b/install/rpi2_raspbianWheezy.sh @@ -0,0 +1,31 @@ +#! /bin/sh + +echo 'Installing node' +curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash - +sudo apt-get install -y nodejs +sudo npm install --global npm + +echo 'Installing mongoDB' +wget https://github.com/tjanson/mongodb-armhf-deb/releases/download/v2.1.1-1/mongodb_2.1.1_armhf.deb -P /tmp/ +sudo dpkg -i /tmp/mongodb_2.1.1_armhf.deb +sudo /etc/init.d/mongodb start +sudo update-rc.d mongodb defaults + +echo 'Installing gulp & bower' +sudo npm install --global gulp bower + + +echo 'Installing mopidy repo' +wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add - +echo '# Mopidy APT archive' | sudo tee -a /etc/apt/sources.list.d/mopidy.list +echo 'deb http://apt.mopidy.com/ wheezy main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/mopidy.list +echo 'deb-src http://apt.mopidy.com/ wheezy main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/mopidy.list + +echo 'Installing mopidy' +sudo modprobe ipv6 +echo ipv6 | sudo tee -a /etc/modules +sudo amixer cset numid=3 1 +sudo apt-get update +sudo apt-get install -y mopidy mopidy-spotify + +echo 'Done.' \ No newline at end of file