bobertuk wrote: 
> Hi frank,
> 
> Building on your great work for RaspberryPi, I've reworked your guide a
> bit to document getting MusicIP working on Odroid-XU4 with Ubuntu 16.04
> LTS and max2play. I hope you don't mind my own modifications to get
> autostart working on XU4.
> 
> ==============================================================
> 
> Download and unpack MusicIP 1.8 for linux 
> http://www.spicefly.com/article.php?page=musicip-software
> 
> 
> Edit /etc/apt/sources.list file and every file in
> /etc/apt/sources.list.d, adding [arch=armhf] behind each occurence of
> deb.
> So for example the line
> deb http://ports.ubuntu.com/ubuntu-ports/ xenial main universe
> restricted
> would become
> deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ xenial main
> universe restricted
> 
> For the Max2Play installation, following two files had to be modified:
> sudo nano /etc/apt/sources.list
> sudo nano /etc/apt/sources.list.d/odroid.list
> 
> 
> Next, we have to add package sources for i386 packages to our apt
> configuration. We'll do it the obvious way and take the official Debian
> repositories.
> Of course you are free to choose other mirrors, if you prefer.
> To do that, you create the file /etc/apt/sources.list.d/i386.list via
> sudo nano /etc/apt/sources.list.d/i386.list and insert the following
> 
> deb [arch=i386] http://de.archive.ubuntu.com/ubuntu/ xenial main
> restricted universe multiverse
> deb [arch=i386] http://de.archive.ubuntu.com/ubuntu/ xenial-updates main
> restricted universe multiverse
> deb [arch=i386] http://security.ubuntu.com/ubuntu/ xenial-security main
> restricted universe multiverse
> 
> 
> Then add the i386 architecture and update packages:
> sudo dpkg --add-architecture i386
> sudo apt-get update
> 
> 
> 
> Install binfmt, qemu and libc for i386:
> sudo apt-get install binfmt-support qemu-user
> sudo apt-get install libc6:i386
> 
> Ignore warnings...
> 
> 
> Start MusicMagic server (in my case installed in the odroid
> home-directory):
> sudo /home/odroid/MusicIP/MusicMagicMixer/MusicMagicServer start
> It should be accessible via http://localhost:10002/server
> 
> 
> To make 'MusicIP Server' start when system boots:
> Run terminal
> cd /etc/init.d/
> sudo ln -s /home/odroid/MusicIP/MusicMagicMixer/mmserver
> sudo update-rc.d mmserver defaults
> 
> From Desktop, find '/etc/rc.local' and open as administrator
> Add the following line...
> sudo /etc/init.d/mmserver start
> 
> To start manually...
> sudo /etc/init.d/mmserver start
> 
> To stop manually...
> sudo /etc/init.d/mmserver stop
> 
> 
> Edit the file and add the header for the init daemon, adapt the pathes.
> My version looks like:
> 
> 
> ------------
> #! /bin/sh
> 
> ### BEGIN INIT INFO
> # Provides: mmserver
> # Required-Start: $remote_fs $syslog
> # Required-Stop: $remote_fs $syslog
> # Default-Start: 2 3 4 5
> # Default-Stop: 0 1 6
> # Short-Description: Start MusicIP daemon at boot time
> # Description: Enable service provided by daemon.
> ### END INIT INFO
> 
> # NON-PRIVIELEGED USER TO RUN MUSICMAGICSERVER.
> USER=odroid
> # PATH TO THE MUSICMAGICMIXERSERVER 
> export MUSICHOME=/home/odroid/MusicIP/MusicMagicMixer/
> case $1 in
> start)
> # next line was original
>       # su - $USER -c $MUSICHOME"MusicMagicServer start  & > /dev/null" 
>       sudo -u odroid /home/odroid/MusicIP/MusicMagicMixer/MusicMagicServer
> start & > /dev/null 2>&1
>       echo "Running MusicMagicServer"
>       exit
>       ;;
> stop)
> # next line was original
>       # su - $USER -c $MUSICHOME"MusicMagicServer stop  & > /dev/null"
>       sudo -u odroid /home/odroid/MusicIP/MusicMagicMixer/MusicMagicServer
> stop & > /dev/null 2>&1 
>       echo "Stopped MusicMagicServer"
>       exit
>       ;;
> *)
> echo "Usage: /etc/rc.d/init.d/mmserver { start | stop }"
>       exit
>       ;;
> esac
> 
> 
> --------
> 
> 
> Then register the start script and reboot:
> sudo update-rc.d mmserver defaults
> sudo reboot
> 
> 
> The MusicIP plugin should run out of the box (may require restart of LMS
> to recognize the MusicIP server in case LMS is started to early). 
> 
> If using max2play there is an option to delay LMS startup. I use a delay
> of 60 seconds to ensure MusicIP is running before LMS.
> 
> ===============================================================
> 
> Hopefully this makes sense and helps show others how franks method can
> be modified for other ARM  platforms and other versions of Linux. 
> 
> Best wishes
> 
> Bob

Excellent Bob!
I see that you run everything as root / sudo, which works as you do it
consequently. General caveat for others: running the server as normal
user and sudo in  mixed mode should be prevented, as this would creat
two different databases in two different home directories. Either all as
sudo / root or all under the same user account.

Kind regards
Frank


------------------------------------------------------------------------
frankd's Profile: http://forums.slimdevices.com/member.php?userid=52885
View this thread: http://forums.slimdevices.com/showthread.php?t=106958

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to