DietPi installation option for SubSonic #42

Closed
Fourdee opened this Issue Jul 30, 2015 · 13 comments

Projects

None yet

2 participants

@Fourdee Fourdee changed the title from [ToDo] DietPi installation option for SubSonic to DietPi installation option for SubSonic Jul 30, 2015
@Fourdee Fourdee added the enhancement label Jul 30, 2015
@Fourdee
Owner
Fourdee commented Aug 5, 2015

Notes to self:

SubSonic accepts startup parms in /etc/default/subsonic. However, I'am unable to find any reference of available SUBSONIC_ARGS commands online. This prevents me from setting up the users media folder locations during DietPi installation.

@Fourdee
Owner
Fourdee commented Aug 6, 2015

subsonic --help

@thechildofroth

Default folder locations are set by editing /usr/share/subsonic/subsonic.sh

@Fourdee
Owner
Fourdee commented Aug 11, 2015

Default folder locations are set by editing /usr/share/subsonic/subsonic.sh

Thanks i'll take a look. I'am currently using the subsonic command line options to set folder locations https://github.com/Fourdee/DietPi/blob/testing/dietpi/dietpi-software#L2160-L2164

@thechildofroth

Ah ok, does this help:

To change the port number, Java memory settings or other startup parameters, edit the SUBSONIC_ARGS variable in /etc/default/subsonic.

From
http://www.subsonic.org/pages/installation.jsp

@thechildofroth

Version 5.3 Beta2 running nicely on DietPi - had to rewrite symlinks to transcoder to complete upgrade:

ln -fs /usr/bin/ffmpeg /var/subsonic/transcode
ln -fs /usr/bin/lame /var/subsonic/transcode

http://www.subsonic.org/pages/download.jsp

@Fourdee
Owner
Fourdee commented Aug 25, 2015

HI, thanks for the details.

Subsonic is already coded into dietpi-software, but is currently disabled as I havnt had the time to test it yet. I'll try and take another pass at it today.

If you would like to test it, you can enable the installation option in /DietPi/dietpi/dietpi-software by:

^^ is using Subsonic v5.2.1

@thechildofroth

Cool, thanks Dan.

I did wonder as I'd see you post it in the forum and then it disappeared!
I'll test it out tonight and let you know how I get on.

On 25 August 2015 at 13:24, Dan notifications@github.com wrote:

HI, thanks for the details.

Subsonic is already coded into dietpi-software, but is currently disabled
as I havnt had the time to test it yet. I'll try and take another pass at
it today.

If you would like to test it, you can enable the installation option by:


Reply to this email directly or view it on GitHub
#42 (comment).

@thechildofroth

The basic installation of Subsonic works as expected but there's a bit of tidying to do I think.

We need to use Oracle Java rather than OpenJDK/IcedTea (which is painfully slow) + I think it reduces the number of packages that need downloading.

The script needs to install ffmpeg and lame too, and subsonic's transcoder needs redirecting to then using:

ln -fs /usr/bin/ffmpeg /var/subsonic/transcode
ln -fs /usr/bin/lame /var/subsonic/transcode

I'll do another test build tonight to remind myself what packages I installed in what order for my first working system as it seems to perform much better than this install (which is dropping out audio regularly).

@Fourdee
Owner
Fourdee commented Aug 26, 2015

Great work on this!
As you mentioned, if you can list the packages required, i'll get those changes added to dietpi-software.

@thechildofroth

Hi Dan,

I've just spun up a new image and gone through the whole process (which I've put here for completeness, obviously not all of it is relevant to the final script)

imaged 081
edited dietpi.txt for wireless

booted and left to resize disks etc

ssh'd in and allowed update patches to run + reboot

select to install alsa (not sure if this is necessary?)
selected hifiberry driver (obviously this is specific to my set up with an i2s soundcard)

go start installation

The subsonic part.

apt-get install lame ffmpeg oracle-java7-jdk

at this point (once they'd installed) I did 'poweroff' and dropped the subsonic .deb in /mnt using my laptop and then reloaded the pi – equivilent to wget'ing the deb from sourceforge

(cd /mnt)
dpkg -i subsonic-5.3.beta2.deb

then redirect subsonic's transcoder using:
ln -fs /usr/bin/ffmpeg /var/subsonic/transcode
ln -fs /usr/bin/lame /var/subsonic/transcode

wait a while for subsonic to establish itself and away you go!

@Fourdee
Owner
Fourdee commented Aug 27, 2015

Excellent job thechildofroth 👍 .
I've implemented your changes and subsonic works flawlessly.
It also seems to perform faster with oracle-java as you mentioned eariler. Great spot on the symlinks and pre-reqs, i did wonder why .ogg wasnt playing the last time i tested it lol.

Again, great job and thanks for helping to make DietPi better and better! I've given you full credit in the changelog https://github.com/Fourdee/DietPi/blob/testing/CHANGELOG.txt#L5 and Online documentation http://fuzon.co.uk/phpbb/viewtopic.php?f=8&t=5&start=30#p213

We should be releasing v85 today (its a biggy) and this will enable the SubSonic installation option.

I best crack on with adding the forum page for SubSonic (again) ;) lol

@Fourdee Fourdee referenced this issue Aug 27, 2015
Merged

v85 #59

@Fourdee
Owner
Fourdee commented Aug 27, 2015

Released in v85

@Fourdee Fourdee closed this Aug 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment