EDIT: Original title -> Install volumio on a non-volumio image
Hi all,
As many have tried before and will try after me, I wanted to combine Volumio with Kodi.
Installing Kodi on the volumio image worked okay-ish, relative small HD files could be played without choppy video, but movies were just not watchable. I used the following script to install Kodi on Volumio 1.55 (using an rPi2B). Note: just tried this on the Volumio 2 image, it needs some more packages, still working on this…
EDIT 19-08-2016: updated the rules creation lines
[code]# Add repository
echo deb http://pipplware.pplware.pt/pipplware/dists/jessie/main/binary / | sudo tee -a /etc/apt/sources.list.d/pipplware_jessie.list
wget -O - http://pipplware.pplware.pt/pipplware/key.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install kodi --yes
#sudo apt-get install kodi-pvr-iptvsimple --yes
Add user Pi to groups
sudo adduser pi
sudo adduser pi sudo
sudo addgroup --system input
sudo usermod -aG audio,video,input,dialout,plugdev,tty pi
echo "SUBSYSTEM==“input”, GROUP=“input”, MODE=“0660”
KERNEL==“tty[0-9]*”, GROUP=“tty”, MODE=“0660"” | sudo tee -a /etc/udev/rules.d/99-input.rules
echo "# input
KERNEL==“mouse*|mice|event*”, MODE=“0660”, GROUP=“input”
KERNEL==“ts[0-9]|uinput", MODE=“0660”, GROUP=“input”
KERNEL=="js[0-9]”, MODE=“0660”, GROUP=“input”
tty
KERNEL==“tty[0-9]*”, MODE=“0666”
vchiq
SUBSYSTEM==“vchiq”, GROUP=“video”, MODE=“0660"” | sudo tee -a /etc/udev/rules.d/10-permissions.rules
Enable AirPlay
sudo apt-get install avahi-daemon[/code]
Then I decided to go at it the other way around, using the OSMC image, installing Volumio on top of something else.
This seemed to work alot better, but I do have some issues regarding rights. For example I cannot have the Volumio GUI edit the /boot/config.txt or the /etc/spopd.conf files. There are probably alot of other right issues that have not yet surfaced on my setup. Also I have not been able to manage SMB shares on the OSMC image, but that problem doesn’t have priority at this point I suppose.
Maybe someone can point me in the right direction regarding this issue?
The installation script for Volumio:
[code]#!/bin/sh
Source: http://typingoutloud.org/raspberry-pi-installing-volumio-pibang/
Test date: 2016-05-10 (on latest OSMC image: OSMC_TGT_rbp1_20160403.img)
Remember if you edit the script, set line breaks to UNIX format!
echo “Starting volumio setup…”
Install dependencies
apt-get update
apt-get -y install git-core alsa-utils mpd mpc nginx sqlite3 php5-fpm php5-curl php5-sqlite php5-cli samba samba-common-bin
Create mountable directories
mkdir -p /mnt/NAS
mkdir -p /mnt/USB
mkdir -p /mnt/UPNP
mkdir -p /var/lib/mpd/music/WEBRADIO
Remove the www-directory (dummy html file exists) and all contents and recreate it
rm -rf /var/www
mkdir -p /var/www
Clone volumio into the /var/www directory
git clone https://github.com/volumio/Volumio-WebUI.git /var/www
Edit the rights for the config files
chmod 775 /var/www/_OS_SETTINGS/etc/rc.local
chmod 755 /var/www/_OS_SETTINGS/etc/php5/mods-available/apc.ini
chmod -R 777 /var/www/command/
chmod -R 777 /var/www/db/
chmod -R 777 /var/www/inc/
Copy the system files
cp -var /var/www/_OS_SETTINGS/etc /
Create symbolic links for the shares in mpd
ln -s /mnt/NAS /var/lib/mpd/music/NAS
ln -s /mnt/USB /var/lib/mpd/music/USB
ln -s /mnt/UPNP /var/lib/mpd/music/UPNP
Reboot the rPi afterwards
Update the library to show the webradio folder[/code]
Then if you really want spop (Spotify support) you need to build/compile it yourselved. I used the following script and apart from not being able to edit the /etc/spopd.conf file it works just fine. It loads a little more playlists than the default, but that’s cool with me.
Spop installation script:
[code]#!/bin/sh
Spop installation script for OSMC
Add Spotify repository
echo “Setting up source list…”
wget -q -O - http://apt.mopidy.com/mopidy.gpg | sudo apt-key add -
echo “deb http://apt.mopidy.com/ stable main contrib non-free\ndeb-src http://apt.mopidy.com/ stable main contrib non-free” | sudo tee /etc/apt/sources.list.d/mopidy.list
Update repository and install
echo “Updating repositories and installing dependencies…”
apt-get update
apt-get -y install cmake make git telnet build-essential libjson-glib-dev libao-dev libdbus-glib-1-dev libnotify-dev libsoup2.4-dev libsox-dev libspotify-dev
Create the directory to build into and clone the git
echo “Fetching spop-client from github…”
mkdir -p /home/osmc/gitrepos
cd /home/osmc/gitrepos
git clone git://github.com/Schnouki/spop.git
Copy the configuration into a new config
echo “Preparing to compile and build…”
mkdir -p ~/.config/spop
The default config file contains too many variables, causing volumio to be unable to set it up
cp spop/spopd.conf.sample /etc/spopd.conf
Try to build spop
cd /home/osmc/gitrepos/spop
cmake -DCMAKE_INSTALL_PREFIX=/usr
make
make install
Make sure you edit the /etc/spopd.conf file, username/password and remove any unused functionality. Otherwise spop will not start correctly[/code]
Obviously any tips and/or corrections are more than welcome, but keep 'em nice aye? It’s my first how-to on linux, so I might be forgetting alot