Skip to content

Eekboard working in the Librem5 VM

Luciana requested to merge LuciCodes/eekboard:eekInVM into master

Instructions:

  • Share the project root with the VM when starting it, with the extra qemu options:

path=/path_to_project/eekboard,mount_tag=host0,security_model=passthrough,id=host0

  • In the VM, mount it (let's say, /mnt/host-dir):

mount -t 9p -o trans=virtio host0 /mnt/host-dir -oversion=9p2000.L

  • The VM needs some extra packages installed:

sudo apt-get install libcroco3-dev

sudo apt-get install libxklavier-dev

sudo apt-get install gtk-doc-tools

sudo apt-get install gawk

sudo apt-get install gnome-common

sudo apt-get install gobject-introspection

  • In the project dir, autogen to some local path (say /home/eekboard):

./autogen.sh --prefix=/home/eekboard --disable-gtk-doc

  • After make and sudo make install, copy and recompile the gschema namespace:

cp /mnt/host-dir/data/org.fedorahosted.eekboard.gschema.xml /usr/share/glib-2.0/schemas/

/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/

  • Then mkdir and copy some other files by hand:

sudo mkdir /usr/share/eekboard/keyboards

sudo mkdir /usr/share/eekboard/keyboards/geometry

sudo mkdir /usr/share/eekboard/keyboards/symbols

sudo mkdir /usr/share/eekboard/themes

sudo cp /mnt/host-dir/data/keyboards/keyboards.xml /usr/share/eekboard/keyboards

sudo cp /mnt/host-dir/data/keyboards/geometry/compact.xml /usr/share/eekboard/keyboards/geometry

sudo cp /mnt/host-dir/data/keyboards/symbols/* /usr/share/eekboard/keyboards/symbols

sudo cp /mnt/host-dir/data/themes/default.css /usr/share/eekboard/themes

  • Then inside /home/eekboard/bin, first run the server with 'eekboard-server', then in another terminal window run 'eekboard'

The keyboard should appear on screen.

Edited by Luciana

Merge request reports