CentOS 6 Net Install on Windows

Since the Chinese input method has not been installed ( and I’m not planning to install it), I will write this article in English.

Why CentOS 6, and why net install?

  1. Because my VPS provider LocVPS does not provide with CentOS 7, and I want to keep the local debugging computer almost the same as the production computer.
  2. Because I want to install CentOS on my USBKey, and I want burned the installation iso on that USBKey.

How to?

  1. Prepare your USB Key.
    1. At first I tryied UltraISO, which is a popular software. However maybe my UltraISO is too old, some error showed when I start from the USBKey burned by it. After google, I decided to use “dd for windows“, which works well.
    2. Dowload dd for windows from its website
    3. unzip it to a directory, and open a command window, cd into that directory.
    4. use dd –list to find your USBkey identification (Intruction), which should looks like \\?\Device\Harddisk1\Partition0 (tips: not the RDA one)
    5. Download the centos iso for net install (from say, USTC)
    6. dd if=your_centos_for_net_install.iso of=\\?\Device\Harddisk1\Partition0 –progress
    7. reboot and start from your USBKey. (Useually press F12 and choose “USB Key …”, if not search google for your BIOS)
  2. Start install
    1. Setup your IPV4 (and IPV6 address), the mask, and Name Server(DNS Server)!! I did not set the DNS server for the first time and failed.
    2. Choose URL installation method
    3. URL: http://mirrors.ustc.edu.cn/centos/6/os/x86_64 (tips: os, not isos; IHEP does not provide this img)
    4. Go!!
    5. Just use the whole disk (your installing USB Key). It’s ok, and I’m using it now.
    6. Choose desktop, or you will regret for it.
  3. Edit the etc
    1. edit /etc/bashrc, add the following lines:    alias vi=’vim’
      alias grep=’grep –color’
      alias ls=’ls –color’
      export LC_ALL=en_US.UTF-8
    2. edit ~/.bashrc, add the following lines:
      alias setssh=’eval $(ssh-agent -s); ssh-add ~/.ssh/id_rsa’

That’s it.