Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Adjust Screen Brightness for Linux Desktops

For many computers and laptops installed with Linux desktops, you can use shortcuts (usually Fn + Brightness_keys) to adjust screen brightness. This does not work for some laptops. Another way to adjust screen brightness is to use the following command.

    sudo setpci -s 00:02.0 F4.B=brightness_value

The value …

A Secure Way to Use Vino in Debian

VNC on Linux is not secure. Most implementations of VNC servers for Linux allows password only up to 8 characters. Such a VNC server is very vulnerable to brute-force attack. This article discuss a secure way to use VNC. The VNC (vino) server is started only when needed, thus reduce …

Interact with System Clipboard in Vim

The following are ways for a Vim session to interact (copy/cut, paste) with other Vim sessions or other applications.

Use X Windows Clipboard Directly

If you prefer to use X windows clipboard as the default buffer for Vim, put set clipboard=unnamedplus in your .vimrc file. This obviously makes …

Creative Use of Keepassx -- Odd Skills?

I had to schedule an event on Doodle. I wanted to fill in all possible regular meeting times (starting at 8:00 am with 30 minutes interval). I am such a lazy guy who never want to repeat the same thing for more than 3 times. Typing all these time …

Fix Microphone Problem of Skype in Debian

Install Pulseaudio if you only have ALSA. ALSA alone does NOT work with skype whatever people on the #Debian channel might think and tell you.

sudo apt-get install pulseaudio

Install pulseaudio volume control

sudo apt-get install pavucontrol

Run Skype.

Go to the Sound devices sections. Click on the Open PulseAudio …