共有 261 篇文章
zsh
2022-08-09 - 2024-09-18
oh-my-zsh主题显示执行时间 oh-my-zsh主题显示执行时间 进入主题目录~/.oh-my-zsh/themes 在想要修改的主题文件中添加如下代码: function preexec() {
Linux User/Group
2022-08-09 - 2024-09-18
概念和相关文件 在 Linux 用户系统中存在两类组。第一类是主要用户组(主组),第二类是附加用户组(附属组)。 主组:也被称为primary group、first group或
Usbfs
2022-08-09 - 2024-09-18
赋予用户组操作usb设备的权限 创建用户组并添加用户到用户组 # 创建用户组 groupadd usbfs # 查看usbfs用户组的id # usbfs:x:1001: cat /dev/group | grep usbfs # 把akvicor添加到用户组 useradd -G usbfs akvicor # 或 vim
Debian Install
2022-08-09 - 2024-09-18
Debian安装说明 Debian 源 wget https://paste.akvicor.com/api/106 Debian 12 + i3 修改时区 # 修改时区 ln -sf /usr/share/zoneinfo/Etc/GMT-8 /etc/localtime # 同步硬件时间 hwclock -w 配置源 curl https://paste.akvicor.com/api/101 > /etc/apt/sources.list # 注释掉不需要用到的源,如 bookworm-proposed-up
Windows IP Local Port Range
2022-08-08 - 2024-09-18
:: 查看Windows系统TCP端口范围 netsh int ipv4 show dynamicportrange protocol=udp :: 修改Windows系统TCP端口范围 netsh int ipv4 set dynamicport tcp start=30000 num=35535 :: 查看Windows系统UDP端口范围 netsh int ipv4 show dynamicportrange protocol=udp :: 修改
Linux IP Local Port Range
2022-08-08 - 2024-09-18

查看当前临时端口的范围 sysctl net.ipv4.ip_local_port_range cat /proc/sys/net/ipv4/ip_local_port_range # 暂时性修改临时端口的范围 echo 1024 65535 > /proc/sys/net/ipv4/ip_local_port_range sysctl -w net.ipv4.ip_local_port_range="1024 64000" # 永久性修改临时端口范围 vim /etc/sysctl.conf # 编辑此文件并添加下面一行内容 net.ipv4.ip_local_port_range = 1024 65535

Xset
2022-08-01 - 2024-09-18
xset:用于设置显示器的各种用户属性选项。如果想要持久化设置,可以将设置写入.xinitrc文件中。 dpms(Display Power Manage System)和屏保是互相作用
Ruby
2022-07-29 - 2024-09-18
编写 编写ruby.html放在layouts/shortcodes/文件夹中 <!– layouts/shortcodes/ruby.html –> <ruby> {{ .Get "text" }}<rp>(</rp><rt>{{ .Get "title" }}</rt><rp>)</rp> </ruby> 使用 {{< ruby title="完全没理解" text=
Kidding
2022-07-29 - 2024-09-18
编写 编写kidding.html放在layouts/shortcodes/文件夹中 <!– layouts/shortcodes/kidding.html –> <s style="text-decoration: line-through;" title="{{ .Get "title" }}">{{ .Get "text" }}</s> 使用 {{< kidding title="完全没理解" t
Heimu
2022-07-29 - 2024-09-18
编写 将heimu.css文件放在themes/archie/assets/css/文件夹中 /* heimu.css */ .heimu, .heimu a, a .heimu, .heimu a.new { background-color: #252525; color: #252525; text-shadow: none; } .heimu:hover, .heimu:active, .heimu:hover .heimu, .heimu:active .heimu { color: white !important; } .heimu:hover a, a:hover .heimu, .heimu:active a,
UEFI启动管理器rEFInd
2022-07-28 - 2024-09-18
安装rEFInd https://github.com/techysy/rEFInd sudo apt-get install refind 输入y继续执行,首次安装时,系统会询问你是否将rEFInd安装到ESP 关闭安全启动 安装主题 cd /boot/efi/EFI/refind mkdir themes cd themes git clone https://github.com/kgoettler/ursamajor-rEFInd.git 屏蔽多余启动项 先注释inc