基于GOTOP的linux状态监视软件
Go to file
2020-06-02 09:09:23 -05:00
.github Closes #100, breaks up the README 2020-06-02 09:09:23 -05:00
assets Documentation clean-up. 2020-02-23 08:13:43 -06:00
build Version bump to v4 2020-04-23 14:07:08 -05:00
cmd/gotop Actually commit the version change. 2020-05-30 19:59:50 -05:00
colorschemes Go vet/lint cleanups 2020-04-27 20:33:41 -05:00
devices Merge branch 'master' into v4.0 2020-05-31 10:29:14 -05:00
docs Closes #100, breaks up the README 2020-06-02 09:09:23 -05:00
fonts Add Linux console font 2019-04-07 15:21:03 -03:00
layout Go vet/lint cleanups 2020-04-27 20:33:41 -05:00
layouts Closes #46, option to display network traffic as mbps. This can be set on the command line with --mbps, or toggled while running with b 2020-04-16 13:28:18 -05:00
logging Use dup2 on FreeBSD aarch64 2020-05-28 18:20:58 -05:00
scripts Merges #125 from @wcdawn, with some minor modifications. 2020-05-24 14:19:10 -05:00
termui Fixes #128 for LineGraph; there's probably another leak in Sparkline 2020-05-31 16:09:51 -05:00
translations Translation file with help text. 2020-05-01 20:37:38 -05:00
utils Go vet/lint cleanups 2020-04-27 20:33:41 -05:00
widgets Only report battery sensor errors once; closes #117 2020-05-31 14:45:24 -05:00
.gitignore Prepped for release 2020-02-18 13:27:38 -06:00
.travis.yml Refactor travis files 2019-02-07 19:36:56 -08:00
CHANGELOG.md Only report battery sensor errors once; closes #117 2020-05-31 14:45:24 -05:00
config_test.go Version bump to v4 2020-04-23 14:07:08 -05:00
config.go Closes #111, which was a bogus issue. 2020-05-29 19:27:39 -05:00
go.mod Merge branch 'master' into v4.0 2020-05-31 10:29:14 -05:00
go.sum Merge branch 'master' into v4.0 2020-05-31 10:29:14 -05:00
LICENSE Closes #36 -- switch to MIT license. 2020-05-19 13:49:19 -05:00
README.md Closes #100, breaks up the README 2020-06-02 09:09:23 -05:00



Another terminal based graphical activity monitor, inspired by gtop and vtop, this time written in Go!

Join us in #gotop:matrix.org (matrix clients).


See the mini-blog for updates on the build status, and the change log for release updates.

Installation

Working and tested on Linux, FreeBSD and MacOS. Windows binaries are provided, but have limited testing. OpenBSD works with some caveats; cross-compiling is difficult and binaries are not provided.

If you install gotop by hand, or you download or create new layouts or colorschemes, you will need to put the layout files where gotop can find them. To see the list of directories gotop looks for files, run gotop -h. The first directory is always the directory from which gotop is run.

  • Arch: Install from AUR, e.g. yay -S gotop-bin. There is also gotop and gotop-git
  • Gentoo: gotop is available on guru overlay.
    sudo layman -a guru
    sudo emerge gotop
    
  • OSX: gotop is in homebrew-core. brew install gotop. Make sure to uninstall and untap any previous installations or taps.
  • Prebuilt binaries: Binaries for most systems can be downloaded from the github releases page. RPM and DEB packages are also provided.
  • Source: This requires Go >= 1.14. go get -u github.com/xxxserxxx/gotop/cmd/gotop

Extension builds

An evolving mechanism in gotop are extensions. This is designed to allow gotop to support feature sets that are not universally needed without blowing up the application for average users with usused features. Examples are support for specific hardware sets like video cards, or things that are just obviously not a core objective of the application, like remote server monitoring.

The path to these extensions is a tool called gotop-builder. It is easy to use and depends only on having Go installed. You can read more about it on the project page, where you can also find binaries for Linux that have all extensions built in. If you want less than an all-inclusive build, or one for a different OS/architecture, you can use gotop-builder itself to create your own.

Console Users

gotop requires a font that has braille and block character Unicode code points; some distributions do not provide this. In the gotop repository is a pcf font that has these points, and setting this font may improve how gotop renders in your console. To use this, run these commands:

curl -O -L https://raw.githubusercontent.com/xxxserxxx/gotop/master/fonts/Lat15-VGA16-braille.psf
setfont Lat15-VGA16-braille.psf

Building

This is the download & compile approach.

gotop should build with most versions of Go. If you have a version other than 1.14 installed, remove the go line at the end of go.mod and it should work.

git clone https://github.com/xxxserxxx/gotop.git
cd gotop
sed -i '/^go/d' go.mod          # Do this if you have go != 1.14
go build -o gotop ./cmd/gotop

Move gotop to somewhere in your $PATH.

If Go is not installed or is the wrong version, and you don't have root access or don't want to upgrade Go, a script is provided to download Go and the gotop sources, compile gotop, and then clean up. See scripts/install_without_root.sh.

Usage

Run with -h to get an extensive list of command line arguments. Many of these can be configured by creating a configuration file; see the next section for more information. Key bindings can be viewed while gotop is running by pressing the ? key, or they can be printed out by using the --list keys command.

In addition to the key bindings, the mouse can be used to control the process list:

  • click to select process
  • mouse wheel to scroll through processes

For more information on other topics, see:

More screen shots

'-l kitchensink' + colorscheme

"-l battery"

"-l minimal"

Custom (layouts/procs)

Built With

History

ca. 2020-01-25 The original author of gotop started a new tool in Rust, called ytop, and deprecated his Go version. This repository is a fork of original gotop project with a new maintainer to keep the project alive and growing. An objective of the fork is to maintain a small, focused core while providing a path to extend functionality for less universal use cases; examples of this is sensor support for NVidia graphics cards, and for aggregating data from remote gotop instances.

Stargazers over time

Stargazers over time