Appearance
Debian
参考手册
https://www.debian.org/doc/manuals/debian-reference/index.zh-cn.html
add firewall
https://www.debian.org/doc/manuals/securing-debian-manual/firewall-setup.zh-cn.html
repo
sh
# 8 9 10 Extended LTS
# https://mirrors.tuna.tsinghua.edu.cn/help/debian-elts/Debian-bookworm Repo 说明

- 安全更新仓库(security):提供 main、contrib、non-free 安全更新,有 Debian 安全团队维护,修复严重漏洞。
- 回溯仓库(backports):提供较新版本的软件包(从 Debian Testing 或 Unstable 中移植),兼容稳定版系统。
- 稳定版更新仓库(updates):用于发布重要的错误修复和更新(非安全相关)。

- 主仓库(main): 符合Debian 自由软件指南(DFSG)的软件包。 例如,Linux 内核、GNU 工具链、Apache、Python 等
- 贡献仓库(contrib):软件本身是开源的(符合 DFSG),但依赖一些不在
main仓库中的非自由软件。 例如,依赖非自由固件的驱动、依赖专有编译器的工具等。 - 非自由仓库(non-free):不符合 DFSG 的软件包(例如专有软件、有使用限制的软件)。 例如,NVIDIA 显卡驱动、某些固件(如
firmware-iwlwifi)、Steam 客户端等。 - 非自由固件仓库(non-free-firmware):专为硬件设备提供的非自由固件 例如,无线网卡固件、GPU 固件等。
sh
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware休眠
sh
$ systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
○ sleep.target - Sleep
Loaded: loaded (/lib/systemd/system/sleep.target; static)
Active: inactive (dead)
Docs: man:systemd.special(7)
○ suspend.target - Suspend
Loaded: loaded (/lib/systemd/system/suspend.target; static)
Active: inactive (dead)
Docs: man:systemd.special(7)
○ hibernate.target - System Hibernation
Loaded: loaded (/lib/systemd/system/hibernate.target; static)
Active: inactive (dead)
Docs: man:systemd.special(7)
○ hybrid-sleep.target - Hybrid Suspend+Hibernate
Loaded: loaded (/lib/systemd/system/hybrid-sleep.target; static)
Active: inactive (dead)
Docs: man:systemd.special(7)
# 禁用休眠
# mask UNIT...: Mask one or more units
# unmask UNIT...: unmask one or more units
$ systemctl make sleep.target suspend.target hibernate.target hybrid-sleep.target
$ systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
○ sleep.target
Loaded: masked (Reason: Unit sleep.target is masked.)
Active: inactive (dead)
○ suspend.target
Loaded: masked (Reason: Unit suspend.target is masked.)
Active: inactive (dead)
○ hibernate.target
Loaded: masked (Reason: Unit hibernate.target is masked.)
Active: inactive (dead)
○ hybrid-sleep.target
Loaded: masked (Reason: Unit hybrid-sleep.target is masked.)
Active: inactive (dead)