Ajenti 2安装
2023-1-6 11:27:0 Author: blog.upx8.com(查看原文) 阅读量:25 收藏

自动安装

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 -

手动安装

本机依赖项:Debian/Ubuntu

启用 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

本机依赖项:RHEL

启用 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

安装 Ajenti 2

升级画中画:

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 2

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

Python3模块

列出 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/




文章来源: https://blog.upx8.com/3165
如有侵权请联系:admin#unsafe.sh