adding spotify connect to rune - raspberry pi

Chris1979

Chris1979

Live Long and Prosper
Staff member
Messages
8,327
Likes
6,734
My Satellite Setup
Sky Dish
My Location
South Somerset.
#1
i wanted to add spotify connect to rune,

log in to your pi via Putty

username: root
password: rune


paste: fdisk /dev/mmcblk0

then press D, select 2,

Press "n" to make a new partition, then press E.

Press "t" and enter the value "83" to mark it as a Linux partition.

Press "w" to write changes and exit. You may have to reboot after this for changes to be registered. This has resized the partition, but not yet the filesystem.

Next, use the resize2fs command in this way:

resize2fs /dev/mmcblk0p2

and once complete reboot once again.


to load Spotify:

using putty add this


wget https://github.com/Fornoth/spotify-connect-web/releases/download/0.0.3-alpha/spotify-connect-web.sh

chmod u+x spotify-connect-web.sh

./spotify-connect-web.sh install


Next install the spotify key with the following command:

wget -P ~/spotify-connect-web-chroot/usr/src/app https://github.com/balbuze/volumio-...onnect/spotify-connect-web/spotify_appkey.key
https://github.com/balbuze/volumio-plugins/raw/master/plugins/music_service/volspotconnect/spotify-connect-web/spotify_appkey.key
Your Spotify Server should work. Test it by typing:

./spotify-connect-web.sh -o hw:0 --username [12345678] --password [xyz123] --bitrate 320 --name [any name]

ctrl c to close the server down.

still with putty

Type the following:

sudo nano scs.service

and paste the information bellow

[Unit]
Description=Spotify Connect
After=network-online.target
[Service]
Type=idle
User=root
ExecStart=/root/spotify-connect-web.sh -o hw:0 --username [12345678] --password [xyz123] --bitrate 320 --name [any name]
Restart=always
RestartSec=10
StartLimitInterval=30
StartLimitBurst=20
[Install]
WantedBy=multi-user.target

Close the editor and save by typing ctrl-X

select Y to save

Type the following:

sudo mv ./scs.service /etc/systemd/system/scs.service
sudo chmod a+u /etc/systemd/system/scs.service
sudo systemctl daemon-reload
sudo systemctl enable scs.service
sudo systemctl start scs.service

and finally

sudo reboot

and enjoy.
 
Chris1979

Chris1979

Live Long and Prosper
Staff member
Messages
8,327
Likes
6,734
My Satellite Setup
Sky Dish
My Location
South Somerset.
Top