Skip to content

Commit fd535f0

Browse files
committed
Update code to v1.0.19-1
Update readme, move cmatrix and fonts to patch.tar.gz
1 parent a5a3816 commit fd535f0

File tree

4 files changed

+91
-8
lines changed

4 files changed

+91
-8
lines changed

assets/patch.tar.gz

245 KB
Binary file not shown.

extra/build-tiny-rootfs.md

Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
因为我不会,所以只能用自然语言记录一下制作步骤。
77

8-
## 制作步骤
8+
## 制作步骤(xfce和lxqt)
99

1010
### 安装Debian容器
1111

@@ -164,18 +164,27 @@ tmoe还会安装gnome-keyring,由于之前我做xfce包时会造成VSCode反
164164

165165
#### WPS
166166

167+
**(20241112)注意,新版wps不再需要将整合模式改为多组件模式也能正常使用,所以可以跳过软件设置修改的步骤**
168+
167169
- 软件设置修改
168170
- 从官网下载WPS linux arm64 deb安装包,直接在图形界面点开用gdebi安装(正好测试一下gdebi是否能用)
169171
- 打开WPS-右上角设置-其他-切换窗口管理模式-整合模式改为多组件模式(否则一些设备在新建文档等操作时卡死,目前原因不明)
170172
- 使用gdebi(或自行)卸载WPS
171-
- 字体修补
172-
- 在你的Windows电脑里的C:\Windows\Fonts文件夹找到symbol.ttf、webdings.ttf、wingding.ttf、WINGDNG2.TTF、WINGDNG3.TTF、MTEXTRA.TTF字体并放到容器/usr/share/fonts的某个文件夹下(我新建了extra文件夹并把这些字体放到里面)
173173
- libtiff.so.5库修补
174174
- 切换到/lib/aarch64-linux-gnu文件夹,创建软链把libtiff.so.6链接到libtiff.so.5
175175
- 或者找libtiff.so.5的包并安装,这样可能更好一些
176176
- 预装ttf-mscorefonts-installer
177177
- 这个包是WPS的依赖,会在sourceforge下载字体,可能会非常慢,所以提前apt装好
178178

179+
180+
### 额外步骤
181+
182+
- 修复系统更新时变英文(v1.0.19):把/etc/locale.gen文件里包含zh_CN.UTF-8的那行代码解除注释
183+
- 修复了xfce使用Termux:X11时占用过高(v1.0.19):把底部面板的电量管理插件移除(右键-面板-面板首选项-项目)
184+
- 不弹出终端窗口(v1.0.18):把/etc/X11/xinit/Xsession文件倒数第二行open_terminal删掉
185+
- 关闭垂直同步以使用Turnip+Zink(v1.0.17):把文件~/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml内vblank_mode值从auto改为off
186+
- xfce版本安装了图片查看器ristretto和压缩文件管理器xarchiver(v1.0.16)
187+
179188
### 打包
180189

181190
- 首先退出容器,在容器挂载选项里取消对sd和termux的挂载,之后进入容器删除termux软连接
@@ -196,3 +205,67 @@ tmoe还会安装gnome-keyring,由于之前我做xfce包时会造成VSCode反
196205
- 等等
197206
- 切换到root用户,切换到根目录,`/busybox tar -Jcpvf /debian.tar.xz --exclude=debian.tar.xz --exclude=dev --exclude=proc --exclude=system --exclude=storage --exclude=apex --exclude=sys --exclude=media/sd --exclude=busybox --exclude=".l2s.*" /`
198207

208+
209+
## 制作步骤(GXDE OS)
210+
211+
### 咕咕咕
212+
213+
其实流程和前面差不多。基本上就是 装图形界面->修复中文->修复tmoe->修non-free-firmware->(随便看看空间占用,略)->修wps->准备busybox以便打包->添加Xsession文件以便启动
214+
215+
请看VCR:
216+
```
217+
1 exit
218+
2 sudo apt install sd/Download/gxde-source_1.0.1_all.deb
219+
3 sudo apt install ./sd/Download/gxde-source_1.0.1_all.deb
220+
4 sudo apt update
221+
5 sudo apt install gxde-testing-source
222+
6 sudo apt update
223+
7 sudo apt install gxde-desktop-android --no-install-recommends
224+
8 nano /etc/locale.gen
225+
9 cd /usr/local/etc/tmoe-linux/git/share
226+
10 nano replace.sh
227+
11 ./replace.sh old-version
228+
12 chmod +x replace.sh
229+
13 ./replace.sh old-version
230+
14 rm replace.sh
231+
15 cd
232+
16 tmoe
233+
17 nano /etc/apt/sources.list
234+
18 sudo apt update
235+
19 nano /etc/apt/sources.list
236+
20 sudo apt update
237+
21 cd /var/log
238+
22 ls -l
239+
23 du -h --max-depth=1 | sort -h
240+
24 cd ..
241+
25 du -h --max-depth=1 | sort -h
242+
26 cd cache/
243+
27 ls -l
244+
28 sudo apt update ttf-mscorefonts-installer
245+
29 sudo apt install ttf-mscorefonts-installer
246+
30 cd /usr/lib/aarch64-linux-gnu/
247+
31 ln -s libtiff.so.6 libtiff.so.5
248+
32 history
249+
33 cd /
250+
34 cp home/tiny/termux/home/.local/share/tmoe-linux/containers/proot/debian-bookworm_arm64/busybox .
251+
35 cd /etc/X11/xinit/
252+
36 ls
253+
37 cp ~/termux/home/.local/share/tmoe-linux/containers/proot/debian-bookworm_arm64/etc/X11/xinit/Xsession .
254+
38 ls -l Xsession
255+
39 cd /
256+
40 ls -l busybox
257+
41 exit
258+
42 sudo apt clean;sudo apt autoclean;sudo apt autoremove --purge || sudo apt autoremove
259+
43 history
260+
44 history > /sd/history.txt
261+
```
262+
263+
关于Xsession文件:
264+
265+
因为当前小小电脑代码写死了启动X11图形界面就通过执行/etc/X11/xinit/Xsession,如果通过tmoe安装图形界面这个文件是自带的,但安装GXDE没有通过tmoe,所以随便写了个:
266+
```
267+
rm -rf /run/dbus/pid
268+
sudo dbus-daemon --system
269+
export $(dbus-launch)
270+
startgxde_android
271+
```

extra/readme.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,22 @@ linux在需要数据时,使用socket通知位于安卓的getifaddrs_bridge_ser
2525

2626
源码和编译信息在getifaddrs_bridge文件夹查看。
2727

28-
#### extra/install-box, extra/install-wine:
28+
#### extra/install-hangover, extra/install-hangover-stable:
2929

30-
这些是用于跨架构/跨系统支持的box86/box64和wine安装脚本
30+
这些是用于Windows应用支持的Hangover安装脚本
3131

32-
#### extra/chn_fonts.reg, extra/XiaolaiMonoSC-Regular.ttf:
32+
#### extra/chn_fonts.reg:
3333

34-
修复wine显示方块字的注册表文件和[小赖字体](https://github.com/lxgw/kose-font)
34+
修复wine显示方块字的注册表文件
3535

3636
#### extra/libvulkan_freedreno.so, extra/freedreno_icd.aarch64.json:
3737

3838
Turnip驱动。根据[这里](https://github.com/xDoge26/proot-setup/issues/26#issuecomment-1712404849)[这里](https://github.com/MastaG/mesa-turnip-ppa)编译
3939

40+
#### extra/cmatrix
41+
42+
快捷指令的彩蛋。原本放在容器里,但显然放这里更为合适
43+
4044
#### caj, edraw
4145

4246
这些分别是cajviewer,亿图图示的补丁
@@ -49,3 +53,8 @@ Turnip驱动。根据[这里](https://github.com/xDoge26/proot-setup/issues/26#i
4953
微信的补丁。license, uos-lsb和uos-release来自星火的微信包或arch的wechat-uos打包(嗯,我忘记到底是哪的了。不过都差不多)。
5054

5155
libssl1.1来自debian官方源。deepin-elf-verifier是我打的空包。
56+
57+
#### font
58+
59+
[小赖字体](https://github.com/lxgw/kose-font)用于修复wine的方块字
60+
其他字体用于避免wps报字体缺失的错误

lib/workflow.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,8 @@ ${G.dataPath}/bin/virgl_test_server ${Util.getGlobal("defaultVirglCommand")}""")
771771
if (Util.getGlobal("isJpEnabled")) {
772772
extraOpt += "LANG=ja_JP.UTF-8 ";
773773
}
774-
extraMount += "--mount=\$DATA_DIR/tiny/extra/XiaolaiMonoSC-Regular.ttf:/usr/share/fonts/truetype/XiaolaiMonoSC-Regular.ttf ";
774+
extraMount += "--mount=\$DATA_DIR/tiny/font:/usr/share/fonts/tiny ";
775+
extraMount += "--mount=\$DATA_DIR/tiny/extra/cmatrix:/home/tiny/.local/bin/cmatrix ";
775776
Util.termWrite(
776777
"""
777778
export DATA_DIR=${G.dataPath}

0 commit comments

Comments
 (0)