[TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Support for Ubuntu and other Desktop Linux distributions
Post Reply
User avatar
rednoah
The Source
Posts: 17470
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah » 22 Jul 2018, 13:20

1.
Create a new folder and then cd into that folder:

Code: Select all

mkdir filebot-portable && cd filebot-portable

2.
Run the installer/tar.sh script:

Code: Select all

sh -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/tar.sh)"
:idea: This script will install the *-portable.tar.xz (requires Java 11) package.


3.
Run filebot -script fn:sysinfo to check if everything is working.
:idea: Please read the FAQ and How to Request Help.

nothing919
Posts: 11
Joined: 16 Oct 2018, 22:27

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by nothing919 » 16 Oct 2018, 22:34

This also works on Arch Linux as long as you install this package from the AUR instead of the apt get listed package. On Arch it is jre8-openjdk and Java-openJFX. Currently the portable version of filebot is the only one availible for arch as the two versions from the AUR have been taken down.

elgallo
Posts: 40
Joined: 29 Apr 2014, 10:33

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by elgallo » 17 Jan 2019, 14:47

I am on FreeBSD 12, when trying to install filebot I get the following error

Code: Select all

~/filebot-portable# sh filebot.sh -script fn:sysinfo
filebot.sh: java: not found
which version of java should I use/search for?

User avatar
rednoah
The Source
Posts: 17470
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah » 17 Jan 2019, 14:49

The *-portable.tar.xz package is compiled for Java 8.
:idea: Please read the FAQ and How to Request Help.

phrak9
Posts: 5
Joined: 07 Jul 2018, 19:53

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by phrak9 » 17 Feb 2019, 19:30

Can this be updated? Been wrestling with getting openjdk-11 installed and found by FIlebot on install no luck

User avatar
rednoah
The Source
Posts: 17470
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah » 18 Feb 2019, 06:51

rednoah wrote:
17 Jan 2019, 14:49
The *-portable.tar.xz package is compiled for Java 8.
Why would you wrestle with Java 11 when Java 8 is recommended and easily available?
:idea: Please read the FAQ and How to Request Help.

ddloads
Posts: 1
Joined: 02 Nov 2019, 06:25

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by ddloads » 02 Nov 2019, 06:28

I have tried running the command you posted but I keep getting "Illegal variable name" any idea how to fix this?

User avatar
rednoah
The Source
Posts: 17470
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah » 02 Nov 2019, 11:25

Which exact line number causes bash (Are you using bash?) to abort with this error message?
https://github.com/filebot/plugins/blob ... ler/tar.sh

Please post a screenshot that shows exactly what you're doing, and include as much additional information as possible, so we can take a guess as to what's special on your machine, that's different from anyone else.

:idea: Please read How to Request Help.
:idea: Please read the FAQ and How to Request Help.

Cyb3rGh05t
Posts: 26
Joined: 17 May 2019, 11:47

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by Cyb3rGh05t » 19 Jan 2020, 11:51

how do i add my liscense to the package?

User avatar
rednoah
The Source
Posts: 17470
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah » 19 Jan 2020, 11:54

Cyb3rGh05t wrote:
19 Jan 2020, 11:51
how do i add my liscense to the package?
Please read the log, or the documentation: https://www.filebot.net/activate.html
:idea: Please read the FAQ and How to Request Help.

Cyb3rGh05t
Posts: 26
Joined: 17 May 2019, 11:47

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by Cyb3rGh05t » 19 Jan 2020, 11:59

rednoah wrote:
19 Jan 2020, 11:54
Cyb3rGh05t wrote:
19 Jan 2020, 11:51
how do i add my liscense to the package?
Please read the log, or the documentation: https://www.filebot.net/activate.html
THANK YOU

Cyb3rGh05t
Posts: 26
Joined: 17 May 2019, 11:47

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by Cyb3rGh05t » 19 Jan 2020, 12:01

i get some errors with the command

Code: Select all

filebot -script fn:sysinfo

Code: Select all

FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bi                                                                                                                     t) native library libmediainfo.so: Unable to load library 'mediainfo': Native li                                                                                                                     brary (linux-x86-64/libmediainfo.so) not found in resource path ([file:/root/fil                                                                                                                     ebot-portable/jar/filebot.jar])
7-Zip-JBinding: 9.20
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such                                                                                                                      file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 1.8.0_232
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 6 Core / 6 GB Max Memory / 25 MB Used Memory
OS: Linux (amd64)
HW: Linux optimusprime 4.4.0-171-generic #200-Ubuntu SMP Tue Dec 3 11:04:55 UTC                                                                                                                      2019 x86_64 x86_64 x86_64 GNU/Linux
DATA: /root/filebot-portable/data/root
Package: TAR
License: FileBot License P7950282 (Valid-Until: 2020-05-23)
Done ヾ(@⌒ー⌒@)ノ
What did i miss?

Thanks

User avatar
rednoah
The Source
Posts: 17470
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah » 19 Jan 2020, 12:08

libmediainfo.so is either not installed or not compatible with your system:

Code: Select all

MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Unable to load library 'mediainfo': Native library (linux-x86-64/libmediainfo.so) not found in resource path ([file:/root/filebot-portable/jar/filebot.jar])
fpcalc is not installed:

Code: Select all

Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory

:idea: libmediainfo.so and fpcalc are optional dependencies. You may or may not need either, depending on your use case. You will find many many many threads here in this forum discussing how to get libmediainfo.so working on various platforms.


:idea: If you're using a Debian-based OS such as Ubuntu, then I recommend using APT package management for dependencies: https://www.filebot.net/linux/apt.html
:idea: Please read the FAQ and How to Request Help.

forceflow
Posts: 1
Joined: 25 Jan 2020, 02:04

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by forceflow » 25 Jan 2020, 02:10

Ubuntu 19.10, OpenJDK 8, licensed version of filebot.

I've used this script, and all works well (with OpenJDK 8).
When I run update_filebot.sh however, I always end up with a version that gives me an error when I try to run it:

Code: Select all

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)

User avatar
rednoah
The Source
Posts: 17470
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah » 25 Jan 2020, 04:37

Sorry, the incremental update script only works for the Java 11 build, but not the Java 8 compatibility build.
:idea: Please read the FAQ and How to Request Help.

Post Reply