{"id":1018,"date":"2015-01-02T16:32:16","date_gmt":"2015-01-02T16:32:16","guid":{"rendered":"http:\/\/cdblog.cdstealer.com\/?p=1018"},"modified":"2015-01-02T16:32:16","modified_gmt":"2015-01-02T16:32:16","slug":"networkmanager-with-no-gui","status":"publish","type":"post","link":"https:\/\/cdblog.cdstealer.com\/?p=1018","title":{"rendered":"NetworkManager with no GUI"},"content":{"rendered":"<p>I'm writing this as systemd seems to be getting stronger and is replacing initd little by little. \u00a0Now if like me you have one or more \u00a0Linux systems that do not run a desktop environment. \u00a0You may find yourself using a few apps that normally require a GUI to be configured. \u00a0NetworkManager is one of those, but does allow you to use the CLI (nmcli).<\/p>\n<p>Here's how:<\/p>\n<p>Assuming you already have everything installed :)<\/p>\n<pre>systemctl enable NetworkManager<\/pre>\n<p>Will start networkmanager at boot.<\/p>\n<pre>nmcli d<\/pre>\n<p>will list all interfaces controlled by networkmanager.<\/p>\n<p>To add a connection eg wifi<\/p>\n<pre>nmcli c add ifname wlp5s0 type wifi ssid &lt;your ssid&gt;<\/pre>\n<p>This will create the file<\/p>\n<p>\/etc\/NetworkManager\/system-connections\/wifi-wlp5s0<\/p>\n<p>Which will contain the skeleton config (non working)<\/p>\n<pre>[connection]\r\nid=&lt;your ssid&gt;\r\nuuid=b083dd98-f1e0-4bc5-bff6-56c4a1b56e2f\r\ninterface-name=wlp5s0\r\ntype=wifi<\/pre>\n<pre>[wifi]\r\nssid=1027251N\r\nmode=infrastructure<\/pre>\n<p>We now need to configure the connection. \u00a0(additions highlighted)<\/p>\n<pre>[connection]\r\nid=&lt;your ssid&gt;\r\nuuid=b083dd98-f1e0-4bc5-bff6-56c4a1b56e2f\r\ntype=wifi<\/pre>\n<pre>[wifi]\r\nssid=1027251N\r\n<span style=\"color: #ff0000;\">mode=infrastructure<\/span>\r\n<span style=\"color: #ff0000;\">mac-address=00:23:14:B7:57:A0<\/span>\r\n<span style=\"color: #ff0000;\">security=wifi-security<\/span><\/pre>\n<pre><span style=\"color: #ff0000;\">[wifi-security]<\/span>\r\n<span style=\"color: #ff0000;\">key-mgmt=wpa-psk<\/span>\r\n<span style=\"color: #ff0000;\">auth-alg=open<\/span>\r\n<span style=\"color: #ff0000;\">psk=&lt;your ultra secure key&gt;<\/span><\/pre>\n<p>executing<\/p>\n<pre>nmcli c reload<\/pre>\n<p>will\/should now connect you :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I'm writing this as systemd seems to be getting stronger and is replacing initd little by little. \u00a0Now if like me you have one or more \u00a0Linux systems that do not run a desktop environment. \u00a0You may find yourself using a few apps that normally require a GUI to be configured. \u00a0NetworkManager is one of &hellip; <a href=\"https:\/\/cdblog.cdstealer.com\/?p=1018\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">NetworkManager with no GUI<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1018","post","type-post","status-publish","format-standard","hentry","category-gentoo"],"_links":{"self":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1018"}],"version-history":[{"count":1,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1018\/revisions"}],"predecessor-version":[{"id":1019,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=\/wp\/v2\/posts\/1018\/revisions\/1019"}],"wp:attachment":[{"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdblog.cdstealer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}