notes/article/os/linux/debian.md

1.5 KiB

Debian 记录

关闭 swap

sudo vi /etc/fstab
# 注释掉有 swap 的那行

Debian 使用 systemctl 控制 swap 的开关。Debian 没有 swapoff 命令。

$ sudo systemctl --type swap -all
UNIT                                                                      LOAD   ACTIVE SUB    DESCRIPTION
dev-disk-by\x2dpartuuid-1719a874\x2d05.swap                               loaded active active /dev/disk/by-partuuid/1719a874-05
dev-disk-by\x2dpath-pci\x2d0000:00:10.0\x2dscsi\x2d0:0:0:0\x2dpart5.swap  loaded active active /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0-part5
dev-disk-by\x2duuid-48cf1ce3\x2d7aba\x2d4fae\x2d8903\x2dcc27fad1649e.swap loaded active active /dev/disk/by-uuid/48cf1ce3-7aba-4fae-8903-cc27fad1649e
dev-sda5.swap                                                             loaded active active /dev/sda5

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
4 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.

$ sudo systemctl mask dev-sda5.swap
Created symlink /etc/systemd/system/dev-sda5.swap → /dev/null.

为普通用户增加 sudo 权限

为普通用户增加 sudo 权限

usermod -aG sudo ezio

系统精简

sudo apt purge plasma-discover uxterm xterm sweeper kmail konqueror kontrast dragonplayer juk gimp kaddressbook
systemd-coredump