LibreElec中systemd设置
LibreElec
中的/etc
等目录都是只读的,启用的systemd
的设置文件放在用户文件夹/storage
中。
新建/storage/bin
目录。可执行文件建议放在其中。
/storage/.config
作为/etc
,在其中新建子目录存放配置文件。
service
文件放在/storage/.config/system.d
中。
PS:
默认用户名/密码是root/libreelec
LibreElec
中的/etc
等目录都是只读的,启用的systemd
的设置文件放在用户文件夹/storage
中。
新建/storage/bin
目录。可执行文件建议放在其中。
/storage/.config
作为/etc
,在其中新建子目录存放配置文件。
service
文件放在/storage/.config/system.d
中。
PS:
默认用户名/密码是root/libreelec
虽然fnos也可以手工上传证书并实现外部https访问,但近期的ssl证书都只有90天有效期,到期都只能手工更新,比较麻烦,万一忘记就麻烦了。通过lucky自动申请证书,内网转发实现永久https访问,避免了手工更新证书的麻烦。
我的账号\API密钥
页面,切换到DNSPod Token
并创建密钥
,记住密钥信息。lucky
,切换到安全管理
,添加证书
,设置如下:lucky
,切换到Web服务
,添加Web服务规则
,设置如下:监听端口
主力NAS切换为飞牛系统fnOS,回头补一篇教程和记录
编辑/usr/trim/nginx/conf/nginx.conf
,加入新server
代码段
将5230端口的memos代理到5233端口,并开启https,路由器端口转发5233端口
server {
listen 5233 ssl;
server_name nas.leosutopia.cn;
trim_hook_cert_switch on;
ssl_certificate $ssl_server_name;
ssl_certificate_key $ssl_server_name;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://127.0.0.1:5230;
}
}
将2345端口的迅雷代理到2346端口,并开启https,路由器端口转发2346端口
server {
listen 2346 ssl;
server_name nas.leosutopia.cn;
trim_hook_cert_switch on;
ssl_certificate $ssl_server_name;
ssl_certificate_key $ssl_server_name;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://127.0.0.1:2345;
}
}
最近跟风入手了机械革命极光X,12800HX+4070的版本。
但实在是用不惯Windows 11,就又换回了Windows 10 LTSC,这就来了Windows 10对12代以上酷睿的大小核架构支持不好的问题。
网上搜索一阵之后,发现下面这个方法不错,用上之后,流畅度明显提升。
启用高性能模式
管理员powershell运行
powercfg -s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
PowerSettingsExplorer
,并解压缩运行修改策略
都在Processor power management
分组里
Heterogeneous policy in effect
,生效的为第1步新加的高性能模式,将后面的AC Value
和DC Value
都设置为Use heterogeneous policy 0
Heterogeneous thread scheduling policy
,生效的为第1步新加的高性能模式,将后面的AC Value
和DC Value
都设置为Prefer performance processors
Heterogeneous short running thread scheduling policy
,生效的为第1步新加的高性能模式,将后面的AC Value
和DC Value
都设置为Prefer performance processors
参考:
https://blog.csdn.net/weixin_43982359/article/details/135614404
https://bbs.pcbeta.com/viewthread-1987519-1-1.html
新主机安装fail2ban无法启动,提示:
Failed during configuration: Have not found any log file for sshd jail
原因应该是fail2ban默认开启ssh监控,却找不到ssh的日志。网上搜索发现有人在GitHub上给出了解决方案。在jail设置里面加上以下内容即可顺利启动:
[DEFAULT] backend = systemd
软件默认设置是auto,但似乎无法判定系统使用了systemd,只好手动指定。
注意尽量不要修改/etc/fail2ban/jail.conf,而是在/etc/fail2ban/jail.d/里面新建一个文件来写自己的设置。
A Windows and Office activator using HWID / Ohook / KMS38 / Online KMS activation methods, with a focus on open-source code and fewer antivirus detections.
irm https://get.activated.win | iex
https://post.smzdm.com/p/a78396qo/
配置比较高,N5105+32G+5SATA+1NVME+2*2.5GBE。
最早付费买的引导,现在免费的也可以了。
未编译RR引导:https://wp.gxnas.com/11849.html
编译后的引导:https://www.openos.org/threads/412dsm-7-2-1-69057-update-5.4962/
https://github.com/007revad/Synology_HDD_db
http://www.naxs.cn/zcjh/13915.html
本来冲着声音小去的,结果声音比自己组的还大,据说主要是电源噪音。
多多上买了个建准4020,等到货换下来再测试
换了个电源,声音小多了,已经在用了
环境: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