Difference between revisions of "Subsonic"

From ArchWiki
Jump to: navigation, search
m (Better text style)
m (update templates, see Help:Style)
Line 2: Line 2:
 
[[Category:Daemons and system services (English)]]
 
[[Category:Daemons and system services (English)]]
  
'''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 {{AUR|subsonic}} package on [[AUR]].
  
 
==Additional config==
 
==Additional config==
Line 22: Line 22:
 
  # sudo chown -R root:root /var/subsonic/jetty/*/webapp
 
  # sudo chown -R root:root /var/subsonic/jetty/*/webapp
  
Change this line in {{Filename|/var/subsonic/subsonic.sh}}
+
Change this line in {{ic|/var/subsonic/subsonic.sh}}
  
 
  {{Codeline|<nowiki>${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \</nowiki>}}
 
  {{Codeline|<nowiki>${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \</nowiki>}}
Line 38: Line 38:
 
You must have at least one UTF-8 [[locale]] installed.
 
You must have at least one UTF-8 [[locale]] installed.
  
If you start subsonic using {{Filename|/etc/rc.d/subsonic}}, and your /etc/[[rc.conf]] has {{Codeline|<nowiki>DAEMON_LOCALE="no"</nowiki>}}, 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 {{Codeline|DAEMON_LOCALE}} to {{Codeline|"yes"}} (but this will affect '''all''' rc.daemons), or add a line to the beginning of {{Filename|/var/subsonic/subsonic.sh}} which sets {{Codeline|LANG}} to an installed UTF-8 locale, e.g. {{Codeline|<nowiki>LANG=nn_NO.utf8</nowiki>}}.
+
If you start subsonic using {{ic|/etc/rc.d/subsonic}}, and your /etc/[[rc.conf]] has {{Codeline|<nowiki>DAEMON_LOCALE="no"</nowiki>}}, 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 {{ic|DAEMON_LOCALE}} to {{ic|"yes"}} (but this will affect '''all''' rc.daemons), or add a line to the beginning of {{ic|/var/subsonic/subsonic.sh}} which sets {{ic|LANG}} to an installed UTF-8 locale, e.g. {{Codeline|<nowiki>LANG=nn_NO.utf8</nowiki>}}.
  
 
==External links==
 
==External links==
 
* [http://www.subsonic.org Official web site]
 
* [http://www.subsonic.org Official web site]

Revision as of 10:09, 10 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 subsonicAUR package on AUR.

Additional config

Run subsonic daemon NOT as root

Stop subsonic daemon is running

# 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

# sudo useradd --system --groups audio subsonic

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

# 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

Change this line in /var/subsonic/subsonic.sh

Template:Codeline

with this one

Template:Codeline

Restart subsonic daemon

# sudo /etc/rc.d/subsonic start

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 /etc/rc.d/subsonic, 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 DAEMON_LOCALE to "yes" (but this will affect all rc.daemons), or add a line to the beginning of /var/subsonic/subsonic.sh which sets LANG to an installed UTF-8 locale, e.g. Template:Codeline.

External links