Monday, 12 May 2014

Debian的安装与配置经验

RHEL and Google Chrome are both my favourites. However, they can't live together recently, given Google does not support RHEL6. So, I have to look at Debian, which is another mature Linux distro.

Having tried a while, here is what I learnt:

Touchpad
By default, "Enable mouse clicks with touchpad" system setting in Gnome is not checked. Change it, if you like this feature.

Wireless network
Debian supports wireless network out of box, e.g. my AWUS036H works well with the default Debian installation. However, for some wireless adaptor, e.g. EDIMAX EW-7811Un, you need to install its driver yourself.

EDIMAX EW-7811Un installation
To install the driver, you need to build it from the source, for which you need get the toolkit and related headers onto your system.

  1. download EW-7811Un_Linux_driver_v1.0.0.5.zip from here and unzip it;
  2. apt-get install nautilus-open-terminal
  3. apt-get install build-essential
  4. apt-get install linux-headers-$(uname -r)
  5. bash install.sh
  6. echo blacklist rtl8192cu >> /etc/modprobe.d/blacklist.conf
  7. reboot
Flash Player
The default installation of Debian has Gnome as its desktop and Iceweasel as its default browser, which is based on Firefox. It has no Flash support by default, and you need to install it yourself.

  1. download Flash package and unzip it;
  2. put *.so into /usr/lib/mozilla/plugins/
Local Google Search Engine for Firefox
Firefox has a set of search engines installed by default. However, the Google search engine always take me to google.com, rather than my local one. This is inconvenient, particularly for the currency when you do shopping.
To fix this, you can simply remove it and add it back again using the "Manage Search Engines" option. 

Chinese Input
Debian does not support Chinese input out of box. I choose IBus as my choice.
  1. apt-get install ibus ibus-pinyin
Google Chrome
The reasons I like Chrome are its Google Dictionary and Google Cast extensions, and there is no similar addons in Firefox.

  1. download Chrome (*.deb);
  2. dpkg -i google-chrome-stable_current_i386.deb
Chinese in Chrome
To display Chinese fonts in websites, Chrome needs the fonts to be installed.

  1. apt-get -f install (to sort out any outstanding dependencies)
  2. apt-get install ttf-arphic-uming  ttf-arphic-ukai
Incognito in Chrome
vi /usr/share/applications/google-chrome.desktop
and append '--incognito' to any line like 'Exec=/usr/bin/google-chrome-stable .....'

Bluetooth
I have difficulty to make it work with my SC-HTB170 sound bar. The paring is ok, but the connecting is problematic. BTW, RHEL6.5 works well with my sound bar out of box.


Wednesday, 7 May 2014

How to install RHEL 6.5 via a USB pendrive?

For some reason, I was unable to boot the DVD properly on my new computer. This might be due to a problem with the optical drive or the DVD disk. So, here is another try and it works for me.


  1. download rhel-server-6.5-i386-dvd.iso to my old RHEL;
  2. insert a 4GB usb pendrive;
  3. find out the device name, e.g. sdb, with dmesg;
  4. dd if=./rhel-server-6.5-i386-dvd.iso of=/dev/sdb
  5. burn the iso onto a physical DVD disk


Then,

  1. insert the usb pendrive and the DVD disk into the new computer, and reboot it.
  2. press F10 to get into BIOS, and move the USB booting order to top;
  3. continue the booting, it works well.