restream/README.md
Rien Maertens c9af230f3a
Update README.md
Add instructions to fix zstd
2020-03-12 11:25:47 +01:00

48 lines
1.8 KiB
Markdown

# reStream
reMarkable screen sharing over SSH.
![A demo of reStream](extra/demo.gif)
## Installation
1. Clone this repository: `git clone https://github.com/rien/reStream`
2. (Optionally) [Install zstd on your host and reMarkable](#sub-second-latency)
## Usage
1. Connect your reMarkable with the USB cable.
2. Make sure you can [open an SSH connection](https://remarkablewiki.com/tech/ssh).
3. Run `./reStream.sh`.
4. A screen will pop-up on your local machine, with a live view of your reMarkable!
If you have problems, don't hesitate to [open an issue](https://github.com/rien/reStream/issues/new) or [send me an email](mailto:rien.maertens@posteo.be).
## Requirements
On your **host** machine:
- Any POSIX-shell (e.g. bash)
- ffmpeg (with ffplay)
- ssh
On your **reMarkable** nothing is needed, unless you want...
### Sub-second latency
To achieve sub-second latency, you'll need [zstd](https://zstd.net) on your
host and on your reMarkable.
You can install `zstd` on your host with your usual package manager. On Ubuntu,
`apt install zstd` will work.
On your **reMarkable** you can do `opkg install zstd` if you have [entware](https://github.com/evidlo/remarkable_entware) installed. If you don't you can use the binary provided in this repository. In general you shouldn't trust binaries strangers on the internet provide to you, but I provide the option if you don't want the hassle of installing entware.
You can install `zstd` on your reMarkable with the following steps:
- Copy zstd: `scp zstd.arm root@10.11.99.1:~/zstd`
- SSH to your reMarkable `ssh root@10.11.99.1`
- Create the opt lib directory `mkdir -p /opt/lib`
- Symlink a needed library `ln -s /lib/ld-linux-armhf.so.3 /opt/lib/ld-linux.so.3`
This is currently a bit cumbersome. I'm trying to make this a bit easier.