Posts

解决原生 Android「网络访问受限」问题

原因 Android GSI 包使用了某404网站的generate_204来测试网络连通性 解决方法 更换为本站检测地址(已废弃) adb shell "settings put global captive_portal_https_url https://lod.pub/generate_204" 更换为google.cn地址 adb shell "settings put global captive_portal_https_url https://www.google.cn/generate_204"
2020-10-03
1 min read

Arch Linux 中 fcitx5 输入法的安装与配置

安装 yay -S fcitx5 fcitx5-chinese-addons fcitx5-qt fcitx5-gtk kcm-fcitx5 fcitx5-rime fcitx5-pinyin-moegirl fcitx5-pinyin-moegirl-rime fcitx5-pinyin-zhwiki fcitx5-pinyin-zhwiki-rime 设置开机自启动 sudo cp /usr/share/applications/org.fcitx.Fcitx5.desktop /etc/xdg/autostart/ Rime码表词库配置 # 位置 ~/.local/share/fcitx5/rime 配置使用搜狗输入法皮肤 下载 示例皮肤 转换器 git clone https://github.com/fkxxyz/ssfconv `ssfconv 珍珠白(无阴影版).ssf white` cp -r white ~/.local/share/fcitx5/themes/ 修改皮肤显示bug vim ~/.local/share/fcitx5/themes/white/theme.conf [Metadata] Name=珍珠白(无阴影版) Version=2.0 Author=好好看电视 Description=极简皮肤《珍珠白》(无阴影版) ScaleWithDPI=False [InputPanel] Font=Sans 16 NormalColor=#3c3c55 HighlightCandidateColor=#ff3737 HighlightColor=#3c3c4b HighlightBackgroundColor=#f8f8f8 Spacing=3 [InputPanel/TextMargin] Left=5 Right=5 Top=3 Bottom=3 [InputPanel/ContentMargin] Left=17 Right=17 # 顶部的空白是这里了 Top=10 # 修改底部空白为17 Bottom=17 [InputPanel/Background] Image=skin2_2.png [InputPanel/Background/Margin] Left=22 Right=27 Top=24 Bottom=28 [InputPanel/Highlight] Image=highlight.
2020-08-28
1 min read

解决 Firefox Android 自动跳转外部APP问题

已废弃 @ 2021 进入 about:config 配置页面 找到 network.protocol-handler.external-default 值改为 false
2020-06-13
1 min read

Advice from Symantec

转自Symantec Symantec Security Response encourages all users and administrators to adhere to the following basic security “best practices”: Use a firewall to block all incoming connections from the Internet to services that should not be publicly available. By default, you should deny all incoming connections and only allow services you explicitly want to offer to the outside world. Enforce a password policy. Complex passwords make it difficult to crack password files on compromised computers.
2019-10-30
3 min read

通过命令行远程开启cheese拍照并保持屏幕关闭

思路1:virtualbox + teamviewer(电脑亮屏显示,无奈装插件太麻烦) 思路2:xdotool 传入按键将屏幕关闭(不可以输入fn按键) 思路3:(xset dpms force off)关闭屏幕(移动鼠标又会自动点亮) 思路4:命令行将亮度调到最低 su echo 0 > /sys/class/backlight/intel_backlight/brightness
2019-09-25
1 min read