<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ben Kincaid</title>
    <description>The latest articles on DEV Community by Ben Kincaid (@bvkin).</description>
    <link>https://dev.to/bvkin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F248959%2F81821c17-b190-43c0-9507-f76338945d12.jpeg</url>
      <title>DEV Community: Ben Kincaid</title>
      <link>https://dev.to/bvkin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bvkin"/>
    <language>en</language>
    <item>
      <title>Connecting to your network on Centos 8 minimal (maybe trickier than you'd expect)</title>
      <dc:creator>Ben Kincaid</dc:creator>
      <pubDate>Wed, 23 Oct 2019 16:07:25 +0000</pubDate>
      <link>https://dev.to/bvkin/connecting-to-your-network-on-centos-8-minimal-maybe-trickier-than-you-d-expect-3791</link>
      <guid>https://dev.to/bvkin/connecting-to-your-network-on-centos-8-minimal-maybe-trickier-than-you-d-expect-3791</guid>
      <description>&lt;p&gt;If you like linux as well as playing with the latest and greatest tools than the recent release of Centos 8 may have been on your radar. &lt;/p&gt;

&lt;p&gt;In my free time I like to experiment with various devops tools and technologies, all of which I've provisioned on Centos 7. I also like to write a fair bit of automation for them. So when the new release came out I figured that this would be a perfect opportunity to tear everything down and start from scratch to see if I could get things back to the same state. I think this is a great practice to test the robustness of your infrastructure and find areas that could use improvement. It's probably a bad idea to do something this extreme in production, but if it's out of your house for fun... who really cares what breaks, right?&lt;/p&gt;

&lt;p&gt;The installation process is pretty much the same as it was in past versions. Not really much to say, but here's a &lt;a href="https://linoxide.com/how-tos/centos-7-step-by-step-screenshots/"&gt;decent guide&lt;/a&gt; if you want to know more. &lt;/p&gt;

&lt;p&gt;For the installation I chose &lt;code&gt;minimal server&lt;/code&gt; as I only &lt;code&gt;ssh&lt;/code&gt; into this machine so a GUI is just a waste of resources. To connect to my network I generally use &lt;code&gt;NetworkManager&lt;/code&gt; and the included cli tool &lt;code&gt;nmcli&lt;/code&gt; as this is the recommended tool. &lt;/p&gt;

&lt;p&gt;The standard command used to connect to your network via wifi...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$nmcli connection add con-name &amp;lt;your-network&amp;gt; type wifi ssid &amp;lt;your-ssid&amp;gt; ifname &amp;lt;your-device-name&amp;gt;`- registers a connection for your network
$nmcli con modify &amp;lt;your-new-connection&amp;gt; wifi-sec.key-mgmt wpa-psk
$nmcli con modify &amp;lt;your-new-connection&amp;gt; wifi-sec.psk &amp;lt;password&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;If your network is not password protected the last two commands are not necessary. &lt;/p&gt;

&lt;p&gt;Normally this would just work, but this time around I got back an error instead...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Error: Connection activation failed: No suitable device found for this connection (device lo not available because device is strictly unmanaged).
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;After a little investigation... a.k.a checking the logs I noticed that there's a missing plugin.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$journalctl -u NetworkManager
...
Oct 17 20:41:21 localhost.localdomain NetworkManager[960]: &amp;lt;info&amp;gt; [1571359281.1533] manager: (wlp0s20f3): 'wifi' plugin not available; creating generic device
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;There was a lot more here, but I took it out for simplicity. The real thing to note here, if you have this problem is &lt;code&gt;'wifi' plugin not available;&lt;/code&gt;. Specifically this means you are missing the plugin &lt;code&gt;NetworkManager-wifi&lt;/code&gt;. To verify you can run the following and not that it does not appear.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$sudo dnf list | grep NetworkManager

NetworkManager.x86_6 1:1.14.0-14.e18
NetworkManager-libnm.x86_6 1:1.14.0-14.e18
NetworkManager-team.x86_6 1:1.14.0-14.e18
NetworkManager-tui.x86_6 1:1.14.0-14.e18
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Ethernet here will not work either as there more additional missing plugins. So how does when install network plugins without any internet? The only way I've managed to do so is by pulling it from the iso used to install. In my case installed via usb, but whichever way you used you should be able to mount the iso as a device to pull it from. This will require root privileges.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo mkdir /media/CentOS
$ mount -o loopback,rw /dev/sdb2 /media/CentOS
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Making the &lt;code&gt;/media/CentOS&lt;/code&gt; directory and mounting the device at this location is necessary as &lt;code&gt;dnf&lt;/code&gt; has this location preset as a repo to install base OS packages from. This may be used as part of the initial installation process but idk. You will have to verify which device your iso is registered as. In my case it was &lt;code&gt;/dev/sdb&lt;/code&gt; but this will not always be the case. The first partition for the CentOS install seems to be the boot device and the second is actual packages and such.&lt;/p&gt;

&lt;p&gt;After doing this we can enable the necessary repos and just install.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dnf --enablerepo=c8-media-BaseOS,c8-media-AppStream install NetworkManager-wifi
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;You should see the usual &lt;code&gt;dnf&lt;/code&gt; output and the package plus dependancies should be added just fine.&lt;/p&gt;

&lt;p&gt;Try bringing up your connection again and you should see the following.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$nmcli con up &amp;lt;your-connection&amp;gt;
Connection successfully activated (D-Bus active path: /org/freedesktopon/1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;If you see this or something close you should be all set. Now you can install whatever!!&lt;/p&gt;

</description>
      <category>linux</category>
      <category>tutorial</category>
      <category>devops</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
