查看: 80|回覆: 0

[Debian] debian基础配置

[複製鏈接]

0

主題

0

回帖

0

積分

热心网友

金币
0
閲讀權限
220
精華
0
威望
0
贡献
0
在線時間
0 小時
註冊時間
2009-3-23
發表於 2025-3-8 15:27:00 | 顯示全部樓層 |閲讀模式

一、配置软件源

编辑/etc/apt/sources.list,添加下面地址(bookworm为debian12的代号,其它debian需要更换代号)

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware

更新源

sudo apt update

二、配置静态地址

查看网卡名称ip a
编辑网卡配置文件vi /etc/network/interfaces

auto ens32
allow-hotplug ens32
iface ens32 inet static
address 192.168.88.150
netmask 255.255.255.0
gateway 192.168.88.2

重启网卡systemctl restart networking.service

配置dnsvi /etc/resolv.conf

nameserver 114.114.114.114
nameserver 8.8.8.8
nameserver 8.8.8.4



来源:https://www.cnblogs.com/tanglx/p/18759355
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即注册

本版積分規則

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部