{"id":833,"date":"2021-12-03T20:20:32","date_gmt":"2021-12-03T14:20:32","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=833"},"modified":"2021-12-03T20:20:32","modified_gmt":"2021-12-03T14:20:32","slug":"how-to-connect-centos-server-to-the-internet-using-usb-wifi-adapter","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/how-to-connect-centos-server-to-the-internet-using-usb-wifi-adapter.html","title":{"rendered":"How to connect CentOS Server to the Internet using USB Wifi Adapter?"},"content":{"rendered":"\n<p>I was recently working on an Asus RS300 server, installed with CentOS 7 minimal installation before placing it to the datacenter. I didn&#8217;t have any RJ45 cable to get this connected to the internet at home. I had a spare &#8216;Linksys wusb600n&#8217; USB wifi adapter, that I wanted to try out. I connected it to the USB, and got the interface listed as wlp18s0b1 using ifconfig. <\/p>\n\n\n\n<p>To connect this to wifi, we can use nmcli like the following:<\/p>\n\n\n\n<p>Show the connection:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nmcli connection show<\/pre>\n\n\n\n<p>To connect to the wifi with the password, use the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nmcli dev wifi connect your-ssid password your-wifi-pass<\/pre>\n\n\n\n<p>Remember to replace &#8216;your-ssid&#8217; with the wifi name of your and &#8216;your-wifi-pass&#8217; with the password for your wifi. <\/p>\n\n\n\n<p>Once you run the above command, this should get connected to the wifi. Now, you can see the connection details and up the device like the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nmcli connection show\nnmcli connection up wlp18s0b1<\/pre>\n\n\n\n<p>Remember to replace &#8216;wlp18s0b1&#8217; with the one you can see in ifconfig. <\/p>\n\n\n\n<p>Good luck.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was recently working on an Asus RS300 server, installed with CentOS 7 minimal installation before placing it to the datacenter. I didn&#8217;t have any RJ45 cable to get this connected to the internet at home. I had a spare &#8216;Linksys wusb600n&#8217; USB wifi adapter, that I wanted to try out. I connected it to &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/how-to-connect-centos-server-to-the-internet-using-usb-wifi-adapter.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to connect CentOS Server to the Internet using USB Wifi Adapter?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[295,337,144,12],"tags":[156,238,622,621],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/833"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=833"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/833\/revisions"}],"predecessor-version":[{"id":834,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/833\/revisions\/834"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}