03-18-2020, 07:00 PM | #76 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
But, overall, the browser is simple. The device is a low powered device. And the browser reflects that. It is not intended to be a full function browser you would use on a PC or a tablet with a reasonable amount of power. The device is an ereader. It is intended to be a single function device, not a general purpose computer. It does one thing well, and everything else not so well. |
|
03-19-2020, 07:18 AM | #77 | |
Enthusiast
Posts: 34
Karma: 10
Join Date: Oct 2018
Device: kobo aura h2o
|
Quote:
|
|
Advert | |
|
03-19-2020, 10:23 AM | #78 | |
Enthusiast
Posts: 34
Karma: 10
Join Date: Oct 2018
Device: kobo aura h2o
|
Quote:
|
|
03-19-2020, 07:54 PM | #79 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Edit: Which I know see you have done. |
|
04-19-2020, 06:42 AM | #80 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2020
Device: Kobo Touch N905
|
Hello @NiLuJe,
First off, thanks for the amazing package. After getting everything running, hacking on Kobo is so much easier. I am trying to use the Kobo Touch (Mark3) as a display and hacked a little on the YAWK: https://github.com/NotANormalNerd/yawk I also just saw the Kobo Dashboard, which I will have a look later: https://github.com/Mavireck/Python-Screen-Stack-Manager I got everything running, the script isn't running smoothly but that is just some smaller issue with the script on a flaky Internet Connection. I have one request, since I am a senior Python Developer but a really bad C/C++ Developer or even toolchain user. So starting to crosscompile stuff for the kobo would take me much, much, much, more time. So, asking nicely: Would it be possible to add git to you tool package. I could fix the kobo to the wall and just pull from the github repositories onto the onboard card, or even run a deamon that pulls stuff on triggers, via telnet. If there is anything I can help with, or if there is a documentation on how to crosscompile for the Kobo Touch, I would be very happy to help or do it myself. Best regards, Dennis |
Advert | |
|
04-19-2020, 12:56 PM | #81 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I'm a bit loathe to actually add it to the package, because it's a shitload of small binaries, but I can certainly try to whip-up an add-on tarball, the only missing dependency appears to be pcre2, which is self-contained.
EDIT: Okay, not-so-small binaries, actually ^^. Last edited by NiLuJe; 04-19-2020 at 01:37 PM. |
04-19-2020, 09:02 PM | #82 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@NotANormalNerd: Here goes nothing .
Should be unpacked in / (i.e., like a KoboRoot tarball). Warning: it'll eat a 10MB chunk of space in the rootfs, because git is a multi-call binary, and we can't have symlinks in the userstore, and I really don't want thirty copies of git for each subcommand . I tried a mixed approach, but it didn't quite work for everything, so, there. It should be setup to expect terrible & crappy things (i.e., vfat, no symlinks, terrible fs performance, crappy libc, no iconv, ...), so it *should* behave mostly okay, given the terrible conditions it's going to run in. Things I could salvage: * Most of those terrible conditions as stated above, thanks to git's many wonderful compatibility knobs . * Feeding it a real shell (ZSH) * Feeding it a real editor (nano) Things I couldn't salvage (non-exhaustive): * Feeding it a real pager (nano -v "works", but doesn't actually allow paging in this context, for some reason, which kind of defeats the purpose). Meaning you end up with the default crappy/old busybox less, which doesn't quite understand what's happening to it, but sorta works. EDIT: Meh, not the first time bb's less has annoyed me. Let's ship the real deal. EDIT²: less & libpcre2 will move to the main package on next rebuild. Can't symlink less so as not to break stock symlinks, but the ZSH config will be updated to use it. (Speaking of, in the meantime, unset PAGER (or fix it) to have a shiny less in git). EDIT³: less & pager issues fixed in current rebuilds. ---- EDIT⁴: The package has now been moved to a proper KoboStuff module. Last edited by NiLuJe; 03-13-2021 at 08:09 PM. Reason: Package moved to KoboStuff |
04-20-2020, 02:42 AM | #83 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2020
Device: Kobo Touch N905
|
@NiLuJe You are amazing.
Since I am mostly only gonna do a (git pull) on the Kobo Touch (What else are you gonna do with a single 700Mhz Core. It's not like I am trying to run a Kubernetes Cluster on that thing ^^) I think the caveats are fine for me. I only use the Kobo for the Display. ^^ So I have around 1 GB on the rootfs, which should be very fine. I owe you a Pizza. Send me a PM. Best regards, Dennis |
04-20-2020, 12:53 PM | #84 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
|
04-21-2020, 08:25 AM | #85 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2020
Device: Kobo Touch N905
|
Ah yes, sorry, you are right. ^^
Code:
[root@kobo ~]# df -h Filesystem Size Used Available Use% Mounted on /dev/root 236.4M 193.7M 42.7M 82% / none 16.0M 480.0K 15.5M 3% /tmp none 125.1M 4.0K 125.1M 0% /dev none 16.0K 4.0K 12.0K 25% /var/lib none 16.0K 0 16.0K 0% /var/log none 128.0K 24.0K 104.0K 19% /var/run /dev/mmcblk0p3 1.4G 257.4M 1.1G 18% /mnt/onboard [root@kobo ~]# |
05-01-2020, 08:06 PM | #86 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Okay, packages updated .
As promised, less is now available! (I also updated the git package posted earlier to avoid duplicates). A possibly to-be-reverted change: I mangled dropbear to force logins to ZSH instead of the awful ash version shipped on Kobo. It might be a problem because it lives in onboard... In which case, I have another option waiting in the wing, which is to use the ash from my own busybox build that's installed in the rootfs. (That whole thing was sparked from an annoying issue I have where scp processes spawned by sh -c via dropbear were sometimes deadlocking for no apparent reason... I smelled stdio buffering issues, so I figured I'd try something else). Speaking of said busybox build, it's now full-featured, standalone, with all the bells and whistles. While in ZSH, it is put in front of the PATH, so most tools will now behave slightly less terribly. If you actually run that ash version (i.e., exec ash), you won't even need it in the PATH, bb is setup in the fancy nofork & prefer applets mode. As a reminder, that ash build is the only way to have functional unicode input, because everything is terrible. Warning: if you test shell scripts interactively, that means I strongly urge you to do so from the crap stock shell directly (/bin/sh), with a clean env. Just in case old busybox & friends choke on some stuff that's handled just fine by new busybox & friends, which is quite likely. Last edited by NiLuJe; 05-01-2020 at 08:12 PM. |
05-02-2020, 08:49 AM | #87 |
Member
Posts: 17
Karma: 10
Join Date: Feb 2016
Device: none
|
Thanks a lot for this amazing tool-box. Chapeau.
Just one question regarding updating: just install over the other version or is a prior uninstall recommended? I would be updating from r17015. In case of uninstall/install-cycle one would need the uninstall-script of the prior version? Kind regards KristianR |
05-02-2020, 11:51 AM | #88 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@KristianR: A reinstall works just fine .
If you want to clear up some potential cruft, you can remove /mnt/onboard/.niluje/python & /mnt/onboard/.niluje/python3 *before* the update, as some third-party modules might get updated, but even if multiple copies are left, it's harmless, the versioning scheme will do the right thing . |
05-11-2020, 11:46 AM | #89 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Okay, as promised earlier, went back to forcing busybox ash (but our own, with a slightly cleaned up profile) as the SSH shell.
Tweaked some various stuff in order to deal with the scp softlock mentioned earlier (it's indeed stuck in a poll, as shown by strace. It also showed that sending a signal broke the deadlock, yay). If all else fails, I've made preparations to allow switching from dropbear to OpenSSH (c.f., http://trac.ak-team.com/trac/browser...daemons.sh#L21) Oh, and finally documented how to compile a set of UTF-8 locales, because broken Unicode outside of busybox was severely pissing me off (c.f., the tail end of the README). Last edited by NiLuJe; 05-11-2020 at 11:49 AM. |
05-12-2020, 11:21 PM | #90 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Okay, finally got to the bottom of the weird scp stalls.
Turned out to be a weird OpenSSL quirk brought on by the truly terrible kernel & glibc versions we're using... Tweaked a few shell related things (most prominently, getting rid of the fugly blank hostname in a few places, without actually modifying said hostname), and cleaned up up the sshd/telnet startup script, fixing a nasty issue with broken pidfiles those last few days (which would allow spawning multiple instances of inetd, which wasn't great, but mostly harmless, and could only ever happen if you hot restarted nickel). Last edited by NiLuJe; 05-12-2020 at 11:27 PM. |
Tags |
ssh, telnet, tools |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Package with console tools | CGarces | Development | 0 | 09-06-2013 05:04 PM |
Combined Tools Package | Lizj1 | Plugins | 5 | 01-11-2013 10:32 AM |
USBNetwork USB Driver & Telnet on Windows XP SP3 | namati | Kindle Developer's Corner | 0 | 02-24-2012 01:20 AM |
Instruction to get root on 60x/90x + remote telnet & FTP | mamaich | PocketBook | 17 | 08-27-2011 07:41 PM |