New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi installation option for SubSonic #42

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

Comments

2 participants

@Fourdee Fourdee modified the milestones: Software Requests, Feature Requests Jul 30, 2015

@Fourdee Fourdee changed the title from [ToDo] DietPi installation option for SubSonic to DietPi installation option for SubSonic Jul 30, 2015

@Fourdee

This comment has been minimized.

Show comment
Hide comment
@Fourdee

Fourdee Aug 5, 2015

Owner

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.

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

This comment has been minimized.

Show comment
Hide comment
@Fourdee

Fourdee Aug 6, 2015

Owner

subsonic --help

Owner

Fourdee commented Aug 6, 2015

subsonic --help

@thechildofroth

This comment has been minimized.

Show comment
Hide comment
@thechildofroth

thechildofroth Aug 10, 2015

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

thechildofroth commented Aug 10, 2015

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

@Fourdee

This comment has been minimized.

Show comment
Hide comment
@Fourdee

Fourdee Aug 11, 2015

Owner

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

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

This comment has been minimized.

Show comment
Hide comment
@thechildofroth

thechildofroth Aug 11, 2015

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 commented Aug 11, 2015

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

This comment has been minimized.

Show comment
Hide comment
@thechildofroth

thechildofroth Aug 25, 2015

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

thechildofroth commented Aug 25, 2015

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

This comment has been minimized.

Show comment
Hide comment
@Fourdee

Fourdee Aug 25, 2015

Owner

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

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

This comment has been minimized.

Show comment
Hide comment
@thechildofroth

thechildofroth Aug 25, 2015

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 commented Aug 25, 2015

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

This comment has been minimized.

Show comment
Hide comment
@thechildofroth

thechildofroth Aug 26, 2015

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).

thechildofroth commented Aug 26, 2015

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

This comment has been minimized.

Show comment
Hide comment
@Fourdee

Fourdee Aug 26, 2015

Owner

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

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

This comment has been minimized.

Show comment
Hide comment
@thechildofroth

thechildofroth Aug 26, 2015

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!

thechildofroth commented Aug 26, 2015

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

This comment has been minimized.

Show comment
Hide comment
@Fourdee

Fourdee Aug 27, 2015

Owner

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

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 added a commit that referenced this issue Aug 27, 2015

Merge pull request #59 from Fourdee/testing
v85
(27/08/15)
Release Notes:

DietPi-Software | DietPi-Cloudshell is here! Turn your Cloudshell (or your monitor) into a dedicated lightweight system stats display.

DietPi-Software | Added DietPi Optimized installation for SubSonic (many thanks to childofroth for his help, testing and work to get this completed #42)

DietPi-Config | Added Interactive CPU gov option (if available on device).

Odroid C1/XU4 | Changed default CPU gov from ondemand to interactive. This resolves the issue with Odroid c1 ondemand not scaling (http://forum.odroid.com/viewtopic.php?f=117&t=12057), and, performs much better.

Odroid XU4 | Fixed issue with missing curl pre-reqs. Curl is now installed by default (to be consistent with all DietPi images).

DietPi-Ramlog | Now also saves filenames and generates those files on boot as blank files. Basically ensures log file permissions are set correctly during boot.

/DietPi/dietpi.txt cpu_max_frequency= | You can now limit the max cpu frequency (Mhz) for all cores. | 0=disabled | Useful for lowering temp/power usage on your device.

DietPi-BugReport | Will now also send /etc/init.d/* and ls /etc/rc*.d/* services startup orders.

General | Rolled out -m1 to the majority of DietPi code. This should improve performance with DietPi scripts.
@Fourdee

This comment has been minimized.

Show comment
Hide comment
@Fourdee

Fourdee Aug 27, 2015

Owner

Released in v85

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