Posts from 2010-03

Set Paper Size of the Ubuntu System Globally

http://andreas.scherbaum.la/blog/archives/557-Papierformat-A4-oder-Letter-in-einer-Ubuntu-Installation.html
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. http://ubuntuforums.org/showthread.php?p=9020811#post9020811

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

http://wiki.ubuntuusers.de/OPERA
http://www.opera.com/support/kb/view/841/
https://help.ubuntu.com/community/OperaBrowser

installation

install Opera https://help.ubuntu.com/community/OperaBrowser

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

Read on

Canon PIXMA MP970

My S/N: AAUM37505

Review

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

http://wiki.ubuntuusers.de/Kernel
http://wiki.ubuntuusers.de/Baustelle/Kernel/Kompilierung
https://wiki.ubuntu.com/KernelTeam/KernelGitGuide

To recompile the Ubuntu kernel start with:

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-karmic.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

using...

Read on

Install Google Chrome

https://launchpad.net/chromium-project

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.

http://forum.ubuntuusers.de/post/1884322/
http://manpages.ubuntu.com/manpages/karmic/man1/scponly.1.
http://wiki.ubuntuusers.de/scponly
http://sublimation.org/scponly/wiki/index.php/Main_Page

sudo aptitude install scponly

configuration:

sudo -s
cd /usr/share/doc/scponly/setup_chroot
gunzip setup_chroot.sh.gz
chmod +x setup_chroot.sh
./setup_chroot.sh

this adds the user etc...

sudo...

Read on

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

http://wiki.ubuntuusers.de/apt-get#Zuordnung-von-Paketen-und-Dateien
http://www.debian.org/doc/manuals/apt-howto/ch-search.de.html#s-apt-file

dpkg -S

Find out the files that belong to an installed package.

dpkg -S packagename

apt-file

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

http://wiki.ubuntuusers.de/Grub_2#GRUB-2-wiederherstellen
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

http://www.oooninja.com/2008/01/calibri-linux-vista-fonts-download.html
http://embraceubuntu.com/2007/09/16/installing-vista-fonts-in-ubuntu

MS Vista/ Office 2007 Windows 95-XP era Linux OpenOffice.org
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)"
wget http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe
cabextract -F ppviewer.cab 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

http://www.emmolution.org/?p=144

sudo alsa force-reload
...

Read on

synergy and synergy+ (similar to x2x)

http://synergy-project.org/

Installation

Installing synergy on Arch Linux (Arch Wiki entry):

sudo pacman -S synergy

Installing synergy on Mac OS X 10.10

http://stackoverflow.com/questions/26923227/how-to-compile-synergy-on-mac

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

Or use the nightly build: https://synergy-project.org/nightly

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:

enable:

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

disable:

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

Read on

Logitech QuickCam Pro 9000

Find out your hardware version

http://www.quickcamteam.net/documentation/faq/how-many-versions-of-the-quickcam-pro-9000-are-there

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

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

according to quickcamteam.net 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

http://www.n00bsonubuntu.com/tips/improvebootinternetkarmic

  • enable preload: sudo apt-get install -y preload (more: http://wiki.ubuntuusers.de/tuning#Preload. 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