<?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 7 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/centos-7/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 06 Apr 2019 00:55:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to Install CentOS 7 Step by Step (with Pictures)</title>
		<link>https://www.osradar.com/how-to-install-centos-7-step-by-step-with-pictures/</link>
					<comments>https://www.osradar.com/how-to-install-centos-7-step-by-step-with-pictures/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Sat, 06 Apr 2019 00:55:55 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11537</guid>

					<description><![CDATA[<p>CentOS 7 is one of the most robust distributions in all of Linux. Its scope of work are servers, however, there are users who use it on the desktop. In any case, we are talking about pure stability. At a slightly more technical level, CentOS 7 is perfectly compatible at a binary level with RHEL, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-centos-7-step-by-step-with-pictures/">How to Install CentOS 7 Step by Step (with Pictures)</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.centos.org/">CentOS</a> 7 is one of the most robust distributions in all of Linux. Its scope of work are servers, however, there are users who use it on the desktop. In any case, we are talking about pure stability. At a slightly more technical level, CentOS 7 is perfectly compatible at a binary level with RHEL, so robustness is guaranteed. So if you are starting on Linux servers and you have doubts about it, I will show you how to install CentOS 7. And to better understand the process, I will use images that will help with the process.</p>
<p><img loading="lazy" class="aligncenter wp-image-11538 size-full" src="https://www.osradar.com/wp-content/uploads/2019/03/Desktop-Install-to-Hard-Drive.png" alt="" width="720" height="405" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Desktop-Install-to-Hard-Drive.png 720w, https://www.osradar.com/wp-content/uploads/2019/03/Desktop-Install-to-Hard-Drive-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Desktop-Install-to-Hard-Drive-696x392.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></p>
<h2>How to Install CentOS 7?</h2>
<h2>Step 1: Begin Installation</h2>
<p>First of all, you have to download a CentOS image from the download section of the project website. Then, <a href="https://www.osradar.com/how-to-make-a-bootable-usb-flash-drive/">make a USB bootable</a> and then restart the computer.</p>
<p>To begin installation, click on the Install to Hard Drive icon on the desktop.</p>
<p><img loading="lazy" class="aligncenter wp-image-11539 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Select-Language-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Select-Language-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Language-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Language-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Language-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Language-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Language-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Language.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<h2>Step 2: Select Language And Keyboard</h2>
<p>Select your preferred language as well as the Keyboard type you have.</p>
<p><img loading="lazy" class="aligncenter wp-image-11541 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Automatic-Partitioning-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Automatic-Partitioning-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Automatic-Partitioning-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Automatic-Partitioning-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Automatic-Partitioning-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Automatic-Partitioning-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Automatic-Partitioning-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Automatic-Partitioning.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<h2>Step 3: Change The Installation Destination</h2>
<p>By default, the Anaconda installer will choose automatic partitioning for your hard disk. Click on the Installation Destination icon to change this to custom partitioning.</p>
<p><img loading="lazy" class="aligncenter wp-image-11545 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Configure-Partitioning-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Configure-Partitioning-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Configure-Partitioning-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Configure-Partitioning-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Configure-Partitioning-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Configure-Partitioning-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Configure-Partitioning-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Configure-Partitioning.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>Click on the hard drive you want to install CentOS 7 and under the <b>Other Storage Options</b>, choose <b>I will configure partitioning</b> then click Done.</p>
<p><img loading="lazy" class="aligncenter wp-image-11554 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Select-Partitioning-Scheme-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Select-Partitioning-Scheme-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Partitioning-Scheme-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Partitioning-Scheme-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Partitioning-Scheme-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Partitioning-Scheme-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Partitioning-Scheme-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Select-Partitioning-Scheme.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<h2>Step 4: Select The Partitioning Scheme</h2>
<p>Next, select the partitioning scheme to use for the mount points.</p>
<p><img loading="lazy" class="aligncenter wp-image-11540 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Accept-Changes-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Accept-Changes-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Accept-Changes-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Accept-Changes-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Accept-Changes-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Accept-Changes-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Accept-Changes-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Accept-Changes.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>After that, accept the changes to apply them.</p>
<h2>Step 5: Set Date And Time</h2>
<p>Click on the clock icon under the localization menu and select a time zone from the map of the world, then click Done.</p>
<p><img loading="lazy" class="aligncenter wp-image-11555 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Set-Date-and-Time-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Set-Date-and-Time-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Date-and-Time-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Date-and-Time-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Date-and-Time-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Date-and-Time-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Date-and-Time-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Date-and-Time.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>Once you have chosen the time and date as well as the timezone, you will see a summary of the installation. This is a good time to review all changes carefully.</p>
<p><img loading="lazy" class="aligncenter wp-image-11542 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Begin-Installation-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Begin-Installation-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Begin-Installation-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Begin-Installation-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Begin-Installation-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Begin-Installation-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Begin-Installation-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Begin-Installation.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<h2>Step 6: Begin Installation</h2>
<p>Now after configuring the System and Localization settings you can click on the Begin Installation button.</p>
<p><img loading="lazy" class="aligncenter wp-image-11544 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/configuration-during-installation-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/configuration-during-installation-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/configuration-during-installation-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/configuration-during-installation-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/configuration-during-installation-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/configuration-during-installation-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/configuration-during-installation-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/configuration-during-installation.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>The installation will begin immediately and as it proceeds you need to set up a User account as well as the root password.</p>
<p>Click on the root password option and enter a password and confirmation of the same then click Done. I recommend that you use a strong password to prevent it from being stolen or guessed by others.<img loading="lazy" class="aligncenter wp-image-11556 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Set-Up-Root-Password-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Set-Up-Root-Password-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Up-Root-Password-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Up-Root-Password-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Up-Root-Password-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Up-Root-Password-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Up-Root-Password-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Set-Up-Root-Password.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>The next step is to create a user account. Enter the correct details and if this is the administrator account, tick Make this user administrator and Require a password to use this account for security purposes.</p>
<p><img loading="lazy" class="aligncenter wp-image-11547 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Create-a-User-Account-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Create-a-User-Account-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Create-a-User-Account-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Create-a-User-Account-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Create-a-User-Account-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Create-a-User-Account-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Create-a-User-Account-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Create-a-User-Account.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>After that, the process will continue.</p>
<p><img loading="lazy" class="aligncenter wp-image-11552 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Installing-Bootloader-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Installing-Bootloader-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Installing-Bootloader-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Installing-Bootloader-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Installing-Bootloader-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Installing-Bootloader-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Installing-Bootloader-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Installing-Bootloader.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>Then, the installer should complete installing the software and the bootloader.</p>
<p><img loading="lazy" class="aligncenter wp-image-11543 size-large" src="https://www.osradar.com/wp-content/uploads/2019/03/Complete-Installation-1024x576.png" alt="" width="696" height="392" srcset="https://www.osradar.com/wp-content/uploads/2019/03/Complete-Installation-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/03/Complete-Installation-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/03/Complete-Installation-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/03/Complete-Installation-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/03/Complete-Installation-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/03/Complete-Installation-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/03/Complete-Installation.png 1600w" sizes="(max-width: 696px) 100vw, 696px" /></p>
<p>Once complete you should get a success message, after which you can click quit.</p>
<p>Finally, once you log in to your CentOS 7 accept the EULA agreement and enjoy!</p>
<h2>Conclusion</h2>
<p>Generally speaking, it is fair to say that CentOS 7 servers are very well cataloged. But it has been very well carved fame based on stability, robustness and a powerful community that document and provide help to the user of this Linux distribution.</p>
<p>We hope this post has been helpful to you, so share through social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-centos-7-step-by-step-with-pictures/">How to Install CentOS 7 Step by Step (with Pictures)</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-centos-7-step-by-step-with-pictures/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Nagios Server and Monitor your Hosts on CentOS 7</title>
		<link>https://www.osradar.com/how-to-install-nagios-server-and-monitor-your-hosts-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-nagios-server-and-monitor-your-hosts-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Tue, 12 Mar 2019 12:55:51 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[monitor server]]></category>
		<category><![CDATA[nagios client]]></category>
		<category><![CDATA[nagios server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11364</guid>

					<description><![CDATA[<p>Nagios is also known as Nagios Core. It is a free and open source application that monitors systems, networks and infrastructure. Nagios offers monitoring and alerting services for servers. In this article you will learn that how to install nagios server and monitor your hosts. Prerequisites You must login on the server as root user [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nagios-server-and-monitor-your-hosts-on-centos-7/">How to Install Nagios Server and Monitor your Hosts on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Nagios is also known as Nagios Core. It is a free and open source application that monitors systems, networks and infrastructure. Nagios offers monitoring and alerting services for servers. In this article you will learn that how to install nagios server and monitor your hosts.</p>
<p><strong>Prerequisites</strong></p>
<p>You must login on the server as root user or superuser privileges.<br />
A LAMP stack required. Follow this article if you want to install it: <strong><a href="https://www.osradar.com/install-lamp-centos-rhel7/" target="_blank" rel="noopener noreferrer">Install LAMP in CentOS 7 and RHEL7</a></strong></p>
<p><strong>Install Dependencies</strong></p>
<pre>yum install gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel xinetd unzip -y</pre>
<p><img loading="lazy" class="alignnone wp-image-11365" src="https://www.osradar.com/wp-content/uploads/2019/03/1-300x40.jpg" alt="" width="660" height="88" srcset="https://www.osradar.com/wp-content/uploads/2019/03/1-300x40.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/1-768x101.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/1-1024x135.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/1-696x92.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/1-1068x141.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/1.jpg 1365w" sizes="(max-width: 660px) 100vw, 660px" /></p>
<p><strong>Create Nagios User and Group</strong></p>
<p>you must create a user and group for Nagios process. Create a &#8220;nagios&#8221; user and &#8220;nagcmd&#8221; group, then add the user to the group with these commands:</p>
<pre>useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios</pre>
<p><img loading="lazy" class="alignnone wp-image-11367" src="https://www.osradar.com/wp-content/uploads/2019/03/2-300x33.jpg" alt="" width="664" height="73" srcset="https://www.osradar.com/wp-content/uploads/2019/03/2-300x33.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/2-768x85.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/2-1024x113.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/2-696x77.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/2-1068x118.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/2.jpg 1366w" sizes="(max-width: 664px) 100vw, 664px" /></p>
<h2><strong>Install Nagios Core</strong></h2>
<p>Download the latest stable release of Nagios Core from the <a href="https://www.nagios.org/downloads/nagios-core/thanks/?skip=1" target="_blank" rel="noopener noreferrer">given link</a> copy nagios core link address and download it to your server.</p>
<p>Donwload Nagios Core using command wget</p>
<pre>cd 
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz</pre>
<p><img loading="lazy" class="alignnone wp-image-11368" src="https://www.osradar.com/wp-content/uploads/2019/03/3-300x75.jpg" alt="" width="668" height="167" srcset="https://www.osradar.com/wp-content/uploads/2019/03/3-300x75.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/3-768x191.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/3-1024x255.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/3-696x173.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/3-1068x266.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/3.jpg 1366w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p>Extract archive and switch to Nagios directory</p>
<pre>tar -xvf nagios-4.4.3.tar.gz
cd nagios-4.4.3</pre>
<p>Configure Nagios Script using below command</p>
<pre>./configure --with-command-group=nagcmd
make all</pre>
<p>Now run following commands to install Nagios, init scripts, and sample configuration files</p>
<pre>make install
make install-commandmode
make install-init
make install-config
make install-webconf
make install-daemoninit</pre>
<p>If you want to issue external commands from web interface to Nagios, you need to add the web server user &#8220;apache&#8221; to &#8220;nagcmd&#8221; group</p>
<pre>usermod -G nagcmd apache</pre>
<p>Now create nagios user &#8220;nagiosadmin&#8221; and restart the apache services.</p>
<pre>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</pre>
<p><img loading="lazy" class="alignnone wp-image-11369" src="https://www.osradar.com/wp-content/uploads/2019/03/4-300x48.jpg" alt="" width="669" height="107" srcset="https://www.osradar.com/wp-content/uploads/2019/03/4-300x48.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/4-768x123.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/4-1024x164.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/4-696x112.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/4-1068x171.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/4.jpg 1366w" sizes="(max-width: 669px) 100vw, 669px" /></p>
<p>These login details will be used to access the Nagios web interface.</p>
<h2><strong>Install Nagios Plugins</strong></h2>
<p>Download the latest stable release of Nagios Plugin from the <a href="http://nagios-plugins.org/download/?C=M;O=D" target="_blank" rel="noopener noreferrer">given link</a> copy nagios plugin link address and download it to your server.</p>
<p>Donwload Nagios plugin using command wget</p>
<pre>cd 
wget http://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz</pre>
<p><img loading="lazy" class="alignnone wp-image-11370" src="https://www.osradar.com/wp-content/uploads/2019/03/5-300x77.jpg" alt="" width="670" height="172" srcset="https://www.osradar.com/wp-content/uploads/2019/03/5-300x77.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/5-768x197.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/5-1024x262.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/5-696x178.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/5-1068x274.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/5.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p>Extract archive and switch to Nagios Plugin directory</p>
<pre>tar -xvf nagios-plugins-2.2.1.tar.gz
cd nagios-plugins-2.2.1</pre>
<p>Configure Nagios Plugin Script using below command</p>
<pre>./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl</pre>
<p>Now compile Nagios Plugins</p>
<pre>make</pre>
<p>Now Install Nagios Plugin</p>
<pre>make install</pre>
<h2><strong>Install NRPE</strong></h2>
<p>Use following commands</p>
<pre>cd
wget http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz</pre>
<p><img loading="lazy" class="alignnone wp-image-11371" src="https://www.osradar.com/wp-content/uploads/2019/03/6-300x99.jpg" alt="" width="670" height="221" srcset="https://www.osradar.com/wp-content/uploads/2019/03/6-300x99.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/6-768x254.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/6-1024x338.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/6-696x230.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/6-1068x353.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/6-1272x420.jpg 1272w, https://www.osradar.com/wp-content/uploads/2019/03/6.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p>Extract NRPE archive and switch to NRPE directory</p>
<pre>tar xvf nrpe-2.15.tar.gz
cd nrpe-2.15</pre>
<p>Configure NRPE</p>
<pre>./configure --enable-command-args --with-nagios-user=nagios --with-nagios-group=nagios --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu</pre>
<p>Now compile and install NRPE</p>
<pre>make all
make install
make install-xinetd
make install-daemon-config</pre>
<p>Add your server IP address in xinetd startup script</p>
<pre>vi /etc/xinetd.d/nrpe</pre>
<p>Modify the only_from line and add the IP address of the your Nagios server to the end, in my case it is 192.168.130.138</p>
<pre>only_from = 127.0.0.1 192.168.130.138</pre>
<p>Save and exit.</p>
<p>Only Nagios server&#8217;s IP must be allowed to communicate with NRPE.</p>
<p><img loading="lazy" class="alignnone wp-image-11372" src="https://www.osradar.com/wp-content/uploads/2019/03/7-300x85.jpg" alt="" width="671" height="190" srcset="https://www.osradar.com/wp-content/uploads/2019/03/7-300x85.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/7-768x216.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/7-1024x289.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/7-696x196.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/7-1068x301.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/7.jpg 1366w" sizes="(max-width: 671px) 100vw, 671px" /></p>
<p>Now restart xinetd service to start NRPE</p>
<pre>systemctl restart xinetd</pre>
<p>Now Nagios Server is installed and we need to configure it.</p>
<h2><strong>Configure Nagios</strong></h2>
<p>Create the directory which will store the configuration file for each server that will monitor be monitor by Nagios.</p>
<pre>mkdir /usr/local/nagios/etc/servers</pre>
<p>Now open the main Nagios configuration file</p>
<pre>vi /usr/local/nagios/etc/nagios.cfg</pre>
<p>Then add below line</p>
<pre>cfg_dir=/usr/local/nagios/etc/servers</pre>
<p>save and exit</p>
<p><img loading="lazy" class="alignnone wp-image-11373" src="https://www.osradar.com/wp-content/uploads/2019/03/8-300x124.jpg" alt="" width="670" height="277" srcset="https://www.osradar.com/wp-content/uploads/2019/03/8-300x124.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/8-768x317.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/8-1024x422.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/8-696x287.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/8-1068x440.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/8-1019x420.jpg 1019w, https://www.osradar.com/wp-content/uploads/2019/03/8.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p><strong>Configure Nagios Contacts</strong></p>
<p>If you want, you can also configure nagios contacts as per your requirements using below command</p>
<pre>vi /usr/local/nagios/etc/objects/contacts.cfg</pre>
<p><img loading="lazy" class="alignnone wp-image-11374" src="https://www.osradar.com/wp-content/uploads/2019/03/9-300x79.jpg" alt="" width="668" height="176" srcset="https://www.osradar.com/wp-content/uploads/2019/03/9-300x79.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/9-768x201.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/9-1024x268.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/9-696x182.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/9-1068x280.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/9.jpg 1366w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p><strong>Add a new NRPE command to our Nagios configuration</strong></p>
<pre>vi /usr/local/nagios/etc/objects/commands.cfg</pre>
<p>Add the following lines at the end of the file:</p>
<pre>define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}</pre>
<p>Save and exit.</p>
<p><img loading="lazy" class="alignnone wp-image-11375" src="https://www.osradar.com/wp-content/uploads/2019/03/10-300x58.jpg" alt="" width="672" height="130" srcset="https://www.osradar.com/wp-content/uploads/2019/03/10-300x58.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/10-768x148.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/10-1024x198.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/10-696x135.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/10-1068x206.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/10.jpg 1366w" sizes="(max-width: 672px) 100vw, 672px" /></p>
<p>Now you will be able to use check_nrpe command in Nagios service definitions.</p>
<p>Nagios is ready to use, Lets restart the services and add them to start on server boot.</p>
<pre>systemctl daemon-reload
systemctl restart httpd.service
systemctl start nagios.service
systemctl enable nagios.service</pre>
<p><img loading="lazy" class="alignnone wp-image-11378" src="https://www.osradar.com/wp-content/uploads/2019/03/11-300x43.jpg" alt="" width="670" height="96" srcset="https://www.osradar.com/wp-content/uploads/2019/03/11-300x43.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/11-768x111.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/11-1024x148.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/11-696x101.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/11-1068x155.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/11.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p><strong>Access Nagios Web Interface</strong></p>
<p>Open your web browser and browse below link to login your Nagios server. You must enter the login credentials that you created earlier. We will use the username &#8220;nagiosadmin&#8221;</p>
<p><strong>http://nagios_server_ip/nagios</strong></p>
<p><img loading="lazy" class="alignnone wp-image-11379" src="https://www.osradar.com/wp-content/uploads/2019/03/12-300x106.jpg" alt="" width="668" height="236" srcset="https://www.osradar.com/wp-content/uploads/2019/03/12-300x106.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/12-768x272.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/12-1024x362.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/12-696x246.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/12-1068x378.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/12-1188x420.jpg 1188w, https://www.osradar.com/wp-content/uploads/2019/03/12.jpg 1366w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p>Now you will see default Nagios home page. Under &#8220;current Status&#8221; left navigation bar Click on the &#8220;Hosts&#8221; option, to see hosts which are monitoring by the Nagios.</p>
<p><img loading="lazy" class="alignnone wp-image-11380" src="https://www.osradar.com/wp-content/uploads/2019/03/13-300x103.jpg" alt="" width="670" height="230" srcset="https://www.osradar.com/wp-content/uploads/2019/03/13-300x103.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/13-768x265.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/13-1024x353.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/13-696x240.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/13-1068x368.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/13-1218x420.jpg 1218w, https://www.osradar.com/wp-content/uploads/2019/03/13.jpg 1366w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p>Here you can see Nagios is monitoring only &#8220;localhost&#8221; it means itself.</p>
<h2><strong>Monitor a CentOS 7 Host with NRPE</strong></h2>
<p>In this section you will learn that how to add a new host to Nagios server, so it will be monitored. You need to repeat this section for each CentOS or RHEL server you want to monitor.</p>
<p>Login to the server you want to monitor and install the EPEL repository</p>
<pre>yum install epel-release -y</pre>
<p><img loading="lazy" class="alignnone wp-image-11381" src="https://www.osradar.com/wp-content/uploads/2019/03/14-300x49.jpg" alt="" width="667" height="109" srcset="https://www.osradar.com/wp-content/uploads/2019/03/14-300x49.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/14-768x124.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/14-1024x166.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/14-696x113.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/14-1068x173.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/14.jpg 1366w" sizes="(max-width: 667px) 100vw, 667px" /></p>
<p>Then install Nagios Plugins and NRPE:</p>
<pre>yum install nrpe nagios-plugins-all -y</pre>
<p><img loading="lazy" class="alignnone wp-image-11382" src="https://www.osradar.com/wp-content/uploads/2019/03/15-300x88.jpg" alt="" width="668" height="196" srcset="https://www.osradar.com/wp-content/uploads/2019/03/15-300x88.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/15-768x225.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/15-1024x301.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/15-696x204.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/15-1068x314.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/15.jpg 1366w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p>Now modify NRPE configuration file</p>
<pre>vi /etc/nagios/nrpe.cfg</pre>
<p>Find the line allowed_hosts and add the IP address of your Nagios server, In my case Nagios server address is 192.168.130.138</p>
<pre>allowed_hosts=127.0.0.1,::1,192.168.130.138</pre>
<p>Save and exit.</p>
<p><img loading="lazy" class="alignnone wp-image-11383" src="https://www.osradar.com/wp-content/uploads/2019/03/16-300x42.jpg" alt="" width="671" height="94" srcset="https://www.osradar.com/wp-content/uploads/2019/03/16-300x42.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/16-768x109.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/16-1024x145.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/16-696x98.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/16-1068x151.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/16.jpg 1366w" sizes="(max-width: 671px) 100vw, 671px" /></p>
<p>this configuration will accept requests from your Nagios server</p>
<p>Now Restart NRPE to apply changes</p>
<pre>systemctl start nrpe.service
systemctl enable nrpe.service</pre>
<p>All configurations done on host machine, Now we have to add these hosts to Nagios server configuration so it can start monitoring them.</p>
<p><strong>Add Host to Nagios Configuration</strong></p>
<p>On your Nagios server, create a new configuration file for each remote host that you want to monitor in /usr/local/nagios/etc/servers/ direcotry. I will create host1.cfg file for my fisrt host.</p>
<pre>vi /usr/local/nagios/etc/servers/host1.cfg</pre>
<p>Add the following host definition in host file, replace the host_name value with your remote hostname (In my case it is host1), the alias value with a description of the host, and the address value with the IP address of the remote host (My host1 address is 192.168.130.222)</p>
<pre>define host {
use linux-server
host_name host1
alias Apache server host1
address 192.168.130.222
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}</pre>
<p>With above configurations, nagios will only monitor if the host is up or down.</p>
<p>save and exit</p>
<p><img loading="lazy" class="alignnone wp-image-11384" src="https://www.osradar.com/wp-content/uploads/2019/03/17-300x70.jpg" alt="" width="669" height="156" srcset="https://www.osradar.com/wp-content/uploads/2019/03/17-300x70.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/17-768x179.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/17-1024x238.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/17-696x162.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/17-1068x249.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/17.jpg 1366w" sizes="(max-width: 669px) 100vw, 669px" /></p>
<p>Now restart Nagios server to apply new changes.</p>
<pre>systemctl reload nagios.service</pre>
<p>Once done, access your Nagios web interface go to Under &#8220;current Status&#8221; left navigation bar Click on the &#8220;Hosts&#8221; option, and check all hosts which are monitoring by the Nagios. now you will see that host1 is showing up there.</p>
<p><img loading="lazy" class="alignnone wp-image-11385" src="https://www.osradar.com/wp-content/uploads/2019/03/18-300x105.jpg" alt="" width="669" height="234" srcset="https://www.osradar.com/wp-content/uploads/2019/03/18-300x105.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/03/18-768x269.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/03/18-1024x358.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/03/18-696x244.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/03/18-1068x374.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/03/18-1200x420.jpg 1200w, https://www.osradar.com/wp-content/uploads/2019/03/18.jpg 1366w" sizes="(max-width: 669px) 100vw, 669px" /></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nagios-server-and-monitor-your-hosts-on-centos-7/">How to Install Nagios Server and Monitor your Hosts on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-nagios-server-and-monitor-your-hosts-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Create Nginx High Availability with Pacemaker and Corosync on CentOS 7</title>
		<link>https://www.osradar.com/create-nginx-high-availability-with-pacemaker-and-corosync-on-centos-7/</link>
					<comments>https://www.osradar.com/create-nginx-high-availability-with-pacemaker-and-corosync-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Tue, 19 Feb 2019 09:32:19 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[redhat 7]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10896</guid>

					<description><![CDATA[<p>In this article, you will learn that how to create a high availability Nginx Web Server Cluster with Pacemaker, Corosync, and Pcsd. We will create Failover-cluster for Nginx web server using Pacemaker on a CentOS 7 system. Pacemaker is an open source cluster manager software that achieves maximum high availability of your services. Corosync Cluster [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/create-nginx-high-availability-with-pacemaker-and-corosync-on-centos-7/">Create Nginx High Availability with Pacemaker and Corosync on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, you will learn that how to create a high availability Nginx Web Server Cluster with Pacemaker, Corosync, and Pcsd. We will create Failover-cluster for Nginx web server using Pacemaker on a CentOS 7 system.</p>
<p>Pacemaker is an open source cluster manager software that achieves maximum high availability of your services.</p>
<p>Corosync Cluster Engine is an open source project derived from the OpenAIS project under new BSD License. It&#8217;s a group communication system with additional features for implementing High Availability within applications.</p>
<p><strong>Prerequisites</strong></p>
<ol>
<li>Two or more CentOS Servers</li>
<li>Each server must have unique IP address</li>
<li>At leat one Floating IP Address</li>
<li>Root Privileges</li>
</ol>
<p><strong>Our Working Environment</strong><br />
host1 192.168.130.141<br />
host2 192.168.130.142<br />
host3 192.168.130.143<br />
Floating IP Address 192.168.130.222</p>
<h4><strong>Run step 1 to step 3 on all servers host1, host2 and host3</strong></h4>
<h1>Step 1: Configure Host File</h1>
<p>Edit the host file on each server in order to map the hostname of all servers. login to each server (host1, host2 and host3) one by one and run below commands.</p>
<pre>vi /etc/hosts</pre>
<p>and add below configurations.</p>
<pre>192.168.130.141 host1
192.168.130.142 host2
192.168.130.141 host3</pre>
<p>Save changes and exit</p>
<p><img loading="lazy" class="alignnone wp-image-10897" src="https://www.osradar.com/wp-content/uploads/2019/02/1-1-300x77.jpg" alt="" width="682" height="175" srcset="https://www.osradar.com/wp-content/uploads/2019/02/1-1-300x77.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/1-1-768x198.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/1-1-696x180.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/1-1.jpg 964w" sizes="(max-width: 682px) 100vw, 682px" /></p>
<p>Now test the hosts&#8217; configuration using below commands.</p>
<pre>ping -c 2 host1
ping -c 2 host2
ping -c 2 host3</pre>
<p><img loading="lazy" class="alignnone wp-image-10898" src="https://www.osradar.com/wp-content/uploads/2019/02/2-2-300x181.jpg" alt="" width="680" height="410" srcset="https://www.osradar.com/wp-content/uploads/2019/02/2-2-300x181.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/2-2-768x464.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/2-2-696x420.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/2-2-695x420.jpg 695w, https://www.osradar.com/wp-content/uploads/2019/02/2-2.jpg 972w" sizes="(max-width: 680px) 100vw, 680px" /></p>
<p>Make sure &#8216;host1&#8217;, &#8216;host2&#8217; and &#8216;host3&#8217; are mapped to correct IP addresses.</p>
<h1>Step 2: Install Nginx</h1>
<p>Run below commands on host1, host2 and host3 to install nginx web server.</p>
<pre>yum install epel-release -y
yum install nginx -y</pre>
<p><img loading="lazy" class="alignnone wp-image-10899" src="https://www.osradar.com/wp-content/uploads/2019/02/3-2-300x147.jpg" alt="" width="680" height="333" srcset="https://www.osradar.com/wp-content/uploads/2019/02/3-2-300x147.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-768x377.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-324x160.jpg 324w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-533x261.jpg 533w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-696x342.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/3-2-856x420.jpg 856w, https://www.osradar.com/wp-content/uploads/2019/02/3-2.jpg 976w" sizes="(max-width: 680px) 100vw, 680px" /></p>
<p>After installation, set the default index.html page on each server.</p>
<pre>##Run below Command on host1
echo '&lt;h1&gt;host1 - osradar.com&lt;/h1&gt;' &gt; /usr/share/nginx/html/index.html

##Run below Command on host2
echo '&lt;h1&gt;host2 - osradar.com&lt;/h1&gt;' &gt; /usr/share/nginx/html/index.html

##Run below Command on host3
echo '&lt;h1&gt;host3 - osradar.com&lt;/h1&gt;' &gt; /usr/share/nginx/html/index.html</pre>
<h1>Step 3: Installation and configuration of Pacemaker, Corosync, and Pcsd</h1>
<p>Run below commands on each server to install Pacemaker, Corosync, and Pcsd</p>
<pre>yum install corosync pacemaker pcs -y</pre>
<p>Then run below commands on each server to enable all services to launch automatically at system boot.</p>
<pre>systemctl enable pacemaker
systemctl enable corosync
systemctl enable pcsd</pre>
<p>Now start the pcsd Pacemaker command line interface on all servers.</p>
<pre>systemctl start pcsd</pre>
<p>Now set a new password for &#8216;hacluster&#8217; user password must be same for all servers. This user has been created automatically during software installation.</p>
<p>RUn below command to all servers and set same password.</p>
<pre>passwd hacluster</pre>
<p><img loading="lazy" class="alignnone wp-image-10900" src="https://www.osradar.com/wp-content/uploads/2019/02/4-1-300x133.jpg" alt="" width="679" height="301" srcset="https://www.osradar.com/wp-content/uploads/2019/02/4-1-300x133.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/4-1-768x342.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/4-1-1024x455.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/02/4-1-696x310.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/4-1-1068x475.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/02/4-1-944x420.jpg 944w, https://www.osradar.com/wp-content/uploads/2019/02/4-1.jpg 1329w" sizes="(max-width: 679px) 100vw, 679px" /></p>
<p>High Availability software have been installed on to the system.</p>
<h1>Step 4: Create and Configure Cluster</h1>
<h4><strong>Note: Run steps 4 to step 7 on &#8220;host1&#8221; only.</strong></h4>
<p>We will create a new cluster with 3 servers.</p>
<p>we need to authorize all servers to create new cluster using below command. username will be &#8220;hacluster&#8221;</p>
<pre>pcs cluster auth host1 host2 host3</pre>
<p><img loading="lazy" class="alignnone wp-image-10901" src="https://www.osradar.com/wp-content/uploads/2019/02/5-1-300x77.jpg" alt="" width="682" height="175" srcset="https://www.osradar.com/wp-content/uploads/2019/02/5-1-300x77.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/5-1-768x197.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/5-1-696x179.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/5-1.jpg 865w" sizes="(max-width: 682px) 100vw, 682px" /></p>
<p>Now create the cluster named osradar_cluster for all servers using below command.</p>
<pre>pcs cluster setup --name osradar_cluster host1 host2 host3</pre>
<p><img loading="lazy" class="alignnone wp-image-10904" src="https://www.osradar.com/wp-content/uploads/2019/02/7-1-300x192.jpg" alt="" width="680" height="435" srcset="https://www.osradar.com/wp-content/uploads/2019/02/7-1-300x192.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/7-1-768x491.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/7-1-696x445.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/7-1-657x420.jpg 657w, https://www.osradar.com/wp-content/uploads/2019/02/7-1.jpg 989w" sizes="(max-width: 680px) 100vw, 680px" /></p>
<p>Now start and enable all cluster services using below command.</p>
<pre>pcs cluster start --all
pcs cluster enable --all</pre>
<p><img loading="lazy" class="alignnone wp-image-10905" src="https://www.osradar.com/wp-content/uploads/2019/02/8-1-300x78.jpg" alt="" width="681" height="177" srcset="https://www.osradar.com/wp-content/uploads/2019/02/8-1-300x78.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/8-1-768x199.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/8-1-1024x266.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/02/8-1-696x180.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/8-1-1068x277.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/02/8-1.jpg 1180w" sizes="(max-width: 681px) 100vw, 681px" /></p>
<p>Now verify the cluster status.</p>
<pre>pcs status cluster</pre>
<p><img loading="lazy" class="alignnone wp-image-10906" src="https://www.osradar.com/wp-content/uploads/2019/02/9-1-300x98.jpg" alt="" width="680" height="222" srcset="https://www.osradar.com/wp-content/uploads/2019/02/9-1-300x98.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/9-1-768x252.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/9-1-1024x336.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/02/9-1-696x228.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/9-1-1068x350.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/02/9-1.jpg 1074w" sizes="(max-width: 680px) 100vw, 680px" /></p>
<h1>Step 5: Disable STONITH and Ignore the Quorum Policy</h1>
<p>Since we are running three node cluster and don&#8217;t have a fencing device. So we have to disable the STONITH setting but it is not recommended for production environment.</p>
<p>Disable STONITH and ignore Quorum policy using below commands.</p>
<pre>pcs property set stonith-enabled=false
pcs property set no-quorum-policy=ignore</pre>
<p>Then make sure stonith and the quorum policy are disabled.</p>
<pre>pcs property list</pre>
<p><img loading="lazy" class="alignnone wp-image-10902" src="https://www.osradar.com/wp-content/uploads/2019/02/6-1-300x84.jpg" alt="" width="682" height="191" srcset="https://www.osradar.com/wp-content/uploads/2019/02/6-1-300x84.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/6-1-768x215.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/6-1-696x195.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/6-1.jpg 1014w" sizes="(max-width: 682px) 100vw, 682px" /></p>
<h1>Step 6: Add the Floating IP and Resources</h1>
<p>Floating IP is the IP address that wil be migrated/moved automatically from one server to another server. Our floating ip address wil be 192.168.130.222 then we will add two resources, the Floating IP address resource with the name &#8216;virtual_ip&#8217; and a new resource for the Nginx web server named &#8216;webserver&#8217;</p>
<p>Run below command to add floating IP address &#8216;virtual_ip&#8217;</p>
<pre>pcs resource create virtual_ip ocf:heartbeat:IPaddr2 ip=192.168.130.222 cidr_netmask=32 op monitor interval=30s</pre>
<p>Then run below command to add a new resource for the Nginx &#8216;webserver&#8217;</p>
<pre>pcs resource create webserver ocf:heartbeat:nginx configfile=/etc/nginx/nginx.conf op monitor timeout="5s" interval="5s"</pre>
<p>Now verify resources status and check that there is no error.</p>
<pre>pcs status resources</pre>
<p><img loading="lazy" class="alignnone wp-image-10903" src="https://www.osradar.com/wp-content/uploads/2019/02/10-1-300x61.jpg" alt="" width="679" height="138" srcset="https://www.osradar.com/wp-content/uploads/2019/02/10-1-300x61.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/10-1-768x156.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/10-1-1024x208.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/02/10-1-696x142.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/10-1-1068x217.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/02/10-1.jpg 1366w" sizes="(max-width: 679px) 100vw, 679px" /></p>
<h1>Step 7: Add Constraint Rules to the Cluster</h1>
<p>Now will configure High Availability Rules and resource constraint.</p>
<p>Set the collation constraint for webserver and virtual_ip resources with the score &#8216;INFINITY&#8217; using below command.</p>
<pre>pcs constraint colocation add webserver virtual_ip INFINITY</pre>
<p>Now Set the &#8216;virtual_ip&#8217; and &#8216;webserver&#8217; resources always on same node servers using below command.</p>
<pre>pcs constraint order virtual_ip then webserver</pre>
<p>Next, stop and start the cluster</p>
<pre>pcs cluster stop --all
pcs cluster start --all</pre>
<p>Now again verify resources status.</p>
<pre>pcs status resources</pre>
<p>You can sse that virtual_ip and webserver resources started on the same server/node &#8216;host2&#8217;</p>
<p><img loading="lazy" class="alignnone wp-image-10907" src="https://www.osradar.com/wp-content/uploads/2019/02/11-300x59.jpg" alt="" width="676" height="133" srcset="https://www.osradar.com/wp-content/uploads/2019/02/11-300x59.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/11-768x150.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/11-1024x200.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/02/11-696x136.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/11.jpg 1051w" sizes="(max-width: 676px) 100vw, 676px" /></p>
<h1>Step 8: Configure Firewalld</h1>
<p>Run below commands to add necessary services in firewalld.</p>
<pre>firewall-cmd --add-service=high-availability --permanent 
firewall-cmd --add-service=http --permanent 
firewall-cmd --add-service=https --permanent</pre>
<p>Now reload the firewalld</p>
<pre>firewall-cmd --reload</pre>
<h1>Step 9: Testing</h1>
<p>In this step, we will Test the node status, corosync members and status and then test the high-availability of the Nginx webserver by accessing the Floating IP address.</p>
<p>Test node status corosync members and corosync status using below command.</p>
<pre>pcs status nodes
corosync-cmapctl | grep members
pcs status corosync</pre>
<p>Finally, check the webserver High Availability. Open your web browser and type the Floating IP address 192.168.130.222</p>
<p>You will see the web page from the &#8216;host2&#8217; server.</p>
<p><img loading="lazy" class="alignnone wp-image-10908" src="https://www.osradar.com/wp-content/uploads/2019/02/12-300x91.jpg" alt="" width="683" height="207" srcset="https://www.osradar.com/wp-content/uploads/2019/02/12-300x91.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/12-768x232.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/12-696x211.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/12.jpg 985w" sizes="(max-width: 683px) 100vw, 683px" /></p>
<p>Now, stop the cluster on the &#8216;host2&#8217; server using below command.</p>
<pre>pcs cluster stop host2 --force</pre>
<p>And check again the page and this time, you will see the page from the &#8216;host1&#8217; server as below.</p>
<p><img loading="lazy" class="alignnone wp-image-10909" src="https://www.osradar.com/wp-content/uploads/2019/02/13-300x109.jpg" alt="" width="680" height="247" srcset="https://www.osradar.com/wp-content/uploads/2019/02/13-300x109.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/02/13-768x279.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/02/13-696x253.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/02/13.jpg 990w" sizes="(max-width: 680px) 100vw, 680px" /></p>
<p>You have installed Nginx webserver High Availability with Pacemaker, Corosync, and Pcsd on CentOS 7 server successfully.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/create-nginx-high-availability-with-pacemaker-and-corosync-on-centos-7/">Create Nginx High Availability with Pacemaker and Corosync on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/create-nginx-high-availability-with-pacemaker-and-corosync-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Building your own Wireless Access Point on top of CentOS7</title>
		<link>https://www.osradar.com/building-your-own-wireless-access-point-on-top-of-centos7/</link>
					<comments>https://www.osradar.com/building-your-own-wireless-access-point-on-top-of-centos7/#comments</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Fri, 01 Feb 2019 10:58:07 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[Wireless]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10314</guid>

					<description><![CDATA[<p>Wireless is everywhere, though have you ever thought about building your own wireless access point.?Well, if you&#8217;ve got capable enough wireless NIC and of course bit of understanding in Linux, that&#8217;s what it takes to get the job done.! &#160; On this article, I will stick to CentOS7 system and as well following applications to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/building-your-own-wireless-access-point-on-top-of-centos7/">Building your own Wireless Access Point on top of CentOS7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Wireless is everywhere, though have you ever thought about building your own wireless access point.?Well, if you&#8217;ve got capable enough wireless NIC and of course bit of understanding in Linux, that&#8217;s what it takes to get the job done.!</p>
<p>&nbsp;</p>
<p>On this article, I will stick to CentOS7 system and as well following applications to work on the goal;</p>
<ul>
<li>hostapd =&gt; a daemon that will control how these wireless protocols should behave</li>
<li>dhcpd =&gt; a daemon that taking care of handing over IP address allocation for external clients</li>
<li>FirewallD =&gt; the native firewall daemon on Centos7 platforms that helps to perform NAT functionality while client internet requests traverse via wireless AP.</li>
<li>I also assume that the system that we are gonna build our Access Point has wireless NIC plus another medium of access to reach the internet, for example, having a wired NIC with ISP connectivity.</li>
</ul>
<p>&nbsp;</p>
<p>01. Finding out whether your wireless nic support access-point mode:</p>
<pre class="">iw list</pre>
<p><img loading="lazy" class="alignnone size-medium wp-image-10315" src="https://www.osradar.com/wp-content/uploads/2019/01/1-20-300x267.png" alt="" width="300" height="267" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-20-300x267.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-20.png 398w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>&nbsp;</p>
<p>02. Second, let make sure no blocking behavior occured on our selected wireless NIC.</p>
<pre class="">rfkill list
</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-10317" src="https://www.osradar.com/wp-content/uploads/2019/01/1-21.png" alt="" width="252" height="51" /></p>
<p>As in the figure, both Soft &amp; Hard blocked should say &#8220;no&#8221;, otherwise, the system won&#8217;t allow Hostapd to setup wireless on top of the selected NIC. If unfortunately blocked are in &#8220;yes&#8221;, you can work on following command to mark them as &#8220;no&#8221;</p>
<pre class="">rfkill unblock wlan</pre>
<p>&nbsp;</p>
<p>03. Let install &#8220;epel-release&#8221; package which will then setup a new repository that hosts this &#8220;hostapd&#8221; package.</p>
<pre class="">yum -y install epel-release
</pre>
<pre class="">yum install hostapd dhcp</pre>
<p>&nbsp;</p>
<p>04. Once the installation completes, let&#8217;s move to hostapd specific configuration =&gt; /etc/hostapd/hostapd.conf</p>
<pre class="lang:sh decode:true">ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
driver=nl80211

wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

wpa_passphrase=yourpassword
interface=wlp01
bridge=br-AP
hw_mode=g
channel=6
ssid=CentOSAir</pre>
<p><strong>interface</strong> =&gt; on which interface that setup this wireless access point<br />
<strong>bridge</strong> =&gt; a virtual &#8220;type =&gt; bridge&#8221; interface that manage the IP address space for the hosting access point<br />
<strong>ssid</strong> =&gt; the name that client see as your wireless AP</p>
<p>&nbsp;</p>
<p>05. Next step should be implement a &#8220;br-AP&#8221; virtual bridge interface that we defined while configuring hostapd.</p>
<pre class="">nmcli con add con-name br-AP type bridge ifname br-AP autoconnect yes stp no ip4 192.168.10.1/24</pre>
<p>&nbsp;</p>
<p>06. To let handing over IP address leases over to clients, DHCP is a must =&gt; /etc/dhcpd/dhcpd.conf</p>
<pre class="lang:sh decode:true ">option domain-name-servers 192.168.5.49;
default-lease-time 600;
max-lease-time 7200;
#
# this DHCP server to be declared valid
authoritative;
#
# specify network address and subnet mask
subnet 192.168.10.0 netmask 255.255.255.0 {
       range dynamic-bootp 192.168.10.200 192.168.10.220;
       option broadcast-address 192.168.10.255;
       option domain-name-servers 192.168.10.1;
       option domain-name "example.org";
       option routers 192.168.10.1;
       }</pre>
<p>Note that IP address range should be same on both Bridge interface as well as IP address pool managed by DHCP.</p>
<p>07. While Linux system boots up and yet wireless NIC might not initialized as required. In such cases you might experience a service failure on &#8220;hostapd.service&#8221;. Then the tick should ask the respective initialization unit file to restart the fail service, if found. To do this, you might need to reflect default hostapd.service file to the following context =&gt; vim /etc/systemd/system/hostapd.service</p>
<pre class="lang:sh decode:true">[Unit]
Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
After=network.target

[Service]
Type=forking
PIDFile=/run/hostapd.pid
ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd.pid -B
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target</pre>
<p>Note following key parameters:<br />
<strong>Restart</strong>=on-failure<br />
<strong>RestartSec</strong>=10</p>
<p>08. Further, I even personally experience a failure in DHCP initialization due to early forking while our Bridge interface hasn&#8217;t completed it&#8217;s own initialization. This is a must because DHCP strictly looking for a system IP address for which it&#8217;s pool of address defined in its configuration. So, lets implement another trick by creating a systemD timer and ask it to fork the dhcpd.service with a bit of delay =&gt; vim /etc/systemd/system/dhcpd.timer</p>
<pre class="lang:sh decode:true ">[Unit]
Description=make dhcp starts after 60sec of boot

[Timer]
OnBootSec=1min
Unit=dhcpd.service

[Install]
WantedBy=multi-user.target</pre>
<p>What this unit does is that, even the main service of &#8220;dhcpd.service&#8221; is in disable mode at startup, this force the initialization of the dhcpd process after 60 seconds of delay.</p>
<p>09. Finally, reload the systemD unit files, stop DHCP service at boot process and finally start DHCP timer as well as hostapd daemon.</p>
<pre class="lang:sh decode:true ">systemctl daemon-reload
systemctl disable dhcpd.service
systemctl enable dhcpd.timer
systemctl enable hostapd.service</pre>
<p>&nbsp;</p>
<p>10. Reboot the system and after 1 minutes of delay, check the status of;</p>
<pre class="lang:sh decode:true ">systemctl status hostapd.service
systemctl status dhcpd.service</pre>
<p>If they are running, then well done, you done it. But, if unfortunately a failure in hostapd.service, try to restart it again by first, disabling WIFI from NetworkManager.</p>
<pre class="">nmcli radio wifi off
</pre>
<p>&nbsp;</p>
<p>11. When external client traffic moving out on via our system&#8217;s public interface(or the NIC which holding your ISP connection), they should subjected to a NAT functionality, otherwise these outgoing traffic  would simply never be route back to our system to complete its communication. To setup the NAT process, lets configure firewallD.</p>
<pre class="lang:sh decode:true ">firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --zone=public --add-masquerade
firewall-cmd --zone=public --add-port=80/tcp
firewall-cmd --zone=public --add-port=443/tcp
firewall-cmd --zone=public --add-service=dns
</pre>
<p>Be mindful to add more rules, if required, to allow certain outgoing tcp/udp protocols.</p>
<p>&nbsp;</p>
<p><em>&#8220;I hope this has been informative for you&#8221;</em></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/building-your-own-wireless-access-point-on-top-of-centos7/">Building your own Wireless Access Point on top of CentOS7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/building-your-own-wireless-access-point-on-top-of-centos7/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Install CWP (Centos Web Panel) on CentOS 7</title>
		<link>https://www.osradar.com/install-cwp-centos-web-panel-on-centos-7/</link>
					<comments>https://www.osradar.com/install-cwp-centos-web-panel-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Sun, 27 Jan 2019 00:40:37 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[Linux server]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[web hosting]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9763</guid>

					<description><![CDATA[<p>CentOS Web Panel (CWP) is a free web hosting control panel which allows easily manage multiple servers (both Dedicated and VPS) without the need to access server through SSH for every small task that you need to complete. You can host multiple domain free of cost in this web panel. It is very easy to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cwp-centos-web-panel-on-centos-7/">Install CWP (Centos Web Panel) on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>CentOS Web Panel (CWP) is a free web hosting control panel which allows easily manage multiple servers (both Dedicated and VPS) without the need to access server through SSH for every small task that you need to complete. You can host multiple domain free of cost in this web panel. It is very easy to configure and manage.</p>



<p>In this article you will learn how to install CWP on your CentOS server.</p>



<p><strong>CentOS Web Panel Features:</strong></p>



<ul><li>Apache Web Server.</li><li>PHP Selector.</li><li>MySQL/MariaDB + phpMyAdmin.</li><li>Email – Postfix and Dovecot, mailboxes, RoundCube web interface, SpamAssassin.</li><li>CSF (Config Server Firewall).</li><li>ClamAV Antivirus</li><li>Backup Manager.</li><li>3rd Party Aplications.</li><li>Easy user management interface.</li><li>Setup Server for Web Hosting.</li><li>DNS Server.</li><li>Live Monitoring.</li><li>File System Lock (means, no more website hacking due to locking of files from changes).</li><li>Server configuration AutoFixer.</li><li>cPanel Account Migration.</li><li>TeamSpeak 3 Manager (Voice streaming).</li><li>Shoutcast Manager (video streaming).</li></ul>



<p><strong>CENTOS WEB PANEL REQUIREMENTS</strong></p>



<ul><li>A Static IP address</li><li>Freshly installed operating system without any configuration changes.</li><li>Minimum RAM for 32-bit 512MB and 64-bit 1GB with 10GB of free space.</li></ul>



<h2>Step 1. Configure Hostname</h2>



<p>Note: hostname must be differnet from your main domain.(for example, if example.com is a domain on your server, use hostname.example.com as your fully qualified hostname).</p>



<p>You can use the following command for hostname setup eg. osradar.localhost.localdomain</p>



<pre class="wp-block-preformatted"># hostnamectl set-hostname osradar.localhost.localdomain</pre>



<pre class="wp-block-preformatted"># hostnamectl</pre>



<figure class="wp-block-image"><img loading="lazy" width="810" height="297" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/1-9.jpg" alt="" class="wp-image-9777" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-9.jpg 810w, https://www.osradar.com/wp-content/uploads/2019/01/1-9-300x110.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-9-768x282.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-9-696x255.jpg 696w" sizes="(max-width: 810px) 100vw, 810px" /></figure>



<p></p>



<h2>Step 2. Configure Server IP addresses</h2>



<p>Here you will make configuration in your network interface file and assign your IP address.</p>



<pre class="wp-block-preformatted"># vi /etc/sysconfig/network-scripts/ifcfg-ens33</pre>



<figure class="wp-block-image"><img loading="lazy" width="822" height="290" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/2-8.jpg" alt="" class="wp-image-9779" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-8.jpg 822w, https://www.osradar.com/wp-content/uploads/2019/01/2-8-300x106.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-8-768x271.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-8-696x246.jpg 696w" sizes="(max-width: 822px) 100vw, 822px" /></figure>



<p><br></p>



<h2>Step 3. Update the system</h2>



<p>Use following commands to install and update server necessary updates.</p>



<pre class="wp-block-preformatted"># yum -y install wget</pre>



<pre class="wp-block-preformatted"># yum -y update</pre>



<pre class="wp-block-preformatted"># reboot</pre>



<h2>Step 4. Installing CWP on CentOS 7</h2>



<p>Note: CWP installation can take more than 30 minutes, because it needs to compile apache and php from source.</p>



<pre class="wp-block-preformatted"># cd /usr/local/src</pre>



<pre class="wp-block-preformatted"># wget http://centos-webpanel.com/cwp-el7-latest</pre>



<pre class="wp-block-preformatted"># sh cwp-el7-latest</pre>



<figure class="wp-block-image"><img loading="lazy" width="899" height="410" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/3-8.jpg" alt="" class="wp-image-9780" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-8.jpg 899w, https://www.osradar.com/wp-content/uploads/2019/01/3-8-300x137.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-8-768x350.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-8-696x317.jpg 696w" sizes="(max-width: 899px) 100vw, 899px" /></figure>



<p></p>



<p>After installation a list of credentials will be appeared to access the panel. Make sure to copy or write down the login information. Once done, press “<strong>ENTER</strong>” for server reboot.</p>



<figure class="wp-block-image"><img loading="lazy" width="887" height="501" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/4-5.jpg" alt="" class="wp-image-9781" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-5.jpg 887w, https://www.osradar.com/wp-content/uploads/2019/01/4-5-300x169.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-5-768x434.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-5-696x393.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/4-5-744x420.jpg 744w" sizes="(max-width: 887px) 100vw, 887px" /></figure>



<p></p>



<h2>Step 5. Login CWP Admin Control Panel</h2>



<p>Onece server reboot, login to your CWP on your web browser using the link provided by the installer on your server</p>



<p>http://SERVER-IP:2030/<br>Username: root<br>Password: your root password</p>



<figure class="wp-block-image"><img loading="lazy" width="850" height="560" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/5-7.jpg" alt="" class="wp-image-9782" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-7.jpg 850w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-300x198.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-768x506.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-696x459.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/5-7-638x420.jpg 638w" sizes="(max-width: 850px) 100vw, 850px" /></figure>



<p>Type username and password to login.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="530" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/01/6-5-1024x530.jpg" alt="" class="wp-image-9783" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-5-1024x530.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-300x155.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-768x397.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-696x360.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-1068x553.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/01/6-5-811x420.jpg 811w, https://www.osradar.com/wp-content/uploads/2019/01/6-5.jpg 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>After logging in, it is recommended to make below configuration.</p>



<p><strong>Setup Nameservers</strong><br>DNS Functions &gt; Edit Nameserver IP<br><br><strong>Setup shared IP </strong>(must be your public IP address)<br>CWP settings &gt; Edit Settings &gt; write the shared IP(Normally main IP address already assigned)<br><br><strong>Setup at least one hosting package</strong><br>Go to package &gt;add package &gt; fill in the info and limits of the package<br><br><strong>Setup root email</strong><br>Go to CWP settings &gt; Edit Settings &gt; write the root email for the CWP</p>



<p>For more configuration instructions, please visit given link or comment bewlo.<br> <a href="http://wiki.centos-webpanel.com/">http://wiki.centos-webpanel.com/</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cwp-centos-web-panel-on-centos-7/">Install CWP (Centos Web Panel) on CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-cwp-centos-web-panel-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Samba on CentOS 7 for File Sharing</title>
		<link>https://www.osradar.com/install-samba-on-centos-7-for-file-sharing/</link>
					<comments>https://www.osradar.com/install-samba-on-centos-7-for-file-sharing/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Thu, 24 Jan 2019 20:49:32 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[Linux server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9668</guid>

					<description><![CDATA[<p>In our last article, You will learn how to install and configure Samba on CentOS 7 for file sharing between other Linux and Windows systems. Step: 1 Install Samba Server Use below command to install samba with necessary packages. # yum install samba samba-common samba-client -y Step 2: Check Windows Workgroup Before samba configurations, make [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-samba-on-centos-7-for-file-sharing/">Install Samba on CentOS 7 for File Sharing</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In our last article, You will learn how to install and configure Samba on CentOS 7 for file sharing between other Linux and Windows systems.</p>
<h1>Step: 1 Install Samba Server</h1>
<p>Use below command to install samba with necessary packages.</p>
<pre class=""># yum install samba samba-common samba-client -y</pre>
<p><img loading="lazy" class="alignnone wp-image-9669" src="https://www.osradar.com/wp-content/uploads/2019/01/1-8-300x101.jpg" alt="" width="683" height="230" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-8-300x101.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-8-768x258.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-8.jpg 922w" sizes="(max-width: 683px) 100vw, 683px" /></p>
<h1>Step 2: Check Windows Workgroup</h1>
<p>Before samba configurations, make sure Windows machine is in same workgroup.<br />
open the cmd prompt in Windows machine and run the following command.</p>
<pre class="">&gt; net config workstation</pre>
<p><img loading="lazy" class="alignnone wp-image-9672" src="https://www.osradar.com/wp-content/uploads/2019/01/2-7-300x193.jpg" alt="" width="681" height="438" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-7-300x193.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-7-653x420.jpg 653w, https://www.osradar.com/wp-content/uploads/2019/01/2-7.jpg 676w" sizes="(max-width: 681px) 100vw, 681px" /></p>
<h1>Step 3: Samba Configuration</h1>
<p>before configuration rename samba default configuration file /etc/samba/smb.conf as backup using below command.</p>
<pre class=""># mv /etc/samba/smb.conf /etc/samba/smb.conf.default</pre>
<p><strong>Samba Anonymous File Sharing</strong></p>
<p>Now create a shared folder on the server where all files/folders will be stored and set appropriate permissions on it and allow selinux for the samba configuration.</p>
<p>Run below commands</p>
<pre class=""># mkdir -p /srv/samba/anonymous

# chmod -R 0755 /srv/samba/anonymous

# chown -R nobody:nobody /srv/samba/anonymous

# chcon -t samba_share_t /srv/samba/anonymous</pre>
<p><img loading="lazy" class="alignnone wp-image-9673" src="https://www.osradar.com/wp-content/uploads/2019/01/3-7-300x50.jpg" alt="" width="678" height="113" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-7-300x50.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-7.jpg 721w" sizes="(max-width: 678px) 100vw, 678px" /></p>
<p>Now make following changes in new samba configuration file.</p>
<pre class=""># vi /etc/samba/smb.conf</pre>
<pre class="lang:vim decode:true ">[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = centos
security = user
map to guest = bad user
dns proxy = no

[Anonymous]
path = /srv/samba/anonymous
browsable =yes
writable = yes
guest ok = yes
read only = no</pre>
<p><img loading="lazy" class="alignnone wp-image-9674" src="https://www.osradar.com/wp-content/uploads/2019/01/4-4-300x145.jpg" alt="" width="677" height="327" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-4-300x145.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-4.jpg 757w" sizes="(max-width: 677px) 100vw, 677px" /></p>
<p>Run below commant to verify samba configurations</p>
<pre class=""># testparm</pre>
<p><img loading="lazy" class="alignnone wp-image-9675" src="https://www.osradar.com/wp-content/uploads/2019/01/5-6-300x182.jpg" alt="" width="677" height="411" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-6-300x182.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-6-768x465.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-6-693x420.jpg 693w, https://www.osradar.com/wp-content/uploads/2019/01/5-6.jpg 840w" sizes="(max-width: 677px) 100vw, 677px" /></p>
<h1>Step 4: Start and Add Samba Services in firewall</h1>
<p>Run below command to allow samba in firewall</p>
<pre class=""># firewall-cmd --permanent --add-service=samba

# firewall-cmd --reload</pre>
<p><img loading="lazy" class="alignnone wp-image-9676" src="https://www.osradar.com/wp-content/uploads/2019/01/6-3-300x76.jpg" alt="" width="679" height="172" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-3-300x76.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-3-768x194.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-3.jpg 796w" sizes="(max-width: 679px) 100vw, 679px" /></p>
<p>Run below command to start and enable samba services.</p>
<pre class=""># systemctl start smb.service

# systemctl enable smb.service

# systemctl start nmb.service

# systemctl enable nmb.service</pre>
<p><img loading="lazy" class="alignnone wp-image-9677" src="https://www.osradar.com/wp-content/uploads/2019/01/7-2-300x58.jpg" alt="" width="683" height="132" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7-2-300x58.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/7-2-768x149.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/7-2-1024x198.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/7-2-1068x207.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/01/7-2.jpg 1070w" sizes="(max-width: 683px) 100vw, 683px" /></p>
<h1>Step 5: Access Shared folder</h1>
<p>Now you can access the Centos shared folder from windows, open Run prompt by pressing <span style="color: #008000"><strong>win + r</strong></span> key on your keyboard then type <strong>\\centos</strong> and press enter key.</p>
<p><img loading="lazy" class="alignnone wp-image-9678" src="https://www.osradar.com/wp-content/uploads/2019/01/8-3-300x154.jpg" alt="" width="674" height="346" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8-3-300x154.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/8-3.jpg 398w" sizes="(max-width: 674px) 100vw, 674px" /></p>
<p><strong>You will see Anonymous folder like below</strong></p>
<p><img loading="lazy" class="alignnone wp-image-9679" src="https://www.osradar.com/wp-content/uploads/2019/01/9-5-300x128.jpg" alt="" width="670" height="286" srcset="https://www.osradar.com/wp-content/uploads/2019/01/9-5-300x128.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/9-5.jpg 732w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p><strong>Now you can add files/folders in this folder to share with other users.</strong></p>
<p><img loading="lazy" class="alignnone wp-image-9680" src="https://www.osradar.com/wp-content/uploads/2019/01/10-2-300x105.jpg" alt="" width="657" height="230" srcset="https://www.osradar.com/wp-content/uploads/2019/01/10-2-300x105.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/10-2-768x268.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/10-2.jpg 968w" sizes="(max-width: 657px) 100vw, 657px" /></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-samba-on-centos-7-for-file-sharing/">Install Samba on CentOS 7 for File Sharing</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-samba-on-centos-7-for-file-sharing/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install and Configure VNC console in Centos7</title>
		<link>https://www.osradar.com/install-and-configure-vnc-console-in-centos7/</link>
					<comments>https://www.osradar.com/install-and-configure-vnc-console-in-centos7/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Mon, 21 Jan 2019 21:52:25 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9496</guid>

					<description><![CDATA[<p>In this article you will learn how to install and configure VNC in Centos and RHEL VNC (Virtual Network Computing) is a protocol which is used to remotely access user accounts by the Graphical User Interface. Step 1: Install VNC You need to use following command in order to install VNC. Makse sure you are [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-and-configure-vnc-console-in-centos7/">Install and Configure VNC console in Centos7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article you will learn how to install and configure <strong>VNC</strong> in Centos and RHEL</p>
<p>VNC (Virtual Network Computing) is a protocol which is used to remotely access user accounts by the Graphical User Interface.</p>
<h1>Step 1: Install VNC</h1>
<p>You need to use following command in order to install VNC. Makse sure you are login as root user.</p>
<pre class="lang:sh decode:true"># yum install tigervnc-server -y</pre>
<p><img loading="lazy" class="alignnone wp-image-9497" src="https://www.osradar.com/wp-content/uploads/2019/01/1-6-300x56.jpg" alt="" width="686" height="128" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-6-300x56.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-6-768x143.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-6.jpg 902w" sizes="(max-width: 686px) 100vw, 686px" /></p>
<h1>Step 2: Setup VNC Password</h1>
<p>After installation, login with the user you want to allow VNC remote access and and set VNC password for that user. I will enable VNC access to root user.</p>
<p>&nbsp;</p>
<pre class="lang:sh decode:true "># su - user_name

# vncpasswd</pre>
<p><img loading="lazy" class="alignnone wp-image-9498" src="https://www.osradar.com/wp-content/uploads/2019/01/2-5-300x76.jpg" alt="" width="683" height="173" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-5-300x76.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-5-768x195.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-5.jpg 924w" sizes="(max-width: 683px) 100vw, 683px" /></p>
<h1>Step 3: VNC Configuration</h1>
<p>Now create a VNC file for your user. I template file <strong>vncserver@.service</strong> placed in below mentioned path, we will use copy of that file and make configuration for VNC user.</p>
<p><span style="color: #ff0000;">/lib/systemd/system/vncserver@.service</span></p>
<p>Use following command to make copy of vncserver@.service file.<br />
<strong>Note:</strong> New file will be named as vncserver@:1.service</p>
<pre class="lang:sh decode:true"># cp /lib/systemd/system/vncserver@.service   /etc/systemd/system/vncserver@:1.service
</pre>
<p>&nbsp;</p>
<p>Number <span style="color: #ff0000;"><strong>1</strong></span> after @ sign represents the display number (port 5900+display). Secondly the port 5900 will be incremented by 1 with each started VNC server.</p>
<p>Now edit vncserver@:1.service file using following command.</p>
<pre class="lang:sh decode:true"># vi /etc/systemd/system/vncserver@\:1.service</pre>
<p>and add the below lines in this file. Replace your_user with your username.</p>
<pre class="lang:vim decode:true">[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i &gt; /dev/null 2&gt;&amp;1 || :'
ExecStart=/usr/sbin/runuser -l your_user -c "/usr/bin/vncserver %i
PIDFile=/home/You_user/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i &gt; /dev/null 2&gt;&amp;1 || :'

[Install]
WantedBy=multi-user.target</pre>
<p><img loading="lazy" class="alignnone wp-image-9502" src="https://www.osradar.com/wp-content/uploads/2019/01/3-5-300x132.jpg" alt="" width="684" height="301" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-5-300x132.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-5-768x337.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-5.jpg 955w" sizes="(max-width: 684px) 100vw, 684px" /></p>
<p>save changes to file and quite</p>
<h1>Step 4: Reload Necessary Daemons</h1>
<p>After changes in file, reload systemd program to load new VNC configuration file and start the VNC server. Use following commands</p>
<pre class="lang:sh decode:true "># systemctl daemon-reload

# systemctl start vncserver@:1

# systemctl status vncserver@:1

# systemctl enable vncserver@:1
</pre>
<p><img loading="lazy" class="alignnone wp-image-9503" src="https://www.osradar.com/wp-content/uploads/2019/01/4-2-300x102.jpg" alt="" width="685" height="233" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-2-300x102.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-2-768x262.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-2-1024x350.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/4-2.jpg 1060w" sizes="(max-width: 685px) 100vw, 685px" /></p>
<h1>Step 5: Add Ports in Firewall</h1>
<p>You must add VNC open ports in firewall so VNC client can access the system.<br />
Use below command to list listening ports of VNC server</p>
<pre class="lang:sh decode:true "># ss -tulpn| grep vnc
</pre>
<p><img loading="lazy" class="alignnone wp-image-9504" src="https://www.osradar.com/wp-content/uploads/2019/01/5-4-300x59.jpg" alt="" width="686" height="135" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-4-300x59.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-4-768x151.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-4-1024x202.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/5-4.jpg 1046w" sizes="(max-width: 686px) 100vw, 686px" /></p>
<p><strong>Note:</strong> If you started multiple VNC instances for different users, the port value will be 5902 for the second, 5903 for the third and so on.</p>
<p>Use followings commands to add ports and reload firewall.</p>
<pre class="lang:sh decode:true "># firewall-cmd --permanent --add-port=5901/tcp

# firewall-cmd --reload</pre>
<p><img loading="lazy" class="alignnone wp-image-9505" src="https://www.osradar.com/wp-content/uploads/2019/01/6-1-300x60.jpg" alt="" width="685" height="137" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-1-300x60.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-1-768x153.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-1.jpg 858w" sizes="(max-width: 685px) 100vw, 685px" /></p>
<h1>Step 6: Connect to CentOS Desktop from VNC Client</h1>
<p>In order to access Centos desktop you need to install a VNC Client program, then run VNC Client and add the IP address and port number of CentOS VNC server and press enter button.</p>
<p><img loading="lazy" class="alignnone wp-image-9507" src="https://www.osradar.com/wp-content/uploads/2019/01/7-300x204.jpg" alt="" width="659" height="448" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7-300x204.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/7-619x420.jpg 619w, https://www.osradar.com/wp-content/uploads/2019/01/7.jpg 734w" sizes="(max-width: 659px) 100vw, 659px" /></p>
<p>After that a warning will be displayed, click on continue button and enter VNC password on new screen.</p>
<p><img loading="lazy" class="alignnone wp-image-9508" src="https://www.osradar.com/wp-content/uploads/2019/01/8-1-300x219.jpg" alt="" width="678" height="495" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8-1-300x219.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/8-1.jpg 475w" sizes="(max-width: 678px) 100vw, 678px" /></p>
<p><img loading="lazy" class="alignnone wp-image-9509" src="https://www.osradar.com/wp-content/uploads/2019/01/9-1-300x190.jpg" alt="" width="679" height="430" srcset="https://www.osradar.com/wp-content/uploads/2019/01/9-1-300x190.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/9-1.jpg 476w" sizes="(max-width: 679px) 100vw, 679px" /></p>
<p><img loading="lazy" class="alignnone wp-image-9510" src="https://www.osradar.com/wp-content/uploads/2019/01/10-300x195.jpg" alt="" width="672" height="437" srcset="https://www.osradar.com/wp-content/uploads/2019/01/10-300x195.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/10-768x498.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/10-647x420.jpg 647w, https://www.osradar.com/wp-content/uploads/2019/01/10.jpg 792w" sizes="(max-width: 672px) 100vw, 672px" /></p>
<p>Congratulations! You have access your Centos Desktop from VNC.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-and-configure-vnc-console-in-centos7/">Install and Configure VNC console in Centos7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-and-configure-vnc-console-in-centos7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install and Configure SquirrelMail in CentOS 7</title>
		<link>https://www.osradar.com/install-and-configure-squirrelmail-in-centos-7/</link>
					<comments>https://www.osradar.com/install-and-configure-squirrelmail-in-centos-7/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Sun, 20 Jan 2019 20:02:57 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[rhel 7]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9552</guid>

					<description><![CDATA[<p>SquirrelMail is an opensource webmail package written in PHP. It includes built-in PHP support for the IMAP and SMTP protocols . It has very few requirements and very easy to install and configure. In this guide you will learn how to install and configure SquirrelMail step by step in Centos 7 and RHEL 7. Step [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-and-configure-squirrelmail-in-centos-7/">Install and Configure SquirrelMail in CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>SquirrelMail</strong> is an opensource webmail package written in PHP. It includes built-in PHP support for the IMAP and SMTP protocols . It has very few requirements and very easy to install and configure.</p>
<p>In this guide you will learn how to install and configure SquirrelMail step by step in Centos 7 and RHEL 7.</p>
<h1>Step 1: First of all disable SELINUX using below command</h1>
<p>this is not the best choice to disable the firewall because of security purposes, but we are doing this locally. in your case you allow the traffic vie the firewall-cmd rules.</p>
<pre class=""># vi /etc/selinux/config

</pre>
<p>set SELINUX=disabled</p>
<p>save changes to file and quite</p>
<p><img loading="lazy" class="alignnone wp-image-9558" src="https://www.osradar.com/wp-content/uploads/2019/01/1-7-300x110.jpg" alt="" width="687" height="252" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-7-300x110.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-7-768x283.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-7.jpg 913w" sizes="(max-width: 687px) 100vw, 687px" /></p>
<p>and reboot the server using below command</p>
<pre class=""># reboot</pre>
<h1>Step 2: Install and Configure Postfix</h1>
<p>You must <strong>install Epel Repository</strong> using below command</p>
<pre class=""># yum install epel-release -y</pre>
<p>Now install Postfix</p>
<pre class=""># yum install postfix -y</pre>
<p><img loading="lazy" class="alignnone wp-image-9560" src="https://www.osradar.com/wp-content/uploads/2019/01/2-6-300x99.jpg" alt="" width="682" height="225" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-6-300x99.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-6-768x255.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-6-1024x339.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/01/2-6.jpg 1032w" sizes="(max-width: 682px) 100vw, 682px" /></p>
<p>Now make following changes to posfix file using below command at the end.</p>
<pre class=""># vi /etc/postfix/main.cf</pre>
<pre class="lang:vim decode:true ">## Enter your hostname
myhostname = osradar.localhost.local

## Enter your domain name
mydomain = osradar.localhost.local

inet_interfaces = all
myorigin = $mydomain

##set your IP range
mynetworks = 192.168.130.138/24, 127.0.0.0/8

## set your mail direcotry
home_mailbox = Maildir/

## Now Go to line no 164 add $domain at the end
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain</pre>
<p><img loading="lazy" class="alignnone wp-image-9561" src="https://www.osradar.com/wp-content/uploads/2019/01/3-6-300x77.jpg" alt="" width="686" height="176" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-6-300x77.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-6-768x196.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-6.jpg 853w" sizes="(max-width: 686px) 100vw, 686px" /></p>
<p>save changes to file and quite</p>
<p>Restart Postfix</p>
<pre class=""># systemctl restart postfix

# systemctl enable postfix</pre>
<h1>Step 3: Install and Configure Dovecot</h1>
<pre class=""># yum install dovecot

# systemctl start dovecot

# systemctl enable dovecot
</pre>
<p>Now modify below files one by one</p>
<p>make following changes at the end of file <strong>/etc/dovecot/dovecot.conf</strong></p>
<pre class=""># vi /etc/dovecot/dovecot.conf</pre>
<p>protocols = imap pop3 lmtp</p>
<p><img loading="lazy" class="alignnone wp-image-9565" src="https://www.osradar.com/wp-content/uploads/2019/01/4-3-300x54.jpg" alt="" width="689" height="124" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-3-300x54.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-3-768x139.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-3.jpg 857w" sizes="(max-width: 689px) 100vw, 689px" /></p>
<p>make following changes at the end of file <strong>/etc/dovecot/conf.d/10-mail.conf</strong></p>
<pre class=""># vi /etc/dovecot/conf.d/10-mail.conf</pre>
<p>mail_location = maildir:~/Maildir</p>
<p><img loading="lazy" class="alignnone wp-image-9566" src="https://www.osradar.com/wp-content/uploads/2019/01/5-5-300x53.jpg" alt="" width="685" height="121" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-5-300x53.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-5-768x136.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-5.jpg 857w" sizes="(max-width: 685px) 100vw, 685px" /></p>
<p>make following changes at the end of file <strong>/etc/dovecot/conf.d/10-auth.conf</strong></p>
<pre><strong># vi /etc/dovecot/conf.d/10-auth.conf</strong></pre>
<p>disable_plaintext_auth = yes<br />
auth_mechanisms = plain login</p>
<p><img loading="lazy" class="alignnone wp-image-9567" src="https://www.osradar.com/wp-content/uploads/2019/01/6-2-300x65.jpg" alt="" width="683" height="148" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-2-300x65.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-2-768x168.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-2.jpg 912w" sizes="(max-width: 683px) 100vw, 683px" /></p>
<p>make following changes to file <strong>/etc/dovecot/conf.d/10-master.conf</strong></p>
<pre class=""># vi /etc/dovecot/conf.d/10-master.conf</pre>
<p>unix_listener auth-userdb {<br />
#mode = 0600<br />
user = postfix ## uncomment line 91 and enter postfix<br />
group = postfix ## uncomment line 92 and enter postfix</p>
<p><img loading="lazy" class="alignnone wp-image-9568" src="https://www.osradar.com/wp-content/uploads/2019/01/7-1-300x42.jpg" alt="" width="686" height="96" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7-1-300x42.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/7-1-768x108.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/7-1.jpg 890w" sizes="(max-width: 686px) 100vw, 686px" /></p>
<p>Now restart Dovecot</p>
<pre class=""># systemctl restart dovecot

# systemctl enable dovecot</pre>
<h1>Step 4: Install and Configure Squirrelmail</h1>
<p>First install and start apache service</p>
<pre class=""># yum install httpd -y

# systemctl start httpd

# systemctl enable httpd</pre>
<p>Now install Squirrelmail</p>
<pre class=""># yum install squirrelmail -y</pre>
<p><img loading="lazy" class="alignnone wp-image-9570" src="https://www.osradar.com/wp-content/uploads/2019/01/8-2-300x95.jpg" alt="" width="685" height="217" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8-2-300x95.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/8-2-768x242.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/8-2.jpg 846w" sizes="(max-width: 685px) 100vw, 685px" /></p>
<p>Now go to squirrelmail folder and configure it according to your server</p>
<pre class=""># cd /usr/share/squirrelmail/config/

# ./conf.pl</pre>
<p>After changes press S to save settings and press Q to exit.</p>
<p><img loading="lazy" class="alignnone wp-image-9571" src="https://www.osradar.com/wp-content/uploads/2019/01/9-4-300x161.jpg" alt="" width="680" height="365" srcset="https://www.osradar.com/wp-content/uploads/2019/01/9-4-300x161.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/9-4-768x413.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/9-4-780x420.jpg 780w, https://www.osradar.com/wp-content/uploads/2019/01/9-4.jpg 905w" sizes="(max-width: 680px) 100vw, 680px" /></p>
<p>Now add following lines at the end of <strong>httpd.conf</strong> file.</p>
<h5><strong>Note: If these lines are already added at the end of file SKIP this step.</strong></h5>
<pre class=""># vi /etc/httpd/conf/httpd.conf</pre>
<p>Alias /webmail /usr/share/squirrelmail<br />
&lt;Directory /usr/share/squirrelmail&gt;<br />
Options Indexes FollowSymLinks<br />
RewriteEngine On<br />
AllowOverride All<br />
DirectoryIndex index.php<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p>
<p>save changes and quite</p>
<p><img loading="lazy" class="alignnone wp-image-9573" src="https://www.osradar.com/wp-content/uploads/2019/01/10-1-300x90.jpg" alt="" width="683" height="205" srcset="https://www.osradar.com/wp-content/uploads/2019/01/10-1-300x90.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/10-1-768x232.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/10-1.jpg 842w" sizes="(max-width: 683px) 100vw, 683px" /></p>
<p>then restart Apache and dovecot service</p>
<pre class=""># systemctl restart httpd

# systemctl restart dovecot</pre>
<h1>Step 5: Create User and Access Webmail</h1>
<pre class=""># adduser osradar

# passwd osradar</pre>
<p>Finally access Webmail</p>
<p><strong>http://server-ip/webmail</strong></p>
<p>OR</p>
<p><strong>http://yourdomainname/webmail</strong></p>
<p><img loading="lazy" class="alignnone wp-image-9575" src="https://www.osradar.com/wp-content/uploads/2019/01/11-300x127.jpg" alt="" width="683" height="289" srcset="https://www.osradar.com/wp-content/uploads/2019/01/11-300x127.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/11-768x325.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/11.jpg 989w" sizes="(max-width: 683px) 100vw, 683px" /></p>
<p><img loading="lazy" class="alignnone wp-image-9576" src="https://www.osradar.com/wp-content/uploads/2019/01/12-300x117.jpg" alt="" width="682" height="266" srcset="https://www.osradar.com/wp-content/uploads/2019/01/12-300x117.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/01/12-768x299.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/01/12.jpg 994w" sizes="(max-width: 682px) 100vw, 682px" /></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-and-configure-squirrelmail-in-centos-7/">Install and Configure SquirrelMail in CentOS 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-and-configure-squirrelmail-in-centos-7/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install CentOS on VirtualBox</title>
		<link>https://www.osradar.com/how-to-install-centos-on-virtualbox/</link>
					<comments>https://www.osradar.com/how-to-install-centos-on-virtualbox/#comments</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Sat, 24 Nov 2018 18:04:44 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos 7]]></category>
		<category><![CDATA[install centos]]></category>
		<category><![CDATA[install centos 7]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7612</guid>

					<description><![CDATA[<p>CentOS is one of the most popular Linux distros because it’s the open-source version of the RHEL (Red Hat Enterprise Linux). Almost all the devs must have used CentOS before jumping deep into RHEL and enterprise category. CentOS is mostly the playground of young devs. Today, let’s learn to install CentOS on VirtualBox – the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-centos-on-virtualbox/">How to Install CentOS on VirtualBox</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>CentOS is one of the most popular Linux distros because it’s the open-source version of the RHEL (Red Hat Enterprise Linux). Almost all the devs must have used CentOS before jumping deep into RHEL and enterprise category. CentOS is mostly the playground of young devs.</p>
<p>Today, let’s learn to install CentOS on VirtualBox – the most popular virtualization software available. It’s open-source, cross-platform and offers the easiest environment for running virtual machines.</p>
<h1>Getting CentOS</h1>
<p>Before installing, we need to grab the installation source. In this case, we’ll be grabbing the CentOS ISO. <a href="https://www.centos.org/download/">Get the latest CentOS ISO</a>. Make sure that you grab the “DVD ISO” that comes up with a medium collection of packages. The “EVERYTHING ISO” is a whopping 9GB ISO that contains all the CentOS packages, so not recommended (unless you’re sure that it’s what you need).</p>
<p><img loading="lazy" class="size-full wp-image-7614 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-1.png" alt="" width="1180" height="557" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-1.png 1180w, https://www.osradar.com/wp-content/uploads/2018/11/centos-1-300x142.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-1-768x363.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-1-1024x483.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/centos-1-696x329.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-1-1068x504.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/centos-1-890x420.png 890w" sizes="(max-width: 1180px) 100vw, 1180px" /></p>
<p>Don’t worry. Whatever you grab, the installation is going to be the same.</p>
<h1>Setting VirtualBox</h1>
<p>Fire up VirtualBox.</p>
<p><img loading="lazy" class="size-full wp-image-7615 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-2.png" alt="" width="717" height="444" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-2.png 717w, https://www.osradar.com/wp-content/uploads/2018/11/centos-2-300x186.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-2-356x220.png 356w, https://www.osradar.com/wp-content/uploads/2018/11/centos-2-696x431.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-2-678x420.png 678w" sizes="(max-width: 717px) 100vw, 717px" /></p>
<p>Click on “New”.</p>
<p><img loading="lazy" class="size-full wp-image-7616 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-3.png" alt="" width="769" height="505" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-3.png 769w, https://www.osradar.com/wp-content/uploads/2018/11/centos-3-300x197.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-3-768x504.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-3-696x457.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-3-741x486.png 741w, https://www.osradar.com/wp-content/uploads/2018/11/centos-3-640x420.png 640w" sizes="(max-width: 769px) 100vw, 769px" /></p>
<p>Enter the name and choose the version as “Red Hat (64-bit)”.</p>
<p><img loading="lazy" class="size-full wp-image-7617 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-4.png" alt="" width="739" height="491" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-4.png 739w, https://www.osradar.com/wp-content/uploads/2018/11/centos-4-300x199.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-4-696x462.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-4-632x420.png 632w" sizes="(max-width: 739px) 100vw, 739px" /></p>
<p>At the next step, enter the amount of RAM space you’re willing to assign for the virtual machine. Minimum is 2GB but recommended 4GB. If you can afford 8GB, it&#8217;s the best.</p>
<p><img loading="lazy" class="size-full wp-image-7618 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-5.png" alt="" width="769" height="495" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-5.png 769w, https://www.osradar.com/wp-content/uploads/2018/11/centos-5-300x193.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-5-768x494.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-5-696x448.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-5-652x420.png 652w" sizes="(max-width: 769px) 100vw, 769px" /></p>
<p>Now, it’s time to create a virtual hard disk.</p>
<p><img loading="lazy" class="size-full wp-image-7619 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-6.png" alt="" width="738" height="477" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-6.png 738w, https://www.osradar.com/wp-content/uploads/2018/11/centos-6-300x194.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-6-696x450.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-6-650x420.png 650w" sizes="(max-width: 738px) 100vw, 738px" /></p>
<p>Select “VDI” or “VHD”.</p>
<p><img loading="lazy" class="size-full wp-image-7620 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-7.png" alt="" width="748" height="540" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-7.png 748w, https://www.osradar.com/wp-content/uploads/2018/11/centos-7-300x217.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-7-324x235.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/centos-7-696x502.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-7-582x420.png 582w" sizes="(max-width: 748px) 100vw, 748px" /></p>
<p>Choose “Dynamically allocated”. This way, the more you fill the virtual machine, the virtual hard disk will grow accordingly instead of grabbing all the spaces you’re about to assign.</p>
<p><img loading="lazy" class="size-full wp-image-7621 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-8.png" alt="" width="750" height="546" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-8.png 750w, https://www.osradar.com/wp-content/uploads/2018/11/centos-8-300x218.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-8-324x235.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/centos-8-696x507.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-8-577x420.png 577w" sizes="(max-width: 750px) 100vw, 750px" /></p>
<p>Now, for installing CentOS, I recommend assigning 16GB of disk space.</p>
<p><img loading="lazy" class="size-full wp-image-7622 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-9.png" alt="" width="708" height="433" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-9.png 708w, https://www.osradar.com/wp-content/uploads/2018/11/centos-9-300x183.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-9-696x426.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-9-687x420.png 687w" sizes="(max-width: 708px) 100vw, 708px" /></p>
<p>The virtual machine is set.</p>
<p>Select the “CentOS” and press “Ctrl + S”.</p>
<p><img loading="lazy" class="size-full wp-image-7623 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-10.png" alt="" width="745" height="506" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-10.png 745w, https://www.osradar.com/wp-content/uploads/2018/11/centos-10-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-10-696x473.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-10-618x420.png 618w" sizes="(max-width: 745px) 100vw, 745px" /></p>
<p>From “System”, assign 2 processor cores (or threads). If your system has more cores, then you can easily assign more to the system.</p>
<p><img loading="lazy" class="size-full wp-image-7624 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-11.png" alt="" width="750" height="517" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-11.png 750w, https://www.osradar.com/wp-content/uploads/2018/11/centos-11-300x207.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-11-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2018/11/centos-11-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2018/11/centos-11-696x480.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-11-609x420.png 609w" sizes="(max-width: 750px) 100vw, 750px" /></p>
<p>From “Display”, assign the highest “Video Memory”.</p>
<p><img loading="lazy" class="size-full wp-image-7625 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-12.png" alt="" width="753" height="505" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-12.png 753w, https://www.osradar.com/wp-content/uploads/2018/11/centos-12-300x201.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-12-696x467.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-12-626x420.png 626w" sizes="(max-width: 753px) 100vw, 753px" /></p>
<p>From “Storage”, select the ISO you just downloaded.</p>
<p><img loading="lazy" class="size-full wp-image-7626 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-13.jpg" alt="" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-13.jpg 1366w, https://www.osradar.com/wp-content/uploads/2018/11/centos-13-300x169.jpg 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-13-768x432.jpg 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-13-1024x576.jpg 1024w, https://www.osradar.com/wp-content/uploads/2018/11/centos-13-696x391.jpg 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-13-1068x600.jpg 1068w, https://www.osradar.com/wp-content/uploads/2018/11/centos-13-747x420.jpg 747w" sizes="(max-width: 1366px) 100vw, 1366px" /></p>
<p><img loading="lazy" class="size-full wp-image-7627 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-14.png" alt="" width="801" height="504" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-14.png 801w, https://www.osradar.com/wp-content/uploads/2018/11/centos-14-300x189.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-14-768x483.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-14-696x438.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-14-668x420.png 668w" sizes="(max-width: 801px) 100vw, 801px" /></p>
<p>Once the options are set, it’s time to fire up the virtual machine!</p>
<h1>Installing CentOS</h1>
<p>Start the virtual machine.</p>
<p><img loading="lazy" class="size-full wp-image-7646 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-15-2.png" alt="" width="621" height="455" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-15-2.png 621w, https://www.osradar.com/wp-content/uploads/2018/11/centos-15-2-300x220.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-15-2-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2018/11/centos-15-2-573x420.png 573w" sizes="(max-width: 621px) 100vw, 621px" /></p>
<p>&nbsp;</p>
<p>Select “Install CentOS 7”.</p>
<p>This is the first page of CentOS installation. Make sure to choose your preferred language.</p>
<p><img loading="lazy" class="size-full wp-image-7629 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-16.png" alt="" width="1024" height="660" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-16.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/centos-16-300x193.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-16-768x495.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-16-696x449.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-16-652x420.png 652w" sizes="(max-width: 1024px) 100vw, 1024px" /></p>
<p>Now, it’s time to set all the installation options.</p>
<p><img loading="lazy" class="size-full wp-image-7630 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-17.png" alt="" width="1023" height="658" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-17.png 1023w, https://www.osradar.com/wp-content/uploads/2018/11/centos-17-300x193.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-17-768x494.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-17-696x448.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-17-653x420.png 653w" sizes="(max-width: 1023px) 100vw, 1023px" /></p>
<p>After everyhing is set, begin the installation.</p>
<p><img loading="lazy" class="size-full wp-image-7631 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-18.png" alt="" width="824" height="191" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-18.png 824w, https://www.osradar.com/wp-content/uploads/2018/11/centos-18-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-18-768x178.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-18-696x161.png 696w" sizes="(max-width: 824px) 100vw, 824px" /></p>
<p>While the installation goes on, set “root” password and “user”.</p>
<p><img loading="lazy" class="size-full wp-image-7632 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-19.png" alt="" width="1014" height="619" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-19.png 1014w, https://www.osradar.com/wp-content/uploads/2018/11/centos-19-300x183.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-19-768x469.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-19-696x425.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-19-688x420.png 688w" sizes="(max-width: 1014px) 100vw, 1014px" /></p>
<p>Wait for the process to complete.</p>
<p><img loading="lazy" class="size-full wp-image-7633 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-20.png" alt="" width="1003" height="640" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-20.png 1003w, https://www.osradar.com/wp-content/uploads/2018/11/centos-20-300x191.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-20-768x490.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-20-696x444.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-20-658x420.png 658w" sizes="(max-width: 1003px) 100vw, 1003px" /></p>
<p>Reboot the system for completing the installation.</p>
<p><img loading="lazy" class="alignnone size-full wp-image-7634" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-21.png" alt="" width="1016" height="664" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-21.png 1016w, https://www.osradar.com/wp-content/uploads/2018/11/centos-21-300x196.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-21-768x502.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-21-696x455.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-21-643x420.png 643w" sizes="(max-width: 1016px) 100vw, 1016px" /></p>
<p>Accept license and connect to a network.</p>
<p><img loading="lazy" class="size-full wp-image-7635 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-22.png" alt="" width="1024" height="393" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-22.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/centos-22-300x115.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-22-768x295.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-22-696x267.png 696w" sizes="(max-width: 1024px) 100vw, 1024px" /></p>
<p><img loading="lazy" class="alignnone size-full wp-image-7636" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-23.png" alt="" width="1021" height="660" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-23.png 1021w, https://www.osradar.com/wp-content/uploads/2018/11/centos-23-300x194.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-23-768x496.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-23-696x450.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-23-650x420.png 650w" sizes="(max-width: 1021px) 100vw, 1021px" /></p>
<p><img loading="lazy" class="size-full wp-image-7637 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-24.png" alt="" width="1024" height="384" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-24.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/centos-24-300x113.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-24-768x288.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-24-696x261.png 696w" sizes="(max-width: 1024px) 100vw, 1024px" /></p>
<p>System is up! Login into your user account.</p>
<p><img loading="lazy" class="size-full wp-image-7638 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-25.png" alt="" width="1019" height="503" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-25.png 1019w, https://www.osradar.com/wp-content/uploads/2018/11/centos-25-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-25-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-25-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/centos-25-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-25-851x420.png 851w" sizes="(max-width: 1019px) 100vw, 1019px" /></p>
<p>When starting the system, you’ll find out the initial GNOME setup window. Follow on-screen instructions.</p>
<p><img loading="lazy" class="size-full wp-image-7639 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-26.png" alt="" width="1024" height="658" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-26.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/centos-26-300x193.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-26-768x494.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-26-696x447.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-26-654x420.png 654w" sizes="(max-width: 1024px) 100vw, 1024px" /> <img loading="lazy" class="size-full wp-image-7640 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-27.png" alt="" width="1019" height="662" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-27.png 1019w, https://www.osradar.com/wp-content/uploads/2018/11/centos-27-300x195.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-27-768x499.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-27-696x452.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-27-646x420.png 646w" sizes="(max-width: 1019px) 100vw, 1019px" /> <img loading="lazy" class="size-full wp-image-7641 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-28.png" alt="" width="1019" height="476" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-28.png 1019w, https://www.osradar.com/wp-content/uploads/2018/11/centos-28-300x140.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-28-768x359.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-28-696x325.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-28-899x420.png 899w" sizes="(max-width: 1019px) 100vw, 1019px" /> <img loading="lazy" class="size-full wp-image-7642 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-29.png" alt="" width="1020" height="573" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-29.png 1020w, https://www.osradar.com/wp-content/uploads/2018/11/centos-29-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-29-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-29-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-29-748x420.png 748w" sizes="(max-width: 1020px) 100vw, 1020px" /> <img loading="lazy" class="size-full wp-image-7643 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-30.png" alt="" width="1023" height="661" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-30.png 1023w, https://www.osradar.com/wp-content/uploads/2018/11/centos-30-300x194.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-30-768x496.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-30-696x450.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-30-650x420.png 650w" sizes="(max-width: 1023px) 100vw, 1023px" /> <img loading="lazy" class="size-full wp-image-7644 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/11/centos-31.png" alt="" width="1026" height="665" srcset="https://www.osradar.com/wp-content/uploads/2018/11/centos-31.png 1026w, https://www.osradar.com/wp-content/uploads/2018/11/centos-31-300x194.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/centos-31-768x498.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/centos-31-1024x664.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/centos-31-696x451.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/centos-31-648x420.png 648w" sizes="(max-width: 1026px) 100vw, 1026px" /></p>
<p>Enjoy!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-centos-on-virtualbox/">How to Install CentOS on VirtualBox</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-centos-on-virtualbox/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
