Install Maraschino on Ubuntu Linux

maraschino-logo

Maraschino is a web-based front end that brings together several applications together like XBMC, CouchPotato, Headphones, uTorrent, NZBGet and more. It aggregates information from these applications and displays it all on one page. Maraschino runs on python and is easy to install and configure. For a similar alternative check out how to Install HTPC Manager on Ubuntu Linux.

 

Set up credentials

Create a system user account that Maraschino will run under.

adduser --system maraschino

 

Create a group that Maraschino will run under.

groupadd media

 

Add the system user to the primary group.

usermod -g media maraschino

 

Verify that the group has been added correctly.

groups maraschino

 

Install Maraschino

Update the package list.

apt-get update

 

Install the required dependencies.

apt-get install git-core python

 

Change the current directory to the installation directory.

cd /opt

 

Clone the latest release of Maraschino from the official git repository.

git clone https://github.com/mrkipling/maraschino.git

 

Set the ownership to the user and group Maraschino will run as.

chown -R maraschino:media /opt/maraschino

 

Set the permissions so that the maraschino user has full access.

chmod -R 755 /opt/maraschino

 

Run Maraschino.

python /opt/maraschino/Maraschino.py

 

Note that application will create new directories and files with ownership of the user which executed the script. To avoid issues run Maraschino only with the user it will always run under or set ownership permissions again before running it under a different user.

 

Access Maraschino in your browser on http://192.168.0.100:7000 substituting the IP address with the correct value.

 

Run Maraschino at Startup

Open or create a new upstart configuration file for Maraschino.

nano /etc/init/maraschino.conf

 

Copy the script below and save the configuration file.

description "Maraschino upstart script"
author "DominicM @ dominicm.com"

# What user to run as
setuid maraschino

# What group to run as
setgid media

# When to start the service
start on runlevel [2345]

# When to stop the service
stop on runlevel [016]

# Automatically restart process if crashed
respawn

# Start the process
script
exec python /opt/maraschino/Maraschino.py
end script

 

Run Maraschino with upstart.

start maraschino

 

Reboot to verify that Maraschino starts automatically.

reboot

 

Quick reference

adduser --system maraschino
groupadd media
usermod -g media maraschino
groups maraschino
apt-get update
apt-get install git-core python
cd /opt
git clone https://github.com/mrkipling/maraschino.git
chown -R maraschino:media /opt/maraschino
chmod -R 755 /opt/maraschino
python /opt/maraschino/Maraschino.py

http://192.168.0.100:7000

nano /etc/init/maraschino.conf
start maraschino
reboot

dom