curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s -
curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install-venv.sh | sudo bash -s -
启用 Universe 存储库(仅限 Ubuntu):
sudo add-apt-repository universe
sudo apt-get install build-essential python3-pip python3-dev python3-lxml libssl-dev python3-dbus python3-augeas python3-apt ntpdate
启用 EPEL 存储库:
sudo dnf install epel-release
sudo dnf install -y gcc python3-devel python3-pip python3-pillow python3-augeas python3-dbus chrony openssl-devel redhat-lsb-core
升级画中画:
sudo pip3 install setuptools pip wheel -U
最小安装:
sudo pip3 install ajenti-panel ajenti.plugin.core ajenti.plugin.dashboard ajenti.plugin.settings ajenti.plugin.plugins
使用所有插件:
sudo pip3 install ajenti-panel ajenti.plugin.ace ajenti.plugin.augeas ajenti.plugin.auth-users ajenti.plugin.core ajenti.plugin.dashboard ajenti.plugin.datetime ajenti.plugin.filemanager ajenti.plugin.filesystem ajenti.plugin.network ajenti.plugin.notepad ajenti.plugin.packages ajenti.plugin.passwd ajenti.plugin.plugins ajenti.plugin.power ajenti.plugin.services ajenti.plugin.settings ajenti.plugin.terminal
Ajenti 是一组随 pip 安装的 Python 模块,随初始化脚本(systemd 或 sysvinit)一起提供。所以有必要删除 init 脚本,然后是 Python 库和配置文件。
sudo systemctl stop ajenti.service sudo systemctl disable ajenti.service sudo systemctl daemon-reload sudo rm -f /lib/systemd/system/ajenti.service
/etc/init.d/ajenti stop rm -f /etc/init/ajenti.conf
列出 Ajenti 的所有模块:
结果应该是这样的(最终或多或少的插件):
aj 2.1.43 ajenti-panel 2.1.43 ajenti.plugin.ace 0.30 ajenti.plugin.auth-users 0.31 ajenti.plugin.core 0.99 ajenti.plugin.dashboard 0.39 ajenti.plugin.filesystem 0.47 ajenti.plugin.passwd 0.24 ajenti.plugin.plugins 0.47 ajenti.plugin.session-list 0.4 ajenti.plugin.settings 0.30
然后简单地删除所有这些模块:
sudo pip3 uninstall -y aj ajenti-panel ajenti.plugin.ace ajenti.plugin.auth-users ajenti.plugin.core ajenti.plugin.dashboard ajenti.plugin.filesystem ajenti.plugin.passwd ajenti.plugin.plugins ajenti.plugin.session-list ajenti.plugin.settings
如果您以后不需要它,只需删除目录/etc/ajenti/: