解决Thinkbook 14 2024 锐龙版异常关机问题
环境:Thinkbook 14 2024 锐龙版,安装Windows 10 LTSC
问题:合盖休眠后经常自动关机
解决:
取消Windows 10的快速启动功能
环境:Thinkbook 14 2024 锐龙版,安装Windows 10 LTSC
问题:合盖休眠后经常自动关机
解决:
取消Windows 10的快速启动功能
环境:
问题
解决办法
/volume1/@appdata/syncthing
用crt
格式的证书的替换https-cert.pem
,用key
格式的证书替换https-key.pem
特别注意证书的文件格式,腾讯云自动生成的nginx证书包里是个csr文件,无法使用,而apache证书包里的是符合要求的crt证书
644
,让其他用户可访问;保留root
所有权,避免更新时被替换掉参考
http://www.up4dev.com/2018/05/29/synology-ssl-wildcard-cert-update/
环境:Windows 10 LTSC
目的:避免微软拼音输入法丢词库和漏备份
安装双拼
2.1 下载double_pinyin.yaml,放入程序文件夹\data
2.2 修改配置文件
用户文件夹\default.custom.yaml
schema_list:
...
- {schema: double_pinyin}
【全局】修改候选词个数
用户文件夹\default.custom.yaml
patch:
menu/page_size: 6
【全局】更改菜单快捷键
默认的F4快捷键与Excel中的绝对引用快捷键冲突
用户文件夹\default.custom.yaml
patch:
"switcher/hotkeys":
- Control+F4
【全局】横向候选词
用户文件夹\weasel.custom.yaml
patch:
...
"style/horizontal": true
某些程序不使用中文输入法
有些程序不一定有效
用户文件夹\weasel.custom.yaml
patch:
app_options/bf2cn.exe: #程序名全部小写
ascii_mode: true
双拼不展开
用户文件夹\double_pinyin.custom.yaml
patch:
#不展开成全拼
translator/preedit_format: []
扩展词库
全部下载https://github.com/Chernfalin/better-rime-dict
除double_pinyin.custom.yaml
外,全部放入用户文件夹
用户文件夹\double_pinyin.custom.yaml
patch:
...
#載入朙月拼音擴充詞庫
"translator/dictionary": luna_pinyin.extended
#標點
'punctuator/import_preset': mysymbols
'recognizer/patterns/punct': "^/([a-z]+|[0-9])$"
mysymbols.yaml
里的定义逐键提示(和双拼不展开冲突)
用户文件夹\double_pinyin.custom.yaml
patch:
#逐键提示
__include: grammar:/hant
完整的double_pinyin.custom.yaml
参考
前面的某些段落没有的话,后面定义的符号会乱码
patch:
#双拼不展开
translator/preedit_format: []
schema/name: 自然码
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: emoji_suggestion
reset: 1
states: [ "No", "Yes" ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
reset: 1
states: [ 漢字, 汉字 ]
- name: ascii_punct
states: [ 。,, ., ]
engine/translators:
- punct_translator
- script_translator
- table_translator@custom_phrase
engine/filters:
- simplifier@emoji_suggestion
- simplifier
- uniquifier
#- charset_filter@gbk
#- single_char_filter
engine/processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
# engine/segmentors:
# - ascii_segmentor
# - matcher
# - abc_segmentor
# - punct_segmentor
# - fallback_segmentor
emoji_suggestion:
opencc_config: emoji.json
option_name: emoji_suggestion
# tips: all
#載入朙月拼音擴充詞庫
"translator/dictionary": luna_pinyin.extended
# translator/enable_correction: true
# 自定义符号上屏
punctuator:
import_preset: mysymbols
half_shape:
"#": "#"
"*": "*"
"`": "`"
"~": "~"
"@": "@"
"-": "-"
"+": "+"
"=": "="
'\': "、"
"%": "%"
"$": ["¥", "$", "€", "£", "¢", "¤"]
"|": ["|", "|", "·", "?", "§", "|", "‖", "︴"]
"/": ["/", "÷"]
"'": { pair: ["「", "」"] }
"[": ["【", "〔", "["]
"]": ["】", "〕", "]"]
"<": "《"
">": "》"
recognizer/patterns/punct: "^/([0-9]0?|[A-Za-z]+)$"
#逐键提示
# __include: grammar:/hant
参考:
https://zhuanlan.zhihu.com/p/267076288
https://github.com/ssnhd/rime
https://blog.isteed.cc/post/rime-2022/
https://github.com/LufsX/rime
https://github.com/SivanLaai/rime-pure
从新的内核重启后,一条命令
sudo dnf remove --oldinstallonly
启用rpmfusion
sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel sudo dnf group upgrade --with-optional --allowerasing Multimedia
https://ostechnix.com/how-to-install-multimedia-codecs-in-fedora-linux/
sudo restorecon -rv /usr/local/bin/
LMDE(Linux Mint Debian Edition),是Linux Mint跳过Ubuntu,直接基于Debian制作的Mint。
其最新版本是LMDE 6(代号faye),基于Debian 12(bookworm)。
基于纯净且稳定的Debian,配合快速高效的cinnamon桌面,体验相当好。在X300上安装了一下,取代了强推Snap的Ubuntu。
几个备忘:
/etc/samba/smb.conf
中的字段改称MSHOME就解决了。如果想让Grub
记住我们选择的开机启动项作为下次的默认选择,可以在/etc/default/grub
添加如下配置:
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
完成修改之后,执行更新:
update-grub
使用中科大地址
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
apk update
https://github.com/klzgrad/naiveproxy/releases
选择openwrt-x86_64
格式,下载并解压,将解压后的可执行程序复制到/usr/local/bin
增加配置目录
mkdir /etc/naive
并将配置文件config.json
放入该目录。
apk add libgcc
alpine使用openrc服务管理器,服务脚本写法如下:
/etc/init.d/naive
#!/sbin/openrc-run
name="$SVCNAME"
command="/usr/local/bin/$SVCNAME"
pidfile="/var/run/$SVCNAME.pid"
command_args="/etc/naive/config.json"
command_background=true
depend() {
need localmount
need logger
}
chmod +x /etc/init.d/naive
service naive start
service naive status
参数解释:
dmesg | grep SATA
查看https://www.cnblogs.com/sueyyyy/p/13187990.html
# 彻底不显示输出
cmd >/dev/null 2>&1 #最简洁的写法
cmd >/dev/null 2>/dev/null
cmd 2>/dev/null >/dev/null
pve安装在一块128G容量的M.2 SATA固态硬盘上,做了一块64G容量的虚拟硬盘给黑群晖,作为套件默认安装位置和下载暂存位置。由于固态硬盘的空间有限,虚拟硬盘也比较小,有的时候暂存的下载会把虚拟盘占满,出现问题。
需求无损更换系统盘为256G容量的新固态硬盘,并把虚拟硬盘容量提升至128G。