Comments (14)
Comment by disanvparean
Saturday May 27, 2017 at 12:25 GMT
Installing Libresonic on Raspberry Pi 3 (Raspbian lite but should be working with full Raspbian - other Raspberry Pi with Raspbian should work too)
$ sudo apt install oracle-java8-jdk tomcat8
$ wget https://libresonic.org/release/libresonic-v6.2.war
$ sudo mkdir /var/libresonic/
$ sudo chown -R tomcat8:tomcat8 /var/libresonic/
$ sudo systemctl stop tomcat8.service
$ sudo mv libresonic-v6.2.war /var/lib/tomcat8/webapps/libresonic.war
$ sudo systemctl start tomcat8.service
Be patient (several minutes at least on Raspberry pi 3), you can follow the deployment using :
$ sudo tail -f /var/log/tomcat8/catalina.out
When Libresonic )))
appears go to http://ip:8080/libresonic (default user/password admin/admin)
If you have a nginx reverse proxy, add to /etc/nginx/sites-available/default
(or another config file if you're not using the default one) and add just before the last }
:
location /libresonic/ {
proxy_pass http://localhost:8080;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host;
proxy_max_temp_file_size 0;
proxy_redirect http:// https://;
}
Restart nginx :
$ sudo service nginx restart
And then go to :
https://yourdomain.com/libresonic
Thank you for your wonderful software :-)
from airsonic-docs.
Comment by jooola
Saturday May 27, 2017 at 12:27 GMT
Thanks! If you're up to submit a PR tell otherwise i'll do it !
from airsonic-docs.
Comment by disanvparean
Saturday May 27, 2017 at 12:35 GMT
Please do it, I'm not so familiar with git ;-)
from airsonic-docs.
Comment by disanvparean
Saturday May 27, 2017 at 12:44 GMT
If you want to enable transcoding :
Transcoding (adapted from Subsonic htpcguides.com) :
$ sudo apt install libav-tools xmp lame flac
In order to avoid permission problems :
$ sudo chmod ugo+x /usr/bin/avconv /usr/bin/flac /usr/bin/xmp /usr/bin/lame
Libresonic uses ffmpeg by default so we are tricking the symlink into using avconv. And then we are creating other symlinks.
$ sudo ln -s /usr/bin/avconv /var/libresonic/transcode/ffmpeg &&
sudo ln -s /usr/bin/flac /var/libresonic/transcode/flac &&
sudo ln -s /usr/bin/xmp /var/libresonic/transcode/xmp &&
sudo ln -s /usr/bin/lame /var/libresonic/transcode/lame
from airsonic-docs.
Comment by jooola
Saturday May 27, 2017 at 12:53 GMT
For trans coding it don't think this really necessary to add lame/flac/xmp. Currenlty Libresonic only use ffmpeg (avconv) for transcoding.
And i don't konw if it works for you but i already saw someone having an issue symlinking ffmpeg to avconv. I didn't tested it but the best way to do this should be to not change the names in the symlinks but change them in the transcoding rules in Libresonic.
Or simply download ffmpeg from jessie-backports (which should exist on raspbian )
from airsonic-docs.
Comment by disanvparean
Saturday May 27, 2017 at 13:04 GMT
I didn't know libresonic doesn't use lame/flac/xmp.
I did not change it in settings because as they are using the same syntax I thought it was better not to touch to settings. It seems to be working indeed according to logs : "2017-05-27 12:45:40.218 INFO --- o.l.p.io.TranscodeInputStream : Starting transcoder: [/var/libresonic/transcode/ffmpeg] [-i] [/xxx.mp3] [-map] [0:0] [-b:a] [192k] [-v] [0] [-f] [mp3] [-] ". And I tried with 32k and I can tell you it's working haha, my ears are still bleeding.
I didn't know neither about ffmpeg in jessie-backports. That's good news.
Some maybe tell people how to install ffmpeg from backports is sufficient. Is the symlink from /var/libresonic/transcode necessary ?
Thank you
from airsonic-docs.
Comment by jooola
Saturday May 27, 2017 at 13:12 GMT
Yeah libresonic needs the symlinks from /var/libresonic/transcode/ffmpeg to /path/to/ffmpeg.
Good to know ! I'm going to install my rapsberry pi too i think !!
from airsonic-docs.
Comment by disanvparean
Saturday May 27, 2017 at 13:22 GMT
Yeah, it's working well. Outside my home network (50ko/s max uploading) I need two seconds for transcoding and start playing the file (4 minutes mp3 320k to mp3 192k). And I only have 60 MB free on memory on my Pi because I'm using transmission+sickrage+libresonic.
I tried to transcode using ffmpeg package and it's working well. What I did :
Transcoding
Transcoding :
Edit /etc/apt/sources.list
:
$ sudo nano /etc/apt/sources.list
Add at the end of file :
deb http://httpredir.debian.org/debian jessie-backports main non-free
deb-src http://httpredir.debian.org/debian jessie-backports main non-free
Run update and install ffmpeg
:
$ sudo apt update && sudo apt -t jessie-backports install ffmpeg
Create the symlink :
$ sudo ln -s /usr/bin/ffmpeg /var/libresonic/transcode/ffmpeg
You're ready !
from airsonic-docs.
Comment by jooola
Saturday May 27, 2017 at 13:25 GMT
Ok thanks this is online in 5 minutes !
from airsonic-docs.
Comment by jooola
Saturday May 27, 2017 at 13:28 GMT
https://github.com/Libresonic/documentation/blob/stable/install/example/raspberrypi.md
I made some changes but this is done thanks !
from airsonic-docs.
Comment by disanvparean
Saturday May 27, 2017 at 13:45 GMT
Great, nice work :)
from airsonic-docs.
Comment by disanvparean
Saturday May 27, 2017 at 14:43 GMT
Ok I checked your documentation and it seems that /usr/bin/ffmpeg doesn't need to belong to the user running libresonic to work. I don't know why. Is tomcat using root account ? I don't think so it has his own account (tomcat8).
$ ls -allh /usr/bin | grep ffmpeg
-rwxr-xr-x 1 root root 194K Feb 27 16:22 ffmpeg
Moreover, we don't know where source.list
is located as it's not mentioned in the documentation.
from airsonic-docs.
Comment by muff1nman
Saturday May 27, 2017 at 14:56 GMT
Correct, ffmpeg only needs to be executable by tomcat, not owned by tomcat
from airsonic-docs.
Comment by jooola
Saturday May 27, 2017 at 14:57 GMT
Yeah ok i'll fix the source list files path !
No about the transcode the binaries have to stay as is. Like most other binaries they are owned by root.
See ls -l /usr/bin/
The only thing thats need to change is the link owner.
Additionnally if you see the ffmpeg permissions (755) everyone can execute it.
from airsonic-docs.
Related Issues (20)
- Error in reverse proxy documentation
- Add substreamer into apps.md
- Windows installation guide issue
- install docs HOT 2
- Clarify requirements for Content-Security-Policy behind reverse proxy HOT 2
- Add page for Jukebox documentation
- FAQ with common exceptions
- Apps - is Substreamer open source? HOT 20
- sync with website docs HOT 2
- Installation Docs should provide guidance on verification of war files HOT 2
- Wrong link in Docker Installation Documentation
- Add comparison between standalone and tomcat installation HOT 6
- Add notes for specific situation such as raspberri pi installation HOT 1
- Page for transcoders in documentation not found HOT 1
- Document the required configuration HOT 9
- Centos 7 doc HOT 3
- share link disappeared HOT 1
- Rename documentation repo to airsonic-docs HOT 1
- Caddy Reverse Proxy not working HOT 4
- Are the IntelliJ instructions missing -Dairsonic.development=true? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airsonic-docs.