Showing posts with label open source. Show all posts
Showing posts with label open source. Show all posts

Install Conky - a system monitor for Ubuntu

Conky is a light weight system monitor that uses to display system information on your Desktop. You can display various information like CPU, memory, network, hard disk capacity and etc using conky on the Desktop, a very handy tools to monitor system info.

Conky  

Install Conky

- Open terminal and type the following command:

sudo apt-get install conky
- Once the installation is completed, copy the example config by copying the file from /usr/share/doc/conky/examples/conky.conf.gz to ~/.conkyrc. Just type in the terminal:
zcat /usr/share/doc/conky/examples/conky.conf.gz > ~/.conkyrc
- Done, you can test by typingbelow command in terminal:
conky
Customize Conky config(conkyrc)

- Open terminal and type the following command: 
sudo gedit ~/.conkyr

- Below is my conky config, you may base on this to configure your conky if you like. The config below actually conky general setting on desktop like where should conky to be place, using what text style, border and etc.
background no text_buffer_size 2048 use_xft yes xftfont Eurostile:size=7 xftalpha 0.7 update_interval 5.0 total_run_times 0 own_window yes own_window_type override own_window_transparent yes own_window_colour hotpink own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 260 5 draw_shades no draw_outline no draw_borders no draw_graph_borders no stippled_borders 3 border_margin 9 border_width 10 default_color grey default_shade_color black default_outline_color black alignment top_right gap_x 10 gap_y 35 no_buffers yes uppercase no cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale no use_spacer yes show_graph_scale no show_graph_range no
Below code is what will be show in the conky bar
TEXT ${font arial black:size=10}${color orange}SYSTEM${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font $nodename - $sysname $kernel on $machine ${color lightgrey}Distro: ${pre_exec cat /etc/issue | grep Ubuntu | cut -c1-13} $machine ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg ${color lightgrey}Battery: ${battery_percent CMB1}% ${battery_bar CMB1}$color ${font arial black:size=10}${color orange}CPU${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font ${color lightgrey}CPU Temp: ${acpitempf}F HDD Temp: ${execi 600 sudo hddtemp --unit=C /dev/sda2 | cut -c 24-30} ${color lightgrey}CPU Usage:${color #cc2222} $cpu% ${cpubar} ${color red}${cpugraph 0000ff 00ff00} ${color}Name PID CPU% MEM% ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${color}Mem usage ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1} ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3} ${font arial black:size=10}${color orange}MEMORY${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font ${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar} ${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar} ${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes ${font arial black:size=10}${color orange}DISK${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font ${font arial black:size=9}VOLUME${goto 116}TYPE${goto 180}USED${alignr 1}SIZE$font ${font arial black:size=9}ROOT:$font${goto 120}${fs_type /}${goto 190}${fs_used /}${alignr}${fs_size /} ${fs_bar 4 /}$color ${font arial black:size=9}Windows:$font${goto 120}${fs_type /home/chenhow/windows}${goto 190}${fs_used /home/chenhow/windows}${alignr}${fs_size /home/chenhow/windows} ${fs_bar 4 /}$color ${font arial black:size=10}${color orange}NETWORK${color}${font arial black:size=9}INFORMATION${color orange} ${hr 2}$color$font ${font arial black:size=7}LOCAL:$font${addr ppp0} $alignr ${color} ${font arial black:size=7}DOWN: $font$color${downspeed ppp0} k/s ${alignr}${font arial black:size=7}UP: $font${upspeed eth0} k/s ${downspeedgraph ppp0 25,140 0000ff 00ff00} ${alignr}${upspeedgraph ppp0 25,140 0000ff 00ff00}$color ${font arial black:size=9}TOTAL: $font${totaldown ppp0} ${alignr}${font arial black:size=9}TOTAL: $font${totalup ppp0} ${color orange}${hr 2}$color ${color #ddaa00}Port(s)${alignr}#Connections $color Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count} ${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0} ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1} ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2} ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3} ${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4} ${color #ddaa00}Outbound Connection ${alignr} Remote Service/Port$color ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0} ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1} ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2} ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3} ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4} ${color orange}${hr 2}$color ${color}TODO: ${execi 20 cat /home/chenhow/Desktop/TODO.txt | fold -w40 }
The above configurations are the default setting that I used in my system. When you are more familiar with it, you can change it to suit your needs. Attached is my conky config, feel free to download and modify.  

Download chenhow conky config file: http://www.chenhow.net/downloads/conkyrc.zip

Sunday, April 5, 2009 | posted in | 0 comments [ More ]

Use Twitter Tweet As Messenger Status Message

Twitter has become so popular and have a fast growing user base in all over the world. You can use twitter to update your friends what you are doing at any given time, share your thoughts and feelings, and even you can use twitter to do marketing research or update your followers that your servers have just crashed from business perspective.



Like many social network tools, you can sync up your twitter tweet at many social network system like facebook, friendfeed and many more. Today, I'm going to show you how to updates your messenger status message at regular intervals to reflect your latest twitter tweet.



For Windows live messenger User (Windows)





  1. Download Twessenger (a Twitter add-in for Windows Live Messenger) from http://kunal.kundaje.net/twessenger/Twessenger.msi

  2. Before you install, make sure your have Windows Live Messenger 8.1 or higher and .NET Framework 2.0 installed in your XP or Vista machine.

  3. After install Twessenger, goto "Messenger Menu> Tools> Options".

  4. Select "Add-ins" from the items in the left pane of the options window.

  5. Click the "Add to Messenger" button, then go to C:\Program Files\Twessenger. Select the "Twessenger.Twessenger.dll" file.

  6. Click the "Settings" button, enter your Twitter username, and click OK.

  7. Click on your display name at the top of the Messenger contact list window. Click the "Turn on Twessenger" item in the drop-down menu. Your personal message should change to your latest Twitter tweet immediately.




twessenger twessenger



Source: http://kunal.kundaje.net/twessenger/



For Pigin User (Linux)





  1. Download pidgin-twitterstatus from http://pidgin-twitterstatus.googlecode.com/files/twitter-0.3.0.pl

  2. Copy twitter-0.3.0.pl to ~/.purple/plugins/

  3. Install XML::XPath perl module

  4. Open Terminal, type





    1. perl -MCPAN -e shell

    2. get XML::XPath

    3. make XML::XPath

    4. test XML::XPath

    5. install XML::XPath


  5. Using Pidgin, navigate to Tools | Plugins and find Twitter Status Feed. Enable it, and Click the Configure Plugin button to open the plugin configuration dialog. Enter your Twitter username and click Close.

  6. Restart pidgin

  7. Now, you should see Twitter tweet at the bottom of Pidgin windows.




pidgin pidgin



Source: http://code.google.com/p/pidgin-twitterstatus

Saturday, October 25, 2008 | posted in , | 3 comments [ More ]

Google Chrome

Recently, Google Chrome steal all the headlines from the media, making the internet browser challenge hike, you can actually see all the related article everywhere. Review, tips & tricks and vulnerabilities of google chrome have been strongly discuss.

Now, I will sum up everything about Google chrome here. And let you guys to have the final say whether google chrome is good or bad. I will not discuss details here as alot of people's have already done that, hence, I'll provides short point and links, you may refer to the link if you would like to find out more.

Here we go.

Features:


  • Support multiple processes, instead of single or multi-thread, each tab has it own memory and global data structures.

    • processes rendering in seperate tab





Tips:

Vulnerabilities (Version 0.2.149.27):

  • Buffer overflow

    • Description: Problem caused due to a boundary error when handling the "SaveAs" Function. On saving a malicious page with an overly long title ( tag in HTML), the program causes a stack-based overflow and makes it possible for attackers to execute arbitrary code."

    • To know more, visit http://www.itwire.com/




Problem fixed:

  • URLs containing ":%" which could cause Chrome to crash.


Pros:

  • Opensource

  • Better stability by running multi process architecture. 1 tab goes down will not affect the whole browser

  • Better memory allocation as each tab has it own memory. Any tab goes memory fat, we can just eliminate it

  • Built in Java virtual machine

  • Built-in DOM inspector

  • Compiled javascript

  • Incognito mode

  • Excellent introduction and explanation you can find from a comic book added by google.


Cons:

  • It's still in beta test, you can expect alot of bugs and vulnerabities

  • no supporting plugin like firefox at the moment

  • Chrome offers only day-by-day history.

  • no linux support, YET!


Overall, I think Google chrome is a decent browser with high performance and stability. It's worth the try. So, what's your say about Google chrome?

Tuesday, September 9, 2008 | posted in , | 0 comments [ More ]

Google Chrome, new open source browser

Yes, a new web browser from google. Information from google blog, beta version of Google Chrome will be lauching tomorrow.

To find out more about this new open source browser, Google Chrome, google has added a comic book explaining Google Chrome.

Source: http://googleblog.blogspot.com/

Tuesday, September 2, 2008 | posted in , | 2 comments [ More ]