Skip to content

Instantly share code, notes, and snippets.

@hongkongkiwi
Forked from Nerten/filebot-on-odroid
Last active March 25, 2016 19:32
Show Gist options
  • Save hongkongkiwi/618811f0ede0b099a80b to your computer and use it in GitHub Desktop.
Save hongkongkiwi/618811f0ede0b099a80b to your computer and use it in GitHub Desktop.
Installing filebot on odroid
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