As my device list attests to, I'm mostly a Kindle guy, but I nonetheless got a H2O for Christmas (mostly because the Kindle Voyage isn't available in France, but that's another matter entirely), and I of course had to 'port' all my Kindle crap to that new device ;).
Long story short, this is mostly the various tools I build bundled up in one big sack, with a telnetd/sshd setup.
Since I already wrote a readme inside the package, I'll leave the floor to myself:
This is basically a dump of all the custom binaries I use throughout my Kindle hacks,
but built for the Kobo, put in a single package, and symlinked (when not clashing) in the PATH.
That includes, among other things, stuff like htop, strace, fbgrab, sqlite3, elfutils, rsync, ImageMagick,
gawk, the full OpenSSH suite, and a CLI Python 2.7 build.
And yes, just for kicks, there's also KindleTool in there ;D.
I still follow the Kindle spirit of "don't put anything in the rootfs", so all this mostly lives in /mnt/onboard/.niluje,
so don't be surprised if stuff goes missing after a factory reset ;).
It also provides ftpd/telnetd through inetd (following Kevin Short's KoboTelnet package), plus sshd w/ sftp (dropbear).
The dropbear build provides the same convenience features than my Kindle one (namely, persistent shared key auth:
the keylist is expected in /usr/local/niluje/usbnet/etc/authorized_keys).
There is *no* USB networking handling here. WiFi only.
It also installs an udev rule providing a means to run an user-editable script (/usr/local/stuff/bin/stuff.sh) early during boot.
(AFAICT, that loop0 udev trick is used in a number of Kobo packages (David Beinder's kobo-nightmode and Andreas Klauer's AutoPatch, for instance),
no idea who got the idea first ;)).
This script is used to launch both inetd & dropbear.
Since everything is passwordless, running this on a public/open WiFi would be a *terrible* idea.
If you really need to, I'd recommend disabling inetd, setting up ssh shared key auth, making dropbear actually check passwords,
and locking dropbear to shared key auth only:
by removing the -n switch & adding the -s switch to its startup args, see the comments in /usr/local/stuff/bin/stuff-daemons.sh.
To save space, the Python build is shipped without compiled bytecode. Run /usr/local/stuff/bin/python-setup.sh to generate it.
This touches neither rcS nor inittab, but if you already have an inetd setup in your inittab, you should probably clean that up, or it will clash.
If you have custom stuff in (or symlinked in) /usr/bin, take a closer look at what this package installs to avoid overwriting your own stuff.
Tested on a H2O running FW 3.12.0.
I'm fairly sure that this will *not* work on really old Kobo devices/firmwares:
basically, if your device is not running Linux 2.6.35.3 & a hardfp eglibc 2_15, don't use this.
-- NiLuJe ($Id: README 11391 2015-01-11 04:06:38Z NiLuJe $)
The current version is available here: kobo-stuff-1.3.N-r11391.tar.xz. [External link because >20MB (Python ;p)].
Long story short, this is mostly the various tools I build bundled up in one big sack, with a telnetd/sshd setup.
Since I already wrote a readme inside the package, I'll leave the floor to myself:
This is basically a dump of all the custom binaries I use throughout my Kindle hacks,
but built for the Kobo, put in a single package, and symlinked (when not clashing) in the PATH.
That includes, among other things, stuff like htop, strace, fbgrab, sqlite3, elfutils, rsync, ImageMagick,
gawk, the full OpenSSH suite, and a CLI Python 2.7 build.
And yes, just for kicks, there's also KindleTool in there ;D.
I still follow the Kindle spirit of "don't put anything in the rootfs", so all this mostly lives in /mnt/onboard/.niluje,
so don't be surprised if stuff goes missing after a factory reset ;).
It also provides ftpd/telnetd through inetd (following Kevin Short's KoboTelnet package), plus sshd w/ sftp (dropbear).
The dropbear build provides the same convenience features than my Kindle one (namely, persistent shared key auth:
the keylist is expected in /usr/local/niluje/usbnet/etc/authorized_keys).
There is *no* USB networking handling here. WiFi only.
It also installs an udev rule providing a means to run an user-editable script (/usr/local/stuff/bin/stuff.sh) early during boot.
(AFAICT, that loop0 udev trick is used in a number of Kobo packages (David Beinder's kobo-nightmode and Andreas Klauer's AutoPatch, for instance),
no idea who got the idea first ;)).
This script is used to launch both inetd & dropbear.
Since everything is passwordless, running this on a public/open WiFi would be a *terrible* idea.
If you really need to, I'd recommend disabling inetd, setting up ssh shared key auth, making dropbear actually check passwords,
and locking dropbear to shared key auth only:
by removing the -n switch & adding the -s switch to its startup args, see the comments in /usr/local/stuff/bin/stuff-daemons.sh.
To save space, the Python build is shipped without compiled bytecode. Run /usr/local/stuff/bin/python-setup.sh to generate it.
This touches neither rcS nor inittab, but if you already have an inetd setup in your inittab, you should probably clean that up, or it will clash.
If you have custom stuff in (or symlinked in) /usr/bin, take a closer look at what this package installs to avoid overwriting your own stuff.
Tested on a H2O running FW 3.12.0.
I'm fairly sure that this will *not* work on really old Kobo devices/firmwares:
basically, if your device is not running Linux 2.6.35.3 & a hardfp eglibc 2_15, don't use this.
-- NiLuJe ($Id: README 11391 2015-01-11 04:06:38Z NiLuJe $)
The current version is available here: kobo-stuff-1.3.N-r11391.tar.xz. [External link because >20MB (Python ;p)].