Device Setup
There are several ways to make it work, choose whatever works for you
Important
Whenever the tablet receives a system update, the cloud connection will break, and will have to be reenabled.
Automatic
toltec
Install using toltec.
opkg install rmfakecloud-proxy
rmfakecloudctl set-upstream <URL>
rmfakecloudctl enable
The <URL> above has to be the same as in the STORAGE_URL server configuration.
rmfakecloud-proxy script
Get the installer from: rmfakecloud-proxy scp to the device and run it
reMarkable 1 & reMarkable 2
scp installer-rm12.sh root@10.11.99.1:
ssh root@10.11.99.1
chmod +x ./installer-rm12.sh
./installer-rm12.sh install
reMarkable Paper Pro & Paper Pro Move
scp installer-rmpro.sh root@10.11.99.1:
ssh root@10.11.99.1
chmod +x ./installer-rmpro.sh
./installer-rmpro.sh install
Manual
Installing a proxy on devices
A reverse proxy rmfakecloud-proxy has to be installed run rmfakecloud on whichever port you want, you can use either HTTP (not recommended) or HTTPS, generate a new cert for the url you chose e.g with Let's Encrypt
Steps (done by the automagic scripts):
- generate a CA and host certificate for
*.appspot.com - create the CA folder:
mkdir -p /usr/local/share/ca-certificates - copy the CA.crt file to
/usr/local/share/ca-certificatesand runupdate-ca-certificates - modify the hosts file
/etc/hosts - Run a reverse https proxy on the rm tablet as a service, e.g. secure,
- stop xochitl
systemctl stop xochitl - add the following entries to
/etc/hosts
127.0.0.1 hwr-production-dot-remarkable-production.appspot.com
127.0.0.1 service-manager-production-dot-remarkable-production.appspot.com
127.0.0.1 local.appspot.com
127.0.0.1 my.remarkable.com
127.0.0.1 ping.remarkable.com
127.0.0.1 internal.cloud.remarkable.com
127.0.0.1 eu.tectonic.remarkable.com
127.0.0.1 backtrace-proxy.cloud.remarkable.engineering
127.0.0.1 dev.ping.remarkable.com
127.0.0.1 dev.tectonic.remarkable.com
127.0.0.1 dev.internal.cloud.remarkable.com
127.0.0.1 eu.internal.tctn.cloud.remarkable.com
- set the address of your api host:port in the reverse proxy
secure -cert proxy.crt -key proxy.key http(s)://host_where_the_api_is_running:someportor use the provided systemd unit file and put the config in proxycfg - set the
STORAGE_URLto point to this address (this thing the device can resolve/see e.g the reverse proxy, public dns etc) - run the host
- run
fixsync.shon the device to mark all files as new (not to be deleted from the device) - start xochitl
systemctl start xochitl
Windows/Mac Desktop Client:
- modify the hosts file (
\system32\drivers\etc\hosts) add the same entries as on the tablet - run a reverse proxy on the host or somewhere else pointing it to rmfakecloud with the same certs
- profit
PROS: easy setup, you can use whichever port you want, you can get a real trusted ca cert from let's encrypt, if running in a trusted network you may chose to use HTTP
CONS: you have to configure HTTPS on the host yourself, additional Desktop config
Modify device /etc/hosts
Connect to the host directly, without a reverse proxy, with HTTPS on :443
Steps:
- generate the certs from Variant 1, you get them (proxy.crt, proxy.key, ca.crt) and trust the ca.crt
- run rmfakecloud with:
TLS_KEY=proxy.key
TLS_CERT=proxy.crt
STORAGE_URL=https://local.appspot.com
- modify
/etc/hostsbut use the rmfakecloud's ip instead of 127.0.0.1
Windows/Mac Desktop Client:
- trust the
ca.crt(add it to Trusted Root CA, use cert.msc) - modify the hosts file (
\system32\drivers\etc\hosts) add the same entries as on the tablet - profit
PROS: you can use the Windows/Mac clients, no need for a proxy on the device
CONS: a bit harder to setup, each host has to trust the ca and modify the hosts file, you have to use port 443
Edit router DNS entries
Same as the previous method, but instead of modifying any hosts file, make the changes on your DNS/router:
- add the host entries directly on your router (Hosts in OpenWRT)
- trust the ca.crt
- profit
PROS: a bit easier, you can you even the mobile apps if you manage to install the root ca
CONS: you can't use the official cloud anymore due to the mangled DNS
Screen sharing (software up to 3.26)
Up to software 3.26 the tablet signals screen sharing over MQTT with TLS. It always
connects to vernemq-prod.cloud.remarkable.engineering on port 443. The hostname is built
in: the tablet doesn't ask rmfakecloud for it, and rmfakecloud-proxy doesn't cover it.
Without the steps below, screen sharing silently does nothing.
From software 3.27 on, screen sharing uses the normal API through rmfakecloud-proxy and needs none of this.
Note
These steps follow what the tablet does on 3.26, they are not yet tested end to end.
Server
- Make port 443 of
<your rmfakecloud ip>pass the MQTT connection on to rmfakecloud's MQTT port (MQTT_PORT, default8883). If the web UI already uses port 443 there, route by SNIvernemq-prod.cloud.remarkable.engineering, see reverse proxy for MQTT. - Terminate TLS with a certificate for
vernemq-prod.cloud.remarkable.engineeringthat the tablet trusts. A public certificate is impossible, the name belongs to reMarkable. Useproxy.crtandproxy.keyfrom/home/root/rmfakecloud/on the tablet: they are valid for*.cloud.remarkable.engineeringand signed by the CA that rmfakecloud-proxy installed on the tablet.
Tablet
Point the hostname to <your rmfakecloud ip> in the tablet's /etc/hosts. Use the address
where port 443 reaches step 1, usually your public IP, not 127.0.0.1: rmfakecloud-proxy
on the tablet only handles HTTP. A DNS override on your router usually doesn't help, the
tablet asks public DNS servers directly.
On the reMarkable Paper Pro / is read only and /etc is an overlay in RAM, so a plain
edit of /etc/hosts is gone after a reboot. Write to the root file system underneath:
mount -o remount,rw /
mkdir -p /tmp/rootfs && mount --bind / /tmp/rootfs
echo "<your rmfakecloud ip> vernemq-prod.cloud.remarkable.engineering" >> /tmp/rootfs/etc/hosts
umount /tmp/rootfs && mount -o remount,ro /
Like the rmfakecloud-proxy setup, the entry is gone after a system update.
Check
Start screen sharing on the tablet. The rmfakecloud log shows
MQTT: Authentication SUCCESS for the tablet, and the web UI's screen share page picks
up the stream.
If nothing shows up in the log, the tablet still reaches reMarkable: check the hosts
entry with ping vernemq-prod.cloud.remarkable.engineering on the tablet, it has to
resolve to <your rmfakecloud ip>.
Reenabling after a system update
After a system update, you'll need to go through the steps to setup your device again, as any changes you made to it's configuration will have been lost.
Login
After you installed the proxy, you will need to login to your account on your device.
- Click
Menu > General > Account. - Click on
Setup Account. - On your main computer:
- Login to the rmfakecloud Web UI (if no proxy used, the same as the
STORAGE_URLvalue in the server configuration). - Open
Connectin the menu, it shows a one time code.
- Login to the rmfakecloud Web UI (if no proxy used, the same as the
- Enter the code on your device.
- To check that sync is working correctly. Go to
Menu > Storageand pressCheck Sync.