Last active
          September 28, 2021 00:11 
        
      - 
      
- 
        Save Nerten/75a6082dd2da004a14d9 to your computer and use it in GitHub Desktop. 
Revisions
- 
        Nerten revised this gist Aug 25, 2016 . No changes.There are no files selected for viewing
- 
        Nerten revised this gist Aug 25, 2016 . 2 changed files with 28 additions and 20 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ # first install java8 from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html # it's 10x faster then openjdk8 # download jdk-8u101-linux-arm32-vfp-hflt.tar.gz for C1/XU4 or jdk-8u101-linux-arm64-vfp-hflt.tar.gz for C2 # sudo tar zxvf jdk-8*.tar.gz -C /opt # sudo mv sudo mv /opt/jdk1.8.0_* /opt/jdk1.8.0 # sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0/bin/javac 1 # sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0/bin/java 1 # if installed other version of java, you need to configure for using newest by: # sudo update-alternatives --config javac # sudo update-alternatives --config java # checking # java -version # javac -version sudo apt-get -y install mediainfo libchromaprint-tools sudo mkdir -p /usr/share/filebot/bin sudo mkdir -p /usr/share/filebot/data sudo chmod -R 777 /usr/share/filebot/data sudo wget http://sourceforge.net/projects/filebot/files/filebot/HEAD/FileBot.jar/download -O /usr/share/filebot/FileBot.jar sudo bash -c "cat <<EOT > /usr/share/filebot/bin/filebot.sh #!/bin/sh java -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=false -Dfile.encoding=UTF-8 -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=ipkg -Dapplication.analytics=true -Duser.home=/usr/share/filebot/data -Dapplication.dir=/usr/share/filebot/data -Djava.io.tmpdir=/usr/share/filebot/data/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dnet.sourceforge.filebot.AcoustID.fpcalc=/usr/bin/fpcalc -jar -Xmx400M /usr/share/filebot/FileBot.jar \"\\\$@\" EOT" sudo chmod +x /usr/share/filebot/bin/filebot.sh sudo ln -s /usr/share/filebot/bin/filebot.sh /usr/bin/filebot # Checking filebot -script "fn:sysinfo" # Usage # filebot -script fn:amc --output "/var/run/usbmount/Media" --log-file amc.log --lang ru --action move --conflict override -non-strict "/var/run/usbmount/Media/Downloads" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,20 +0,0 @@ 
- 
        Nerten created this gist Jan 31, 2015 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ sudo apt-get -y install openjdk-8-jre-headless mediainfo libchromaprint-tools #Bug in ca-certificates-java sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure sudo mkdir -p /usr/share/filebot/bin sudo mkdir -p /usr/share/filebot/data sudo wget http://sourceforge.net/projects/filebot/files/filebot/HEAD/FileBot.jar/download -O /usr/share/filebot/FileBot.jar sudo bash -c "cat <<EOT > /usr/share/filebot/bin/filebot.sh #!/bin/sh java -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=false -Dfile.encoding=UTF-8 -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=ipkg -Dapplication.analytics=true -Duser.home=/usr/share/filebot/data -Dapplication.dir=/usr/share/filebot/data -Djava.io.tmpdir=/usr/share/filebot/data/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dnet.sourceforge.filebot.AcoustID.fpcalc=/usr/bin/fpcalc -jar -Xmx400M /usr/share/filebot/FileBot.jar \"\\\$@\" EOT" sudo chmod +x /usr/share/filebot/bin/filebot.sh sudo ln -s /usr/share/filebot/bin/filebot.sh /usr/bin/filebot sudo ln -s /usr/lib/arm-linux-gnueabihf/libmediainfo.so.0 /usr/share/filebot/libmediainfo.so sudo ln -s /usr/lib/arm-linux-gnueabihf/libzen.so.0 /usr/share/filebot/libzen.so sudo wget https://maven.java.net/content/repositories/releases/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar -O /usr/share/filebot/jna.jar sudo wget https://maven.java.net/content/repositories/releases/net/java/dev/jna/jna-platform/4.1.0/jna-platform-4.1.0.jar -O /usr/share/filebot/jna-platform.jar #Checking sudo filebot -script "fn:sysinfo" #Using sudo filebot -script fn:amc --output "/var/run/usbmount/Media" --log-file amc.log --lang ru --action move --conflict override -non-strict "/var/run/usbmount/Media/Downloads"