Although there are a lot of software to monitor system conditions, conky is currently the most popular. conky is small, beautiful, and easy to configure.
Sensors is used for CPU temperature reading, and hddtemp is used for hard disk temperature reading.
First, Apt-Get install conky. Of course you don't need to mention it. The next step is to configure it.
After conky is installed, it does not create a configuration file for the current user, but uses the system-level default configuration file. In this case, you need to use the following command to manually generate the configuration file for the current user:
Zcat/usr/share/doc/conky/examples/conkyrc.sample.gz> ~ /. Conkyrc
Then open the main folder to show hidden files. the conkyrc file, edit the content, and enter conky on the terminal to start conky. use the system monitor to end the conky process and terminal to start conky. conky can be debugged repeatedly.
The following is my configuration file:
Background No
Xftfont monospace: Style = bold: size = 10
# Xftfont sans: size = 10
Use_xft Yes
Xftalpha 0.9
Update_interval 1.0
Total_run_times 0
Own_window Yes
Own_window_type normal
Own_window_transparent Yes
Own_window_hints undecorated, below, sticky, skip_taskbar, skip_pager
Out_to_console No
Double_buffer Yes
Minimum_size 220 5
Maximum_width 220
Draw_shades No
Draw_outline No
Draw_borders No
Draw_graph_borders 1
Default_color white
Default_shade_color black
Default_outline_color green
Alignment bottom_right
Gap_x 12
Gap_y 35
No_buffers Yes
Uppercase No
Cpu_avg_samples 2
Net_avg_samples 2
Override_utf8_locale Yes
Text
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12 }$ {time % B % d % A} $ {alignr }$ {time % P % L: % m: % s}
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} Host Name: $ {font impact: size = 10} $ alignr $ nodename
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} inner core: $ {font impact: size = 10} $ alignr $ Kernel
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} Run Time: $ {font impact: size = 10} $ alignr $ uptime
$ {Color white }$ {font yaheistmlas: Style = bold: size = 12} CPU temperature: $ {font impact: size = 10 }$ {alignr }$ {acpitemp} °C
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} CPU frequency: $ {font impact: size = 10 }$ {alignr }$ {freq} MHz
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} progress: $ {font impact: size = 10 }$ {alignr} $ processes ($ running_processes running)
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} system load: $ {font impact: size = 10 }$ {alignr} $ loadavg
$ {Color white }$ {font impact: size = 9 }$ {execi 1000 CAT/proc/cpuinfo | grep 'model name' | sed-E's/model name. *://'}
$ {Color # f3ab2e }$ {font catull bold: Style = bold: size = 10} C $ {color # c02e1d} p $ {color # f3ab2e} U $ {color white}-1 $ {color #88 aadd }$ {cpubar 4,135 cpu1} $ {font impact: size = 10 }$ {color white }$ {alignr }$ {CPU 1} %
$ {Color # f3ab2e }$ {font catull bold: Style = bold: size = 10} C $ {color # c02e1d} p $ {color # f3ab2e} U $ {color white}-2 $ {color #88 aadd }$ {cpubar 4,135 cpu2} $ {font impact: size = 10 }$ {color white }$ {alignr }$ {CPU cpu2} %
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} physical memory: $ {font impact: size = 10 }$ {alignr} $ MEM/$ memmax ($ memperc %)
$ {Color #88 aadd }$ {membar 4}
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} swap space: $ {font impact: size = 10 }$ {alignr} $ swap/$ swapmax ($ swapperc %)
$ {Color #88 aadd }$ {swapbar 4}
$ {Color white }$ {font yaheiw.las: Style = bold: size = 10} CPU usage $ {font impact: size = 10} $ alignr CPU $ {font yaheiw.las: size = 10} memory %
$ {Font narkisim: size = 10: Style = regular }$ {top name 1} $ alignr $ {top CPU 1 }$ {top mem 1}
$ {Font narkisim: size = 10: Style = regular }$ {top name 2} $ alignr $ {top CPU 2 }$ {top mem 2}
$ {Font narkisim: size = 10: Style = regular }$ {top name 3 }$ alignr $ {top CPU 3 }$ {top mem 3}
$ {Color white }$ {font yaheiw.las: Style = bold: size = 10} high memory $ {font impact: size = 10} $ alignr CPU $ {font yaheiw.las: size = 10} memory %
$ {Font narkisim: size = 10: Style = regular }$ {top_mem name 1 }1 alignr $ {top_mem CPU 1 }$ {top_mem 1}
$ {Font narkisim: size = 10: Style = regular }$ {top_mem name 2 }$ alignr $ {top_mem CPU 2 }$ {top_mem mem 2}
$ {Font narkisim: size = 10: Style = regular }$ {top_mem name 3 }$ alignr $ {top_mem CPU 3 }$ {top_mem mem 3}
$ {Color # ddaa00 }$ {font yaheistmlas: Style = bold: size = 12 }$ {alignc} File System $ {color}
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} home directory: $ {font impact: size = 10 }$ {alignr }$ {fs_free/}/$ {fs_size /}
$ {Color #88 aadd }$ {fs_bar 4 /}
$ {Color white }$ {font yaheiw.las: Style = bold: size = 12} home directory: $ {font impact: size = 10 }$ {alignr }$ {fs_free/home}/$ {fs_size/home}
$ {Color #88 aadd }$ {fs_bar 4/home}
$ {Font yaheiw.las: Style = bold: size = 11} download speed: $ {font impact: size = 9 }$ {downspeed eth0} K/S $ {font yaheiw.las: style = bold: size = 11} upload speed: $ {alignr }$ {font impact: size = 9 }$ {upspeed eth0} K/S
$ {Color #88 aadd }$ {downspeedgraph eth0 15,105 ff0000 0000ff} $ alignr $ {color #88 aadd }$ {upspeedgraph eth0 15,105 0000ff ff0000}
$ {Color white }$ {font yaheiw.las: Style = bold: size = 11} total downloads $ {font impact: size = 9 }$ {totaldown eth0 }$ {font yaheiw.las: style = bold: size = 11 }$ {alignr} total uploads $ {font impact: size = 9 }$ {totalup eth0}