I have installed centos 6.4 on a desktop and wanted to access it mostly remotely. For this, I tried http://www.serverschool.com/server-configuration/3-ways-to-configure-services-to-start-at-boot-in-centos-part-1/ That didn't work - so tried Start network service at boot time on CentOS because my desktop is also on wlan. That didn't work. So now I am stuck. Any inputs appreciated on how to troubleshoot this.
1 Answer
Edit the ifcfg for this interface. For example, using wlan0.
/etc/sysconfig/network-scripts/ifcfg-wlan0
Verify that the ONBOOT selection is enabled.
ONBOOT="yes"
Configure services to run at boot
chkconfig messagebus off
chkconfig wpa_supplicant off
chkconfig NetworkManager off
chkconfig network on
Reference link
-
Thanks. I looked at the link. Now the machine hangs on booting. Here is what I did 1. Looked at /etc/sysconfig/network-scripts/ifcfg-wlan0. Could not find it.Created one file with ifcfg-wlan0 and added ONBOOT-"yes" I did do iwconfig and it reported the wireless card fine. Then I just did vi /etc/sysconfig/wpa_supplicant and added interfaces = -iwlan0. I did not go to the next step of editing wpa_supplicant.conf since I did not know what to put it in psk="NETWORKPSK". I did do all the chkconfig that were mentioned and rebooted. Now the machine hangs. Is there a way to troubleshoot this now?– doonMay 6, 2013 at 14:08
-
-
Sorry that was a typo in the message I did do ONBOOT="yes". So now this is what I have done. Created ifcfg-wlan with ONBOOT="yes". Then vi /etc/sysconfig/wpa_supplicant and added interfaces = -iwlan0. Then configured the wpa_supplicant.confg with correct PSK/ssid. Then did the chkconfig. Reboot. Nothing.– doonMay 10, 2013 at 17:40
-
Then configured the wpa_supplicant.conf as on linuxdo.blogspot.in/2012/06/…. When I do this wpa_supplicant -iwlan0 -c/root/linuxdo.conf I get "Trying to associate with 00:8e:f2:5d:23:6c (SSID='CorrectSSID' freq=2442 MHz) CTRL-EVENT-DISCONNECTED bssid=00:8e:f2:5d:23:6c reason=0 Associated with 00:8e:f2:5d:23:6c WPA: Key negotiation completed with 00:8e:f2:5d:23:6c [PTK=CCMP GTK=CCMP] CTRL-EVENT-CONNECTED - Connection to 00:8e:f2:5d:23:6c completed (auth) [id=0 id_str=] WPA: Invalid EAPOL-Key MIC - dropping packet" .– doonMay 10, 2013 at 17:41
-
So ultimately it seems that there is a problem in connecting to the wireless card via wpa_supplicant but no issue with network manager (which I presume does not use wpa_supplicant). I don't know if this can be discussed any longer in this forum but just wanted to put it out there. Thanks– doonMay 10, 2013 at 18:12
ntsysv
command to enablessh
service at startup