Posts from 2010-03

Set Paper Size of the Ubuntu System Globally
To change the paper format from or to letter resp. a4 for the Ubuntu installation do:

sudo dpkg-reconfigure libpaper1
sudo /etc/init.d/cups restart

Read on

Solve Boot Problems: The Kernel Did Not Find the Root Partition Using its UUID

On startup the system hung because the root UUID was not found.

So when I ran sudo blkid — executed from a live cd — it didn't show the root partition (all other partitions UUIDs were listed).

But tune2fs showed me its UUID

sudo tune2fs -l /dev/sda2

So I tried...

Read on

Install Opera


install Opera

sudo -i
echo "deb stable non-free"  >> /etc/apt/sources.list
wget -q -O- | sudo apt-key add -
aptitude update
aptitude install opera

Read on

Canon PIXMA MP970

My S/N: AAUM37505


Here is a quite positive review (German):

300,- für ein Multifunktionsdrucker ist nicht billig, aber man kriegt auch was für's Geld: Duplexdruck, Randlosdruck, 7 einzelne Tintentanks, USB und LAN, CD/DVD-Direktdruck, 2 Papierfächer (hinten und vorne-unten), Scanner mit Durchlichteinheit und Dia/Negativhalterung, Vista-Treiber. 2 Nachteile: es ist ein Monster, nimmt relativ...

Read on

Recompile the Ubuntu Kernel

To recompile the Ubuntu kernel start with:

git clone git://

change config

Depending on the libraries that you will need, do configure the kernel using one of the following:

using ncurses (sudo aptitude install libncurses5-dev)

make menuconfig

using GTK (sudo aptitude install libgtk2.0-dev libglib2.0-dev libglade2-dev)

make gconfig


Read on

Install Google Chrome

To add the gpg key and the ppa repository at once (works with Ubuntu>=9.10), do:

sudo add-apt-repository ppa:chromium-daily

This is for the daily builds. If you want the beta versions instead, use:

sudo add-apt-repository ppa:chromium-daily/beta

Then install:

sudo aptitude install chromium-browser-l10n

Read on

Set up a Unix User Account with SFTP Access but no other Rights (such as Shell Access)

An easier solution just by setting a line in the configuration of the ssd daemon can be found in the blog post Chroot SFTP users.

sudo aptitude install scponly


sudo -s
cd /usr/share/doc/scponly/setup_chroot
chmod +x

this adds the user etc...


Read on

Find out To What Package a File Belongs & What Files Belong to a Package

dpkg -S

Find out the files that belong to an installed package.

dpkg -S packagename


sudo apt-file update
apt-file search filename

Works like dpkg -S but also shows not installed packages that contain the file.

apt-file list packagename

Read on

Restore Grub2
After an installation of Windows 7, Grub2 would not start any more as Windows overwrote the boot loader section. So i did the following:

  1. Boot the Ubuntu Live CD.
  2. Find out correct disc and mount the root partition:

    sudo fdisk -l
    sudo mount /dev/sda2 /mnt
  3. If you have a separate boot partition...

Read on

Get Microsoft Office 2007 Fonts

MS Vista/ Office 2007 Windows 95-XP era Linux
Calibri Arial/Arial Black DejaVu Sans Serif Bitstream Vera Sans
Cambria Times New Roman/Georgia/Impact/Lucida Bold(?) DejaVu Serif (Bold) Bitstream Vera Serif
Candara Trebuchet MS
Consolas Lucida Console/Courier New DejaVu Bitstream Vera Mono
Constantia Book Antiqua/Palatino Linotype/Tahoma
Corbel Trebuchet MS(?)/Verdana
sudo aptitude install cabextract
cd "/raid/downloads/fonts/4 Microsoft Fonts/Office 2007 (extracted from Powerpoint Viewer 2007)"
cabextract -F PowerPointViewer.exe
sudo mkdir...

Read on

gpointing-device-settings – Manage Synaptic Touchpads on Linux

gpointing-device-settings lets you manage your Synaptic touchpads etc. (gsynaptics is deprecated, use gpointing-device-settings instead):

sudo apt-get update && sudo apt-get install gpointing-device-settings

Read on

Get sound working again after Suspending on a HP nx8220 notebook

sudo alsa force-reload

Read on

synergy and synergy+ (similar to x2x)


Installing synergy on Arch Linux (Arch Wiki entry):

sudo pacman -S synergy

Installing synergy on Mac OS X 10.10

brew install cmake qt
cd ~/Downloads
git clone
cd synergy
git checkout focus-fix-patch
./ conf -g2 --mac-sdk 10.10 --mac-identity Yosemite
./ build

Or use the nightly build:

Using it:

Create a config file...

Read on

Re-Enable Graphical Icons in the Gnome Menu

Somehow the icons for all entries in the Gnome menu were missing. Maybe I produced this mess or it was Gnome that changed the defaults... Whatever, I don't know. But here is how you get them back:


gconftool -s --type bool /desktop/gnome/interface/menus_have_icons true


gconftool -s --type bool /desktop/gnome/interface/menus_have_icons...

Read on

Logitech QuickCam Pro 9000

Find out your hardware version

unfortunately I bought the revision 8 as the following command reveals:

sudo lsusb -d 046d:0990 -v | grep bcdDevice

according to this revision has a bug so that you have to unplug the cam from time to time...

get HD video to work with Skype...

Read on

A Stopwatch on the Terminal

Using the bash builtin command time

You can just use the following terminal command to start the stopwatch:

time read -sn1

and press [Enter] when you want to take the time. As the output of the time command is a bit verbose, you may want the time command to only print...

Read on

gedit Markdown plugin

For an up-to-date version of the information about the gedit Markdown plugin go to the new blog post Markdown for the Gedit Text Editor on Ubuntu 11.04.

If you frequently have to create Markdown documents, you might want your text editor of choice to support you. M Fleury developed...

Read on

Speed up your Ubuntu karmic system

  • enable preload: sudo apt-get install -y preload (more: Change settings using sudo gedit /etc/preload.conf and display the log file using sudo cat /var/log/preload.log. A more extensive state file can be accessed on: /var/lib/preload/preload.state.)
  • disable Pango smoothing on Firefox export MOZ_DISABLE_PANGO=1. Put this in your ~/.bash_profile or ~/.bashrc.
  • start...

Read on