温馨提示×

Compton在Debian中如何启用

小樊
53
2025-08-16 00:09:11
栏目: 智能运维

在Debian中启用Compton主要有以下两种方法:

  • 使用APT安装
    1. 更新系统:sudo apt update && sudo apt upgrade
    2. 安装Compton:sudo apt install compton
    3. (可选)配置Compton:创建或编辑~/.config/compton.conf文件,根据需求设置选项,如backendshadowopacity等。
    4. 启动Compton:compton --config ~/.config/compton.conf
    5. (可选)设置开机自启:创建/etc/systemd/system/compton.service文件,添加相关内容,然后执行sudo systemctl enable comptonsudo systemctl start compton
  • 使用Snap安装
    1. 安装Snapd(若未安装):sudo apt install snapd
    2. 安装Compton:sudo snap install compton --classic
    3. 启动Compton:compton -b-b参数表示后台运行)。
    4. (可选)设置开机自启:创建/etc/systemd/system/compton.service文件,添加相关内容,再执行sudo systemctl enable comptonsudo systemctl start compton

0