Subsonic

From ArchWiki
Revision as of 11:55, 21 May 2012 by Kynikos (Talk | contribs) (several style fixes (we don't have examples for daemon operations yet, so leaving them))

Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

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

# /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

# useradd --system --groups audio subsonic

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

# chown -R subsonic:subsonic /tmp/subsonic
# chown -R subsonic:subsonic /var/subsonic
# chown -R root:root /var/subsonic/transcode
# chown -R root:root /var/subsonic/jetty/*/webapp

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

${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \

with this one

sudo -u subsonic ${JAVA} -Xmx${SUBSONIC_MAX_MEMORY}m \

Restart subsonic daemon

# rc.d start subsonic

Install LAME for Transcoding

Subsonic requires LAME to be installed to transcode songs in mp3 format to lower bit rates. If not already installed, Install the lame package, available in the official repositories.

Put a symlink to LAME in the transcode directory for subsonic.

# ln -s /usr/bin/lame /var/subsonic/transcode/lame

Restart subsonic daemon

# rc.d start subsonic

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 DAEMON_LOCALE="no", 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. LANG=nn_NO.utf8.

External links