Debian 12默认官方源/清华源/中科大源/腾讯云源/阿里云源/Linode源sources.list

38 分享, 教程
一、备份现有apt源配置 mv /etc/apt/sources.list /etc/apt/sources.list.old 二、替换为其他apt源 1、替换为默认官方源 这是一条命令,全部复制后,直接粘贴然后一起执行。 cat > /etc/apt/sources.list << EOF deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware deb http://deb.d…

Debian 12 tzdata 安装问题解决方案

70 分享, 教程
问题描述 系统尝试在 Debian 12 (bookworm) 上安装适用于 Debian 11 (bullseye) 的 tzdata 包,导致文件路径冲突。 Unpacking tzdata (2025b-0+deb11u1) over (2025a-0+deb12u1) ... dpkg: error processing archive /var/cache/apt/archives/tzdata_2025b-0+deb11u1_all.deb (--unpack): unable to open '/usr/share/zoneinfo/posix/Africa/Abidjan.dpkg-new': No such file or directory Errors were encountered while …

Debian/Ubuntu安装TCP测试工具TCPing

43 分享, 教程
TCPing是基于TCP协议的一种Ping命令,用来测试数据包能否通过TCP协议到到达目标主机。他的一大特点,就是可以在禁Ping的时候检测网络连通率。 安装依赖 TCPing本质上是一个shell脚本,依赖tcptraceroute运行 Debian/Ubuntu安装方法 sudo apt install tcptraceroute REHL/Centos安装方法 sudo yum install tcptraceroute 下载 TCPing sudo wget http://www.vdberg.org/~richard/tcpping -O /usr/bin/tcping 配置权限 sudo c…

Debian 系统上永久禁用 ping(即 ICMP echo 请求)

147 分享, 教程
要在 Debian 系统上永久禁用 ping(即 ICMP echo 请求),可以通过修改防火墙规则或系统配置来实现。以下是两种常见的方法: 方法 1: 使用 iptables 安装 iptables(如果尚未安装): sudo apt-get install iptables 添加规则以阻止 ICMP echo 请求: sudo iptables -A INPUT -p icmp --icmp-type echo-request -j DROP 保存规则(确保规则在重启后仍然有效): sudo iptables-save | sudo tee /etc/iptables/rules.v4 方…

Debian 11默认官方源/清华源/中科大源/腾讯云源/阿里云源/Linode源sources.list

42 分享
一、备份现有apt源配置 mv /etc/apt/sources.list /etc/apt/sources.list.old 二、替换为其他apt源 1、替换为默认官方源 这是一条命令,全部复制后,直接粘贴然后一起执行。 cat > /etc/apt/sources.list << EOF deb https://deb.debian.org/debian/ bullseye main contrib non-free deb-src https://deb.debian.org/debian/ bullseye main contrib non-free deb https://deb.debian.org/debian/ bullseye-update…

Debian 12修改主机名hostname

153 教程
Debian 12修改主机名hostname 需要修改两个文件。 sudo vim /etc/hostname 里面应该只有一行,改为新的主机名即可。 sudo vim /etc/hosts 里面可能有多行: 127.0.0.1 debian 127.0.1.1 debian.ssvip.net debian 将debian的位置改为需要的名字就可以了。 最后,重启。 sudo systemctl reboot

Debian12/11/10 开启BBR

154 教程
在Debian 启用可以显著提高网络的速度和可靠性。BBR可以降低数据包丢失,增加吞吐量,优化网络性能。如果你的互联网速度缓慢或存在网络阻塞,不妨考虑启用BBR以查看是否有所改善。 一键开启 echo -e "\nnet.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p 验证是否开启成功 输入 sysctl net.ipv4.tcp_congestion_control 如果成功开启,那么会看到以下输出…

如何在 Debian Ubuntu 上添加和删除用户

353 教程
您应该知道如何在一个新鲜的Linux服务器上执行的最基本的任务之一是添加和删除用户。当您创建一个新的系统,你往往只能给出默认root帐户。 虽然运行在root用户提供了大量的功能和灵活性,这也是危险的,可能是破坏性的。添加一个额外的,无特权的用户来执行常见任务几乎总是一个更好的主意。然后,您应为系统上可能有的任何其他用户创建其他帐户。 您仍然可以获取管理员权限,当你需要他们通过一个名为机制sudo 。 在本教…

Debian 安装完成找不到命令解决方法

231 教程
做测试的时候在虚拟机安装了一个Debian的系统,结果系统安装完成发现问题很多,系统就连最基础的service、reboot、poweroff 等命令都无法使用,让我一度怀疑是我系统没装好,甚至还重新安装了一遍,结果还是找不到命令,彻底懵逼。 其实造成这个问题的原因是没有把 /sbin 的目录路径(系统用户目录)添加到$PATH变量中 #查看当前$PATH root@debian:/home/user# echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games…