owulveryck / goMarkableStream

A utility to stream (and record) from a Remarkable2 without hack or third party dependencies
MIT License
593 stars 24 forks source link

Incompatible with wget version on latest version(s) #106

Open Jayy001 opened 10 months ago

Jayy001 commented 10 months ago

BusyBox v1.35.0 provide wget on the device, unfortuantley it does not handle TLS certificates well, so when running the following command:

 wget https://api.github.com/repos/owulveryck/goMarkableStream/releases/latest

It errors with the following:

wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer

We had this issue with Toltec, which we fixed by compiling the latest wget version (https://github.com/toltec-dev/toltec/pull/751). You can get it here: https://toltec-dev.org/thirdparty/bin/wget-v1.21.1-1

wwywong commented 8 months ago

Somewhat related: there is no need to download the goMarkableStream binary through the reMarkable device itself.

Considering users are already capable of playing with command-line and ssh, maybe a workaround can also be made in the Quick Start Guide in case similar failures happen in the future by mentioning that

One can download and extract the binary executable on any networked device capable of extracting tar balls. One just needs to copy over the binary goMarkableStream to the reMarkable.

In particular, this can be done when the reMarkable itself has no internet access and is only connected via USB.

bartsnapp commented 4 months ago

I too just ran

export GORKVERSION=$(wget -q -O - https://api.github.com/repos/owulveryck/goMarkableStream/releases/latest | grep tag_name | awk -F\" '{print $4}')
wget -q -O - https://github.com/owulveryck/goMarkableStream/releases/download/$GORKVERSION/goMarkableStream_${GORKVERSION//v}_linux_arm.tar.gz | tar xzvf - -O goMarkableStream_${GORKVERSION//v}_linux_arm/goMarkableStream > goMarkableStream

on my own machine, the used sftp to send goMarkableStream to my Remarkable 2.