Updated install

This commit is contained in:
epoupon
2015-09-22 12:53:53 +02:00
parent bceee99a28
commit e4f77cb985
2 changed files with 31 additions and 30 deletions
+17
View File
@@ -3,3 +3,20 @@ AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
SUBDIRS = test src SUBDIRS = test src
lms_docrootdir=$(pkgdatadir)/docroot
lms_approotdir=$(pkgdatadir)/approot
lms_cssdir=$(lms_docrootdir)/css
lms_imagesdir=$(lms_docrootdir)/images
lms_css_DATA = \
docroot/css/lms.css
lms_images_DATA = \
docroot/images/unknown-cover.jpg
lms_approot_DATA = \
approot/templates.xml
install-data-local:
ln -s $(datadir)/Wt/resources $(lms_docrootdir)/resources
+14 -30
View File
@@ -7,7 +7,6 @@ It allows you to access your music and your videos using an https web interface.
- Winamp-like interface, suited for large databases - Winamp-like interface, suited for large databases
- Audio/Video transcode for maximum interoperability and low bandwith requirements - Audio/Video transcode for maximum interoperability and low bandwith requirements
- User management - User management
- LMS API available in Protocol Buffers (see src/lms-api/proto/messages.proto)
Please note LMS is still under development and will gain more features in the future. Please note LMS is still under development and will gain more features in the future.
@@ -20,60 +19,46 @@ Please note some media files may require significant CPU usage to be transcoded.
$ apt-get install g++ autoconf automake libboost-dev libboost-locale-dev libboost-iostreams-dev libboost-log-dev libavcodec-dev libwtdbosqlite-dev libwthttp-dev libwtdbo-dev libwt-dev libmagick++-dev libavcodec-dev libavformat-dev libavutil $ apt-get install g++ autoconf automake libboost-dev libboost-locale-dev libboost-iostreams-dev libboost-log-dev libavcodec-dev libwtdbosqlite-dev libwthttp-dev libwtdbo-dev libwt-dev libmagick++-dev libavcodec-dev libavformat-dev libavutil
``` ```
If you want to enable the LMS API, you need these additional packages:
```sh
$ apt-get install libprotobuf-dev libprotobuf-dev protobuf-compiler
```
Warning: your distrib may provide an outdated wt library. Using the latest Wt (>= 3.3.3) is highly recommended (see http://www.webtoolkit.eu/wt)
## Build ## Build
```sh ```sh
$ autoreconf -vfi $ autoreconf -vfi
$ mkdir build $ mkdir build
$ cd build $ cd build
$ ../configure $ ../configure --prefix=/usr
``` ```
configure will complain if a mandatory library is missing. configure will complain if a mandatory library is missing.
The configure script allows you to disable the LMS API support, see 'configure --help' for more information.
```sh ```sh
$ make $ make -j 4
``` ```
## Setting up SSL materials ## Install
This is required by the SSL server and the web server. ```sh
$ make install
```
This command requires root privileges
## Running
```sh
$ /usr/bin/lms --docroot='/usr/share/lms/docroot/;/resources,/css,/images' --approot=/usr/share/lms/approot --http-address 0.0.0.0 --http-port 5081
```
The exectuable needs write accesses to the /var/lms/ directory
## Setting up SSL materials (optional)
Here is just a self signed certificate example, you could do use a CA if you want. Here is just a self signed certificate example, you could do use a CA if you want.
Generate a dh file: Generate a dh file:
```sh ```sh
$ openssl dhparam -out dh2048.pem 2048 $ openssl dhparam -out dh2048.pem 2048
``` ```
Generate a self signed certificate: Generate a self signed certificate:
```sh ```sh
$ openssl req -x509 -out cert.pem -keyout privkey.pem -newkey rsa:4096 $ openssl req -x509 -out cert.pem -keyout privkey.pem -newkey rsa:4096
``` ```
## Running
In the build directory:
```sh ```sh
$ ./src/lms lms.conf $ /usr/bin/lms --docroot='/usr/share/lms/docroot/;/resources,/css,/images' --approot=/usr/share/lms/approot --https-address 0.0.0.0 --https-port 5081 --ssl-certificate cert.pem --ssl-private-key privkey.pem --ssl-tmp-dh dh2048.pem
``` ```
Create the lms.conf file using the etc/lms.sample.conf
- "ui.resources.approot" has to refer to the ui/approot/ directory.
- "ui.resources.docroot" has to refer to the ui/docroot/ directory
You must also link Wt's docroot (usually located in /usr/share/Wt) into that directory. Example:
```sh
ln -s /var/lms/docroot/resources /usr/share/Wt/resources
```
Depending on your SSL parameters, you may be asked for the PEM passphrase to unlock the private key. Depending on your SSL parameters, you may be asked for the PEM passphrase to unlock the private key.
## Credits ## Credits
@@ -81,5 +66,4 @@ Depending on your SSL parameters, you may be asked for the PEM passphrase to unl
- Wt (http://www.webtoolkit.eu/) - Wt (http://www.webtoolkit.eu/)
- bootstrap3 (http://getbootstrap.com/) - bootstrap3 (http://getbootstrap.com/)
- libav project (https://www.libav.org/). - libav project (https://www.libav.org/).
- Protocol Buffers (https://github.com/google/protobuf/)
73,1 Bot 73,1 Bot