{"id":474,"date":"2019-11-20T12:42:39","date_gmt":"2019-11-20T12:42:39","guid":{"rendered":"http:\/\/blog.davcloud.top\/?p=474"},"modified":"2019-11-20T14:20:46","modified_gmt":"2019-11-20T14:20:46","slug":"connect-to-wi-fi-with-terminal-command-in-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/blog.davcloud.top\/?p=474","title":{"rendered":"Connect to Wi-Fi with terminal command in Ubuntu 16.04"},"content":{"rendered":"\n<h2>Abstract<\/h2>\n\n\n\n<p>This article aims at recording how to connect to Wi-Fi in terminal command without GUI settings.<\/p>\n\n\n\n<p class=\"has-text-color has-vivid-green-cyan-color\">Note: Though this is for Ubuntu 16.04.6, it may still adapt to the similar version like Ubuntu 18.04.<\/p>\n\n\n\n<h2>Step 1. Restart network-manager service<\/h2>\n\n\n\n<p>Restart network-manager service with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service network-manager restart<\/code><\/pre>\n\n\n\n<h2>Step 2. List available Wi-Fi<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nmcli dev wifi<\/code><\/pre>\n\n\n\n<p>Then the available Wi-Fi will be shown like this:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"588\" height=\"541\" src=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-38.png\" alt=\"\" class=\"wp-image-480\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-38.png 588w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-38-300x276.png 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/figure><\/div>\n\n\n\n<h2>Step 3. Connect to the Wi-Fi<\/h2>\n\n\n\n<p>Connect to the Wi-Fi with the command and format below, we take &#8220;eduroam&#8221; as an example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nmcli dev wifi connect 'eduroam' password '12345678' iface wlp3s0<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-very-dark-gray-color\">In the example above, eduroam is the SSID of the Wi-Fi, 12345678 is the password, and wlp3s0 is the name of the wireless network device. To check the name of wireless network device, use the command below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ifconfig<\/code><\/pre>\n\n\n\n<p>Then the network device will be shown:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"588\" height=\"375\" src=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-39.png\" alt=\"\" class=\"wp-image-484\" srcset=\"https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-39.png 588w, https:\/\/blog.davcloud.top\/wp-content\/uploads\/2019\/11\/image-39-300x191.png 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/figure><\/div>\n\n\n\n<p>It is clear that wlp3s0 is the name of wireless network device.<\/p>\n\n\n\n<h2>Step 4. Check the connection status<\/h2>\n\n\n\n<p>Use command below to check whether the connection is success or not:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nmcli dev status<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Abstract This article aims at recording how to connect to Wi-Fi in terminal command without GUI settings. Note: Though this is for Ubuntu 16.04.6, it may still adapt to the similar version like Ubuntu 18.04. Step 1. Restart network-manager service Restart network-manager service with the following command: Step 2. List available Wi-Fi Then the available [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[117,25,116],"_links":{"self":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/474"}],"collection":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=474"}],"version-history":[{"count":10,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=\/wp\/v2\/posts\/474\/revisions\/487"}],"wp:attachment":[{"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.davcloud.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}