Raspberry Pi 2

Support for Ubuntu and other Desktop Linux distributions
Post Reply
tfonias74
Donor
Posts: 47
Joined: 16 Jul 2013, 09:17

Raspberry Pi 2

Post by tfonias74 »

Hello,

I had a working environment following the guide from viewtopic.php?f=4&t=3192 (and a previous outdated one..).
I am trying to bring it op-to-date to version 4.7.7 (if it is possible & supported).

After several workarounds and playing with the paths I managed to get the fpcalc to work but JNA Native & MediaInfo still fail:

Code: Select all

pi@raspberrypi /usr/share/filebot $ sudo filebot -script "fn:sysinfo"
FileBot 4.7.7 (r4678)
JNA Native: java.lang.UnsatisfiedLinkError: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
Apache Commons VFS: [zip, rar]
Chromaprint: 1.4.2
Extended Attributes: OK
Script Bundle: 2017-01-05 (r470)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_121
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 4 Core / 235 MB Max Memory / 8 MB Used Memory
OS: Linux (arm)
Package: PORTABLE
Data: /usr/share/filebot/data
uname: Linux raspberrypi 4.1.18-v7+ #845 SMP Thu Feb 18 19:45:28 GMT 2016 armv7l GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
I have downloaded the files from https://github.com/filebot/filebot/tree ... nux-armv7l (is this correct or is the Pi2 not compatible??) and placed them on the $APP_ROOT folder:

Code: Select all

pi@raspberrypi /usr/share/filebot $ ls -l
total 215744
drwxr-xr-x 2 pi pi     4096 Feb  9 08:13 bin
drwxr-xr-x 8 pi pi     4096 Feb  9 09:15 data
-rw-r--r-- 1 pi pi 81762630 Feb  9 08:13 FileBot.jar
-rw-r--r-- 1 pi pi 36070253 Feb  8 12:46 FileBot.jar.bak
-rw-r--r-- 1 pi pi 81762630 Feb  8 14:16 FileBot.jar.new
-rwxr-xr-x 1 pi pi     2901 Feb  9 09:08 filebot.sh
-rwxr-xr-x 1 pi pi  3471556 Feb  9 08:40 fpcalc
-rwxr-xr-x 1 pi pi  2091673 Feb  9 08:37 fpcalc.old
-rwxr-xr-x 1 pi pi  2393384 Feb  9 08:48 lib7-Zip-JBinding.so
-rwxr-xr-x 1 pi pi   106984 Feb  9 08:41 libjnidispatch.so
-rw-r--r-- 1 pi pi  5992756 Feb  9 08:42 libmediainfo.so
-rw-r--r-- 1 pi pi  6489131 Nov 15  2015 libmediainfo.soold
-rwxr-xr-x 1 pi pi   250780 Feb  9 08:46 libzen.so
-rw-r--r-- 1 pi pi   357903 Nov 15  2015 libzen.soold
-rwxr-xr-x 1 pi pi   125652 Feb  9 08:46 libz.so
-rwxr-xr-x 1 pi pi     1408 Feb  9 08:33 update-filebot.sh
My filebot.sh is:

Code: Select all

#!/bin/sh
PRG="$0"

# resolve relative symlinks
while [ -h "$PRG" ] ; do
        ls=`ls -ld "$PRG"`
        link=`expr "$ls" : '.*-> \(.*\)$'`
        if expr "$link" : '/.*' > /dev/null; then
                PRG="$link"
        else
                PRG="`dirname "$PRG"`/$link"
        fi
done

# get canonical path
WORKING_DIR=`pwd`
PRG_DIR=`dirname "$PRG"`
APP_ROOT=`cd "$PRG_DIR" && pwd`

# restore original working dir
cd "$WORKING_DIR"

# make sure required environment variables are set
if [ -z "$USER" ]; then
        export USER=`whoami`
fi

# force JVM language and encoding settings
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"

# add APP_ROOT to LD_LIBRARY_PATH
if [ ! -z "$LD_LIBRARY_PATH" ]; then
        export LD_LIBRARY_PATH="$APP_ROOT:$LD_LIBRARY_PATH"
else
        export LD_LIBRARY_PATH="$APP_ROOT"
fi

# choose extractor
EXTRACTOR="ApacheVFS"                                   # use Apache Commons VFS2 with junrar plugin
# EXTRACTOR="SevenZipExecutable"                # use the 7z executable
# EXTRACTOR="SevenZipNativeBindings"    # use the lib7-Zip-JBinding.so native library

# select application data folder
APP_DATA="$APP_ROOT/data"

# start filebot
java -Dunixfs=false -DuseGVFS=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dapplication.deployment=portable -Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8" -Djna.nosys=false -Djna.nounpack=true -Dnet.filebot.Archive.extractor="$EXTRACTOR" -Dnet.filebot.AcoustID.fpcalc="$APP_ROOT/fpcalc" -Dapplication.dir="$APP_DATA" -Duser.home="$APP_DATA" -Djava.io.tmpdir="$APP_DATA/tmp" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory -Dnet.filebot.util.prefs.file="$APP_DATA/prefs.properties" $JAVA_OPTS -jar "$APP_ROOT/FileBot.jar" "$@"
Any idea what I might be doing wrong??

Thanks in advance!
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry Pi 2

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
tfonias74
Donor
Posts: 47
Joined: 16 Jul 2013, 09:17

Re: Raspberry Pi 2

Post by tfonias74 »

Sorry for the delay

Code: Select all

pi@raspberrypi ~ $ sudo filebot -script "fn:sysinfo"

** (process:20796): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY

** (process:20796): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY

** (process:20796): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY

** (process:20796): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY

** (process:20796): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY
FileBot 4.7.7 (r4762)
JNA Native: 5.1.0
MediaInfo: 0.7.73
7-Zip-JBinding: 9.20
Feb 10, 2017 6:48:33 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Chromaprint: 1.4.2
Extended Attributes: OK
java.lang.IllegalArgumentException: /gvfs is not a valid directory
GVFS: OK
Script Bundle: 2017-01-05 (r470)
Groovy: 2.4.8
JRE: Java(TM) SE Runtime Environment 1.8.0_121
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 4 Core / 235 MB Max Memory / 10 MB Used Memory
OS: Linux (arm)
Package: DEB
Data: /root/.filebot
uname: Linux raspberrypi 4.1.18-v7+ #845 SMP Thu Feb 18 19:45:28 GMT 2016 armv7l GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry Pi 2

Post by rednoah »

You're in luck! Looks like the native code is working:

Code: Select all

JNA Native: 5.1.0
MediaInfo: 0.7.73
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
:idea: Please read the FAQ and How to Request Help.
tfonias74
Donor
Posts: 47
Joined: 16 Jul 2013, 09:17

Re: Raspberry Pi 2

Post by tfonias74 »

Yep, besides the warning (** (process:xxx): WARNING **: Cannot autolaunch D-Bus without X11 $DISPLAY) that it spits every time it works, I tried different functions..

Do you know where it stores the actual files? If I need to update the jar where can I locate it??
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry Pi 2

Post by rednoah »

In the usual location. Ask your shell. ;)

Code: Select all

find /usr/local -iname filebot -type d
:idea: Please read the FAQ and How to Request Help.
tfonias74
Donor
Posts: 47
Joined: 16 Jul 2013, 09:17

Re: Raspberry Pi 2

Post by tfonias74 »

I know the questions are probably naive... but if you don't ask you never learn.. ;)

Code: Select all

sudo find / -iname filebot -type d
/home/pi/.java/.userPrefs/net/filebot
/root/.java/.userPrefs/net/filebot
/tmp/opt/share/filebot
/usr/share/filebot
/usr/share/filebot/data/.java/.userPrefs/net/filebot

Code: Select all

sudo find / -iname filebot.sh -type f
/tmp/opt/share/filebot/bin/filebot.sh
/tmp/filebot.sh
/usr/share/filebot/filebot.sh
/usr/share/filebot/bin/filebot.sh
My previous install was kind of manual/portable (not through installer) on /usr/share/filebot/ .. With the

Code: Select all

sudo dpkg --force-depends -i filebot-*.deb
that I used (from another suggestion of yours) did it update on the same path? I cannot find something else..
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Raspberry Pi 2

Post by rednoah »

The .deb will install to /usr/share/filebot and probably just override any files that are already there.

@see http://superuser.com/questions/82923/ho ... ut-install
:idea: Please read the FAQ and How to Request Help.
tfonias74
Donor
Posts: 47
Joined: 16 Jul 2013, 09:17

Re: Raspberry Pi 2

Post by tfonias74 »

thanx!
Post Reply