Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Cygwin Portable

** Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! **

Cygwin Portable

  1. The portable versions has some problems

    • Vim, edit mode, backspace doesn't work sometimes (identation related)
  2. Cygwin portable scroll doesn't work after Vim is opened and then closed. but if …

LaTeX for Chinese

  1. xetex is the state-of-art way for dealing with Chinese type setting. You can install xetex on Debian series of Linux distributions (Debian, Ubuntu, Linux Mint, etc.) using the following command.
wajig install texlive-xetex 

You can use command xelatex to compile. The utf-8 format is preferred.

There are 2 good ways …

Power Settings in Linux with GNOME Desktop

Full control of the power settings in Linux with Gnome Desktop can be done through dconf-editor at org->gnome->settings-daemon->plugins->power. The default way to determine low battery, critical low battery and to carray out critical low action is by counting left battery time. You can change the way …

Dual Monitor for Linux Desktop

  1. Type xrandr or xrandr -q in terminal to dispaly information of all available output device. Then you can use the following commands to set dual display.
    xrandr --output VGA1 --auto 
    xrandr --output VGA1 --same-as LVDS1 --auto
    xrandr --output VGA1 --mode 1024x800
    xrandr --output VGA1 --off
    

where VGA1 and LVDS1 should …

Rescue Linux from GUI Freezing

The kernel of Linux is usually very stable, but the existing free desktop environments are craps. Amongs these desktop environments I tried (Gnome, Xfce, LXDE and so on), none is even close to the desktop environments in Windows and Mac. I do not require desktop environments in Linux to be …

Install the GSL Library

GSL is an advance C/C++ library that is widely used. To install GSL, you can download the source file and following instruction in the included README and INSTALL document. For Unix/Linux users, the GSL library is often availabe in the repository. For example, you can use the following …