Moderator: moderators
moosefist wrote: I need to room it as a server I'm the machine...
mkdir java
wget <java_jre_url>
tar xvzf <downloaded file>
ln -s jre1.7.0_21 jre
cd ~
mkdir subsonic
cd subsonic
mkdir data
mkdir app
cd app
wget <subsonic_url>
tar xvzf <subsonic_tar_ball>
cd ~/subsonic
vi startSubsonic.sh
#!/bin/sh
export JAVA_HOME=/storage/java/jre
/storage/subsonic/app/subsonic.sh --home=/storage/subsonic/data \
--host=192.168.1.71 --max-memory=512 \
--pidfile=/var/run/subsonic.pid \
--default-music-folder=/storage/music \
--default-podcast-folder=/storage/music/podcast \
--default-playlist-folder=/storage/playlist
chmod +x subsonic.sh
cd ~/subsonic/data/transcode/
ln -s /usr/bin/ffmpeg ffmpeg
vi ~/.config/autostart.sh
# cat ~/.config/autostart.sh
#!/bin/sh
# Subsonic
(
# sleep 10 sec to be ensure network is started
usleep 10000000
/storage/subsonic/startSubsonic.sh
)&
chmod +x ~/.config/autostart.sh
1. make a folder called: java, put jre-7u45-linux-x64.tar.gz into java folder (FileZilla)
2. cd java, type: "tar zxvf jre-7u45-linux-x64.tar.gz" (putty) You should now have a folder in java called: jre1.7.0_45
3. so the same with subsonic: make a folder called: subsonic put your downloaded subsonic standalone.tar.gz in it (FileZilla)
4. cd into subsonic en do a: nano subsonic.sh (putty)
#!/bin/sh
###################################################################################
# Shell script for starting Subsonic. See http://subsonic.org.
#
# Author: Sindre Mehus
###################################################################################
export JAVA_HOME=/storage/java/jre1.7.0_45
SUBSONIC_HOME=/storage/subsonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=0
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=150
SUBSONIC_PIDFILE=
SUBSONIC_DEFAULT_MUSIC_FOLDER=/storage/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/storage/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/storage/playlists
# ffmpeg -formats
ffmpeg version 1.2.5 Copyright (c) 2000-2014 the FFmpeg developers
built on Feb 4 2014 01:22:32 with gcc 4.8.2 (GCC)
configuration: --prefix=/usr --cpu=arm1176jzf-s --arch=arm --enable-cross-compile --cross-prefix=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi- --sysroot=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/armv6zk-openelec-linux-gnueabi/sysroot --sysinclude=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/armv6zk-openelec-linux-gnueabi/sysroot/usr/include --target-os=linux --nm=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi-nm --ar=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi-ar --as=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi-gcc --cc=/home/openelec-unofficial/OpenELEC.tv/build.OpenELEC-RPi.arm-devel/toolchain/bin/armv6zk-openelec-linux-gnueabi-gcc --ld=/home/openelec-unofficial/OpenELEC.tv/b libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
File formats:
D. = Demuxing supported
.E = Muxing supported
--
D 4xm 4X Technologies
D aac raw ADTS AAC (Advanced Audio Coding)
D ac3 raw AC-3
D act ACT Voice file format
D adf Artworx Data Format
E adts ADTS AAC (Advanced Audio Coding)
D adx CRI ADX
D aea MD STUDIO audio
D afc AFC
D aiff Audio IFF
D alaw PCM A-law
D amr 3GPP AMR
D anm Deluxe Paint Animation
D apc CRYO APC
D ape Monkey's Audio
D aqtitle AQTitle subtitles
D asf ASF (Advanced / Active Streaming Format)
D ass SSA (SubStation Alpha) subtitle
D ast AST (Audio Stream)
D au Sun AU
D avi AVI (Audio Video Interleaved)
D avr AVR (Audio Visual Research)
D avs AVS
D bethsoftvid Bethesda Softworks VID
D bfi Brute Force & Ignorance
D bin Binary text
D bink Bink
D bit G.729 BIT file format
D bmv Discworld II BMV
D brstm BRSTM (Binary Revolution Stream)
D c93 Interplay C93
D caf Apple CAF (Core Audio Format)
D cavsvideo raw Chinese AVS (Audio Video Standard)
D cdg CD Graphics
D cdxl Commodore CDXL video
D concat Virtual concatenation script
D daud D-Cinema audio
D dfa Chronomaster DFA
D dirac raw Dirac
D dnxhd raw DNxHD (SMPTE VC-3)
D dsicin Delphine Software International CIN
D dts raw DTS
D dtshd raw DTS-HD
D dv DV (Digital Video)
D dxa DXA
D ea Electronic Arts Multimedia
D ea_cdata Electronic Arts cdata
D eac3 raw E-AC-3
D epaf Ensoniq Paris Audio File
D f32be PCM 32-bit floating-point big-endian
D f32le PCM 32-bit floating-point little-endian
D f64be PCM 64-bit floating-point big-endian
D f64le PCM 64-bit floating-point little-endian
D ffm FFM (FFserver live feed)
D ffmetadata FFmpeg metadata in text
D film_cpk Sega FILM / CPK
D filmstrip Adobe Filmstrip
D flac raw FLAC
D flic FLI/FLC/FLX animation
D flv FLV (Flash Video)
D frm Megalux Frame
D g722 raw G.722
D g723_1 G.723.1
D g729 G.729 raw format demuxer
D gif CompuServe Graphics Interchange Format (GIF)
D gsm raw GSM
D gxf GXF (General eXchange Format)
D h261 raw H.261
D h263 raw H.263
D h264 raw H.264 video
D hls,applehttp Apple HTTP Live Streaming
D ico Microsoft Windows ICO
D idcin id Cinematic
D idf iCE Draw File
D iff IFF (Interchange File Format)
D ilbc iLBC storage
D image2 image2 sequence
D image2pipe piped image2 sequence
D ingenient raw Ingenient MJPEG
D ipmovie Interplay MVE
D ircam Berkeley/IRCAM/CARL Sound Format
D iss Funcom ISS
D iv8 IndigoVision 8000 video
D ivf On2 IVF
D jacosub JACOsub subtitle format
D jv Bitmap Brothers JV
D latm raw LOAS/LATM
D lmlm4 raw lmlm4
D loas LOAS AudioSyncStream
D lvf LVF
D lxf VR native stream (LXF)
D m4v raw MPEG-4 video
D matroska,webm Matroska / WebM
D mgsts Metal Gear Solid: The Twin Snakes
D microdvd MicroDVD subtitle format
D mjpeg raw MJPEG video
D mlp raw MLP
D mm American Laser Games MM
D mmf Yamaha SMAF
D mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOV
D mp3 MP2/3 (MPEG audio layer 2/3)
D mpc Musepack
D mpc8 Musepack SV8
D mpeg MPEG-PS (MPEG-2 Program Stream)
D mpegts MPEG-TS (MPEG-2 Transport Stream)
D mpegtsraw raw MPEG-TS (MPEG-2 Transport Stream)
D mpegvideo raw MPEG video
D mpl2 MPL2 subtitles
D mpsub MPlayer subtitles
D msnwctcp MSN TCP Webcam stream
D mtv MTV
D mulaw PCM mu-law
D mv Silicon Graphics Movie
D mvi Motion Pixels MVI
D mxf MXF (Material eXchange Format)
D mxg MxPEG clip
D nc NC camera feed
D nistsphere NIST SPeech HEader REsources
D nsv Nullsoft Streaming Video
D nut NUT
D nuv NuppelVideo
DE ogg Ogg
D oma Sony OpenMG audio
D paf Amazing Studio Packed Animation File
D pjs PJS (Phoenix Japanimation Society) subtitles
D pmp Playstation Portable PMP
D psxstr Sony Playstation STR
D pva TechnoTrend PVA
D pvf PVF (Portable Voice Format)
D qcp QCP
D r3d REDCODE R3D
D rawvideo raw video
D realtext RealText subtitle format
D rl2 RL2
D rm RealMedia
D roq id RoQ
D rpl RPL / ARMovie
D rso Lego Mindstorms RSO
D rtp RTP input
D rtsp RTSP input
D s16be PCM signed 16-bit big-endian
D s16le PCM signed 16-bit little-endian
D s24be PCM signed 24-bit big-endian
D s24le PCM signed 24-bit little-endian
D s32be PCM signed 32-bit big-endian
D s32le PCM signed 32-bit little-endian
D s8 PCM signed 8-bit
D sami SAMI subtitle format
D sap SAP input
D sbg SBaGen binaural beats script
D sdp SDP
D shn raw Shorten
D siff Beam Software SIFF
D smjpeg Loki SDL MJPEG
D smk Smacker
D smush LucasArts Smush
D sol Sierra SOL
D sox SoX native
DE spdif IEC 61937 (used on S/PDIF - IEC958)
D srt SubRip subtitle
D subviewer SubViewer subtitle format
D subviewer1 SubViewer v1 subtitle format
D swf SWF (ShockWave Flash)
D tak raw TAK
D tedcaptions TED Talks captions
D thp THP
D tiertexseq Tiertex Limited SEQ
D tmv 8088flex TMV
D truehd raw TrueHD
D tta TTA (True Audio)
D tty Tele-typewriter
D txd Renderware TeXture Dictionary
D u16be PCM unsigned 16-bit big-endian
D u16le PCM unsigned 16-bit little-endian
D u24be PCM unsigned 24-bit big-endian
D u24le PCM unsigned 24-bit little-endian
D u32be PCM unsigned 32-bit big-endian
D u32le PCM unsigned 32-bit little-endian
D u8 PCM unsigned 8-bit
D vc1 raw VC-1
D vc1test VC-1 test bitstream
D vivo Vivo
D vmd Sierra VMD
D vobsub VobSub subtitle format
D voc Creative Voice
D vplayer VPlayer subtitles
D vqf Nippon Telegraph and Telephone Corporation (NTT) TwinVQ
D w64 Sony Wave64
D wav WAV / WAVE (Waveform Audio)
D wc3movie Wing Commander III movie
D webvtt WebVTT subtitle
D wsaud Westwood Studios audio
D wsvqa Westwood Studios VQA
D wtv Windows Television (WTV)
D wv WavPack
D xa Maxis XA
D xbin eXtended BINary text (XBIN)
D xmv Microsoft XMV
D xwma Microsoft xWMA
D yop Psygnosis YOP
D yuv4mpegpipe YUV4MPEG pipe
[2014-03-30 18:05:08,269] DEBUG TranscodeInputStream - Starting transcoder: [/storage/subsonic/data/transcode/ffmpeg] [-ss] [0] [-i] [/storage/p2p-music/A Tribe Called Quest - The Love Movement [V0]/03. Da Booty.mp3] [-v] [0] [-f] [au] [-]
[2014-03-30 18:07:53,129] ERROR JukeboxService - Error in jukebox: java.io.EOFException
java.io.EOFException
./subsonic.sh: line 126: /storage/java/jre1.7.0_75/bin/java: not found
#!/bin/sh
###################################################################################
# Shell script for starting Subsonic. See http://subsonic.org.
#
# Author: Sindre Mehus
###################################################################################
export JAVA_HOME=/storage/java/jre1.7.0_75
SUBSONIC_HOME=/storage/subsonic
SUBSONIC_HOST=0.0.0.0
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=0
SUBSONIC_CONTEXT_PATH=/
SUBSONIC_MAX_MEMORY=150
SUBSONIC_PIDFILE=
SUBSONIC_DEFAULT_MUSIC_FOLDER=/storage/music
SUBSONIC_DEFAULT_PODCAST_FOLDER=/storage/music/Podcast
SUBSONIC_DEFAULT_PLAYLIST_FOLDER=/storage/playlists
OpenELEC:~/java/jre1.7.0_75/bin # ls
ControlPanel java_vm jcontrol orbd policytool rmiregistry tnameserv
java javaws keytool pack200 rmid servertool unpack200
OpenELEC:~/java/jre1.7.0_75/bin # pwd
/storage/java/jre1.7.0_75/bin
Users browsing this forum: No registered users and 23 guests