LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-24-2011, 08:31 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Rep: Reputation: 45
dipsplay cpu and memory usage using conky


hi

Howto configure conky to display cpu and memory usage using conky?
 
Old 03-24-2011, 09:15 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
Can't believe that a senior member is asking this question. How about reading the documentation?
After that your question will be answered.
 
Old 03-26-2011, 08:40 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Original Poster
Rep: Reputation: 45
Yep, it's simple, just add this lines in /etc/conky/conky.conf:
Code:
TEXT
${font sans-serif:bold:size=8}SYSTEM ${hr 2}
${font sans-serif:normal:size=8}Kernel:  ${alignr}${kernel}
Host:$alignr$nodename
CPU: ${cpu cpu}% ${alignr}${cpubar 8,60 cpu}
RAM: $memperc% ${alignr}${membar 8,60}
Uptime: ${alignr}${uptime}

${font sans-serif:bold:size=8}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}

Last edited by cccc; 03-27-2011 at 12:28 PM.
 
Old 04-22-2011, 10:46 PM   #4
sandman6471
LQ Newbie
 
Registered: Jul 2010
Location: Between Heaven and Hell
Distribution: #! CrunchBang(10 Statler)
Posts: 4

Rep: Reputation: 0
Prime Example

This is a Prime example of why I don't post questions in the forums.
You ask a question, and instead of getting a answer, you have to put up with the smart remarks to go along with your answer. It's amazing how many smart axx there are in the world. I'd rather have a screwed up system then post a question on here. Probably why some people don't stay with Linux, when they need help all they get is attitude. So to newbies, if you have a question just type it in Google and figure it out for yourself.
 
Old 04-22-2011, 11:01 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
In this forum the members will not be spoon fed with obvious answers. cccc is even not a newbie on this forum and should know better than asking a question with such an obvious answer.
The members here are willing to help you, if you actually make your home work. We are not paid professionals, we do this in our free time on a voluntary base. If anyone is to lazy to read the documentation before asking a question, why should we bother to spend our time on this?
Quote:
So to newbies, if you have a question just type it in Google and figure it out for yourself.
Exactly that is the way to go. First search for yourself, if you have questions or problems to understand something, then come to the forum and ask.
 
Old 04-23-2011, 04:50 AM   #6
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: SLED, openSUSE
Posts: 1,009

Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by sandman6471 View Post
This is a Prime example of why I don't post questions in the forums.
If you ask a sensible question you will probably get a sensible answer. If you ask a question where it's obvious that you haven't made any attempt to find the answer, which includes the answer being trivially locatable, which includes it being in the first few hits on Google, you'll probably get an answer like TobiSGD posted.

Arguably TobiSGD's response was a little harsh but I don't see there's anything really wrong with it especially given cccc's post count. If I'd be the first respondent I wouldn't have provided the answer either, I'd have posted a link to the conky documentation.

People who don't make any effort to work answers for themselves and just get answers handed to them on demand will never learn. As someone once said,
Quote:
If you give a man a fish you feed him for a day. If you teach a man to fish you feed him for a lifetime.
Don't be afraid of posting questions. There are plenty people here who are willing to help you. Just remember that none of them are being paid and you are not entitled to anything.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU and memory usage?? msmeenamani Linux - Newbie 3 02-22-2009 01:49 AM
cpu and memory usage graziano1968 Linux - General 1 04-21-2007 06:49 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM


All times are GMT -5. The time now is 03:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration