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/03/10 17:43] nx3 [Install Serviio] |
howto:linux:install:raspbian [2015/09/18 13:12] szati [Configure Java] |
||
---|---|---|---|
Line 8: | Line 8: | ||
http:// | 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 20: | ||
==== Configure Java ==== | ==== Configure Java ==== | ||
- | Switch to " | + | Decompress the tar file, the file name will change depending on the version you download |
- | < | + | < |
+ | sudo tar zxvf jdk-8u60-linux-arm32-vfp-hflt.tar.gz -C /opt | ||
+ | </ | ||
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 --install | + | sudo update-alternatives --install / |
- | update-alternatives --install | + | sudo update-alternatives --install / |
- | update-alternatives --set java / | + | sudo update-alternatives --set java / |
</ | </ | ||
- | Now exit " | + | Set version, you get to set as new versions of Raspbian have JDK7 preinstalled, |
- | < | + | < |
+ | 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 | ||
- | java version "1.8.0-ea" | + | java version "1.8.0_06" |
- | Java(TM) SE Runtime Environment (build 1.8.0-ea-b36e) | + | Java(TM) SE Runtime Environment (build 1.8.0_06) |
Java HotSpot(TM) Client VM (build 25.0-b04, mixed mode) | Java HotSpot(TM) Client VM (build 25.0-b04, mixed mode) | ||
</ | </ | ||
Line 106: | Line 118: | ||
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 128: | ||
$0 | $0 | ||
stop | stop | ||
+ | esac | ||
</ | </ | ||
Line 151: | Line 163: | ||
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 167: | Line 181: | ||
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 175: | Line 189: | ||
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 180: | Line 195: | ||
./configure | ./configure | ||
make | make | ||
- | sudo checkinstall --pkgname=libvpx --pkgversion=" | + | sudo checkinstall --pkgname=libvpx --pkgversion=" |
- | | + | |
</ | </ | ||
Line 187: | Line 201: | ||
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=" |
- | | + | |
</ | </ | ||