Skip to content
osnet edited this page Aug 4, 2012 · 5 revisions

Intro

This is a quick-start guide to compiling and running a copy of supersonic/subsonic for Ubuntu/Debian.

Install Dependencies

  • $ sudo apt-get install git
  • $ sudo apt-get install maven2 openjdk-6-jdk
  • $ sudo apt-get install lintian
  • $ sudo apt-get install rpm (optional)
  • $ sudo apt-get install fakeroot (not preinstalled on Ubuntu Server)

Get a Copy of the Code

  1. Sign up For a github account
  2. git clone https://[email protected]/YOU/supersonic.git

Make it

Removing RPM Target

The RPM target requires rpmlint, which is not available, so I just remove the RPM target. Edit pom.xml and remove this line : <module>subsonic-installer-rpm</module>

You might also remove the modules for windows and mac. There is no need for them.

Making

  • cd supersonic
  • mvn clean -P full
  • sudo service stop subsonic
  • sudo service stop supersonic
  • mv /tmp/subsonic /tmp/subsonic.old
  • mvn install -P full

Install It

  • sudo cp /usr/bin/subsonic /usr/bin/subsonic.save
  • mv /tmp/subsonic /tmp/subsonic.build
  • sudo dpkg -i `ls -tr subsonic-installer-debian/target/supersonic*.deb | head -1`
  • vim /usr/bin/supersonic and put any settings back that are in /usr/bin/subsonic.save

Sharing settings between supersonic and subsonic

  • sudo -i
  • service supersonic stop
  • rm /etc/default/supersonic
  • ln -s /etc/default/subsonic /etc/default/supersonic
  • vim /usr/bin/supersonic and change /var/supersonic to /var/subsonic
  • service supersonic start