nethogs - Watch Network Traffic by Process

nethogs - watch network traffic by process.

nethogs allows you to watch network traffic on the system grouped by process. It tracks both upload and download speeds. Has support for ethernet, PPP and supports both IPv4 and IPv6.

Install nethogs

Use following command to install nethogs

sudo apt-get -y install nethogs

Windows key as shortcut in gnome keyboard shortcuts

Ever tried using win key(super,meta) as shortcut in gnome keyboard shortcuts? It will take it as super-key and not modifier. Do the following to use win/super/meta/mod4(different names for same key btw) for shortcuts in gnome. Change Win key behaviour in gnome. Select "Alt/Win key behaviour" by selection doing selecting following actions. Select "Meta is mapped to Left Win" from the list.
preferences -> keyboard -> layouts(tab) 
-> Layout Options(button) -> Alt/Win key behaviour(dropdown list item)
Now select "preferences -> keyboard shortcuts " and select the action you want to change and press win+key as you do normally. You will see Mod4+key. And it works now :)

Lightweight Terminal

I like gnome terminal except with each tab it consumes more and more memory. Some times I can actually see system slowing down and perceived delays in terminal response.

Recently I stumbled on to xfce4 terminal which is similar but takes lot less memory, lightweight and responsive.

Install xfce4 terminal

Install the package xfce4-terminal

sudo apt-get -y install xfce4-terminal

Use following command to run the XFCE terminal


Bleeding Edge Chromium on Ubuntu

Chromium is the Linux port of official Google chrome browser for windows. Right now chromium is unstable and only useful for scratching your curiosity itch.

Install chromium

Add following sources to /etc/apt/sources.list file.

For jaunty

deb jaunty main
deb-src jaunty main

For intrepid

deb intrepid main
deb-src intrepid main

For hardy

deb hardy main
deb-src hardy main

Now execute following commands to install chromium.

sudo apt-get -y update && sudo apt-get -y --force-yes install chromium-browser

SSHMenu - Keep Track of Your SSH Sessions

sshmenu screenshot

SSHMenu is an gnome panel applet that allows you to configure ssh connections with different presets (colors, etc...).

Install SSHMenu

Use following command to install sshmenu.

sudo apt-get install sshmenu-gnome

Now execute following command to restart gnome panel.

killall -9 gnome-panel

Now right click on any gnome panel and add ssh menu gnome applet.

Multi touch for any,all synaptics touchpad

Multi-touch became trendy after iphone came up with it. We are seeing many new laptops with multi-touch. At hardware level, there is nothing special that you need, to make multi-touch work. You can also do two-finger scroll and two-finger tap to right/middle click. Also, three-finger tap, but, for me it is very hard to press three fingers at the same time(1 out of 10).

Create new file

gksudo gedit /etc/hal/fdi/policy/11-x11-synaptics.fdi
Paste the following code into the file and save it.
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
   <match key="info.capabilities" contains="input.touchpad">
       <merge key="input.x11_driver" type="string">synaptics</merge>
       <merge key="input.x11_options.SHMConfig" type="string">On</merge>
       <merge key="input.x11_options.EmulateTwoFingerMinZ" type="string">90</merge>
       <merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>
       <merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge>
       <merge key="input.x11_options.TapButton1" type="string">1</merge>
       <merge key="input.x11_options.TapButton2" type="string">3</merge>  <!--two finger tap -> middle clieck(3) -->
       <merge key="input.x11_options.TapButton3" type="string">2</merge>  <!--three finger tap -> right click(2). almost impossible to click -->
Restart hal and enjoy multitouch touchpad.
sudo /etc/init.d/hal restart

Update: Diagnosing your touchpad for multi-finger-sensing-capability

Few people have problem with this not working, while it works for few others. This is posted in ubuntu forums
synclient -m 100
Fifth column in the output f is number of fingers on your touchpad. Put two or more fingers on your touchpad and watch the column. If you see it more than one, this should work for you.

Wifi on Acer Laptops

A few months back I bought an acer aspire 4520 laptop. Since then I wasn't able to make wifi work on my laptop. For me madwifi doesn't work at all and ndiswrapper works occasionally.

Recently I went out bought Netgear USB wifi stick and it worked out of box. No need to install any drivers or anything.

Hope jaunty will have proper support for atheros chip sets.

Vega Strike

vega strike startrek mod

Vega strike is a space simulation game with numerous mods. It has support for multi player gaming. Use following command to install vegastrike package.

sudo apt-get -y install vegastrike

You can visit vegastrike wiki for further info on both playing and developing the game.

Vegastrike wiki