Once upon a time my OS's crashed. I cast the spell "google" to find next victim for my laptop OS. Choose CentOS. Step by step install CentOS, and describe problems that I found in my way.
Wireless. WPA2 network setup
First we need to install wireless-tools and other tools we need for encryption and so on.
yum install wireless_tools wpa_supplicant dbus
For example, my wireless inteface is wlan0. Edit the ifcfg-wlan0 file.
<etc/sysconfig/network-scripts/ifcfg-wlan0
Now we need to edit wpa_supplicant configs.
/etc/sysconfig/wpa_supplicant
DRIVERS="-Dwext" (or we can use -Dn180211)
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"
Using wpa_passphrase utility create base wpa_supplicant conf.
wpa_passphrase >> /etc/wpa_supplicant/wpa_supplicant.conf
And in result: /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel
network={ ssid="MyESSID" scan_ssid=1 key_mgmt=WPA-PSK #psk="" psk=843f314c3357dd62e8f1865fa8d6a06918e26c0e7bdc0b4208b49d975333fce }
In the end of configuration we need to put this services into boot.
> chkconfig messagebus on > chkconfig wpa_supplicant on > echo "ifup wlan0" >> /etc/rc.local
> service messagebus start > service wpa_supplicant start > ifup wlan0