Move Ubuntu window close/maximize/minimize buttons to the left or right side: quick one-liners.

For Gnome2 with the metacity window manager (eg Ubuntu versions prior to 11.10): Open a Terminal (Applications -> Accessories -> Terminal), or press Alt-F2 to bring up the Run Application dialog. To put window buttons on the left-hand side, OSX-style, on a single line type: gconftool-2 –set /apps/metacity/general/button_layout –type string close,maximize,minimize:menu For the right-hand side, […]

Zero hassle auto-updates for Ubuntu

I recently discovered that a feature that I’ve always wanted in Ubuntu (and Debian) already exists, and has actually been available in past releases for years. By tweaking the settings in /etc/apt/apt-conf.d/10periodic and¬†/etc/apt/apt.conf.d/50unattended-upgrades, you can enable periodic auto-updates¬†and auto-cleaning of downloaded package files. Essentially something equivalent to running sudo apt-get update; sudo apt-get -y –force-yes […]

Hide the Desktop icons in Gnome for a clutter free Ubuntu

Quick tip … want to hide all the icons cluttering up your Gnome Desktop ? Run gconf-editor (Alt-F2, type gconf-editor, Press “Run”) and navigate the tree to find /apps/nautilus/preferences/show_desktop. Set the value to false (uncheck the checkbox), and your Desktop icons should disappear. You can still access any files on the Desktop using the file […]

Edit remote files over SSH / SCP using GVim

GVim, one of the graphical versions of vim for X11, has a handy feature … you can edit remote files over ssh. Launch GVim, and issue the command: :e scp://username@someremotehost/./path/to/file where username is your username on the remote server, someremote host is the hostname or ip of the server and /./path/to/file is just that … […]