okreader icon indicating copy to clipboard operation
okreader copied to clipboard

Dictionary issues (missing library)

Open dae1804 opened this issue 7 years ago • 2 comments

Running okreader on a Kobo Glo, I had issues getting the dictionary viewer to work. After starting koreader in debug mode over SSH, I was able to trace this to a missing library: libglib2.0-0. Fortunately, with WiFi connected, I was able to install this using apt-get:

apt-get install -y libglib2.0-0

...which should also be possible from the built-in terminal emulator. It might be worth either adding this package to the base install, or adding a note to README and/or the wiki.


For anyone else trying to run koreader over SSH, you can set a root password using the built-in emulator:

echo 'root:yourpasswordhere' | chpasswd
reboot

...and then SSH to the device. okreader.sh relaunches koreader in a loop, so ps aux | grep okreader and kill that process, then kill koreader. Then you can

cd /opt/koreader
./reader.lua -d

@lgeek: do you want me to post either or both of these notes on the Wiki?

dae1804 avatar Jul 14 '17 01:07 dae1804

Thanks for reporting this, I haven't used the dictionary feature myself. I'll add the libglib2.0 package to the rootfs build script and instructions for setting the password to the readme. I've created a wiki page for hacking notes in case you want to add the instructions on how to restart koreader to see the console output.

lgeek avatar Jul 14 '17 09:07 lgeek

Done. (and I award myself zero points for timliness)

I added notes on setting up SSH, restarting koreader in debug mode, the workaround above for fixing the dictionary viewer, a tip on storing the dictionaries outside the rootfs, a workaround for the volumes not showing as formatted on Windows (set the file storage gadget to removable mode), and a warning not to use the hardware reset switch (accidentally hosed my install this way).

dae1804 avatar Feb 27 '18 04:02 dae1804