Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

Commit

Permalink
added install script
Browse files Browse the repository at this point in the history
  • Loading branch information
eljenso committed Jun 24, 2015
1 parent 03104ea commit 736ff67
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/rpi_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).
31 changes: 31 additions & 0 deletions install/rpi2_raspbianWheezy.sh
Original file line number Diff line number Diff line change
@@ -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.'

0 comments on commit 736ff67

Please sign in to comment.