少女祈祷中...

11.10的一些杂项


总体而言是为了解决樱之诗运行和字体的问题. 打算换一个正常一点的字体.
折腾了老半天, 问题没有解决. 怀疑gal自带了字体. 总之折腾前和折腾后是一个样.
不知道wine产生了什么影响, 总之在ubuntu 上能够通过 gnome tweak 来配置别的字体了. 不过还是保持原样好了 (可以全部换成微软雅黑, 之后终端的字体就会变得相当丑陋…)

安装.deb文件时, 又遇到了pkg installer 闪退的问题. 不过直接用 sudo dpkg -i baidunetdisk_4.17.7_amd64.deb安装了.

关于wine 32-bit

参考回答
https://askubuntu.com/questions/177192/how-do-i-create-a-32-bit-wine-prefix

之后创建新的容器, 就可以选择作为32位容器了.

安装微软雅黑和华文中宋等

字体文件
https://github.com/chengda/popular-fonts
https://www.dafontfree.io/simsun-font/

后面发现可以在用户层面做这件事, 把ttf文件都放在 ~/.local/share/fonts就可以了
命令行

1
2
3
sudo cp popular-fonts/* /usr/share/fonts
fc-cache -vf
fc-list | grep "宋"

参考文章
https://blog.csdn.net/qq_35165004/article/details/132738991

采用不同容器运行exe文件

前面为容器路径, 后面为需要运行的文件.

1
WINEPREFIX=~/.wine/wineqq/ wine "C:\\pcqq2021.exe

关于创建.desktop文件

创建文件, 格式如下:

1
2
3
4
5
6
7
8
1. `[Desktop Entry]`
2. `Encoding=UTF-8`
3. `Version=1.0`
4. `Type=Application`
5. `Terminal=false`
6. `Exec=/path/to/executable`
7. `Name=Name of Application`
8. `Icon=/path/to/icon`

其中后面三行是要更改的, 分别填写路径, 名称, 图标即可. 注意路径要完整.

参考
https://linux.cn/article-9199-1.html

创建这个是为了方便地用32-bit运行樱之诗. 和脚本文件结合在一起即可.

脚本很简单, 参考
https://blog.csdn.net/xiaomifanhxx/article/details/82285881

1
2
3
4
5
6
7
8
9
10
11
touch hello.sh

gedit hello.sh

#!/bin/bash

echo "Hello world!"

chmod +x hello.sh

./hello.sh

wine 字体

1
2
3
4
5

cd /usr/share/fonts
cp *.ttf ~/.wine/drive_c/windows/Fonts
cd /home/rikka/.local/share/wineprefixes/32bit-wine
gedit system.reg

搜索: LogPixels

将其中的:

“LogPixels”=dword:00000060
改为:

“LogPixels”=dword:00000070
搜索: FontSubstitutes

将其中的:

“MS Shell Dlg”=“Tahoma”
"MS Shell Dlg 2″=“Tahoma”
改为:

“MS Shell Dlg”=“SimSun”
"MS Shell Dlg 2″=“SimSun”

  1. 修改 ~/.wine/drive_c/windows/win.ini
    sudo vi ~/.wine/drive_c/windows/win.ini
    在文件末尾加入:

[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13

  1. 把下面的代码保存为zh.reg,然后终端执行 regedit zh.reg
    代码:

REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
“Arial”=“simsun”
“Arial CE,238”=“simsun”
“Arial CYR,204”=“simsun”
“Arial Greek,161”=“simsun”
“Arial TUR,162”=“simsun”
“Courier New”=“simsun”
“Courier New CE,238”=“simsun”
“Courier New CYR,204”=“simsun”
“Courier New Greek,161”=“simsun”
“Courier New TUR,162”=“simsun”
“FixedSys”=“simsun”
“Helv”=“simsun”
“Helvetica”=“simsun”
“MS Sans Serif”=“simsun”
“MS Shell Dlg”=“simsun”
“MS Shell Dlg 2”=“simsun”
“System”=“simsun”
“Tahoma”=“simsun”
“Times”=“simsun”
“Times New Roman CE,238”=“simsun”
“Times New Roman CYR,204”=“simsun”
“Times New Roman Greek,161”=“simsun”
“Times New Roman TUR,162”=“simsun”
“Tms Rmn”=“simsun”

参考自
https://blog.csdn.net/wto882dim/article/details/122062262

其余参考:

https://blog.csdn.net/ysy950803/article/details/80326832

https://www.cnblogs.com/tubentubentu/p/16278530.html

乱码 以及 输入框不显示字体
https://blog.csdn.net/cxrshiz7890/article/details/106037534

主要参考
https://juejin.cn/post/7103380707258400775
https://blog.csdn.net/wto882dim/article/details/122062262

注册表更改:
https://edyfox.codecarver.org/html/debian_testing_chinese.html
https://edyfox.codecarver.org/html/Fonts-Replacements.reg


尝试解决steam上很多游戏下不了的问题.

尝试更新dll库. 发现有一个dll库没法正常通过winetricks下载.

下载wine32
http://www.florentflament.com/blog/installing-wine32-on-a-64bits-debianubuntu-linux.html

添加环境变量 WINEARCH=win32 WINEPREFIX=path_to_wineprefix winecfg, 尝试启动winetricks, 报错
https://askubuntu.com/questions/1214256/wine-winearch-set-to-win32-but-home-koha-wine-is-a-64-bit-installation

跟随指引建立32位的wineprefix
https://gitlab.winehq.org/wine/wine/-/wikis/FAQ#how-do-i-create-a-32-bit-wineprefix-on-a-64-bit-system

尝试启动, 依然报错. 发现添加环境变量之后可以启动.

将两行环境变量添加到环境中.

貌似可以正常使用了.


很无语的一件事是dll安装之后并不会显示已经安装, 和字体有着一样的问题.

这样下去没法分辨到底哪个装了哪个没装, 挺昏头的.

总之就先这样吧.