{"id":1321,"date":"2010-12-30T14:46:33","date_gmt":"2010-12-30T14:46:33","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?p=1321"},"modified":"2012-01-02T02:47:04","modified_gmt":"2012-01-02T02:47:04","slug":"installing-edimax-ew-7318-usb-wlan-adaptor-on-centos","status":"publish","type":"post","link":"http:\/\/darenmatthews.com\/blog\/?p=1321","title":{"rendered":"Installing Edimax EW-7318 USB WLAN Adaptor on CentOS Linux"},"content":{"rendered":"<p><a href=\"http:\/\/darenmatthews.com\/blog\/wp-content\/uploads\/2011\/12\/EW-7318USg-217x205.jpg\"><img loading=\"lazy\" class=\"alignleft size-thumbnail wp-image-1323\" style=\"margin-left: 10px; margin-right: 10px;\" title=\"EW-7318USg 217x205\" src=\"http:\/\/darenmatthews.com\/blog\/wp-content\/uploads\/2011\/12\/EW-7318USg-217x205-150x150.jpg\" alt=\"EW-7318USg 217x205\" width=\"108\" height=\"108\" \/><\/a>Reproduced for the benefit of others who are attempting to get this USB Wireless LAN adaptor working on CentOS. The Edimax EW-7318 uses the RealTek chipset.<\/p>\n<p>Ralink RT2500 series chipsets are supported by the rt73usb\/rt2500usb kernel drivers. A typical supported device is the Belkin Wireless G USB Network Adapter (RT2571F chipset). This device requires the rt73usb firmware which is currently available from http:\/\/elrepo.org<!--more--><\/p>\n<p>[root@shimla xen]# ifconfig wlan0<br \/>\nwlan0\u00a0\u00a0\u00a0\u00a0 Link encap:Ethernet\u00a0 HWaddr 00:1F:1F:31:C7:03<br \/>\nBROADCAST MULTICAST\u00a0 MTU:1500\u00a0 Metric:1<br \/>\nRX packets:0 errors:0 dropped:0 overruns:0 frame:0<br \/>\nTX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br \/>\ncollisions:0 txqueuelen:1000<br \/>\nRX bytes:0 (0.0 b)\u00a0 TX bytes:0 (0.0 b)<\/p>\n<p>The first step is to install the RealTek firmware from the Elrepo repository:<\/p>\n<blockquote><p>[root@shimla xen]# yum &#8211;enablerepo=elrepo install rt73usb-firmware<br \/>\nLoaded plugins: fastestmirror<\/p>\n<p>Error getting repository data for elrepo, repository not found<\/p><\/blockquote>\n<p>The repository cannot be found because the RPM is not installed.\u00a0 So install the RPM:<\/p>\n<blockquote><p>[root@shimla xen]# rpm &#8211;import http:\/\/elrepo.org\/RPM-GPG-KEY-elrepo.org<br \/>\n[root@shimla xen]# rpm -Uvh http:\/\/elrepo.org\/elrepo-release-5-3.el5.elrepo.noarch.rpm<br \/>\nRetrieving http:\/\/elrepo.org\/elrepo-release-5-3.el5.elrepo.noarch.rpm<br \/>\nPreparing&#8230;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ########################################### [100%]<br \/>\n1:elrepo-release\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ########################################### [100%]<br \/>\n[root@shimla xen]#<\/p><\/blockquote>\n<p>Now that the RPM is installed, download and install the RT73 firmware:<\/p>\n<blockquote><p>[root@shimla xen]# yum &#8211;enablerepo=elrepo install rt73usb-firmware<br \/>\nLoaded plugins: fastestmirror<br \/>\nLoading mirror speeds from cached hostfile<br \/>\n* base: mirror01.th.ifl.net<br \/>\n* elrepo: mirrors.coreix.net<br \/>\n* extras: mirror01.th.ifl.net<br \/>\n* rpmforge: apt.sw.be<br \/>\n* updates: mirror01.th.ifl.net<br \/>\nelrepo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 1.9 kB\u00a0\u00a0\u00a0\u00a0 00:00<br \/>\nelrepo\/primary_db\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 517 kB\u00a0\u00a0\u00a0\u00a0 00:00<br \/>\nSetting up Install Process<br \/>\nResolving Dependencies<br \/>\n&#8211;&gt; Running transaction check<br \/>\n&#8212;&gt; Package rt73usb-firmware.noarch 0:1.8-5.elrepo set to be updated<br \/>\n&#8211;&gt; Finished Dependency Resolution<\/p>\n<p>Dependencies Resolved<\/p>\n<p>================================================================================<br \/>\nPackage\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Arch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Repository\u00a0\u00a0\u00a0\u00a0 Size<br \/>\n================================================================================<br \/>\nInstalling:<br \/>\nrt73usb-firmware\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 noarch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.8-5.elrepo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elrepo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5.9 k<\/p>\n<p>Transaction Summary<br \/>\n================================================================================<br \/>\nInstall\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1 Package(s)<br \/>\nUpgrade\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 Package(s)<\/p>\n<p>Total download size: 5.9 k<br \/>\nIs this ok [y\/N]: y<br \/>\nDownloading Packages:<br \/>\nrt73usb-firmware-1.8-5.elrepo.noarch.rpm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 5.9 kB\u00a0\u00a0\u00a0\u00a0 00:00<br \/>\nRunning rpm_check_debug<br \/>\nRunning Transaction Test<br \/>\nFinished Transaction Test<br \/>\nTransaction Test Succeeded<br \/>\nRunning Transaction<br \/>\nInstalling\u00a0\u00a0\u00a0\u00a0 : rt73usb-firmware\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\/1<\/p>\n<p>Installed:<br \/>\nrt73usb-firmware.noarch 0:1.8-5.elrepo<\/p>\n<p>Complete!<br \/>\n[root@shimla xen]#<\/p><\/blockquote>\n<p>At this point you can login to the X11 Gui and open a terminal.\u00a0 type &#8220;NetworkManager&#8221; and the card will initialise.\u00a0 You can then select the SSID and set any WPA\/WEP key.\u00a0 TIP:\u00a0 Use the same password for your keyring manager as your login! (see later).<\/p>\n<p>If you reboot at this stage, you will still not connect the the WLAN upon reload.\u00a0 You need to enable NetworkManager on startup:<\/p>\n<blockquote><p>chkconfig NetworkManager on<\/p><\/blockquote>\n<p>Now disable the network and wpa_supplicant services at boot time (NetworkManager now handles these):<\/p>\n<blockquote><p>chkconfig network off<br \/>\nchkconfig wpa_supplicant off<\/p><\/blockquote>\n<p>Now start NetworkManager now, without the need to reboot:<\/p>\n<blockquote><p>\/etc\/init.d\/NetworkManager start<\/p><\/blockquote>\n<p>Useful hint: The request for the keyring password, when using NetworkManager, can be suppressed by using the pam_keyring package. The pam_keyring package can be obtained from the RPMForge repository:<br \/>\nhttp:\/\/wiki.centos.org\/AdditionalResources\/Repositories\/RPMForge<\/p>\n<p>I already had the RPM installed so it was just a case of entering:<\/p>\n<blockquote><p>yum install pam_keyring<\/p><\/blockquote>\n<p>Once pam_keyring was installed, view the contents of the &#8220;gdm&#8221; file:<\/p>\n<blockquote><p>cat \/etc\/pam.d\/gdm<\/p><\/blockquote>\n<p>edit this file, adding &#8220;auth optional pam_keyring.so try_first_pass&#8221; and &#8220;session optional pam_keyring.so&#8221; in specific positions:<\/p>\n<blockquote><p>vi \/etc\/pam.d\/gdm<br \/>\ni<br \/>\nauth optional pam_keyring.so try_first_pass<br \/>\nsession optional pam_keyring.so<br \/>\n&lt;esc&gt;:wq<\/p><\/blockquote>\n<p>NOTE: The order in which this lines are placed in this file are important, here is a copy from a working system:<\/p>\n<blockquote><p>#%PAM-1.0<br \/>\nauth\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 required\u00a0\u00a0\u00a0 pam_env.so<br \/>\nauth\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 optional\u00a0\u00a0\u00a0 pam_keyring.so try_first_pass &lt;&#8212;<br \/>\nauth\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 include\u00a0\u00a0\u00a0\u00a0 system-auth<br \/>\naccount\u00a0\u00a0\u00a0 required\u00a0\u00a0\u00a0 pam_nologin.so<br \/>\naccount\u00a0\u00a0\u00a0 include\u00a0\u00a0\u00a0\u00a0 system-auth<br \/>\npassword\u00a0\u00a0 include\u00a0\u00a0\u00a0\u00a0 system-auth<br \/>\nsession\u00a0\u00a0\u00a0 optional\u00a0\u00a0\u00a0 pam_keyinit.so force revoke<br \/>\nsession\u00a0\u00a0\u00a0 include\u00a0\u00a0\u00a0\u00a0 system-auth<br \/>\nsession\u00a0\u00a0\u00a0 required\u00a0\u00a0\u00a0 pam_loginuid.so<br \/>\nsession\u00a0\u00a0\u00a0 optional\u00a0\u00a0\u00a0 pam_console.so<br \/>\nsession\u00a0\u00a0\u00a0 optional\u00a0\u00a0\u00a0 pam_keyring.so &lt;&#8212;<\/p><\/blockquote>\n<p>If your keyring password is different from your login password, you will still be prompted to enter it every time you login to your computer.\u00a0 I did warn you about this earlier.\u00a0 It&#8217;s possible to fix this but for my purposes, that&#8217;s as far as I will go now.\u00a0 I&#8217;m just happy the WLAN adaptor now works!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Reproduced for the benefit of others who are attempting to get this USB Wireless LAN adaptor working on CentOS. The Edimax EW-7318 uses the RealTek chipset. Ralink RT2500 series chipsets are supported by the rt73usb\/rt2500usb kernel drivers. A typical supported device is the Belkin Wireless G USB Network Adapter (RT2571F chipset). This device requires the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[48],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1321"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1321"}],"version-history":[{"count":9,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1321\/revisions"}],"predecessor-version":[{"id":1389,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1321\/revisions\/1389"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1321"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}