Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

resnap.sh

Patrick Pedersen edited this page Apr 22, 2019 · 3 revisions

Source

reSnap takes a snapshot of the current display on the reMarkable. It copies /dev/fb0 from the reMarkable to the host machine and uses ImageMagick to convert to an image.

Dependencies

Usage

Usage: resnap.sh [-h | --help] [-v | --version] [-r ssh_address] [output_jpg]

Arguments:
output_jpg      File to save screenshot to (default resnap.jpg)
-v --version    Display version and exit
-i              path to ssh pubkey
-r              Address of reMarkable (default 10.11.99.1)
-h --help       Display usage and exit

Examples

Connect over network with pubkey. Save to out.png

$ resnap.sh -r 192.168.1.123 -i ~/.ssh/remarkable out.png

1. Downloading/Installing the script

To download this script, we will be using wget, an application present on most bash compatible systems by default

$ wget https://github.com/reHackable/scripts/raw/master/host/resnap.sh

From here on, you may opt to copy the script to a path defined in the $PATH variable so that it can be executed directly from the terminal

2. Executing the script

Assuming our device is connected to the machine via USB, we can execute the script with no arguments provided. The script will attempt to connect to the device trough SSH.

It is important to note, that the device must remain unlocked until the script has completed

$ bash resnap.sh
Clone this wiki locally