TGINSIGHT CHAT
浅影随想
@lightFantasy
博客如果,破碎是玻璃的必然结局,那么一块灵魂要多坚强才不会受伤? 一个计科研究生的日常杂想随记。 一些日常的碎碎念、一些心情记录以及杂想。 一些音乐和资源推荐。 闲谈/大学/心情/资源 —————PY频道————— @TGgeek @bpsheel @records_of_my_daily_life @ladychili @decadencysupremacy @TinySnow4Yi @tuixiusiji1
最近帖子
标签筛选 #linux · 共 6 条
#Linux#tips 如何在 shell 脚本中判断软件是否存在 if ! command -v <the_command> &> /dev/null then echo "<the_command> could not be found." exit 1 fi via. lhunath@stackoverflow
#linux ext4 出现了一个比较严重的 bug 可能导致数据损坏 目前可以确认影响 kernel 5.10.202-rc1 / 5.15.140-rc1 / 6.1.64-rc1 目前看来 6.1.66-1 已经修复 Debian 已经发布警告 https://micronews.debian.org/2023/1702150551.html
Hashtags
#Linux#tips#Ubuntu#吐槽 Ubuntu Server sudo 很慢的解决办法: 把 127.0.0.1 hostname 添加到 /etc/hosts ,例如 sudo sh -c "echo \"127.0.0.1 `hostname`\n::1 `hostname`\" >> /etc/hosts" P.S. 大概是改过 hostname,/etc/hosts 没有记录。
#tips#Linux 如何让默认开启 SELinux 的系统(例 Fedora ) 支持 NTFS 文件共享( fuse ): 提醒:绝对不要按照某些教程关闭 SELinux 1. 为 WebDav 开启 ( Apache / httpd ) sudo setsebool -P httpd_use_fusefs on 2. 为 Samba 开启 sudo setsebool -P samba_share_fusefs on P.S. 前提是其他设置正常 @lightFantasy
#tips#Linux#Fedora Flatpak 版 Telegram 文字显示错误的解决办法 原因:Unicode 设计和 Telegram 程序问题 方法:设置 fontconfig 文件并为 Telegram 分配读取权限 懒人包: 1. 创建目录 mkdir -p ~/.config/fontconfig 2. 下载配置文件 wget https://raw.githubusercontent.com/lilydjwg/dotconfig/master/fontconfig/{fonts,source-han-for-noto-cjk,web-ui-fonts}.conf 3. 为 Telegram 分配读取权限 sudo flatpak override org.telegram.desktop --filesystem=xdg-config/fontconfig:ro 4. 重启 Telegram P.S. 感谢依云 @lilyshare 提供的 fontconfig P.P.S. 或许得装字体 https://raw.githubusercontent.com/notofonts/noto-cjk/main/Sans/Variable/OTF/NotoSansCJKsc-VF.otf https://raw.githubusercontent.com/notofonts/noto-cjk/main/Sans/Variable/OTF/Mono/NotoSansMonoCJKsc-VF.otf https://raw.githubusercontent.com/notofonts/noto-cjk/main/Serif/Variable/OTF/NotoSerifCJKsc-VF.otf 字体来源 https://github.com/notofonts/noto-cjk/
#tips#Linux WebDav 无法连接怎么办? 有时客户端连接服务器会提示错误: Could not authenticate to server: could not handle non-ASCII username in Digest challenge 在其他方法都无效时,不妨试试将授权方式从” Digest “ 换为 ” Basic “。相应的,也需要换用 htpasswd 重新生成用户信息。 详见:https://wiki.archlinux.org/title/WebDAV#Apache_2 @lightFantasy