2021-04-09 13:37:54 -04:00
|
|
|
# Installation instructions for OwnTone
|
2009-06-12 06:15:52 -04:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
This document contains instructions for installing OwnTone from the git tree.
|
2009-06-12 06:15:52 -04:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
The source for this version of OwnTone can be found here:
|
2021-03-29 10:14:22 -04:00
|
|
|
[owntone/owntone-server](https://github.com/owntone/owntone-server.git)
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
## Quick version for Raspbian (Raspberry Pi)
|
2015-10-19 13:50:06 -04:00
|
|
|
|
|
|
|
See the instructions here:
|
2021-04-09 13:37:54 -04:00
|
|
|
[OwnTone server (iTunes server) -
|
2020-06-13 17:50:32 -04:00
|
|
|
Raspberry Pi Forums](http://www.raspberrypi.org/phpBB3/viewtopic.php?t=49928)
|
2015-10-19 13:50:06 -04:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
## Quick version for Debian/Ubuntu users
|
2014-02-03 17:03:43 -05:00
|
|
|
|
|
|
|
If you are the lucky kind, this should get you all the required tools and
|
|
|
|
libraries:
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
|
|
|
sudo apt-get install \
|
2019-02-18 03:43:07 -05:00
|
|
|
build-essential git autotools-dev autoconf automake libtool gettext gawk \
|
|
|
|
gperf antlr3 libantlr3c-dev libconfuse-dev libunistring-dev libsqlite3-dev \
|
2016-08-22 15:19:33 -04:00
|
|
|
libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavutil-dev \
|
2019-02-18 03:43:07 -05:00
|
|
|
libasound2-dev libmxml-dev libgcrypt20-dev libavahi-client-dev zlib1g-dev \
|
2020-07-04 08:15:59 -04:00
|
|
|
libevent-dev libplist-dev libsodium-dev libjson-c-dev libwebsockets-dev \
|
2021-06-15 16:46:24 -04:00
|
|
|
libcurl4-openssl-dev libprotobuf-c-dev
|
2020-06-13 17:50:32 -04:00
|
|
|
```
|
2016-08-22 15:19:33 -04:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
Note that OwnTone will also work with other versions and flavours of
|
2020-10-20 17:37:16 -04:00
|
|
|
libgcrypt and libcurl, so the above are just suggestions.
|
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
The following features require extra packages, and that you add a configure
|
|
|
|
argument when you run ./configure:
|
2016-08-22 15:19:33 -04:00
|
|
|
|
2021-05-31 17:25:12 -04:00
|
|
|
Feature | Configure argument | Packages
|
2021-08-31 16:48:33 -04:00
|
|
|
---------------------|--------------------------|-------------------------------------
|
|
|
|
Chromecast | `--enable-chromecast` | libgnutls*-dev
|
2021-05-31 17:25:12 -04:00
|
|
|
Spotify (libspotify) | `--enable-libspotify` | libspotify-dev
|
|
|
|
Pulseaudio | `--with-pulseaudio` | libpulse-dev
|
2014-08-15 17:36:54 -04:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
These features can be disabled saving you package dependencies:
|
|
|
|
|
|
|
|
Feature | Configure argument | Packages
|
|
|
|
---------------------|--------------------------|-------------------------------------
|
|
|
|
Spotify (built-in) | `--disable-spotify` | libprotobuf-c-dev
|
|
|
|
Player web UI | `--disable-webinterface` | libwebsockets-dev
|
|
|
|
Live web UI | `--without-libwebsockets`| libwebsockets-dev
|
|
|
|
|
2016-08-28 16:53:40 -04:00
|
|
|
Then run the following (adding configure arguments for optional features):
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
2021-03-29 10:14:22 -04:00
|
|
|
git clone https://github.com/owntone/owntone-server.git
|
2021-04-09 13:37:54 -04:00
|
|
|
cd owntone-server
|
2020-06-13 17:50:32 -04:00
|
|
|
autoreconf -i
|
2021-08-31 16:48:33 -04:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-install-user
|
2020-06-13 17:50:32 -04:00
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
```
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
Using `--enable-install-user` means that `make install` will also add system
|
|
|
|
user and group for owntone.
|
|
|
|
|
|
|
|
With the above configure arguments, a systemd service file will be installed to
|
|
|
|
`/etc/systemd/system/owntone.service` so that the server will start on boot.
|
|
|
|
Use `--disable-install-systemd` if you don't want that.
|
|
|
|
|
|
|
|
Now edit `/etc/owntone.conf`. Note the guide at the top highlighting which
|
|
|
|
settings that normally require modification.
|
|
|
|
|
|
|
|
Start the server with `sudo systemctl start owntone` and check that it is
|
|
|
|
running with `sudo systemctl status owntone`.
|
|
|
|
|
|
|
|
See the [README.md](README.md) for usage information.
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
## Quick version for Fedora
|
2015-02-15 06:36:44 -05:00
|
|
|
|
|
|
|
If you haven't already enabled the free RPM fusion packages do that, since you
|
|
|
|
will need ffmpeg. You can google how to do that. Then run:
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
2015-02-15 06:36:44 -05:00
|
|
|
sudo yum install \
|
2020-06-13 17:50:32 -04:00
|
|
|
git automake autoconf gettext-devel gperf gawk libtool \
|
|
|
|
sqlite-devel libconfuse-devel libunistring-devel mxml-devel libevent-devel \
|
|
|
|
avahi-devel libgcrypt-devel zlib-devel alsa-lib-devel ffmpeg-devel \
|
2021-03-12 13:14:29 -05:00
|
|
|
libplist-devel libsodium-devel json-c-devel libwebsockets-devel \
|
2021-11-28 14:58:53 -05:00
|
|
|
libcurl-devel protobuf-c-devel antlr3 antlr3-C-devel
|
2020-06-13 17:50:32 -04:00
|
|
|
```
|
2015-02-15 06:36:44 -05:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
Clone the OwnTone repo:
|
2015-12-29 17:10:58 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
2021-03-29 10:14:22 -04:00
|
|
|
git clone https://github.com/owntone/owntone-server.git
|
2021-04-09 13:37:54 -04:00
|
|
|
cd owntone-server
|
2020-06-13 17:50:32 -04:00
|
|
|
```
|
2015-12-29 17:10:58 -05:00
|
|
|
|
2015-02-15 06:36:44 -05:00
|
|
|
Then run the following:
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
|
|
|
autoreconf -i
|
2021-08-31 16:48:33 -04:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-install-user
|
2020-06-13 17:50:32 -04:00
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
```
|
2015-02-15 06:36:44 -05:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
Using `--enable-install-user` means that `make install` will also add system
|
|
|
|
user and group for owntone.
|
2015-02-15 06:36:44 -05:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
With the above configure arguments, a systemd service file will be installed to
|
|
|
|
`/etc/systemd/system/owntone.service` so that the server will start on boot.
|
|
|
|
Use `--disable-install-systemd` if you don't want that.
|
2015-02-11 16:58:54 -05:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
Now edit `/etc/owntone.conf`. Note the guide at the top highlighting which
|
|
|
|
settings that normally require modification.
|
2020-11-03 09:21:38 -05:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
Start the server with `sudo systemctl start owntone` and check that it is
|
|
|
|
running with `sudo systemctl status owntone`.
|
|
|
|
|
|
|
|
See the [README.md](README.md) for usage information.
|
2020-11-03 09:21:38 -05:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
## Quick version for FreeBSD
|
|
|
|
|
|
|
|
There is a script in the 'scripts' folder that will at least attempt to do all
|
|
|
|
the work for you. And should the script not work for you, you can still look
|
|
|
|
through it and use it as an installation guide.
|
2015-02-11 16:58:54 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
## Quick version for macOS (using Homebrew)
|
2020-05-28 11:30:14 -04:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
This workflow file used for building OwnTone via Github actions includes
|
2020-05-28 11:30:14 -04:00
|
|
|
all the steps that you need to execute:
|
2020-06-13 17:50:32 -04:00
|
|
|
[.github/workflows/macos.yml](.github/workflows/macos.yml)
|
2020-05-28 11:30:14 -04:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
## "Quick" version for macOS (using macports)
|
2017-01-23 16:13:50 -05:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
Caution:
|
|
|
|
1) this approach may be out of date, consider using the Homebrew method above
|
|
|
|
since it is continuously tested.
|
|
|
|
2) macports requires many downloads and lots of time to install (and sometimes
|
|
|
|
build) ports... you'll want a decent network connection and some patience!
|
2017-01-23 16:13:50 -05:00
|
|
|
|
|
|
|
Install macports (which requires Xcode):
|
|
|
|
https://www.macports.org/install.php
|
|
|
|
|
|
|
|
Install Apple's Java (this enables java command on OSX 10.7+):
|
|
|
|
https://support.apple.com/kb/DL1572?locale=en_US
|
|
|
|
|
|
|
|
Afterwards, you can optionally install Oracle's newer version, and then
|
|
|
|
choose it using the Java pref in the System Preferences:
|
|
|
|
http://www.oracle.com/technetwork/java/javase/downloads/index.html
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
2017-01-23 16:13:50 -05:00
|
|
|
sudo port install \
|
|
|
|
autoconf automake libtool pkgconfig git gperf libgcrypt \
|
2021-01-03 17:30:09 -05:00
|
|
|
libunistring libconfuse ffmpeg libevent json-c libwebsockets curl \
|
2021-06-15 16:46:24 -04:00
|
|
|
libplist libsodium protobuf-c
|
2020-06-13 17:50:32 -04:00
|
|
|
```
|
2017-01-23 16:13:50 -05:00
|
|
|
|
|
|
|
Download, configure, build and install the Mini-XML library:
|
|
|
|
http://www.msweet.org/projects.php/Mini-XML
|
|
|
|
|
|
|
|
Download, configure, build and install the libinotify library:
|
|
|
|
https://github.com/libinotify-kqueue/libinotify-kqueue
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
Add the following to `.bashrc`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# add /usr/local to pkg-config path
|
|
|
|
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/local/lib/pkgconfig
|
|
|
|
# libunistring doesn't support pkg-config, set overrides
|
|
|
|
export LIBUNISTRING_CFLAGS=-I/opt/local/include
|
|
|
|
export LIBUNISTRING_LIBS="-L/opt/local/lib -lunistring"
|
|
|
|
```
|
2017-01-23 16:13:50 -05:00
|
|
|
|
|
|
|
Optional features require the following additional ports:
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
Feature | Configure argument | Ports
|
|
|
|
--------------------|--------------------------|-------------------
|
2021-06-15 16:46:24 -04:00
|
|
|
Chromecast | `--enable-chromecast` | gnutls
|
2020-06-13 17:50:32 -04:00
|
|
|
Pulseaudio | `--with-pulseaudio` | pulseaudio
|
2017-01-23 16:13:50 -05:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
Clone the OwnTone repo:
|
2020-06-13 17:50:32 -04:00
|
|
|
|
|
|
|
```bash
|
2021-03-29 10:14:22 -04:00
|
|
|
git clone https://github.com/owntone/owntone-server.git
|
2021-04-09 13:37:54 -04:00
|
|
|
cd owntone-server
|
2020-06-13 17:50:32 -04:00
|
|
|
```
|
2017-01-23 16:13:50 -05:00
|
|
|
|
|
|
|
Install antlr3 and library using the included script:
|
2020-06-13 17:50:32 -04:00
|
|
|
|
|
|
|
```bash
|
|
|
|
scripts/antlr35_install.sh -p /usr/local
|
|
|
|
```
|
2017-01-23 16:13:50 -05:00
|
|
|
|
|
|
|
Finally, configure, build and install, adding configure arguments for
|
2020-06-13 17:50:32 -04:00
|
|
|
optional features:
|
2017-01-23 16:13:50 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
|
|
|
autoreconf -i
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
```
|
2017-01-23 16:13:50 -05:00
|
|
|
|
|
|
|
Note: if for some reason you've installed the avahi port, you need to
|
2020-06-13 17:50:32 -04:00
|
|
|
add `--without-avahi` to configure above.
|
2017-01-23 16:13:50 -05:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
Edit `/usr/local/etc/owntone.conf` and change the `uid` to a nice
|
2017-01-23 16:13:50 -05:00
|
|
|
system daemon (eg: unknown), and run the following:
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
|
|
|
sudo mkdir -p /usr/local/var/run
|
|
|
|
sudo mkdir -p /usr/local/var/log # or change logfile in conf
|
2021-04-09 13:37:54 -04:00
|
|
|
sudo chown unknown /usr/local/var/cache/owntone # or change conf
|
2020-06-13 17:50:32 -04:00
|
|
|
```
|
2015-02-15 06:36:44 -05:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
Run OwnTone:
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
2021-04-09 13:37:54 -04:00
|
|
|
sudo /usr/local/sbin/owntone
|
2020-06-13 17:50:32 -04:00
|
|
|
```
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
Verify it's running (you need to <kbd>Ctrl</kbd>+<kbd>C</kbd> to stop
|
|
|
|
dns-sd):
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
|
|
|
dns-sd -B _daap._tcp
|
|
|
|
```
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
## Long version - requirements
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
Required tools:
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
- ANTLR v3 is required to build OwnTone, along with its C runtime
|
2020-06-13 17:50:32 -04:00
|
|
|
(libantlr3c). Use a version between 3.1.3 and 3.5 of ANTLR v3 and the
|
|
|
|
matching C runtime version. Get it from <http://www.antlr3.org/>
|
|
|
|
- Java runtime: ANTLR is written in Java and as such a JRE is required to
|
|
|
|
run the tool. The JRE is enough, you don't need a full JDK.
|
|
|
|
- autotools: autoconf 2.63+, automake 1.10+, libtool 2.2. Run `autoreconf -i`
|
|
|
|
at the top of the source tree to generate the build system.
|
|
|
|
- gettext: libunistring requires iconv and gettext provides the autotools
|
|
|
|
macro definitions for iconv.
|
|
|
|
- gperf
|
2010-09-04 07:22:00 -04:00
|
|
|
|
|
|
|
Libraries:
|
2020-06-13 17:50:32 -04:00
|
|
|
|
|
|
|
- libantlr3c (ANTLR3 C runtime, use the same version as antlr3)
|
|
|
|
from <https://github.com/antlr/website-antlr3/tree/gh-pages/download/C>
|
|
|
|
- Avahi client libraries (avahi-client), 0.6.24 minimum
|
|
|
|
from <http://avahi.org/>
|
|
|
|
- sqlite3 3.5.0+ with unlock notify API enabled (read below)
|
|
|
|
from <http://sqlite.org/download.html>
|
2021-08-31 16:48:33 -04:00
|
|
|
- ffmpeg (libav)
|
|
|
|
from <http://ffmpeg.org/>
|
2020-06-13 17:50:32 -04:00
|
|
|
- libconfuse
|
|
|
|
from <http://www.nongnu.org/confuse/>
|
|
|
|
- libevent 2.0+ (best with 2.1.4+)
|
|
|
|
from <http://libevent.org/>
|
|
|
|
- MiniXML (aka mxml or libmxml)
|
|
|
|
from <http://minixml.org/software.php>
|
|
|
|
- gcrypt 1.2.0+
|
|
|
|
from <http://gnupg.org/download/index.en.html#libgcrypt>
|
|
|
|
- zlib
|
|
|
|
from <http://zlib.net/>
|
|
|
|
- libunistring 0.9.3+
|
|
|
|
from <http://www.gnu.org/software/libunistring/#downloading>
|
|
|
|
- libjson-c
|
|
|
|
from <https://github.com/json-c/json-c/wiki>
|
2020-07-04 08:15:59 -04:00
|
|
|
- libcurl
|
|
|
|
from <http://curl.haxx.se/libcurl/>
|
2021-01-03 17:30:09 -05:00
|
|
|
- libplist 0.16+
|
2020-06-13 17:50:32 -04:00
|
|
|
from <http://github.com/JonathanBeck/libplist/downloads>
|
2021-01-03 17:30:09 -05:00
|
|
|
- libsodium
|
2020-06-13 17:50:32 -04:00
|
|
|
from <https://download.libsodium.org/doc/>
|
2021-06-15 16:46:24 -04:00
|
|
|
- libprotobuf-c
|
|
|
|
from <https://github.com/protobuf-c/protobuf-c/wiki>
|
2021-01-03 17:30:09 -05:00
|
|
|
- libasound (optional - ALSA local audio)
|
|
|
|
often already installed as part of your distro
|
|
|
|
- libpulse (optional - Pulseaudio local audio)
|
|
|
|
from <https://www.freedesktop.org/wiki/Software/PulseAudio/Download/>
|
|
|
|
- libspotify (optional - Spotify support)
|
2021-05-31 17:25:12 -04:00
|
|
|
(deprecated by Spotify)
|
2021-01-03 17:30:09 -05:00
|
|
|
- libgnutls (optional - Chromecast support)
|
2020-06-13 17:50:32 -04:00
|
|
|
from <http://www.gnutls.org/>
|
2021-01-03 17:30:09 -05:00
|
|
|
- libwebsockets 2.0.2+ (optional - websocket support)
|
2020-06-13 17:50:32 -04:00
|
|
|
from <https://libwebsockets.org/>
|
2010-09-06 13:26:47 -04:00
|
|
|
|
|
|
|
If using binary packages, remember that you need the development packages to
|
2021-04-09 13:37:54 -04:00
|
|
|
build OwnTone (usually named -dev or -devel).
|
2009-06-12 06:15:52 -04:00
|
|
|
|
2010-09-06 12:51:19 -04:00
|
|
|
sqlite3 needs to be built with support for the unlock notify API; this isn't
|
2010-09-06 12:54:26 -04:00
|
|
|
always the case in binary packages, so you may need to rebuild sqlite3 to
|
|
|
|
enable the unlock notify API (you can check for the presence of the
|
|
|
|
sqlite3_unlock_notify symbol in the sqlite3 library). Refer to the sqlite3
|
2020-06-13 17:50:32 -04:00
|
|
|
documentation, look for `SQLITE_ENABLE_UNLOCK_NOTIFY`.
|
2010-04-30 13:20:28 -04:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
## Long version - building and installing
|
2010-09-06 12:44:43 -04:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
Start by generating the build system by running `autoreconf -i`. This will
|
|
|
|
generate the configure script and `Makefile.in`.
|
2010-09-04 07:22:00 -04:00
|
|
|
|
|
|
|
The configure script will look for a wrapper called antlr3 in the PATH to
|
|
|
|
invoke ANTLR3. If your installation of ANTLR3 does not come with such a
|
|
|
|
wrapper, create one as follows:
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
|
|
|
#!/bin/sh
|
|
|
|
CLASSPATH=...
|
|
|
|
exec /path/to/java -cp $CLASSPATH org.antlr.Tool "$@"
|
|
|
|
```
|
2010-09-04 07:22:00 -04:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
Adjust the `CLASSPATH` as needed so that Java will find all the jars needed
|
2010-09-04 07:22:00 -04:00
|
|
|
by ANTLR3.
|
|
|
|
|
|
|
|
The parsers will be generated during the build, no manual intervention is
|
|
|
|
needed.
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
To display the configure options `run ./configure --help`.
|
2010-09-04 07:22:00 -04:00
|
|
|
|
2021-05-31 17:25:12 -04:00
|
|
|
Support for Spotify is optional. Use `--disable-spotify` to disable this feature.
|
|
|
|
OwnTone supports two ways of integrating with Spotify: Using its own, built-in
|
|
|
|
integration layer (which is the default), or to use Spotify's deprecated
|
|
|
|
libspotify. To enable the latter, you must configure with `--enable-libspotify`
|
|
|
|
and also make sure libspotify's `libspotify/api.h` is installed at compile time.
|
|
|
|
At runtime, libspotify must be installed, and `use_libspotify` must be enabled
|
|
|
|
in owntone.conf. OwnTone uses runtime dynamic linking to the libspotify library,
|
|
|
|
so even though you compiled with `--enable-libspotify`, the executable will
|
|
|
|
still be able to run on systems without libspotify. If you only want libspotify
|
|
|
|
integration, you can use `--disable-spotify` and `--enable-libspotify`.
|
2009-06-12 06:15:52 -04:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
Support for LastFM scrobbling is optional. Use `--enable-lastfm` to enable this
|
2014-08-15 17:36:54 -04:00
|
|
|
feature.
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
Support for the MPD protocol is optional. Use `--disable-mpd` to disable this
|
2014-12-31 04:06:59 -05:00
|
|
|
feature.
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
Support for Chromecast devices is optional. Use `--enable-chromecast` to enable
|
2016-02-11 16:30:48 -05:00
|
|
|
this feature.
|
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
The player web interface is optional. Use `--disable-webinterface` to disable
|
2018-06-05 17:04:34 -04:00
|
|
|
this feature.
|
2020-06-13 17:50:32 -04:00
|
|
|
If enabled, `sudo make install` will install the prebuild html, js, css files.
|
2018-08-11 01:47:10 -04:00
|
|
|
The prebuild files are:
|
2020-06-13 17:50:32 -04:00
|
|
|
|
|
|
|
- `htdocs/index.html`
|
|
|
|
- `htdocs/player/*`
|
|
|
|
|
|
|
|
The source for the player web interface is located under the `web-src` folder and
|
|
|
|
requires nodejs >= 6.0 to be built. In the `web-src` folder run `npm install` to
|
|
|
|
install all dependencies for the player web interface. After that run `npm run build`.
|
|
|
|
This will build the web interface and update the `htdocs` folder.
|
|
|
|
(See [README_PLAYER_WEBINTERFACE.md](README_PLAYER_WEBINTERFACE.md) for more
|
|
|
|
informations)
|
2018-06-05 17:04:34 -04:00
|
|
|
|
2020-11-22 04:25:34 -05:00
|
|
|
Building with libwebsockets is required if you want the web interface. It will be enabled
|
|
|
|
if the library is present (with headers). Use `--without-libwebsockets` to disable.
|
2017-09-16 03:19:56 -04:00
|
|
|
|
|
|
|
Building with Pulseaudio is optional. It will be enabled if the library is
|
2020-06-13 17:50:32 -04:00
|
|
|
present (with headers). Use `--without-pulseaudio` to disable.
|
2016-08-28 16:53:40 -04:00
|
|
|
|
2009-06-12 06:15:52 -04:00
|
|
|
Recommended build settings:
|
2013-12-21 12:24:48 -05:00
|
|
|
|
2020-06-13 17:50:32 -04:00
|
|
|
```bash
|
2021-08-31 16:48:33 -04:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-install-user
|
2020-06-13 17:50:32 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
After configure run the usual make, and if that went well, `sudo make install`.
|
2009-06-12 06:15:52 -04:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
With the above configure arguments, a systemd service file will be installed to
|
|
|
|
`/etc/systemd/system/owntone.service` so that the server will start on boot.
|
|
|
|
Use `--disable-install-systemd` if you don't want that.
|
|
|
|
|
|
|
|
Using `--enable-install-user` means that `make install` will also add a system
|
|
|
|
user and group for owntone.
|
|
|
|
|
2018-09-04 16:35:48 -04:00
|
|
|
You may see two kinds of warnings during make.
|
2020-06-13 17:50:32 -04:00
|
|
|
First, `/usr/bin/antlr3` may generate a long series of warnings that
|
2018-09-04 16:35:48 -04:00
|
|
|
begin like this:
|
2020-06-13 17:50:32 -04:00
|
|
|
|
|
|
|
```log
|
|
|
|
warning(24): template error: context ...
|
|
|
|
```
|
|
|
|
|
2018-09-04 16:35:48 -04:00
|
|
|
Second, you may see compiler warnings that look like this:
|
2020-06-13 17:50:32 -04:00
|
|
|
|
|
|
|
```log
|
|
|
|
RSPLexer.c: In function `mESCAPED':
|
|
|
|
RSPLexer.c:2674:16: warning: unused variable `_type' [-Wunused-variable]
|
|
|
|
ANTLR3_UINT32 _type;
|
|
|
|
^~~~~
|
|
|
|
```
|
|
|
|
|
2018-09-04 16:35:48 -04:00
|
|
|
You can safely ignore all of these warnings.
|
2014-02-03 17:03:43 -05:00
|
|
|
|
2019-02-20 02:52:48 -05:00
|
|
|
After installation:
|
2017-07-10 14:05:00 -04:00
|
|
|
|
2021-04-09 13:37:54 -04:00
|
|
|
- edit the configuration file, `/etc/owntone.conf`
|
2020-06-13 17:50:32 -04:00
|
|
|
- make sure the Avahi daemon is installed and running (Debian:
|
|
|
|
`apt install avahi-daemon`)
|
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
OwnTone will drop privileges to any user you specify in the configuration file
|
|
|
|
if it's started as root.
|
2010-09-04 07:22:00 -04:00
|
|
|
|
2021-08-31 16:48:33 -04:00
|
|
|
This user must have read permission to your library and read/write permissions
|
|
|
|
to the database location (`$localstatedir/cache/owntone` by default).
|
2009-06-12 06:15:52 -04:00
|
|
|
|