Cobra MK III
Můj nový počítač
2022.04.04 - The Uni keyboard
2022.04.04 19:44:05 Cobra-Mk3 gentoo systems Gilhad

Based on 2020.05.10-cobra-mk3-instalace.html 2020.05.15-cobra-mk3-TeachMePCB.rst

1   The Uni keyboard

https://stenokeyboards.com/products/the-uni https://www.kickstarter.com/projects/stenokeyboards/the-uni/

Objednány 2, konečně dnes 2022.04.04 přišly (po 45 dnech váznutí na poště v Praze).

dmesg -T # Be aware that the timestamp could be inaccurate!  The time source used for the logs is not updated after system SUSPEND/RESUME.
[Sun Apr  3 02:48:48 2022] usb 3-2: new full-speed USB device number 9 using xhci_hcd
[Sun Apr  3 02:48:49 2022] usb 3-2: New USB device found, idVendor=9000, idProduct=0001, bcdDevice= 0.02
[Sun Apr  3 02:48:49 2022] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Sun Apr  3 02:48:49 2022] usb 3-2: Product: The Uni
[Sun Apr  3 02:48:49 2022] usb 3-2: Manufacturer: stenokeyboards
[Sun Apr  3 02:48:49 2022] input: stenokeyboards The Uni as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:05:00.3/usb3/3-2/3-2:1.0/0003:9000:0001.0005/input/input16
[Sun Apr  3 02:48:49 2022] hid-generic 0003:9000:0001.0005: input,hidraw4: USB HID v1.11 Keyboard [stenokeyboards The Uni] on usb-0000:05:00.3-2/input0
[Sun Apr  3 02:48:49 2022] input: stenokeyboards The Uni as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:05:00.3/usb3/3-2/3-2:1.1/0003:9000:0001.0006/input/input17
[Sun Apr  3 02:48:49 2022] hid-generic 0003:9000:0001.0006: input,hidraw5: USB HID v1.11 Keyboard [stenokeyboards The Uni] on usb-0000:05:00.3-2/input1
[Sun Apr  3 02:48:49 2022] cdc_acm 3-2:1.2: ttyACM0: USB ACM device
$ ls -al /dev/ttyACM0
crw-rw---- 1 root uucp 166, 0 2022.04.04 20:07 /dev/ttyACM0

2   Instalace

Zakládám uživatele steno, přidám do skupiny uucp a snažím se to rozjet převážně pod ním.

Instalace - potřebuju Plover https://www.openstenoproject.org/plover/ , stahuju teda https://github.com/openstenoproject/plover/releases/download/v4.0.0.dev10/plover-4.0.0.dev10-x86_64.AppImage podle https://github.com/openstenoproject/plover/releases/tag/v4.0.0.dev10 , nastavím exectutable flag, spustim a ono to spadne na

$ ./plover-4.0.0.dev10-x86_64.AppImage
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information

Po delším hledání to prý znamená, že to potřebuje fuse2 ve slotu 0 https://wiki.gentoo.org/wiki/AppImage , no doinstalujeme to teda

[root@cobra-mk3(9) linux]# gemerge -avq sys-fs/fuse:0
 * Last emerge --sync was Mon May 25 17:35:01 2020.
[ebuild  NS   ] sys-fs/fuse-2.9.9-r1 [3.9.1] USE="-examples% -static-libs% (-suid%*) (-test%)" ABI_X86="(-32%*) (-64%*) (-x32%)"

a už to padá jinak

$ ./plover-4.0.0.dev10-x86_64.AppImage
2022.04.04 19:40:01,193 [MainThread] ERROR: connection to existing instance failed, force cleaning before restart
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted

Podle https://github.com/openstenoproject/plover/wiki/Installation-Guide#error-relating-to-xcb to chce

Ensure that libxcb, xcb-util and qt5-qtstyleplugins are installed (or whatever the equivalent packages are on your distro).
If the error still persists, run the following:
./plover.AppImage -s plover_plugins install -v 'PyQt5==5.14.2' 'PyQt5-sip==12.7.2'

takže stahuju a instaluju https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-qt/qtstyleplugins/qtstyleplugins-5.0.0_p20170311-r1.ebuild

mkdir -p /var/db/repos/GilToo-gilhad-repo/dev-qt/qtstyleplugins
cd /var/db/repos/GilToo-gilhad-repo/dev-qt/qtstyleplugins
mkdir -p files
wget https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-qt/qtstyleplugins/files/fix-build-qt5.15.patch?id=dbec6742130b46eed6a2b1943a1af76e46a1fdbf -O files/fix-build-qt5.15.patch
ebuild qtstyleplugins-5.0.0_p20170311-r1.ebuild manifest
echo -e "dev-qt/qtstyleplugins\t~amd64" >/etc/portage/package.accept_keywords/plover
echo -e ">=dev-qt/qtgui-5.14.2\tdbus\n>=dev-libs/libpcre2-10.34\tpcre16" >/etc/portage/package.use/plover
gemerge -avq  libxcb xcb-util dev-qt/qtstyleplugins
         * Messages for package dev-qt/qtstyleplugins-5.0.0_p20170311-r1:

         * To make Qt5 use the gtk2 style, set this in your environment:
         *   QT_QPA_PLATFORMTHEME=gtk2

A teď už to funguje :)

Nastavuju Gemini PR na /dev/ttyACM0 a na Paper Tape přez UNI promačkám celou klávesnici a vidím, jak tam vyskakujou ta písmenka.

3   Hello World

. The pup is half salt. Is it half salt? It is.

No nedává to až tak moc smysl, ale začátky jsou začátky a každé to slovo je jeden prstochvat :)