-
-
Save hongkongkiwi/618811f0ede0b099a80b to your computer and use it in GitHub Desktop.
Installing 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
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment