<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Centos | Matt Crawford</title>
	<atom:link href="https://mattcrawford.me/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>https://mattcrawford.me</link>
	<description>Personal blog and writings of a nudist in Iowa.</description>
	<lastBuildDate>Wed, 15 Jun 2022 00:10:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
<site xmlns="com-wordpress:feed-additions:1">176948450</site>	<item>
		<title>My Raspberry Pi 3 B</title>
		<link>https://mattcrawford.me/my-raspberry-pi-3-b/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-raspberry-pi-3-b</link>
					<comments>https://mattcrawford.me/my-raspberry-pi-3-b/#respond</comments>
		
		<dc:creator><![CDATA[Matt Crawford]]></dc:creator>
		<pubDate>Fri, 01 Apr 2016 16:06:32 +0000</pubDate>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[micro computer]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[Raspberry Pi 3]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://g3k.xyz/?p=2180</guid>

					<description><![CDATA[<p>I finally got my Raspberry Pi 3 B in the mail yesterday after waiting several weeks to receive it. What is a Raspberry Pi 3 B you ask? Well read this article that I posted about it back on March 2, 2016 for more information. I have re-shared the specs below for this system and [&#8230;]</p>
The post <a href="https://mattcrawford.me/my-raspberry-pi-3-b/">My Raspberry Pi 3 B</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></description>
										<content:encoded><![CDATA[<p>I finally got my Raspberry Pi 3 B in the mail yesterday after waiting several weeks to receive it. What is a Raspberry Pi 3 B you ask? Well <a href="https://g3k.xyz/raspberry-pi-3-b-released/">read this article</a> that I posted about it back on March 2, 2016 for more information. I have re-shared the specs below for this system and pictures of my pi 3.</p>
<h4>Raspberry Pi 3 Specs:</h4>
<ul>
<li>SoC: Broadcom BCM2837</li>
<li>CPU: 64-bit 1.2GHz quad-core ARM Cortex-A53 CPU</li>
<li>GPU: Broadcom VideoCore IV</li>
<li>RAM: 1GB LPDDR2 (900 MHz)</li>
<li>Networking: 10/100 Ethernet, 2.4GHz 802.11n wireless</li>
<li>Bluetooth: Bluetooth 4.1 Classic, Bluetooth Low Energy</li>
<li>Storage: microSD</li>
<li>GPIO: 40-pin header, populated</li>
<li>Video: HDMI &#8211; VideoCore IV 3D</li>
<li>Audio: 3.5mm analogue audio-video jack,</li>
<li>USB: 4× USB 2.0</li>
<li>Other Ports: Camera Serial Interface (CSI), Display Serial Interface (DSI)</li>
<li>Power: 2.5 Amps</li>
<li>Operating system support – Linux and Unix or Windows 10 IoT</li>
</ul>
<p><span id="more-2180"></span></p>
<p>Below I have shared some photos of my Raspberry Pi 3 B that I had planned to possibly install Nagios on to monitor my home network but before I find a main use for it I plan to try a bunch of different tasks with it and experiment a bit.</p>

<a href='https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8242.jpg'><img decoding="async" width="150" height="150" src="https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8242-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8244.jpg'><img decoding="async" width="150" height="150" src="https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8244-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8248.jpg'><img decoding="async" width="150" height="150" src="https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8248-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8252.jpg'><img loading="lazy" decoding="async" width="150" height="150" src="https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8252-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8253.jpg'><img loading="lazy" decoding="async" width="150" height="150" src="https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8253-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8258.jpg'><img loading="lazy" decoding="async" width="150" height="150" src="https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8258-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8259.jpg'><img loading="lazy" decoding="async" width="150" height="150" src="https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8259-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8260.jpg'><img loading="lazy" decoding="async" width="150" height="150" src="https://mattcrawford.me/wp-content/uploads/2016/04/IMG_8260-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>The post <a href="https://mattcrawford.me/my-raspberry-pi-3-b/">My Raspberry Pi 3 B</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></content:encoded>
					
					<wfw:commentRss>https://mattcrawford.me/my-raspberry-pi-3-b/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2180</post-id>	</item>
		<item>
		<title>How to setup network on Centos 7</title>
		<link>https://mattcrawford.me/how-to-setup-network-on-centos-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-setup-network-on-centos-7</link>
					<comments>https://mattcrawford.me/how-to-setup-network-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Matt Crawford]]></dc:creator>
		<pubDate>Wed, 23 Mar 2016 20:16:49 +0000</pubDate>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[network configuration]]></category>
		<guid isPermaLink="false">http://g3k.xyz/?p=2113</guid>

					<description><![CDATA[<p>After installing Centos 7, you might find that you can&#8217;t connect to the network on that machine. This happens because Ethernet interfaces are not enabled by default. This guide will help you setup network on Centos 7. This guide contains network configuration steps in both GUI and command mode. Setup Network on Centos 7 At [&#8230;]</p>
The post <a href="https://mattcrawford.me/how-to-setup-network-on-centos-7/">How to setup network on Centos 7</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></description>
										<content:encoded><![CDATA[<p>After installing Centos 7, you might find that you can&#8217;t connect to the network on that machine. This happens because Ethernet interfaces are not enabled by default. This guide will help you setup network on Centos 7.</p>
<p>This guide contains network configuration steps in both GUI and command mode.</p>
<h1>Setup Network on Centos 7</h1>
<p>At the command prompt type</p>
<pre>nmcli d</pre>
<p>which will give you a quick identification of Ethernet cards installed on your machine</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2114" src="https://t3dus.com/wp-content/uploads/2016/03/Setup-network-on-centos-7-check.png" alt="Setup-network-on-centos-7-check" width="599" height="98" srcset="https://mattcrawford.me/wp-content/uploads/2016/03/Setup-network-on-centos-7-check.png 599w, https://mattcrawford.me/wp-content/uploads/2016/03/Setup-network-on-centos-7-check-300x49.png 300w" sizes="(max-width: 599px) 100vw, 599px" /></p>
<p>Here we have 2 interfaces named &#8220;<strong>enp0s17</strong>&#8221; and &#8220;<strong>enp0s18</strong>&#8220;. It might be different in your case however.</p>
<h1>Setup GUI Mode</h1>
<p>Recommended for beginners</p>
<h4>Step 1</h4>
<p>Type in this command</p>
<pre>nmtui</pre>
<p>to open network manager and press enter after choosing &#8220;edit  a connection&#8221; (use tab for choosing options)</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2115" src="https://t3dus.com/wp-content/uploads/2016/03/Setup-network-on-centos-7.png" alt="Setup-network-on-centos-7" width="236" height="223" /></p>
<h4>Step 2</h4>
<p>Now you can see all network interfaces, choose one and click &#8220;<strong>Edit</strong>&#8221;</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2116" src="https://t3dus.com/wp-content/uploads/2016/03/Setup-network-on-centos-7-1.png" alt="Setup-network-on-centos-7-1" width="259" height="177" /></p>
<p><strong>DHCP Configuration</strong></p>
<h4>Step 3</h4>
<p>for dhcp,</p>
<ol>
<li>Choose &#8220;<strong>Automatic</strong>&#8221; in IPv4 CONFIGURATION.</li>
<li>Choose Automatic connect check box.</li>
<li>Press Ok and quit Network manager.</li>
</ol>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2117" src="https://t3dus.com/wp-content/uploads/2016/03/Setup-network-on-centos-7-2.png" alt="Setup-network-on-centos-7-2" width="599" height="314" srcset="https://mattcrawford.me/wp-content/uploads/2016/03/Setup-network-on-centos-7-2.png 599w, https://mattcrawford.me/wp-content/uploads/2016/03/Setup-network-on-centos-7-2-300x157.png 300w" sizes="(max-width: 599px) 100vw, 599px" /></p>
<p>Now restart network services by typing this command</p>
<pre>systemctl restart network</pre>
<p>Now your server will get an IP from DHCP</p>
<h4>Step 4</h4>
<p>For manual IP address,<br />
1. Choose “<strong>Manual</strong>” in IPv4 CONFIGURATION.<br />
2. Add IP Address with Subnet , Gateway and DNS server ( Refer below image ).<br />
3. Choose Automatic Connect check box.<br />
4. Press OK and quit Network manager.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2118" src="https://t3dus.com/wp-content/uploads/2016/03/Setup-network-on-centos-7-3.png" alt="Setup-network-on-centos-7-3" width="599" height="438" srcset="https://mattcrawford.me/wp-content/uploads/2016/03/Setup-network-on-centos-7-3.png 599w, https://mattcrawford.me/wp-content/uploads/2016/03/Setup-network-on-centos-7-3-300x219.png 300w" sizes="(max-width: 599px) 100vw, 599px" /></p>
<p>Now restart network services by typing this command</p>
<pre>systemctl restart network</pre>
<p>Now your server will have a static IP.</p>
<h1>Command Mode</h1>
<p><strong>Step 1 </strong></p>
<p>Network interface config files are located in <strong>/etc/sysconfig/network-scripts/</strong> directory. Open <strong>ifcfg-enp0s17</strong> file ( For interface enp0s17 ) and you can see the content like below.</p>
<pre>[root@krizna ~]# vi /etc/sysconfig/network-scripts/ifcfg-enp0s17
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s17
UUID=7f1aff2d-b154-4436-9497-e3a4dedddcef
ONBOOT=no
HWADDR=00:0C:29:A1:B5:D6
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes</pre>
<p>DHCP Configuration</p>
<p><strong>Step 2 </strong></p>
<p>For DHCP<br />
Find the below lines in config File.</p>
<pre><code>BOOTPROTO=none
ONBOOT=no</code></pre>
<p>and replace with</p>
<pre><code>BOOTPROTO=dhcp
ONBOOT=yes</code></pre>
<p>Now Restart network service by typing below command.</p>
<pre><code>systemctl restart network</code></pre>
<p>Now your server will get IP Address from DHCP</p>
<h4>» Static configuration</h4>
<p><strong>Step 3 »</strong> For Static IP.<br />
Find the below lines in config File.</p>
<pre><code>BOOTPROTO=none
ONBOOT=no</code></pre>
<p>and replace with</p>
<pre><code>BOOTPROTO=static
ONBOOT=yes</code></pre>
<p>And add the below lines at the end of the file.</p>
<pre><code>IPADDR=172.27.0.32
NETMASK=255.255.255.0
GATEWAY=172.27.0.1
DNS1=172.27.0.5</code></pre>
<p>File will look like below after changes.</p>
<pre><code>TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s17
UUID=f0c5b37d-299a-43cb-b74b-618bb252d129
ONBOOT=yes
HWADDR=00:0C:29:A1:B5:CC
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.5</code></pre>
<p>Now Restart network service by typing below command.</p>
<pre><code>systemctl restart network</code></pre>
<p>Now Interface will have static IP.<br />
Additionally you can use <strong>/etc/sysconfig/network</strong> file for hostname and DNS .</p>
<pre><code>HOSTNAME=server.krizna.com
DNS1=192.168.1.5
DNS2=8.8.8.8
SEARCH=krizna.com</code></pre>
<p>I hope this helps anybody reading. Have a great day!</p>The post <a href="https://mattcrawford.me/how-to-setup-network-on-centos-7/">How to setup network on Centos 7</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></content:encoded>
					
					<wfw:commentRss>https://mattcrawford.me/how-to-setup-network-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2113</post-id>	</item>
		<item>
		<title>Nagios 4 Setup CentOS</title>
		<link>https://mattcrawford.me/nagios-4-setup-centos/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nagios-4-setup-centos</link>
					<comments>https://mattcrawford.me/nagios-4-setup-centos/#respond</comments>
		
		<dc:creator><![CDATA[Matt Crawford]]></dc:creator>
		<pubDate>Mon, 08 Feb 2016 19:48:36 +0000</pubDate>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Nagios 4]]></category>
		<guid isPermaLink="false">http://g3k.xyz/?p=1881</guid>

					<description><![CDATA[<p>I&#8217;ve been busy attempting to install&#160;Nagios 4&#160;on a fresh install of CentOS 7 on a Hyper V machine. I&#8217;ve tried this install now at least&#160;6&#160;times failing with different errors every single time and even resorted to Nagios for help. Well I&#8217;ve finally have gotten Nagios 4 to work with the help of Nagios Support and [&#8230;]</p>
The post <a href="https://mattcrawford.me/nagios-4-setup-centos/">Nagios 4 Setup CentOS</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been busy attempting to install&nbsp;<a href="https://www.nagios.org">Nagios 4</a>&nbsp;on a fresh install of <a href="https://www.centos.org">CentOS</a> 7 on a Hyper V machine. I&#8217;ve tried this install now at least&nbsp;6&nbsp;times failing with different errors every single time and even resorted to <a href="https://support.nagios.com/forum/viewtopic.php?f=7&amp;t=36936">Nagios for help</a>.</p>
<p>Well I&#8217;ve finally have gotten <a href="https://www.nagios.org">Nagios 4</a> to work with the help of <a href="https://support.nagios.com/forum/viewtopic.php?f=7&amp;t=36936">Nagios Support</a> and these were the steps that I took to complete it.</p>
<p><span id="more-1881"></span></p>
<p>The Orange text are commands to input into CentOS. I used a minimal install of CentOS.</p>
<p>The first problem I always ran into is that CentOS wasn&#8217;t online. I took <a href="http://g3k.xyz/how-to-setup-network-on-centos-7/" target="_blank" rel="noopener noreferrer">these steps</a> to resolve it &nbsp;then I ran the commands below</p>
<pre>yum install wget
yum install nano</pre>
<p>Net tools isn&#8217;t required but I find it useful for troubleshooting network issues so I installed it anyways.</p>
<pre>yum install net-tools</pre>
<p>If installing on a Raspberry PI , I found I had to install these tools as well.</p>
<pre>yum install wzip
yum install make</pre>
<p>SELINUX:</p>
<pre>setenforce 0
nano /etc/selinux/config</pre>
<p>change enforcing -&gt; disabled, save and close.</p>
<p>INSTALL PRE-REQS:</p>
<pre>yum install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp openssl-devel wget unzip -y</pre>
<pre>useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache</pre>
<p>DOWNLOAD &amp; INSTALL NAGIOS:</p>
<pre>cd /tmp
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz
wget http://www.nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz
tar zxf nagios-4.1.1.tar.gz
tar zxf nagios-plugins-2.1.1.tar.gz
cd nagios-4.1.1
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
service httpd start
service nagios start</pre>
<p>PLUGINS:</p>
<pre>cd /tmp/nagios-plugins-2.1.1
./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl
make all
make install
service nagios restart</pre>
<p>POSSIBLE ERRORS:<br />
Can&#8217;t access web page? Check firewalld and at port 80 through.<br />
firewall-cmd &#8211;zone=public &#8211;add-port=80/tcp &#8211;permanent<br />
firewall-cmd &#8211;reload</p>
<p>Still can&#8217;t access web page? Check IPV6 listening in the apache configuration.<br />
modify /etc/httpd/conf/httpd.conf<br />
Listen 0.0.0.0:80<br />
service httpd restart</p>The post <a href="https://mattcrawford.me/nagios-4-setup-centos/">Nagios 4 Setup CentOS</a> first appeared on <a href="https://mattcrawford.me">Matt Crawford</a>.]]></content:encoded>
					
					<wfw:commentRss>https://mattcrawford.me/nagios-4-setup-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1881</post-id>	</item>
	</channel>
</rss>
