不过这个服务默认使用的是 Arch Linux 自己的 NTP 服务器,在国内访问较慢,有时会导致时间同步失败,为了更快地同步时间,可以选用其他的 NTP 服务器,我选用了中国 NTP 快速授时服务和中国计量科学研究院 NIM 授时服务的 NTP 服务器,编辑/etc/systemd/timesyncd.conf,添加或编辑如下一行: NTP=cn.ntp.org.cn ntp...
Last sector, +/-sectors or +/-size{K,M,G,T,P}(2048-167772159, default167772159): +2G Created anewpartition1oftype'Linux'andofsize2GiB. Partition#1 contains a ext4 signature. Doyou want to remove the signature?[Y]es/[N]o: y The signature will be removed by a write command. Command...
然而,为了进一步提升 OBRevenge OS 的性能,用户还可以采取一些优化措施。例如,通过调整/etc/pacman.conf文件中的镜像服务器列表,可以选择距离最近或速度最快的服务器进行软件包下载,从而加快安装速度。此外,对于那些对系统性能有更高要求的用户,可以考虑手动调整内核参数,比如增加交换分区大小或优化网络配置,以此来提升整...
以前是推荐增加 noatime 挂载参数,不记录文件读取时间, 但这会导致 Mutt 等需要文件读取时间的软件出错。 现在改为使用 relatime 参数了 (已经默认加上了,Linux 2.6.30 起此参数成为默认值), 只有在文件读取时间早于文件更新时间时,才更新读取时间数据。 使用nodiratime 挂载参数,不记录目录读取访问时间。 把/tmp ...
只要先在/etc/sysctl.d/99-sysctl.conf加上下面的内容: net.ipv4.tcp_mtu_probing = 1 然后使用sysctl加载配置就好了: $ sudo sysctl --system
“/”为Linux的根目录。 建议修改配置文件“sysctl.conf”前先备份。若备份文件名为“sysctl.conf_bak”,则执行如下命令进行备份。 cp sysctl.conf sysctl.conf_bak 执行如下命令以文本方式打开“sysctl.conf”文件。 vi sysctl.conf 在“sysctl.conf”文件的最后直接增加如下内容: net.ipv4.tcp_syncookies = 1...
增加archlinuxcn库 Arch Linux 中文社区仓库 是由 Arch Linux 中文社区驱动的非官方用户仓库。包含中文用户常用软件、工具、字体/美化包等。 https://mirrors.tuna.tsinghua.edu.cn/help/archlinuxcn/ 代码语言:javascript 代码运行次数:0 运行 AI代码解释 vim /etc/pacman.conf /etc/pacman.conf 最后加上以下: ...
# vim /etc/sysctl.d/99-vm-zram-parameters.conf 添加以下内容: vm.swappiness = 180 vm.watermark_boost_factor = 0 vm.watermark_scale_factor = 125 vm.page-cluster = 0 15.1 设置reflector # vim /etc/xdg/reflector/reflector.conf 按o为新行输入。输入--country China表示中国镜像源,其他参数请运行...
至于包转发,Linux内核早就拥有原生支持。在/etc/sysctl.d/文件夹下新建一个文件30-ipforward.conf,并编辑如下: net.ipv4.ip_forward=1net.ipv6.conf.default.forwarding=1net.ipv6.conf.all.forwarding=1 通过这样的方式,可以同时支持IPv4和IPv6的包转发。sysctl的具体优化可以参考其他文章,在此就不做过多...
配置arch linux启动参数vim /boot/loader/entries/arch.conftitle Arch Linux linux /vmlinuz-linux initrd /amd-ucode.img initrd /initramfs-linux.img options root=PARTUUID=671080a0-ccf2-4a1f-ab4c-e801ab194bd5 rw 启动配置vim /boot/loader/loader.conf写入以下内容title Windows 10 efi \EFI\Microsoft...