FYI- for those who have found this and wondered what the resolution is, if you are using an Ubuntu PPA, the files to be replaced are in /usr/share/subsonic.
Please note that the file names are different than the .zip file (
http://dilerium.se/musiccabinet/subsoni ... dalone.zip) and that both the existing files from the ppa have -rw-r--r-- permissions (aka chmod 311, chown root.root) and are root.root so you'll need to duplicate the permissions and ownership when you install the musiccabinet binaries. Here's exactly what I did:
wget
http://dilerium.se/musiccabinet/subsoni ... dalone.zipunzip subsonic-installer-standalone.zip
pushd .
/etc/init.d/subsonic stop
cd /var/subsonic
tar --preserve-permissions --preserve-order -jc db > db.tar.bz
cd /usr/share/subsonic
cp -p subsonic.war subsonic.war.default
cp -p subsonic-booter-jar-with-dependencies.jar subsonic-booter-jar-with-dependencies.jar.default
popd
cd subsonic-installer-standalone
cp -p subsonic-main.war /usr/share/subsonic/subsonic.war
cp -p subsonic-booter.jar /usr/share/subsonic/subsonic-booter-jar-with-dependencies.jar
If you haven't installed postgresql yet then:
apt-get install postgresql
apt-get install postgresql-client
apt-get install pgadmin3
apt-get install postgresql-contrib
Now, if you just installed postgresql, you need to create the default user which is need by musiccabinet
sudo -u postgres psql template1
Now you'll be at the postgresql prompt, type:
\password postgres
verify the password and press ^D (aka ctrl-D) and exit.
DONT FORGET THIS PASSWORD YOU WILL NOT BE ABLE TO GET BACK IN IF YOU DO!!! (this is precisely what
trucrypt datastores are designed to assist with:)
Restart the subsonic server:
/etc/init.d/subsonic start
Go to your server URL and login, your old credentials should have been saved although your theme for subsonic will be gone and replaced by a realtor white background.
You'll see two links in the main musicabinet window. The first prompts you to download and install postgresql,
we've done this so ignore it. The second prompts you to configure musicabinet. Press this and enter the password
you gave postgreql a minute ago. Now, tell it to refresh/reindex your music collect and wait a while. You can hit
refresh to make sure it's doing something and view the progress (it'll index your directories, files and then do all the
meta-data thing- best to do this when you're internet collection or server isn't otherwise being used...., subsonic is
unavailable until the indexing is done).
This should do it... Glad to answer questions about any of the steps- I left out explanations so you could just ^C, ^V to the CLI.
If anyone wants to gin up a python script to automate this, feel free. Like much of LInux and by extension, subsonic the installation and even moreso the configuration of stuff is more complicated than it needs to be because
the developers assume we have a higher level of ambition, intelligence and most importantly, tolerance than the
typical MS Windows (spoon feed me!) users.