Last active
September 28, 2021 00:11
-
-
Save Nerten/75a6082dd2da004a14d9 to your computer and use it in GitHub Desktop.
Filebot on Odroid
This file contains 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 characters
# 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment