This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
howto:linux:install:raspbian [2013/02/11 20:29] nx3 [FFMPEG] |
howto:linux:install:raspbian [2014/07/22 20:35] nx3 [Install Oracle Java for ARM] |
||
---|---|---|---|
Line 8: | Line 8: | ||
http:// | http:// | ||
+ | " | ||
+ | |||
+ | Download Java from (this might change) | ||
+ | http:// | ||
==== Install Oracle Java for ARM ==== | ==== Install Oracle Java for ARM ==== | ||
Download Oracle JDK8 for ARM on your RaspberryPi and get the resulting file to your ' | Download Oracle JDK8 for ARM on your RaspberryPi and get the resulting file to your ' | ||
- | [[http://jdk8.java.net/fxarmpreview/index.html]] | + | http://www.oracle.com/technetwork/java/ |
Oracle provide a good installation guide at: | Oracle provide a good installation guide at: | ||
Line 19: | Line 23: | ||
==== Configure Java ==== | ==== Configure Java ==== | ||
- | Switch to " | ||
- | < | ||
- | |||
Change the owner of JAVA: | Change the owner of JAVA: | ||
- | < | + | < |
Set where the Java components are installed: | Set where the Java components are installed: | ||
< | < | ||
- | update-alternatives | + | sudo update-alternatives |
- | update-alternatives | + | sudo update-alternatives |
- | update-alternatives --set java / | + | sudo update-alternatives --set java / |
</ | </ | ||
- | Now exit " | + | Set version |
- | < | + | < |
+ | sudo update-alternatives –config javac | ||
+ | sudo update-alternatives –config java | ||
+ | </ | ||
+ | |||
+ | Check versions | ||
+ | < | ||
+ | java -version | ||
+ | javac -version | ||
+ | </ | ||
- | Check if JAVA works (version | + | Version |
< | < | ||
pi@raspberrypi ~ $ java -version | pi@raspberrypi ~ $ java -version | ||
Line 82: | Line 92: | ||
Rather than run Serviio console on Raspbian you can configure via a smart phone. See the links on [[http:// | Rather than run Serviio console on Raspbian you can configure via a smart phone. See the links on [[http:// | ||
- | Set Serviio to start on boot with Raspbian | + | Set Serviio to start on boot with Raspbian, this is for the service only not the GUI so save memory. |
Create and init.d file to edit | Create and init.d file to edit | ||
< | < | ||
Line 106: | Line 116: | ||
stop) | stop) | ||
echo "Stop Serviio..." | echo "Stop Serviio..." | ||
- | su -l $User -c "/ | + | su -l $User -c "/ |
;; | ;; | ||
start) | start) | ||
# start Serviio in background mode | # start Serviio in background mode | ||
- | su -l $User -c "/ | + | su -l $User -c "/ |
echo "Start Serviio..." | echo "Start Serviio..." | ||
;; | ;; | ||
Line 116: | Line 126: | ||
$0 | $0 | ||
stop | stop | ||
+ | esac | ||
</ | </ | ||
Line 143: | Line 153: | ||
My solution was to build on the Pi itself even though main guides say don't do it. Yes its slow but at least it will work ! | My solution was to build on the Pi itself even though main guides say don't do it. Yes its slow but at least it will work ! | ||
+ | |||
+ | Get lamemp3 | ||
+ | < | ||
+ | sudo apt-get install libmp3lame-dev | ||
+ | </ | ||
Compiling libaacplus | Compiling libaacplus | ||
< | < | ||
+ | sudo apt-get install autoconf | ||
+ | sudo apt-get install libtool | ||
cd /home/pi/ | cd /home/pi/ | ||
mkdir src | mkdir src | ||
Line 162: | Line 179: | ||
git clone git:// | git clone git:// | ||
cd x264 | cd x264 | ||
- | ./configure --host=arm-unknown-linux-gnueabi --enable-static | + | ./configure --host=arm-unknown-linux-gnueabi --enable-static |
make | make | ||
sudo make install | sudo make install | ||
Line 170: | Line 187: | ||
libvpx is an emerging open video compression library which is gaining popularity for distributing high definition video content on the internet. FFmpeg supports using the libvpx library to compress video content. To acquire and build libvpx, perform the following: | libvpx is an emerging open video compression library which is gaining popularity for distributing high definition video content on the internet. FFmpeg supports using the libvpx library to compress video content. To acquire and build libvpx, perform the following: | ||
< | < | ||
+ | sudo apt-get install checkinstall | ||
cd / | cd / | ||
git clone http:// | git clone http:// | ||
Line 175: | Line 193: | ||
./configure | ./configure | ||
make | make | ||
- | sudo checkinstall --pkgname=libvpx --pkgversion=" | + | sudo checkinstall --pkgname=libvpx --pkgversion=" |
- | | + | |
</ | </ | ||
Line 182: | Line 199: | ||
librtmp provides support for the RTMP content streaming protocol developed by Adobe and commonly used to distribute content to flash video players on the web. FFmpeg supports using the librtmp library to stream content from RTMP sources. To acquire and build librtmp, perform the following: | librtmp provides support for the RTMP content streaming protocol developed by Adobe and commonly used to distribute content to flash video players on the web. FFmpeg supports using the librtmp library to stream content from RTMP sources. To acquire and build librtmp, perform the following: | ||
< | < | ||
+ | sudo apt-get install libssl-dev | ||
cd / | cd / | ||
git clone git:// | git clone git:// | ||
cd rtmpdump | cd rtmpdump | ||
make SYS=posix | make SYS=posix | ||
- | sudo checkinstall --pkgname=rtmpdump --pkgversion=" | + | sudo checkinstall --pkgname=rtmpdump --pkgversion=" |
- | | + | |
</ | </ | ||