Difference between revisions of "Subsonic"

From ArchWiki
Jump to: navigation, search
(assorted fixes)
(Added a way to run subsonic daemon as user (not root))
Line 3: Line 3:
  
 
'''Subsonic''' is a music server that lets you store your music on one machine and play it from other machines, cell phones, via a web interface, or various other applications. It can be installed using the {{Package AUR|subsonic}} package on [[AUR]].
 
'''Subsonic''' is a music server that lets you store your music on one machine and play it from other machines, cell phones, via a web interface, or various other applications. It can be installed using the {{Package AUR|subsonic}} package on [[AUR]].
 +
 +
==Additional config==
 +
===Run subsonic daemon NOT as root===
 +
 +
Stop subsonic daemon is running
 +
 +
{{Codeline|<nowiki>sudo /etc/rc.d/subsonic stop
 +
 +
Add a system user "subsonic" without home folder and add it to "audio" group if you want to use the "jukebox" feature
 +
 +
{{Codeline|<nowiki>sudo useradd --system --groups audio subsonic</nowiki>}}
 +
 +
Change folder owners as follow. Path may changes; these are the default ones:
 +
{{Codeline|<nowiki>
 +
sudo chown -R subsonic:subsonic /tmp/subsonic
 +
sudo chown -R subsonic:subsonic /var/subsonic
 +
sudo chown -R root:root /var/subsonic/transcode
 +
sudo chown -R root:root /var/subsonic/jetty/*/webapp
 +
</nowiki>}}
 +
 +
Change this line in {{Filename|/var/subsonic/subsonis.sh}}
 +
 +
{{Codeline|<nowiki>${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \</nowiki>}}
 +
 +
with this one
 +
 +
{{Codeline|<nowiki>sudo -u subsonic ${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \</nowiki>}}
 +
 +
Restart subsonic daemon
 +
 +
{{Codeline|<nowiki>sudo /etc/rc.d/subsonic start</nowiki>}}
  
 
==Troubleshooting==
 
==Troubleshooting==

Revision as of 12:15, 9 December 2011


Subsonic is a music server that lets you store your music on one machine and play it from other machines, cell phones, via a web interface, or various other applications. It can be installed using the Template:Package AUR package on AUR.

Additional config

Run subsonic daemon NOT as root

Stop subsonic daemon is running

Template:Codeline

Change folder owners as follow. Path may changes; these are the default ones: Template:Codeline

Change this line in Template:Filename

Template:Codeline

with this one

Template:Codeline

Restart subsonic daemon

Template:Codeline

Troubleshooting

UTF-8 file names not added to the database

You must have at least one UTF-8 locale installed.

If you start subsonic using Template:Filename, and your /etc/rc.conf has Template:Codeline, then the subsonic daemon will be started with the C locale, and Java will skip any folders with "international characters" (e.g. ßðþøæå etc.). Either set Template:Codeline to Template:Codeline (but this will affect all rc.daemons), or add a line to the beginning of Template:Filename which sets Template:Codeline to an installed UTF-8 locale, e.g. Template:Codeline.

External links