Setup FileBot on headless Raspberry Pi

Support for Ubuntu and other Desktop Linux distributions
Post Reply
jtrappett
Posts: 5
Joined: 26 Dec 2016, 22:08

Setup FileBot on headless Raspberry Pi

Post by jtrappett »

Hi... I've looked through the forums and can't seem to find a definitive answer to the question of How to setup FileBot for CLI access on a headless Raspberry Pi (Pi 3B running Raspian). There seem to be one or more part guides or guides noted as out-of-date.

From what I've read so far it would seem best to use the embedded linux version as this contains everything that is needed... ie. nothing else needs to be downloaded. Correct?

Then what are the steps to get it working... assuming a limited knowledge of linux?

Any help would be greatly appreciated.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Setup FileBot on headless Raspberry Pi

Post by rednoah »

1. Download portable package
2. Extract
3. Download native libraries (optional)
4. Link to /usr/local/bin (optional)
:idea: Please read the FAQ and How to Request Help.
jtrappett
Posts: 5
Joined: 26 Dec 2016, 22:08

Re: Setup FileBot on headless Raspberry Pi

Post by jtrappett »

Thanks. What are the (optional) native libraries? I assume they're not necessarily needed though if optional???
By link (optional), do you just mean a symbolic link?

I run a Plex Media Server on the RPI so am just interested in renaming to suit it.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Setup FileBot on headless Raspberry Pi

Post by rednoah »

1.
Yes, optional means not strictly necessary:
Download Section wrote:This package does not include the MediaInfo and 7-Zip native libraries.
@see http://www.filebot.net/#download

Hence, if you want to use features that rely on these libraries then you will need these libraries.


2.
I'd use a symlink. Do you understand why we do this?
:idea: Please read the FAQ and How to Request Help.
jtrappett
Posts: 5
Joined: 26 Dec 2016, 22:08

Re: Setup FileBot on headless Raspberry Pi

Post by jtrappett »

Thanks... just to clarify, it will do renaming without the 7-Zip library?

A symlink makes the folder/files appear to be within the bin folder so it can be accessed without a full path reference... correct? Sort of likes Windows Shortcuts, but more powerful.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Setup FileBot on headless Raspberry Pi

Post by rednoah »

Just play with it. Report back if it doesn't work as expected.
:idea: Please read the FAQ and How to Request Help.
jtrappett
Posts: 5
Joined: 26 Dec 2016, 22:08

Re: Setup FileBot on headless Raspberry Pi

Post by jtrappett »

Ok... I worked out that Jessie light does not include Java so I installed it using 'sudo apt-get update && sudo apt-get install oracle-java8-jdk' ... DOH! And it seems to be working ok. Added symlink and now the filebot command is working from anywhere. :)

Thanks again for your help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Setup FileBot on headless Raspberry Pi

Post by rednoah »

1.
You did not link /path/to/filebot.sh to /usr/local/bin/filebot:

Code: Select all

-bash: filebot: command not found
Now you know why we link things into /usr/local/bin.


2.
Strange. Respian doesn't support locales? This may or may came back to haunt later you if you process non-ASCII filenames:

Code: Select all

filebot.sh: line 30: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

3.
Java is not installed. You need to install Java, preferably the Oracle JRE:

Code: Select all

filebot.sh: line 48: java: command not found
:idea: Please read the FAQ and How to Request Help.
jtrappett
Posts: 5
Joined: 26 Dec 2016, 22:08

Re: Setup FileBot on headless Raspberry Pi

Post by jtrappett »

All working now... thanks.
shotar
Posts: 8
Joined: 29 Jun 2015, 16:25

Re: Setup FileBot on headless Raspberry Pi

Post by shotar »

rednoah wrote: 02 Jan 2017, 08:06 1.
Yes, optional means not strictly necessary:
Download Section wrote:This package does not include the MediaInfo and 7-Zip native libraries.
@see http://www.filebot.net/#download
I don't see a package for a raspberry pi there.

Is there no installation guide for Filebot on a raspberry pi out there? None of them seems working...
shotar
Posts: 8
Joined: 29 Jun 2015, 16:25

Re: Setup FileBot on headless Raspberry Pi

Post by shotar »

Thank you!

Now I have troubles with my Java. I'm running Filebot on a Banapi Pro with Armbian. I installed OpenJDK-8:

Code: Select all

java version "1.7.0_151"
OpenJDK Runtime Environment (IcedTea 2.6.11) (7u151-2.6.11-2~deb8u1)
OpenJDK Zero VM (build 24.151-b01, interpreted mode)
The error is:

Code: Select all

+ /root/filebot.sh -script fn:sysinfo
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : Unsupported major.minor version 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
+ sudo ln -sf /root/filebot.sh /usr/local/bin/filebot
+ filebot -version
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : Unsupported major.minor version 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Setup FileBot on headless Raspberry Pi

Post by rednoah »

java -version says that you're using Java 7. You might need to Google a little bit if you need help with correctly installing Java 8 on your device. I recommend using the Oracle JDK builds, the Zero VM doesn't use JIT and is thus extremely slow.

Run this script:
https://github.com/rednoah/java-install ... n-on-linux
:idea: Please read the FAQ and How to Request Help.
Post Reply