Skip to content

Instantly share code, notes, and snippets.

@Evidlo
Created February 26, 2019 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Evidlo/f56da243de70d98c9dc0629970564f47 to your computer and use it in GitHub Desktop.
Save Evidlo/f56da243de70d98c9dc0629970564f47 to your computer and use it in GitHub Desktop.

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_file]

Arguments:
output_file	File to save screenshot (default resnap.png)
-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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment