Dual head with xrandr 1.2 revisited

Posted on: Fri, 11/16/2007 - 04:04 By: Huahai

In this post, I discussed "clone" mode of dual head with xrandr 1.2. Now I got an extra monitor, and would like to use "xinerama" mode, wherein the built-in laptop LCD and the external monitor share a single virtual screen. To set this up, I changed my /etc/X11/xorg.conf to add a monitor section for the external monitor:

Section "Device"
Identifier "Intel 965GM"
Driver "intel"
BusID "PCI:0:2:0"
Screen 0
Option "XAANoOffscreenPixmaps" "true"

Complete OpenSSH Client Public Key Solution on Debian

Posted on: Mon, 11/12/2007 - 10:14 By: Huahai

My work requires me to connect to many different SSH servers, and I have different passwords for each server. It's a pain in the neck trying to type in many different passwords everyday. The obvious solution is to use OpenSSH's public key login solution, so passwords are no longer needed to connect to SSH servers from a single client (e.g. my office desktop).

Key Generation and Distribution

To use public key authentication, it is necessary to generate a pair of keys on your client machine. Do the following as normal user:

mkdir ~/.ssh

Backup Linux Laptop with USB Hard-disk Enclosure: a Lightweight Solution

Posted on: Mon, 11/12/2007 - 00:00 By: Huahai

Most of Linux laptop users have done some customizations on the system so it works the way we wanted. Now we want to save the fruit of our hard labor in case bad things happen. We want to backup not just the /home directory, but the whole / directory, minus some runtime generated files. In the past I have used some heavy-weight applications such as unison and backuppc. These worked well, but they required setting up servers that run all the time.

Use Vim to read manual page

Posted on: Fri, 11/09/2007 - 22:10 By: Huahai

Command line manual page is an indispensable tool for working with Linux system.If you forget how to use a command, just type man followed by the name of the command. One thing I don't like about the manual system on my Debian sid is that it uses most to display the manual. The key bindings of most feel awkward for me since I am used to vim. Of course, there are many "vimers" like me, and they've found ways to fix this.

Running Windows Vista on Debian Linux with VirtualBox

Posted on: Sun, 11/04/2007 - 00:26 By: Huahai

All of my laptops are now running Debian based Linux. It works great. Linux handles all my daily works well. However, there are occasions where I need a Windows machine. For example, I recently need to deliver a lecture on a system that runs only on Windows. Also, in the past, we developed a system that works only on Windows, and I still need to demonstrate it from time to time. Of course, the solution is to run Windows on a virtual machine on top of Linux. In the last couple of years, I have been using VMware for this purpose. However, I was not very impressed by its performance. I remember last year during a presentation, the virtual machine was so slow that my demonstration was negatively impacted by it.

Open source edition

电脑病毒, Linux和中国

Posted on: Wed, 10/31/2007 - 01:39 By: Huahai


A Thinkpad X61 Hotkeys Solution on Debian Linux

Posted on: Sun, 10/28/2007 - 23:41 By: Huahai

On my old Thinkpad X31, there is a nice little program called tpb that makes all Thinkpad hotkeys work on Linux. However, that project hasn't been updated for two years, and tpb does not work with the newer Thinkpad models. On my new X61, notably, the sound volume controls are broken: volume UP and volume Down keys produce the same effect - bring the volume to the half level. It seems that piece of hardware called nvram, on which tpb relies, now produces different values than older models. So, I have to ditch tpb.

Use XRandR 1.2 to Swtich on External Display for Thinkpad Laptop

Posted on: Sun, 10/28/2007 - 15:00 By: Huahai

Thinkpad X61 has an VGA output port, so it supports dual-head display. However, with the Intel GMA965 graphics chipset in X61, the thinkpad_acpi (used to be called ibm_acpi) kernel module does not seem to support switching on or off this VGA port any more. The traditionally used commands, such as "echo crt_enable > /proc/acpi/ibm/video", no longer work.
Fortunately, the xserver-xorg-video-intel display driver supports xrandr 1.2. extension in recent versions of Xorg X server. So we can use xrandr to dynamically switch on or off the external VGA display, and much more.

Subscribe to Linux