See source repository -- https://github.com/knobunc/kindle-clock
This is a repo to make installation and maintenance of the "literary clock" for the Kindle a little easier. All credit to tjaap, you can see his instructable at: https://www.instructables.com/id/Literary-Clock-Made-From-E-reader/
- Jailbreak your Kindle, install launchpad, python, and usbnet. Instructions
are at step 2 of https://www.instructables.com/id/Literary-Clock-Made-From-E-reader/
- I would make a directory of all of the uninstall scripts on the device too, so removal is easier
- git clone the repo to somewhere you can rsync from
- Install your private key in
/mnt/us/usbnet/etc/dot.ssh
so rsync will work for updates - ssh into the kindle
- If you want to use usbnet rather than wifi (on Linux):
- Copy the
launchpad/startClock.ini
to thelaunchpad
directory on the USB filesystem on the Kindle and hitshift shift spacebar
to reread the launchpad config (or just Restart, the timing can be tricky) - Start USBNet with
shift n
- Enable the network interface
sudo ifconfig usb0 192.168.2.1/24
- And ssh in (
-a
disables agent forwarding so we can test our key). There is no password, hit enter.
ssh -a root@192.168.2.2
- On the kindle rsync the utils directory:
/usr/bin/rsync -rltD --omit-dir-times --delete-delay --delay-updates f@l.net:kindle/kindle-clock/utils/ /mnt/us/utils
- Install the needed cron jobs:
mntroot rw
cat >> /etc/crontab/root <<EOF
* * * * * sh /mnt/us/timelit/timelit.sh
5 0 * * * sh /mnt/us/utils/update.sh > /mnt/us/updatelog 2>&1
EOF
mntroot ro
- Add a boot script to cleanup the clockisticking file... since it shouldn't be after a boot
mntroot rw
cp /mnt/us/utils/clean-clock /etc/init.d/
cd /etc/rcS.d
ln -s ../init.d/clean-clock S77clean-clock
mntroot ro
- Sync everything over with an update:
cd /mnt/us
sh /mnt/us/utils/update.sh
- Tell launchpad to reload its config:
/etc/init.d/launchpad restart
- Type
shift c
to start the clock (and to end it). You may need to wait a moment between theshift
and thec
for it to register correctly.
Commands added to launchpad:
shift c
: Starts or stops the clockshift n
: Starts or stops usbnetshift u
: Kicks off a manual update
While the clock is running:
next page
orprevious page
: Toggles display of the source of the quotes
-
Main guide:
-
Various details about kindle and hacking:
-
All k3w Kindle commands:
-
A web version of the clock:
-
My version of the quotes: