Archive for October, 2007

Different output for df -h and du for /tmp

October 31, 2007

There were some process running which were referring to the files in tmp, even though the files are deleted and that was causing the difference in output for df -h and du for /tmp

To kill those processes:

for i in `lsof | grep deleted | grep tmp |awk {'print $2'}`; do kill -9 $i; done

Protected: Vhost entries for svn

October 14, 2007

This content is password protected. To view it please enter your password below:

Clean semaphores owned by nobody

October 14, 2007

for i in `ipcs -s | grep nobody | awk ‘{print $2}’`; do ipcrm -s $i; done

Redirect webmail.domain.com to webmail on a cPanel server

October 14, 2007

Add the following in vhost for webmail.cdomain.com

ProxyPass / http://localhost:2095/
ProxyPassReverse / http://localhost:2095/
ProxyPreserveHost On

XGL/Compiz shortcuts

October 11, 2007

o Switch windows = Alt+Tab
o Arrange and view all windows = Moving the pointer to the top right screen corner turns on or off; clicking a window will zoom it to the front
o Switch desktops on cube = Ctrl+Alt+Left/Right Arrow (or moving your mouse to the edge of your screen and rolling your mouse wheel)
o Switch desktops on cube with the active window following = Ctrl+Shift+Alt+Left/Right Arrow
o Rotate cube manually = Ctrl+Alt+Left-click and grab an empty desktop space.
o Make window translucent/opaque = Either with the “transset” utility or Alt+Mouse wheel (or right clicking on a window’s title bar, and selecting the settings from ‘Appearance’)
o Zoom in once = Super-key+Right-click
o Zoom in manually = Super-key+Mouse wheel up
o Zoom out manually = Super-key+Mouse wheel down
o Move window = Alt+Left-click
o Snap move window (will stick to borders) = Ctrl+Shift+Left-click
o Resize window = Alt+Right-click
o Bring up the window below the top window = Alt+Middle-click
o Slow-motion = Shift+F10
o Water = Hold Ctrl+Super key, and move mouse
o Rain = Shift-F9

Ubuntu 7.10 – Coming soon

October 5, 2007

(more…)