In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use Conky to monitor system operation information under Linux". The explanation in this article is simple and clear and easy to learn and understand. Please follow the editor's ideas to study and learn "how to use Conky to monitor system operation information under Linux".
Conky is a system monitor written in the'C 'language, released under GNU GPL and BSD licenses, and available on both Linux and BSD operating systems. This application is based on X Windows and was originally a branch of Torsmo.
Characteristics
Simple user interface
Highly configurable
It can use either built-in widgets (more than 300) or external scripts to display the state of the system on the desktop or in its own container
Low resource consumption
It can display a wide range of system parameters, including but not limited to CPU, memory, swap partition, temperature, process, disk usage, network status, battery power, email, system messages, music player control, weather information, latest news, upgrade information, etc.
In many operating systems such as CrunchBang Linux and Pinguy OS are installed by default
Little-known facts about Conky
The name conky comes from a Canadian TV show.
It has been ported to the Nokia N900
The authorities no longer maintain it.
Installation and use of Conky in Linux
Before we install conky, we need to install packages such as lm-sensors, curl, and hddtemp using the following command:
The code is as follows:
# apt-get install lm-sensors curl hddtemp
Then there is the detection sensor:
The code is as follows:
# sensors-detect
Note: when prompted by the system, answer 'Yes'.
Detect all detected sensors:
The code is as follows:
# sensors
Sample output
The code is as follows:
Acpitz-virtual-0
Adapter: Virtual device
Temp1: + 49.5 °C (crit = + 99.0 °C)
Coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: + 49.0 °C (high = + 100.0 °C, crit = + 100.0 °C)
Core 0: + 49.0 °C (high = + 100.0 °C, crit = + 100.0 °C)
Core 1: + 49.0 °C (high = + 100.0 °C, crit = + 100.0 °C)
Conky can be installed from the software repository or compiled from the source code:
The code is as follows:
# yum install conky [on RedHat system]
# apt-get install conky-all [on Debian system]
Note: before installing conky on Fedora/CentOS, you must enable the EPEL software repository.
After installing conky, simply type the following command to turn it on:
The code is as follows:
$conky &
Running Conky Monitor
This allows conky to run as a pop-up window and use the conky basic configuration file located at / etc/conky/conky.conf.
You may want to integrate conky into your desktop and don't want it to pop up every time. Here's what you need to do:
Copy the configuration file / etc/conky/conky.conf to your home directory and rename it to .conkyrc, starting with a period (.) To ensure that the configuration file is hidden.
The code is as follows:
$cp / etc/conky/conky.conf / home/$USER/.conkyrc
Now restart conky to apply the new changes:
The code is as follows:
$killall-SIGUSR1 conky
Conky Monitor window
You may want to edit the conky configuration file located in your home directory, which is very easy to understand.
Here is an example of a conky configuration file:
Configuration of Conky
From the above window, you can change the color, border, size, zoom, background, alignment, and several other properties. By setting different alignment for different conky windows, we can run several conky scripts at the same time.
Let conky use other scripts instead of the default configuration, and how to find them?
You can write your own conky scripts or use scripts from the Internet; we do not recommend that you use any potentially dangerous scripts found on the Internet unless you know what you are doing. However, there are some well-known themes and web pages that contain trusted conky scripts, such as the following:
Http://ubuntuforums.org/showthread.php?t=281865
Http://conky.sourceforge.net/screenshots.html
In the URL address above, you will find that each of these screenshots has a hyperlink that points to the script file.
Test the Conky script
Here I will run a conky script written by a third party on my Debian Jessie system to test it:
The code is as follows:
$wget https://github.com/alexbel/conky/archive/master.zip
$unzip master.zip
Switch the current working directory to the directory you just extracted:
The code is as follows:
$cd conky-master
Rename secrets.yml.example to secrets.yml:
The code is as follows:
$mv secrets.yml.example secrets.yml
Install Ruby before you need to run this (ruby) script:
The code is as follows:
$sudo apt-get install ruby
$ruby starter.rb
Gorgeous conky appearance
Note: you can modify this script to show your current weather, temperature, etc.
If you want conky to boot automatically, add the following lines to the boot application settings (startup Applications):
The code is as follows:
Conky-pause 10
Save and exit.
Thank you for reading, the above is the content of "how to use Conky to monitor system operation information under Linux". After the study of this article, I believe you have a deeper understanding of how to use Conky to monitor system operation information under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.