From f1ad54afa2f8900e4671053c3a0523350fb69cc5 Mon Sep 17 00:00:00 2001 From: Fabian Weik Date: Tue, 27 Jan 2026 21:19:49 +0100 Subject: [PATCH 1/5] set default port on server cli --- server/src/config/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/config/mod.rs b/server/src/config/mod.rs index ec0b961..52f1628 100644 --- a/server/src/config/mod.rs +++ b/server/src/config/mod.rs @@ -7,8 +7,8 @@ use serde::{Deserialize, Serialize}; #[derive(Parser, Debug)] #[command(author, version)] pub struct CliOptions { - /// Port to listen for the TCP connections - #[arg(long, name = "port")] + /// Port to listen for the TCP connections (default: 6680) + #[arg(long, name = "port", default_value = "6680")] pub port: u16, } From d07a9aa4070414539858470166c71782d3a76e37 Mon Sep 17 00:00:00 2001 From: Fabian Weik Date: Tue, 27 Jan 2026 21:26:22 +0100 Subject: [PATCH 2/5] add service file --- README.org | 13 +++++++++---- review.service | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 review.service diff --git a/README.org b/README.org index ee48193..552b308 100644 --- a/README.org +++ b/README.org @@ -73,13 +73,18 @@ scp review-server.arm.static root@${REMARKABLE_IP}:review-server And then start it manually. #+begin_src shell -ssh root@${REMARKABLE_IP} 'RUST_LOG=trace ./review-server --port 6680' +ssh root@${REMARKABLE_IP} +RUST_LOG=trace ./review-server #+end_src -Note: server does not exit when you abort the SSH command above. -Consider running the server in a SSH session. +Note: server does not exit when you run it as an SSH command directly and then abort it with Control+C. -TODO: Install it as service +You can also install it as a service. + +#+begin_src shell +scp review.service root@${REMARKABLE_IP}:/etc/systemd/system +ssh root@${REMARKABLE_IP} 'systemctl enable --now review' +#+end_src ** Client diff --git a/review.service b/review.service new file mode 100644 index 0000000..f20e48d --- /dev/null +++ b/review.service @@ -0,0 +1,15 @@ +[Unit] +Description=reView server +After=dbus.service multi-user.target +Requires=dbus.service + +[Service] +Type=dbus +BusName=no.remarkable.review +ExecStart=/home/root/review-server +User=root +Restart=on-failure +RestartSec=10 + +[Install] +WantedBy=multi-user.target From 938e14e86e161f7a4e411bb20a49fb32f46682d6 Mon Sep 17 00:00:00 2001 From: Fabian Weik Date: Tue, 27 Jan 2026 21:29:24 +0100 Subject: [PATCH 3/5] fix ssh section details --- README.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 552b308..7484aad 100644 --- a/README.org +++ b/README.org @@ -19,10 +19,10 @@ Based on [[https://github.com/rien/reStream][reStream]]. Please note that this project is still under heavy development. The server will open a port (6680 per default) on your reMarkable tablet. -It authorizes incoming connections based via SSH. -I am not a cybersecurity expert, please DON'T rely on the correctnes of the implementation. +It authorizes incoming connections via SSH. +I am no cybersecurity expert, so please DON'T rely on the correctnes of the implementation. Also, the content of the connection is NOT encrypted. -Refer to the SSH section. +Please refer to the SSH section for further details. #+BEGIN_HTML

@@ -155,7 +155,7 @@ SSH is only used for authorization, not encryption. ** Authentification -1. The server send a randomly generated 128 byte authorization token to the client. +1. The server send a randomly generated 256 byte authorization token to the client. 2. The client signs this token with either the explicitly specified private SSH key, or all the private SSH keys in the default SSH directory (=~/.ssh=). Then it sends the signatures to the server. From 5a0768b2bb9d476248f7e4a84b9faaeff67e7fa1 Mon Sep 17 00:00:00 2001 From: Fabian Weik Date: Tue, 27 Jan 2026 21:31:20 +0100 Subject: [PATCH 4/5] update prequisites section --- README.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index 7484aad..b5dd3c9 100644 --- a/README.org +++ b/README.org @@ -37,10 +37,13 @@ Please refer to the SSH section for further details. * Prequisites -You need +On the reMarkable you need -- A private SSH key that was authorized by the reMarkable. - Follow [[https://remarkable.guide/guide/access/ssh.html#ssh-access][this]] manual. +- The server installed and running as a service or manually. + Please refer to the Usage section for setup instructions. +- An authorized public SSH key. Please follow [[https://remarkable.guide/guide/access/ssh.html#ssh-access][this]] manual. + +On your PC you need - Gstreamer - Gstreamer Plugins Base From d4ad10aa761bc729cf144908202ce192b6e1e01c Mon Sep 17 00:00:00 2001 From: Fabian Weik Date: Tue, 27 Jan 2026 21:32:01 +0100 Subject: [PATCH 5/5] update version --- client/Cargo.toml | 2 +- server/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/Cargo.toml b/client/Cargo.toml index d50e637..ea8faf3 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "review-client" -version = "0.1.0" +version = "0.2.0" authors = ["Fabian Weik "] license = "GPL-3.0" edition = "2024" diff --git a/server/Cargo.toml b/server/Cargo.toml index 7955e7d..b237b24 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "review-server" -version = "0.1.0" +version = "0.2.0" authors = ["Fabian Weik "] license = "GPL-3.0" edition = "2024"