先决条件
要成功安装Bashtop,请确保系统中已准备好以下依赖项。
• Bash 4.4或更高版本•Git•GNU Coreutils•GNU sed,awk,grep和ps命令行工具•Lm传感器–可选(用于收集CPU温度统计信息)
首先,我们将开始手动安装Bashtop。这应该适用于所有发行版。
手动安装
要手动安装Bashtop,请如下所示克隆git仓库,并使用以下命令从源代码编译:
- $ git clone https://github.com/aristocratos/bashtop.git
- $ cd bashtop
- $ sudo make install
要卸载Bashtop,请运行:
- $ sudo make uninstall
在Ubuntu中安装Bashtop
在Ubuntu上安装Bashtop的方法有两种:使用snap或使用APT软件包管理器。
要使用snap安装,执行:
- $ snap install bashtop
要使用APT软件包管理器进行安装,请首先添加如下所示的Bashtop PPA:
- $ sudo add-apt-repository ppa:bashtop-monitor/bashtop
接下来,更新软件包列表,然后如图所示安装Bashtop。
- $ sudo apt update
- $ sudo apt install bashtop
在Debian中安装Bashtop
Bashtop在Debian的官方存储库中可用。要安装它,只需运行以下命令:
- $ sudo apt install bashtop
另外,您可以运行显示的命令。
- $ git clone https://github.com/aristocratos/bashtop.git
- $ cd bashtop/
- $ cd DEB
- $ sudo ./build
在Fedora中安装Bashtop
要将Bashtop放入Fedora中,只需运行以下命令:
- $ sudo dnf install bashtop
在CentOS / RHEL 8中安装Bashtop
对于CentOS 8 / RHEL 8系统,您需要首先启用EPEL存储库,然后再运行以下命令:
- $ sudo yum install epel-release
- $ sudo dnf install bashtop
在Arch Linux上安装Bashtop
Bashtop在AUR以bashtop-git的形式提供。要安装Bashtop,只需运行:
- $ sudo pacman -S bashtop
如何在Linux上使用Bashtop资源监视器
要启动Bashtop,只需在终端上运行以下命令:
- $ bashtop