{"id":831,"date":"2014-08-20T11:17:00","date_gmt":"2014-08-20T16:17:00","guid":{"rendered":"https:\/\/www.softwareab.net\/wordpress\/?p=831"},"modified":"2014-08-20T11:17:00","modified_gmt":"2014-08-20T16:17:00","slug":"centos-wireless-problems-dumping-networkmanager","status":"publish","type":"post","link":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/","title":{"rendered":"CentOS Wireless Problems and Dumping NetworkManager"},"content":{"rendered":"<p>Hello All, it&#8217;s been a while since I&#8217;ve posted. This post will discuss how you can dump <a href=\"http:\/\/www.google.com\/search?q=networkmanager+sucks\">NetworkManager<\/a> and still get your wireless to work on Linux (CentOS 6.5, specifically). Read on for more!<\/p>\n<p><!--more--><\/p>\n<h3>What&#8217;s the Problem?<\/h3>\n<p>All of a sudden, I noticed that NetworkManager simply wasn&#8217;t working for me. I&#8217;m sure it was the result of some update or other (after all, I develop a lot and software comes\/goes constantly on my systems). I really don&#8217;t care why it didn&#8217;t work. And I&#8217;m not alone: as <a href=\"http:\/\/www.google.com\/search?q=networkmanager+broken\">these threads<\/a> reveals, NetworkManager has a shoddy reputation. So instead of spending lots of time solving the problem, let&#8217;s see if we can just dump it.<\/p>\n<h3>Stop NetworkManager in its Tracks&#8230;<\/h3>\n<p>While deinstalling NetworkManager would work, let&#8217;s not be so hasty. Instead run these commands:<\/p>\n<pre>\r\nsudo service NetworkManager stop\r\nsudo chkconfig NetworkManager off\r\n<\/pre>\n<p>Those commands stop the service, and prevent it from restarting.<\/p>\n<p>Next, let&#8217;s change the <code>NM_CONTROLLED<\/code> flag in all of the <code>\/etc\/sysconfig\/network-scripts\/ifcfg-XXX<\/code> files:<\/p>\n<pre>\r\nfor i in \/etc\/sysconfig\/network-scripts\/ifcfg-*; do\r\n  sudo sed -i -e 's#NM_CONTROLLED=\\(.*\\)#NM_CONTROLLED=no#' $i\r\ndone\r\n<\/pre>\n<h3>&#8230;and use <code>wpa_supplicant<\/code><\/h3>\n<p>Let&#8217;s replace <a href=\"http:\/\/en.wikipedia.org\/wiki\/NetworkManager\">NetworkManager<\/a> with <a href=\"https:\/\/wiki.archlinux.org\/index.php\/WPA_supplicant\"><code>wpa_supplicant<\/code><\/a>. It cross-platform supplicant with support for most <a href=\"http:\/\/en.wikipedia.org\/wiki\/Wireless_security\">wireless encryption types<\/a> (WEP, WPA and WPA2) and is suitable for desktops, laptops and embedded systems.<\/p>\n<p>But before we jump into <code>wpa_supplicant<\/code>, let&#8217;s check out a few things first:<\/p>\n<ul>\n<li><strong>Get the Interface.<\/strong> Use the <a href=\"http:\/\/linux.die.net\/man\/8\/ip\"><code>ip link<\/code><\/a> command to show our interfaces:\n<pre>\r\n[root@co1 ~]# <strong>ip link<\/strong>\r\n1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN \r\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n2: p5p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000\r\n    link\/ether f0:4d:a2:83:87:fa brd ff:ff:ff:ff:ff:ff\r\n3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000\r\n    link\/ether 00:23:15:62:0e:ac brd ff:ff:ff:ff:ff:ff\r\n5: pan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN \r\n    link\/ether fe:4b:21:ed:29:27 brd ff:ff:ff:ff:ff:ff\r\n<\/pre>\n<p>From the above, we see that <code>wlan0<\/code> is a good start; the <code>lo<\/code> is the loopback interface, the <code>p5p1<\/code> is the physical Ethernet wired port, and the <code>pan0<\/code> is a <a href=\"http:\/\/www.linux.com\/learn\/tutorials\/346552-personal-area-networking-with-bluetooth\">Personal Area Networking<\/a> interface created for Bluetooth support. So we will concentrate on <code>wlan0<\/code>.<\/li>\n<li><strong>Play with <code>iwconfig<\/code>.<\/strong> The <a href=\"http:\/\/www.linuxcommand.org\/man_pages\/iwconfig8.html\"><code>iwconfig<\/code><\/a> command is similar to <a href=\"http:\/\/linux.die.net\/man\/8\/ifconfig\"><code>ifconfig(8)<\/code><\/a>, but is dedicated to the wireless interfaces. Use it to set wireless-specific parameters of a network interface, and we can use it to experiment with some things:<\/li>\n<\/ul>\n<p>Lots more to cover&#8230;<\/p>\n<p>1030  sudo rfkill list all<br \/>\n 1031  sudo rfkill unblock wifi<br \/>\n 1032  sudo rfkill list all<br \/>\n 1033  sudo dhclient wlan0<br \/>\n 1034  sudo ifup wlan0<br \/>\n 1035  ifconfig 0a<br \/>\n 1036  ifconfig -a<br \/>\n 1037  sudo vi \/etc\/sysconfig\/network-scripts\/ifcfg-wlan0<br \/>\n 1038  sudo ifdown wlan0<br \/>\n 1039  sudo ifup wlan0<br \/>\n 1040  sudo ifconfig wlan0 up<br \/>\n 1041  sudo iwconfig wlan0<br \/>\n 1042  sudo iwconfig wlan0 essid &#8220;spark&#8221;<br \/>\n 1043  sudo iwconfig wlan0<br \/>\n 1044  sudo iwconfig<br \/>\n 1045  sudo iwconfig &#8211;help<br \/>\n 1046  lspci -v<br \/>\n 1047  lspci -v | grep Wirele<br \/>\n 1048  sudo wpa_supplicant<br \/>\n 1049  sudo ip link<br \/>\n 1050  sudo wpa_supplicant -B -i wlan0 -c \/etc\/wpa_supplicant\/wpa_supplicant.conf<br \/>\n 1051  wpa_cli<br \/>\n 1052  sudo dhcpd wlan0<br \/>\n 1053  ifconfig -a<br \/>\n 1054  sudo ifup wlan0<\/p>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Hello All, it&#8217;s been a while since I&#8217;ve posted. This post will discuss how you can dump NetworkManager and still get your wireless to work on Linux (CentOS 6.5, specifically). Read on for more!<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[42,55,19],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CentOS Wireless Problems and Dumping NetworkManager - softwareab<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CentOS Wireless Problems and Dumping NetworkManager - softwareab\" \/>\n<meta property=\"og:description\" content=\"Hello All, it&#8217;s been a while since I&#8217;ve posted. This post will discuss how you can dump NetworkManager and still get your wireless to work on Linux (CentOS 6.5, specifically). Read on for more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/\" \/>\n<meta property=\"og:site_name\" content=\"softwareab\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cloudraticsolutions\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/cloudraticsolutions\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-20T16:17:00+00:00\" \/>\n<meta name=\"author\" content=\"Andrew Bruce\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@realcloudratics\" \/>\n<meta name=\"twitter:site\" content=\"@realcloudratics\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrew Bruce\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/\"},\"author\":{\"name\":\"Andrew Bruce\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"headline\":\"CentOS Wireless Problems and Dumping NetworkManager\",\"datePublished\":\"2014-08-20T16:17:00+00:00\",\"dateModified\":\"2014-08-20T16:17:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/\"},\"wordCount\":375,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"keywords\":[\"centos\",\"linux\",\"network\"],\"articleSection\":[\"Network\",\"Teknocratica\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/\",\"name\":\"CentOS Wireless Problems and Dumping NetworkManager - softwareab\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#website\"},\"datePublished\":\"2014-08-20T16:17:00+00:00\",\"dateModified\":\"2014-08-20T16:17:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.softwareab.net\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"centos\",\"item\":\"https:\/\/www.softwareab.net\/wordpress\/tag\/centos\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CentOS Wireless Problems and Dumping NetworkManager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#website\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/\",\"name\":\"softwareab\",\"description\":\"Technocratica, Technopolitik, Technophobia\",\"publisher\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.softwareab.net\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\",\"name\":\"Andrew Bruce\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg\",\"contentUrl\":\"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg\",\"width\":400,\"height\":330,\"caption\":\"Andrew Bruce\"},\"logo\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/\"},\"description\":\"Team-oriented systems mentor with deep knowledge of numerous software methodologies, technologies, languages, and operating systems. Excited about turning emerging technology into working production-ready systems. Focused on moving software teams to a higher level of world-class application development. Specialties:Software analysis and development...Product management through the entire lifecycle...Discrete product integration specialist!\",\"sameAs\":[\"http:\/\/cloudraticsolutions.net\/\",\"https:\/\/www.facebook.com\/cloudraticsolutions\/\",\"https:\/\/twitter.com\/realcloudratics\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CentOS Wireless Problems and Dumping NetworkManager - softwareab","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/","og_locale":"en_US","og_type":"article","og_title":"CentOS Wireless Problems and Dumping NetworkManager - softwareab","og_description":"Hello All, it&#8217;s been a while since I&#8217;ve posted. This post will discuss how you can dump NetworkManager and still get your wireless to work on Linux (CentOS 6.5, specifically). Read on for more!","og_url":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/","og_site_name":"softwareab","article_publisher":"https:\/\/www.facebook.com\/cloudraticsolutions\/","article_author":"https:\/\/www.facebook.com\/cloudraticsolutions\/","article_published_time":"2014-08-20T16:17:00+00:00","author":"Andrew Bruce","twitter_card":"summary_large_image","twitter_creator":"@realcloudratics","twitter_site":"@realcloudratics","twitter_misc":{"Written by":"Andrew Bruce","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/#article","isPartOf":{"@id":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/"},"author":{"name":"Andrew Bruce","@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"headline":"CentOS Wireless Problems and Dumping NetworkManager","datePublished":"2014-08-20T16:17:00+00:00","dateModified":"2014-08-20T16:17:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/"},"wordCount":375,"commentCount":0,"publisher":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"keywords":["centos","linux","network"],"articleSection":["Network","Teknocratica"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/","url":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/","name":"CentOS Wireless Problems and Dumping NetworkManager - softwareab","isPartOf":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#website"},"datePublished":"2014-08-20T16:17:00+00:00","dateModified":"2014-08-20T16:17:00+00:00","breadcrumb":{"@id":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.softwareab.net\/wordpress\/centos-wireless-problems-dumping-networkmanager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.softwareab.net\/wordpress\/"},{"@type":"ListItem","position":2,"name":"centos","item":"https:\/\/www.softwareab.net\/wordpress\/tag\/centos\/"},{"@type":"ListItem","position":3,"name":"CentOS Wireless Problems and Dumping NetworkManager"}]},{"@type":"WebSite","@id":"https:\/\/www.softwareab.net\/wordpress\/#website","url":"https:\/\/www.softwareab.net\/wordpress\/","name":"softwareab","description":"Technocratica, Technopolitik, Technophobia","publisher":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.softwareab.net\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600","name":"Andrew Bruce","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg","contentUrl":"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg","width":400,"height":330,"caption":"Andrew Bruce"},"logo":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/"},"description":"Team-oriented systems mentor with deep knowledge of numerous software methodologies, technologies, languages, and operating systems. Excited about turning emerging technology into working production-ready systems. Focused on moving software teams to a higher level of world-class application development. Specialties:Software analysis and development...Product management through the entire lifecycle...Discrete product integration specialist!","sameAs":["http:\/\/cloudraticsolutions.net\/","https:\/\/www.facebook.com\/cloudraticsolutions\/","https:\/\/twitter.com\/realcloudratics"]}]}},"_links":{"self":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/831"}],"collection":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/comments?post=831"}],"version-history":[{"count":1,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/831\/revisions"}],"predecessor-version":[{"id":832,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/831\/revisions\/832"}],"wp:attachment":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/media?parent=831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/categories?post=831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/tags?post=831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}