Skip to content

Instantly share code, notes, and snippets.

@mnixry
Last active January 6, 2025 06:38
Show Gist options
  • Save mnixry/d0fa5de3c1b42d2efa33f13f23197c20 to your computer and use it in GitHub Desktop.
Save mnixry/d0fa5de3c1b42d2efa33f13f23197c20 to your computer and use it in GitHub Desktop.
reMarkable2 国内用户自救指南

reMarkable2 国内用户自救指南

Warning

请在系统更新/出厂设置后食用。

将设备连接至电脑,打开Settings -> General -> About -> Copyrights and License, 翻到最底部可以看到系统root密码。

在电脑上使用 ssh [email protected] 进行连接,下列说明均基于已连接到的前提。

中文字体

推荐 MiSans,因为其他支持泛 Unicode 的字体都已经太大而无法放入系统字体目录。

可以下好文件通过sftp之类的方式传过去,或者可以直接在设备上直接下载,喜欢哪个都可以。

下载第一个 MiSans,解压找到 MiSans/otf/MiSans-Regular.otf,复制到 /usr/share/fonts/ 下。

之后执行 fc-cache -fv,重启设备,文件名和电子书内的中文字体应该就能够正常展示了。

文档同步

Note

这一步似乎可以跳过,新版系统不需要梯子也能同步了,直接看下一步改对时间就行。

配置代理程序

被墙了,登录不上去,可能要魔法上网。这里推荐v2rayA

分别下载v2ray-corev2rayA的 Release,选择编译给armv7的版本进行下载并解压,组织好文件目录,确保它看起来像下面这样:

22.7M   ./v2raya
4.0K    ./start.sh
1.5M    ./core/geosite.dat
8.0K    ./core/config.json
9.5M    ./core/geoip.dat
4.0K    ./core/vpoint_vmess_freedom.json
4.0K    ./core/vpoint_socks_vmess.json
168.0K  ./core/geoip-only-cn-private.dat
22.1M   ./core/v2ray
33.3M   ./core
4.0K    ./v2raya.service
56.5M   .

其中,start.shv2raya.service的文件内容分别如下:

#!/bin/bash -xve

cd $(realpath $(dirname "$0"))

./v2raya \
    --v2ray-bin $(realpath ./core/v2ray) \
    --v2ray-assetsdir $(realpath ./core) \
    --config $(realpath ./conf) \
    --lite
[Unit]
Description=v2rayA Service
Documentation=https://github.com/v2rayA/v2rayA/wiki
After=network.target nss-lookup.target iptables.service ip6tables.service nftables.service
Wants=network.target

[Service]
Type=simple
User=root
LimitNPROC=500
LimitNOFILE=1000000
ExecStart=/home/root/v2raya/start.sh
Environment=V2RAYA_LOG_FILE=/tmp/v2raya.log
Restart=on-failure

[Install]
WantedBy=multi-user.target

复制以上文件夹内所有内容到 /home/root/v2raya/ 中。

执行 chmod +x ./start.sh 给启动脚本加上可执行位。

执行 cp ~/v2raya/v2raya.service /etc/systemd/system/ 安装服务文件。

之后执行 systemctl enable --now v2raya.service 开启服务即可。

使用浏览器访问 http://10.11.99.1:2017 你应当能访问到v2rayA的配置界面并且正常使用。

应用代理

修改 /lib/systemd/system/xochitl.service/lib/systemd/system/rm-sync.service 文件(版本比较旧的系统没有这个就不用改了)

[Service]节添加一行Environment=http_proxy=http://127.0.0.1:20171。(此处20171)应为你在v2rayA中配置的HTTP代理端口。

此处以xochitl.service为例展示修改的结果

[Unit]
Description=reMarkable main application
StartLimitIntervalSec=600
StartLimitBurst=4
OnFailure=remarkable-fail.service
After=home.mount
Wants=rm-sync.service

[Service]
ExecStart=/usr/bin/xochitl --system
+ Environment=http_proxy=http://127.0.0.1:20171
Restart=on-failure
WatchdogSec=60

[Install]
WantedBy=multi-user.target

修改完成后重启设备,查看v2rayA日志你应当能看到一些访问日志。

时间同步

默认用的Google的时间同步,在国内不一定能用,改成time.windows.com应该就行

新版

修改 /etc/chrony.conf:

# Use a local timeserver in preference to the pool, if it's reachable.
#server 192.168.22.22 iburst minpoll 2 prefer

# allow iburst (for setting time immediately after boot)
# don't poll faster than at a 64s interval
# default max poll is 1024s at time of writing
+ server time.windows.com iburst minpoll 7
server time1.google.com iburst minpoll 7
server time2.google.com iburst minpoll 7
server time3.google.com iburst minpoll 7
server time4.google.com iburst minpoll 7

# Sync to pulse-per-second from an onboard GPS.
#refclock PPS /dev/pps0 poll 0 prefer
# You'll want to enable CONFIG_PPS and CONFIG_PPS_CLIENT_GPIO in your kernel,
# and an entry something like this in your device tree:
#       pps {
#               compatible = "pps-gpio";
#               gpios = <&ps7_gpio_0 56 0>;
#       };

# In first three updates step the system clock instead of slew
# if the adjustment is larger than 1 second.
makestep 1.0 3

# Record the rate at which the system clock gains/loses time,
# improving accuracy after reboot
driftfile /var/run/lib/chrony/drift

# Enable kernel synchronization of the hardware real-time clock (RTC).
rtcsync

# Allow NTP client access from local network.
#allow 192.168/16

# Serve time even if not synchronized to any NTP server.
#local stratum 10

# Specify file containing keys for NTP authentication.
#keyfile /etc/chrony.keys

# Specify directory for log files.
#logdir /var/run/log/chrony

# Select which information is logged.
#log measurements statistics tracking

执行 systemctl restart chronyd 重启时间同步服务。

旧版

修改/etc/systemd/timesyncd.conf文件,遵循以下diff:

[Time]
- #NTP=
+ NTP=time.windows.com
#FallbackNTP=time1.google.com time2.google.com time3.google.com time4.google.com
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048
#SaveIntervalSec=60

执行 systemctl restart systemd-timesyncd 重启时间同步服务,即可使用新的NTP服务器。

可以通过 timedatectl show-timesync --all 查看同步状态。

@VG-Loda
Copy link

VG-Loda commented Mar 11, 2024

编程文盲,问一下v2ray-core和v2rayA的 Release怎么下载和安装?安装哪个版本?

@mnixry
Copy link
Author

mnixry commented Mar 11, 2024

编程文盲,问一下v2ray-core和v2rayA的 Release怎么下载和安装?安装哪个版本?

https://github.com/v2rayA/v2rayA/releases
https://github.com/v2fly/v2ray-core/releases
最新的版本选linux armv7就行

@vincentfan2017
Copy link

您好,请教下面这个指令是不要在V2raya文件夹内执行

执行 chmod +x ./start.sh 给启动脚本加上可执行位。

比如:chmod +x /home/root/v2aya/start.sh ?

多谢

@mnixry
Copy link
Author

mnixry commented Sep 6, 2024

您好,请教下面这个指令是不要在V2raya文件夹内执行

@vincentfan2017 对的

@HanPiM
Copy link

HanPiM commented Oct 29, 2024

今年新版 reMarkable paper pro 换成 aarch64 架构了

@mnixry
Copy link
Author

mnixry commented Oct 29, 2024

今年新版 reMarkable paper pro 换成 aarch64 架构了

其他的步骤没有变化嘛, 不太了解. Paper Pro 太贵了真的买不起

@vincentfan2017
Copy link

今年新版 reMarkable paper pro 换成 aarch64 架构了

image 那是不是得用这个版本的编译给armv7的。我的明天RMPP明天就到了,我先试一下然后和大家更新结果

@vincentfan2017
Copy link

今年新版 reMarkable paper pro 换成 aarch64 架构了

其他的步骤没有变化嘛, 不太了解. Paper Pro 太贵了真的买不起

我问了客服,回答是RM2和RMPP 架构没有区别。方法应该也没有变化
“Remarkable 2 and remarkable pro work in the same way, They have the same architecture.“

@HanPiM
Copy link

HanPiM commented Oct 31, 2024

今年新版 reMarkable paper pro 换成 aarch64 架构了

其他的步骤没有变化嘛, 不太了解. Paper Pro 太贵了真的买不起

我问了客服,回答是RM2和RMPP 架构没有区别。方法应该也没有变化 “Remarkable 2 and remarkable pro work in the same way, They have the same architecture.“

但我原先下载的 linux_armv7 版本运行不了,uname -m 显示是 aarch64,换成 archlinux_arm64 版本后确实就可以运行。archlinux_armv7 没试不知道。

不过现在好像不需要挂代理也能同步,只需要改时间就可以了。

刚刚查了一下,应该是我理解错架构和指令集的概念了,armv7/armv8 是架构,arm64 是指令集。我不太懂这些

@vincentfan2017
Copy link

vincentfan2017 commented Oct 31, 2024

求助:

root@imx8mm-ferrari:~# mount -o remount,rw /
root@imx8mm-ferrari:~# chmod +x /home/root/v2raya/v2raya
root@imx8mm-ferrari:~# chmod +x /home/root/v2raya/start.sh
root@imx8mm-ferrari:~# cd /home/root/v2raya/
root@imx8mm-ferrari:~/v2raya# cp ~/v2raya/v2raya.service /etc/systemd/system/
root@imx8mm-ferrari:~/v2raya# cd
root@imx8mm-ferrari:~# systemctl enable --now v2raya.service
root@imx8mm-ferrari:~# systemctl status v2raya.service
× v2raya.service - v2rayA Service
     Loaded: loaded (/etc/systemd/system/v2raya.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2024-10-31 13:59:23 UTC; 3min 19s ago
       Docs: https://github.com/v2rayA/v2rayA/wiki
    Process: 4298 ExecStart=/home/root/v2raya/start.sh (code=exited, status=126)
   Main PID: 4298 (code=exited, status=126)

Oct 31 13:59:23 imx8mm-ferrari systemd[1]: v2raya.service: Scheduled restart job, restart counter is at 5.
Oct 31 13:59:23 imx8mm-ferrari systemd[1]: Stopped v2rayA Service.
Oct 31 13:59:23 imx8mm-ferrari systemd[1]: v2raya.service: Start request repeated too quickly.
Oct 31 13:59:23 imx8mm-ferrari systemd[1]: v2raya.service: Failed with result 'exit-code'.
Oct 31 13:59:23 imx8mm-ferrari systemd[1]: Failed to start v2rayA Service.
root@imx8mm-ferrari:~# 

这个事什么情况,是系统更新了还是哪里搞错了?
10.11.99.1 refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

@mnixry
Copy link
Author

mnixry commented Oct 31, 2024

这个事什么情况,是系统更新了还是哪里搞错了?

journalctl -rau v2raya.service

看看有什么反应么。 另外楼上 @HanPiM 的评论请注意一下,可能 Paper Pro 使用的确实是 aarch64(armv8) 架构,请确认没有下载错。

@vincentfan2017
Copy link

求助: root@imx8mm-ferrari:# mount -o remount,rw / root@imx8mm-ferrari:# chmod +x /home/root/v2raya/v2raya root@imx8mm-ferrari:# chmod +x /home/root/v2raya/start.sh root@imx8mm-ferrari:# cd /home/root/v2raya/ root@imx8mm-ferrari:/v2raya# cp /v2raya/v2raya.service /etc/systemd/system/ root@imx8mm-ferrari:/v2raya# cd root@imx8mm-ferrari:# systemctl enable --now v2raya.service root@imx8mm-ferrari:~# systemctl status v2raya.service × v2raya.service - v2rayA Service Loaded: loaded (/etc/systemd/system/v2raya.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2024-10-31 13:59:23 UTC; 3min 19s ago Docs: https://github.com/v2rayA/v2rayA/wiki Process: 4298 ExecStart=/home/root/v2raya/start.sh (code=exited, status=126) Main PID: 4298 (code=exited, status=126)

Oct 31 13:59:23 imx8mm-ferrari systemd[1]: v2raya.service: Scheduled restart job, restart counter is at 5. Oct 31 13:59:23 imx8mm-ferrari systemd[1]: Stopped v2rayA Service. Oct 31 13:59:23 imx8mm-ferrari systemd[1]: v2raya.service: Start request repeated too quickly. Oct 31 13:59:23 imx8mm-ferrari systemd[1]: v2raya.service: Failed with result 'exit-code'. Oct 31 13:59:23 imx8mm-ferrari systemd[1]: Failed to start v2rayA Service. root@imx8mm-ferrari:~#

这个事什么情况,是系统更新了还是哪里搞错了? 10.11.99.1 refused to connect. Try:

Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED


找到问题了,RMPP确实是64位aarch
root@imx8mm-ferrari:~# uname -m
aarch64

下面这俩w文件不确定下载的对不对,大佬方便指点一下不?
image
image

@HanPiM
Copy link

HanPiM commented Oct 31, 2024

@vincentfan2017 v2ray 选 linux-arm64-v8a 的

@HanPiM
Copy link

HanPiM commented Oct 31, 2024

刚刚更新了一下paper pro,新系统可以直接在Setting-General-Help-About-System time 修改系统时间了。(也就是说现在不需要ssh就可以搞定同步了

@vincentfan2017
Copy link

@vincentfan2017 v2ray 选 linux-arm64-v8a 的

搞定了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment