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-core
和v2rayA
的 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.sh
和v2raya.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
查看同步状态。
编程文盲,问一下v2ray-core和v2rayA的 Release怎么下载和安装?安装哪个版本?