Page 1 of 1

Migrate from Windows to FreeBSD

PostPosted: Sat Sep 03, 2011 7:35 pm
by subsonicBSDUser
Hello Everyone,

I'm trying to move my Windows install to a FreeBSD based host. In FreeBSD there is a port for subsonic, but it's based on Apache Tomcat and not Jetty. I thought I would only have to move just the contents of the Windows webapps folder to the webapps folder of tomcat, but that didn't work. Does anyone have experience with this, or any ideas for me to try?

Thanks!

Re: Migrate from Windows to FreeBSD

PostPosted: Sat Sep 03, 2011 9:36 pm
by redbeard
I don't have any experience with using the WAR version- I just download the standalone installer (http://www.subsonic.org/pages/download2 ... one.tar.gz), configure the subsonic.sh file, and ./subsonic.sh. It just uses Java and runs its own web server. Just from reading the instruction page though (http://www.subsonic.org/pages/installation.jsp#war), I don't see why it wouldn't work, if you just directly download the WAR and toss it in the Tomcat webapps directory.

I did download and custom compile ffmpeg-mt (http://gitorious.org/ffmpeg/ffmpeg-mt) for it just so that it would use multiple threads for decoding and encoding. My configure string is:
./configure --prefix=/usr/local/subsonic/transcode/ffmpeg --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-nonfree --extra-cflags="-I/usr/local/src/x264-snap -I/usr/local/include -D__BSD_VISIBLE" --extra-ldflags=-L/usr/local/lib --disable-indev=bktr --disable-indev=oss --disable-outdev=oss --extra-cflags=-DBROKEN_RELOCATIONS --disable-decoder=vp5 --disable-decoder=vp56 --disable-decoder=vp6 --disable-decoder=vp6a --disable-decoder=vp6f --disable-decoder=vp8

Some of that stuff (like all of the vp* decoders being disabled) may not be needed anymore, they're just leftover from when the vp* wouldn't compile properly with ffmpeg-mt. And, of course, the --prefix will likely need to be changed, plus you'll have to tell Subsonic where to find the ffmpeg binary.

Re: Migrate from Windows to FreeBSD

PostPosted: Sun Sep 04, 2011 3:30 am
by subsonicBSDUser
That looks like some good info to get started, but the problem is I used the windows stand alone installation and I want to preserve my settings to move to the BSD box. If I use the method you suggested, it would be a brand new install wiping out my activation and other settings. :(

Re: Migrate from Windows to FreeBSD

PostPosted: Sun Sep 04, 2011 1:54 pm
by BKKKPewsey