-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsysinfo.1
101 lines (101 loc) · 3.42 KB
/
sysinfo.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "sysinfo" "1" "" "" "General Commands Manual"
.hy
.SH System Information
.PP
The sysinfo program displays cpu, ram and diskusage as well as uptime,
load average and cpu temperature on sysfs systems which support it.
Display may be on a terminal or in a GTK application.
CPU percentages are graphed, per core.
.SS Requirements
.IP \[bu] 2
python-psutil
.IP \[bu] 2
python-curses
.SS Compatibility
.PP
sysinfo has been tested on macOS Catalina and macOS Ventura, Debian
Bullseye and Ubuntu Server.
GTK may not be available on Macintosh Systems.
.SS Program Arguments
.IP
.nf
\f[C]
--gtk Use GUI
--nofilesystems Don\[aq]t show filesystem usage
--nosystem Don\[aq]t show system information
--notitle Don\[aq]t set a title on the terminal
--nousers Don\[aq]t display logged in users.
--termwidth An integer representing number of terminal columns
--watch, -w Clear screen and refresh every watch-interval
--interval, -i Seconds to wait between refresh >.15 seconds.
\f[R]
.fi
.SS Terminal Watch Mode
.PP
When the option \[en]watch or -w is used, sysinfo clears the screen, and
updates the information every interval seconds (set with -i or
\[en]interval).
Unless \[en]notitle is set, the terminal title is updated showing the
program name and hostname.
To exit, press Escape, Q or q.
.SS Installation
.PP
To install perform these actions:
.PP
\f[C]cp sysinfo \[ti]/bin # or any folder on your PATH\f[R]
.PP
To install the manual page:
.PP
\f[C]cp sysinfo.1 /usr/local/man/man1 # Optional, this can be any path on MANPATH\f[R]
.PP
For the Desktop files, if running in a linux/unix-like environment that
supports Opendesktop standards, suchs as Gnome, Mate, Cinnamon, LXDE,
KDE, etc.:
.IP
.nf
\f[C]
desktop-file-install --dir=\[ti]/.local/share/applications sysinfo.desktop
desktop-file-install --dir=\[ti]/.local/share/applications sysinfo-gtk.desktop
update-desktop-database \[ti]/.local/share/applications
\f[R]
.fi
.SS Background
.PP
Since there are a variety of tools that produce similar results, why
another one?
Initially, I wanted an alternative for the *nix df command which would
show diskusage using bar graphs.
Once this worked, I looked for other information to add, then added the
GTK interface, then the curses code to exit more gracefully from the
terminal watch mode.
.SS Technicals
.PP
sysinfo is written in Python and relies heavily on the psutil module.
Originally written for a terminal app, it made sense to add a Gtk
interface.
.IP \[bu] 2
Gtk code should only get executed when the \[en]gtk flag is used.
This is to prevent an exception on systems without Gtk.
.IP \[bu] 2
To calculate the network speeds a thread is created which calculates the
difference in total bytes sent/received.
This is done every second so we can determine bytes per second.
.IP \[bu] 2
curses is used in terminal watch mode.
This is to allow receiving the terminal quit codes (esc, q or Q) to end
the program.
.SH License
.PP
Sysinfo Copyright (C) 2023 Nicole Stevens.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under
certain conditions.
This program is licenced under GNU GENERAL PUBLIC LICENSE Version 3.
See LICENSE.txt which should have been distributed with this program.
Please see GNU Public License
v3 (https://www.gnu.org/licenses/gpl-3.0.txt)
.SH Author
.PP
Nicole Stevens - https://github.com/nicciniamh