general/other DBeaver under Ubuntu compatibility

Hello.
A few days prior, I installed Linux binary compatibility in my native FreeBSD PC using this chapter of the official documentations:


Then, with wget and dpkg -i, installed DBeaver as chroot in /compat/ubuntu
That day, DBeaver worked seamlessly, with no issue.

The next day, when I tried to open DBeaver i'm greeted with this error message:
[santiago@t470s ~]$ /compat/ubuntu/usr/share/dbeaver-ce/dbeaver

(process:6274): Gtk-WARNING **: 11:03:48.050: Locale not supported by C library.
Using the fallback 'C' locale.
/compat/ubuntu/usr/share/dbeaver-ce/jre/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

(<unknown>:6274): Gtk-WARNING **: 11:03:48.078: Theme parsing error: gtk.css:1356:88: 'font-feature-settings' is not a valid property name
Gtk-Message: 11:03:48.119: GtkDialog mapped without a transient parent. This is discouraged.

** (<unknown>:6274): WARNING **: 11:04:13.122: atk-bridge: get_device_events_reply: unknown signature

I'm surprised that this message because that first day didn't need anything fancy, it just worked.
P.S: I didn't install or uninstall anything between the first DBeaver boot and the next.
Thanks!
 
Hi Santiago, please follow this:

# Do everything on the host system FreeBsd 14.1

# Optional, but highly recommended!. Make a snapshot (to be able to revert changes)
Code:
sudo zfs snapshot -r zroot@manual-20241222

# Enable Linux compat
Code:
sudo sysrc linux_enable="YES"
sudo service linux start

# Install Ubuntu Focal
Code:
sudo pkg install debootstrap
sudo debootstrap focal /compat/ubuntu

# Change compat.linux.emul_path to match /compat/ubuntu
# add this to /etc/sysctl.conf

Code:
compat.linux.emul_path="/compat/ubuntu"

# Chroot to /compat/ubuntu
Code:
sudo chroot /compat/ubuntu /bin/bash

# Add el universe repository
Code:
vi /etc/apt/sources.list
# Add this
Code:
deb http://archive.ubuntu.com/ubuntu focal universe
# Update
Code:
apt update
# Install libswt-gtk-4-java
Code:
apt install libswt-gtk-4-java
# Exit chroot
Code:
exit

# Fix this symlink
Code:
cd /compat/ubuntu/lib64/                                                                       
sudo rm ./ld-linux-x86-64.so.2                                                                 
sudo ln -s ../lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ld-linux-x86-64.so.2

# Set mounts in /etc/fstab (en el host)

Code:
# Device        Mountpoint              FStype          Options                      Dump    Pass#                                                                                            
devfs           /compat/ubuntu/dev      devfs           rw,late                      0       0 
tmpfs           /compat/ubuntu/dev/shm  tmpfs           rw,late,size=1g,mode=1777    0       0 
fdescfs         /compat/ubuntu/dev/fd   fdescfs         rw,late,linrdlnk             0       0 
linprocfs       /compat/ubuntu/proc     linprocfs       rw,late                      0       0 
linsysfs        /compat/ubuntu/sys      linsysfs        rw,late                      0       0 
/tmp            /compat/ubuntu/tmp      nullfs          rw,late                      0       0 
/home           /compat/ubuntu/home     nullfs          rw,late                      0       0

# Reboot
Code:
sudo reboot

# Download dbeaver
Code:
fetch https://dbeaver.io/files/dbeaver-ce-latest-linux.gtk.x86_64.tar.gz                       
tar xvfz dbeaver-ce-latest-linux.gtk.x86_64.tar.gz                                             
cd dbeaver                                                                                     
./dbeaver

# Enjoy!
 
Back
Top