rien / reStream

Stream your reMarkable screen over SSH.
MIT License
734 stars 56 forks source link

Is this functional on OSX? #6

Closed pag-crypto closed 4 years ago

pag-crypto commented 4 years ago

I have a 2019 Macbook Air running Catalina version 10.15.2. I used Homebrew to install lz4 and ffmpeg and tried to run reStream using the shell script. It prompts me to enter the reMarkable's password three times, then starts ffplay. However, no window pops up and ffplay does not appear to receive any input from the tablet when I'm drawing on it. I've attached a screenshot. (An ffplay task is shown in the taskbar, but it's not drawing anything.) Screen Shot 2020-03-27 at 5 59 28 PM

pag-crypto commented 4 years ago

Actually, I just got it to work (to some extent) - the problem has to do with me needing to re-type the reMarkable password every time ssh is called, so I'm going to try to fix that first. Feel free to close; I might keep posting notes to help the next person who has this issue, though.

pag-crypto commented 4 years ago

I figured out what the problem is - without having a working ssh key in authorized_keys on the remarkable, each ssh prompt requires a password input which eventually breaks it. I solved it by generating an ssh key pair just for tablet screen sharing, using ssh-copy-id to load it into the tablet, and modifying the ssh calls in the script to take the -i flag.

Bottom line: if you need to type the reMarkable's password to login via ssh, this script will not work.

rien commented 4 years ago

You could create an ssh key (https://help.github.com/en/enterprise/2.15/user/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) and copy it to the reMarkable using ssh-copy-id so you don't have to enter the password all the time.

pag-crypto commented 4 years ago

(By the way - thank you so much for making this, I think it's extremely cool and makes my tablet much more useful for research meetings!)

acrogenesis commented 3 years ago

@pag-crypto how were you able to solve the black screen? I only see this:

CleanShot 2020-08-10 at 13 42 25@2x
pag-crypto commented 3 years ago

@acrogenesis See my post from March 27th - my problem was that the script doesn't work on OSX if SSHing into the reMarkable requires typing a password. I fixed it by setting up an SSH key and modifying the reStream.sh script to pass the key as a parameter (via -i) to all the calls to SSH.

In case that's ambiguous or confusing, I'm attaching my modified reStream.sh for you to look at. I called my SSH key 'id_rsa_remarkable'.