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

Commit 736ff67

Browse files
committed
added install script
1 parent 03104ea commit 736ff67

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

doc/rpi_setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ sudo reboot
1313
```
1414

1515
## Install requirements ##
16+
*Alternatively you can execute the [rpi2_raspbianWheezy.sh](install/rpi2_raspbianWheezy.sh) which will install all the dependencies listed below*
17+
1618
First we need to install the dependencies:
1719
* node.js v0.10.x
1820
* mongoDB
@@ -119,8 +121,6 @@ Lastly, change the playlist in `config.js` by changing `defaultPlaylist` to your
119121

120122

121123

122-
123-
124124
## Troubleshouting ##
125125

126126
If you encounter any audio quality issues, look [here](https://docs.mopidy.com/en/latest/installation/raspberrypi/#appendix-a-fixing-audio-quality-issues).

install/rpi2_raspbianWheezy.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#! /bin/sh
2+
3+
echo 'Installing node'
4+
curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
5+
sudo apt-get install -y nodejs
6+
sudo npm install --global npm
7+
8+
echo 'Installing mongoDB'
9+
wget https://github.com/tjanson/mongodb-armhf-deb/releases/download/v2.1.1-1/mongodb_2.1.1_armhf.deb -P /tmp/
10+
sudo dpkg -i /tmp/mongodb_2.1.1_armhf.deb
11+
sudo /etc/init.d/mongodb start
12+
sudo update-rc.d mongodb defaults
13+
14+
echo 'Installing gulp & bower'
15+
sudo npm install --global gulp bower
16+
17+
18+
echo 'Installing mopidy repo'
19+
wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add -
20+
echo '# Mopidy APT archive' | sudo tee -a /etc/apt/sources.list.d/mopidy.list
21+
echo 'deb http://apt.mopidy.com/ wheezy main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/mopidy.list
22+
echo 'deb-src http://apt.mopidy.com/ wheezy main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/mopidy.list
23+
24+
echo 'Installing mopidy'
25+
sudo modprobe ipv6
26+
echo ipv6 | sudo tee -a /etc/modules
27+
sudo amixer cset numid=3 1
28+
sudo apt-get update
29+
sudo apt-get install -y mopidy mopidy-spotify
30+
31+
echo 'Done.'

0 commit comments

Comments
 (0)