xud6的笔记本
  • 主页
  • Centos
  • SELinux
  • FreeIPA
  • node.js
  • ember.js
  • Hyper-V
  • Windows
  • Embedded
  • Linux
  • 树莓派
  • MACOS

debian

A collection of 5 posts
debian

Linux优先使用IPv4地址

修改 /etc/gai.conf sudo nano /etc/gai.conf 增加或取消注释 precedence ::ffff:0:0/96 100
2024年12月19日
树莓派

Linux 持续ping网关防止wifi掉线

nano /etc/systemd/system/network-ping-gateway.service 添加以下内容 # Save in /etc/systemd/system/network-ping-gateway.service [Unit] Description=Ping default network gateway service After=network-online.target [Service] ExecStart=/bin/bash -c 'read _ _ gateway _ < <(ip route list match 0/0); ping "$gateway"' Type=simple [Install] WantedBy=multi-user.target 执行 systemctl enable network-ping-gateway
2024年8月29日
debian

debian11设置无密码sudo

在/etc/sudoers.d/下新建文件 nano /etc/sudoers.d/passwordless 内容如下,替换username和/usr/bin/su为需要的用户名和程序 username ALL=(ALL) NOPASSWD: /usr/bin/su
2023年3月29日
linux

Debian使用MAC地址作为DHCP客户端IP

编辑 /etc/dhcp/dhclient.conf nano /etc/dhcp/dhclient.conf 增加 send dhcp-client-identifier = hardware;
2023年3月29日
linux

apt限制同时下载数量

Queue-Mode 设置选项 默认值为 host 对每个host发起一个连接。当设为access时,对每个URI类型发起一个连接。由于大部分为http,因此也大致满足要求 永久设置 echo 'Acquire::Queue-Mode "access";' >/etc/apt/apt.conf.d/75download 临时设置 apt -o Acquire::Queue-mode=access upgrade
2021年1月26日
Page 1 of 1
xud6的笔记本 © 2025
Powered by Ghost