<?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>RHEL Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/rhel/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 30 Jun 2021 16:51:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install the netstat command on Linux?</title>
		<link>https://www.osradar.com/how-to-install-the-netstat-command-on-linux/</link>
					<comments>https://www.osradar.com/how-to-install-the-netstat-command-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 03 Jul 2021 04:50:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[alma linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[rockylinux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=30911</guid>

					<description><![CDATA[<p>Hello, friends. In this post, we will show you how to install the Netstat command with which we can quickly monitor our network information. The post will be approached from the terminal and covering most Linux distributions or at least the most popular ones. Netstat is a tool that we can use through the command [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-the-netstat-command-on-linux/">How to install the netstat command on Linux?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello, friends. In this post, we will show you how to install the Netstat command with which we can quickly monitor our network information. The post will be approached from the terminal and covering most Linux distributions or at least the most popular ones.</p>



<p class="has-line-data"><strong><a href="http://netstat.net/" target="_blank" rel="noreferrer noopener">Netstat </a>is a tool that we can use through the command line</strong>. It allows us to <strong>monitor networks and also to troubleshoot certain problems that may arise</strong>. Also, it is widely used to identify the TCP connections that are active on the machine on which the command is executed.</p>



<p class="has-line-data">All this, we emit an output screen where we can visualize the network information or even export it through the use of commands.</p>



<p class="has-line-data"><strong>This tool is quite useful for the more technical Linux users</strong> because it allows us to quickly analyze and detect possible problems that are happening in our network. Even more, to make an analysis on it.</p>



<p class="has-line-data">Despite being so popular, it is not included in most Linux distributions and that is why in this post, we will help you how to install it.</p>



<p class="has-line-data">So, let’s start.</p>



<h2 class="code-line"><a id="Install_the_Netstat_on_Linux_command_12"></a>Install the Netstat on Linux command</h2>



<p class="has-line-data">As we said, being such a popular tool, it is hard to believe that it is not included in the existing Linux distributions.</p>



<p class="has-line-data">The solution to this is to install via official repositories, the <code>net-tools</code> package in order to add the command but also other important tools.</p>



<p class="has-line-data">So, in the case of Debian, Ubuntu, Linux Mint, ElementaryOS, and any distribution based on any of these, just open the terminal and execute</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt install net-tools</pre>



<p class="has-line-data">In case you are using, Fedora 34, RockyLinux, AlmaLinux OS, RHEL 8, CentOS 8, Oracle Linux 8, or any distribution based on these.</p>



<pre class="wp-block-preformatted">sudo dnf install net-tools</pre>



<p class="has-line-data">But, if you are using older versions such as RHEL 7, CentOS 7, Oracle Linux 7, or any of their derivatives, then you will need to run</p>



<pre class="wp-block-preformatted">sudo yum install net-tools</pre>



<p class="has-line-data">A very popular distribution among Linux users is Arch Linux. It also has some derivatives such as Manjaro. For these distributions or any derivative of them, just run:</p>



<pre class="wp-block-preformatted">sudo pacman -S netstat-nat</pre>



<p class="has-line-data">As we all know, one of our favorite distributions is OpenSUSE, so we can’t leave it out.</p>



<p class="has-line-data">So, to install it on OpenSUSE</p>



<pre class="wp-block-preformatted">sudo zypper in net-tools</pre>



<p class="has-line-data">This way we will be able to use it from the terminal without problems.</p>



<h2 class="code-line"><a id="Using_the_Netstat_command_43"></a>Using the Netstat command</h2>



<p class="has-line-data">It is normal to use the command directly on the terminal. And there it will show much of the default information of the active network interface.</p>



<p class="has-line-data">Another common use is to run it together with some other options, for example:</p>



<pre class="wp-block-preformatted">netstat -tulpn</pre>



<p class="has-line-data">For more complex use of this command, we have prepared a post on the use of Netstat where you can find use cases.</p>



<p class="has-line-data"><a href="https://www.osradar.com/monitor-network-with-netstat-command-in-linux/" target="_blank" rel="noreferrer noopener">Monitor Network with netstat command in Linux</a></p>



<p class="has-line-data">So, enjoy it.</p>



<h2 class="code-line"><a id="Conclusion_57"></a>Conclusion</h2>



<p class="has-line-data">These types of commands can be useful in our work where many tools are required to help with network control. Although there are more specialized and larger tools, it is also true that sometimes we just need a little help.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-the-netstat-command-on-linux/">How to install the netstat command on Linux?</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-the-netstat-command-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</title>
		<link>https://www.osradar.com/install-postgresql-13-centos-8/</link>
					<comments>https://www.osradar.com/install-postgresql-13-centos-8/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 18 Jun 2021 23:25:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13249</guid>

					<description><![CDATA[<p>PostgreSQL is one of the most popular database management systems in the world. Its robustness, high availability, and ease of installation make it perhaps the most advanced in the world. Despite easy installation, not always many users do. So, in this post, I will show you how to install PostgreSQL 13 on CentOS 8 / [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-13-centos-8/">How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PostgreSQL is one of the most popular database management systems in the world. Its robustness, high availability, and ease of installation make it perhaps the most advanced in the world. Despite easy installation, not always many users do. So, in this post, I will show you how to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8. In addition, we&#8217;ll show you the most basic configurations. At the end of the post, you will have a PostgreSQL installation ready to start working.</p>
<h2>Install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>Both RHEL 8 and its derivatives include <a href="https://www.osradar.com/tag/postgresql/">PostgreSQL</a> 10 in their repositories. However, we already have available version 13. And it is recommended to install it because thanks to it, we can enjoy interesting news and improvements in the performance of the application. Important, if we are going to store large quantities of records.</p>
<p>So first, open a terminal session. Or if you are using a server connect to it using ssh.</p>
<pre>:~$ ssh [your-user]@[your-host]</pre>
<p>Then log in as the root user.</p>
<pre>:~$ su
:~#</pre>
<p>The best way to install PostgreSQL 13 on CentOS 8, RHEL 8 and Oracle Linux 8 is to add the official PostgreSQL refill. Not only is it easy, but also safe and the possibility to be always up to date.</p>
<p>To do this, run the following command:</p>
<pre>:~# dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm</pre>
<p><figure id="attachment_13268" aria-describedby="caption-attachment-13268" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13268" src="https://www.osradar.com/wp-content/uploads/2019/08/1-23.jpeg" alt="1.- Add the PostgreSQL repository" width="1366" height="355" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-23.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-300x78.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-768x200.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-1024x266.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-696x181.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-23-1068x278.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13268" class="wp-caption-text">1.- Add the PostgreSQL repository</figcaption></figure></p>
<p>Then, disable the PostgreSQL module on CentOS 8.</p>
<pre>:~# dnf module disable postgresql</pre>
<p>Now, install PostgreSQL 13 on CentOS 8.</p>
<pre>:~# dnf install postgresql13-server postgresql13</pre>
<p><figure id="attachment_30666" aria-describedby="caption-attachment-30666" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30666 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/2-23.png" alt="2.- Install PostgreSQL 13 8 on AlmaLinux OS 8 / CentOS 8" width="1364" height="435" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-23.png 1364w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-300x96.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-1024x327.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-768x245.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-696x222.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/2-23-1068x341.png 1068w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-30666" class="wp-caption-text">2.- Install PostgreSQL 13 8 on AlmaLinux OS 8 / CentOS 8</figcaption></figure></p>
<p>After that, let us configure it.</p>
<h2>Configure PostgreSQL on CentOS / RHEL 8 / Oracle Linux 8</h2>
<h3>Initialize PostgreSQL database and start the service</h3>
<p>After installing it, the first thing to do is to initialize the database. To achieve this, it is necessary to execute the following command:</p>
<pre>:~# /usr/pgsql-13/bin/postgresql-13-setup initdb
Initializing database ... OK</pre>
<p>With this, we will have already started the initial database. At this point, the PostgreSQL service is not enable, so you can&#8217;t use it yet. Then you have to do it.</p>
<pre>:~# systemctl enable postgresql-13</pre>
<p>Then, if you want PostgreSQL to start along with the system run this command:</p>
<pre>:~# systemctl start postgresql-13</pre>
<p>To check that everything is going well, check the status of the service:</p>
<pre>:~# systemctl status postgresql-13</pre>
<p><figure id="attachment_30667" aria-describedby="caption-attachment-30667" style="width: 1167px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-30667 size-full" src="https://www.osradar.com/wp-content/uploads/2020/01/3-22.png" alt="3.- PostgreSQL status" width="1167" height="481" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-22.png 1167w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-300x124.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-1024x422.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-768x317.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-696x287.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-22-1068x440.png 1068w" sizes="(max-width: 1167px) 100vw, 1167px" /><figcaption id="caption-attachment-30667" class="wp-caption-text">3.- PostgreSQL status</figcaption></figure></p>
<p>As you can see, everything&#8217;s fine.</p>
<h3>Change the password to the &#8220;postgres&#8221; user and allow the remote connections</h3>
<p>During the installation of PostgreSQL, a new user called postgres is created. The problem is that you do not define a password, so it makes you vulnerable. To avoid problems, it is convenient to create a password.</p>
<p>To do this, just use the Unix passwd command.</p>
<pre>:~# passwd postgres</pre>
<p>There you will have to enter the password twice. If both are effective, the final change will be made.</p>
<p>Now, we have to allow access to remote connections. The client must be installed on each of the systems that will access PostgreSQL. It will depend on each operating system.</p>
<p>Then, a good security measure is to specify the hosts that can access it. Of course, if the data will be served on the Internet, then it is necessary to allow all the accesses.</p>
<pre>:~# nano /var/lib/pgsql/13/data/postgresql.conf
</pre>
<p>then searches for the listen_addresses line and places the hosts that can access it. If you allow any access, type &#8216;*&#8217;.</p>
<pre>listen_addresses = '[host/IP_adress]'
or
listen_addresses = '*'</pre>
<p><figure id="attachment_13272" aria-describedby="caption-attachment-13272" style="width: 766px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13272" src="https://www.osradar.com/wp-content/uploads/2019/08/5-10.jpeg" alt="5.- Allow the remote connections" width="766" height="352" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-10.jpeg 766w, https://www.osradar.com/wp-content/uploads/2019/08/5-10-300x138.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-10-696x320.jpeg 696w" sizes="(max-width: 766px) 100vw, 766px" /><figcaption id="caption-attachment-13272" class="wp-caption-text">5.- Allow the remote connections</figcaption></figure></p>
<p>Then, restart PostgreSQL.</p>
<pre>:~# systemctl restart postgresql-13</pre>
<p>Finally, you have to open the port 5432 on the firewall to allow the connections.</p>
<pre>:~# firewall-cmd --add-port=5432/tcp --permanent
success
:~# firewall-cmd --reload
success</pre>
<p>Now, you can access to the PostgreSQL shell.</p>
<pre>:~# su - postgres
:~# psql</pre>
<p>Now, you can start to work.</p>
<h2>Conclusion</h2>
<p>PostgreSQL is one of the best there is for databases. Thanks to its community spirit, it is possible to find a lot of documentation about it. On the other hand, installing version 13 on CentOS 8, RHEL 8 and Oracle Linux 8 is quite simple as you have seen in this post.</p>
<p>Also, you can read <a href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu18-04/" rel="noopener noreferrer">how to install Postgresql on Ubuntu 18.04?</a></p>
<p>Please share this post with your friends and join <a href="https://t.me/osradar">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-postgresql-13-centos-8/">How to install PostgreSQL 13 on CentOS 8 / RHEL 8 / Oracle Linux 8?</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-postgresql-13-centos-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to list the PHP modules installed on your system?</title>
		<link>https://www.osradar.com/how-to-list-the-php-modules-installed-on-your-system/</link>
					<comments>https://www.osradar.com/how-to-list-the-php-modules-installed-on-your-system/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 10 Nov 2020 03:55:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25200</guid>

					<description><![CDATA[<p>In this blog, we like the topic of servers and the multiple applications that we can install on it. Some of them are very professional and dedicated to a very specific user sector, but others are more common. Well, many of these server applications have a web environment, and the web is dominated by PHP. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-list-the-php-modules-installed-on-your-system/">How to list the PHP modules installed on your system?</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 blog, we like the topic of servers and the multiple applications that we can install on it. Some of them are very professional and dedicated to a very specific user sector, but others are more common. Well, many of these server applications have a web environment, and the web is dominated by PHP. Now, how do we know which PHP modules are in our system? Well in this post, learn how to list the PHP modules installed on your system. So when you want to install other programs you know which modules are missing.</p>



<h2>List the PHP modules installed on your system</h2>



<p>This post, will list the modules installed either from the official repositories of your distribution or compiled manually. So you will be able to detail them all indistinctly as they were installed.</p>



<p>To do this, open a terminal and run the following command:</p>



<pre class="wp-block-preformatted">php -m</pre>



<p>And there will be a screen output similar to this one:</p>



<pre class="wp-block-preformatted">[PHP modules]<br>.<br>.<br>.<br>ctype<br>date<br>exif<br>fileinfo<br>filter<br>ftp<br>gd<br>gettext<br>hash<br>iconv<br>json<br>libxml<br>mbstring<br>mysqli<br>mysqlnd<br>openssl<br>pcntl<br>pcre<br>.<br>.<br>.</pre>



<p>We can combine this command with the grep command to filter the modules. For example, if we want to search exactly for mbstring, we can follow the following syntax</p>



<pre class="wp-block-preformatted">php -m | grep -i mbstring<br>mbstring</pre>



<p>Remember that the -i option makes the search case insensitive.</p>



<p>Another way to do it</p>



<p>Linux is great because it allows you to do the same process in different ways. So, we can also use DNF and <a href="https://www.osradar.com/apt-the-ubuntu-package-manager/" target="_blank" rel="noreferrer noopener">APT</a> for that, depending on the distribution you use.</p>



<p>In the case of <a href="https://fedoraproject.org/wiki/DNF" target="_blank" rel="noreferrer noopener">DNF</a> which is the Fedora, CentOS, RHEL and derivatives package manager, open a terminal and run:</p>



<pre class="wp-block-preformatted">sudo dnf list installed | grep -i php</pre>



<p>or using the RPM command:</p>



<pre class="wp-block-preformatted">rpm -qa | grep -i php</pre>



<p>In case you use Debian, Ubuntu, Linux Mint or any derivative of these, then use dpkg in the following way:</p>



<pre class="wp-block-preformatted">dpkg --get-selections | grep -i php</pre>



<pre class="wp-block-preformatted">Output:<br>.<br>.<br>.<br>php7.4-cli install<br>php7.4-common install<br>php7.4-fpm install<br>php7.4-gd<br>.<br>.<br>.</pre>



<p>Similarly, you can combine this command with grep and perform filters.</p>



<p>So, this way you will know which are the PHP modules you have installed in your system</p>



<h2>Conclusion</h2>



<p>Thanks to this post, you can quickly find out which PHP modules you have in your system. This is very helpful in servers and also in computers where web applications are developed.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-list-the-php-modules-installed-on-your-system/">How to list the PHP modules installed on your system?</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-list-the-php-modules-installed-on-your-system/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Red Hat Enterprise Linux 8.2 available</title>
		<link>https://www.osradar.com/red-hat-enterprise-linux-8-2-available/</link>
					<comments>https://www.osradar.com/red-hat-enterprise-linux-8-2-available/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 01 May 2020 16:42:11 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[New version]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[red hat enterprise linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19934</guid>

					<description><![CDATA[<p>While it&#8217;s true that we&#8217;re busy with the release of Ubuntu 20.04. This is because it is already one of the most important in the Linux world for this year. However, the major distributions do not stop working and we find the news that Red Hat Enterprise Linux 8.2 is available for download. We will [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/red-hat-enterprise-linux-8-2-available/">Red Hat Enterprise Linux 8.2 available</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>While it&#8217;s true that we&#8217;re busy with the<a href="https://www.osradar.com/ubuntu-20-04-lts-available/" target="_blank" rel="noopener noreferrer"> release of Ubuntu 20.04</a>. This is because it is already one of the most important in the Linux world for this year. However, the major distributions do not stop working and we find the news that Red Hat Enterprise Linux 8.2 is available for download. We will see what it is about.</p>
<p>Being the first release of this year, <strong>RHEL 8.2 is not a radical change of the development branch 8</strong>, but on the contrary, it includes security updates and patches. But also some big improvements that complement the already great version 8.</p>
<p>Firstly, in this version, there is improved isolation and resource governance for container process runtime with cgroup v2. This helps to prevent processes from consuming too much memory and causing crashes or system slowdowns.</p>
<p>Also, i<strong>f you use the Microsoft SQL server, you will be grateful to get and analyze new metrics from this database manager</strong>. All thanks to a new agent that will allow you to have a clearer view of what is going on in it and the system.</p>
<p>This release includes a new application stream for Red Hat&#8217;s container tools (container-tools:2.0) that is supported for 24 months, as well as an update to the container-tools:rhel8 stream that includes Podman 1.6.4</p>
<p>Modules with new branches of Python 3.8 (3.6) and Maven 3.6 were added to the AppStream repository. This is a love for all developers.</p>
<p><strong>Red Hat Enterprise Linux 8.2 also enables Red Hat Insights during installation to simplify the release of Insights for future deployments of the distro.</strong></p>
<h2>New development cycle</h2>
<p>Since last year, Red Hat has changed the way new versions of the distribution are released. It will now be twice a year that you will receive a minor update.</p>
<p>This makes it easier for users and customers to make these updates. As they are more frequent, they will be smaller in size and therefore have less impact.</p>
<p>In terms of upgrading, this new version includes facilities for members of previous versions to upgrade.</p>
<p>Thus, this new version is in line with Red Hat&#8217;s vision &#8220;<strong>Where the operating system has to do more than just work</strong>&#8220;. That is, providing all the tools it allows to grow the IT infrastructure and processes of organizations.</p>
<h2>Red Hat Enterprise Linux 8.2 &#8211; Final Thoughts</h2>
<p>Red Hat Enterprise Linux 8.2 is not a new major release of this operating system but rather a minor update. Although the term minor can be misleading because in each of these Red Hat applies new technologies that make this distribution bigger and bigger.</p>
<p>There will always be doubt about the new path Red Hat will take after the purchase of IBM. For now, we can only wait and see how it will evolve with versions like this one.</p>
<p>Finally, it is recommended to upgrade as soon as possible to take advantage of these new features. As they are quite a lot, you can check them out from these links.</p>
<p><a href="https://www.redhat.com/en/blog/whats-new-red-hat-enterprise-linux-82" target="_blank" rel="noopener noreferrer">What&#8217;s new in Red Hat Enterprise Linux 8.2?</a> <br /><a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8-beta/html/8.2_release_notes/index" target="_blank" rel="noopener noreferrer">Release Notes for Red Hat Enterprise Linux 8.2 Beta</a></p>
<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/red-hat-enterprise-linux-8-2-available/">Red Hat Enterprise Linux 8.2 available</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/red-hat-enterprise-linux-8-2-available/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Docker and Manage it with Portainer on CENTOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/install-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/install-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Tue, 21 Jan 2020 21:26:32 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17601</guid>

					<description><![CDATA[<p>Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating-system kernel [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/">Install Docker and Manage it with Portainer on CENTOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating-system kernel and are thus more lightweight than virtual machines.</p>



<p>Portainer is a lightweight management graphical user interface which allows you to easily manage your Docker host or Swarm cluster. Portainer is meant to be as simple to deploy as it is to use. It consists of a single container that can run on any Docker engine. It’s a powerful, open-source management toolset that allows you to easily build, manage and maintain Docker environments</p>



<p>In this guide you will learn that how to install docker and manage it with portainer.</p>



<h2>Install Docker on CentOS 8 / RHEL 8</h2>



<p><strong>Step 1 Enable Docker CE Repository</strong></p>



<p>Currently docker packages are not available on CentOS and RHEL 8 repositories, so run following dnf command to enable Docker CE repository.</p>



<pre class="wp-block-preformatted">dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="158" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/1-11-1024x158.png" alt="" class="wp-image-17603" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-11-1024x158.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-11-300x46.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-11-768x119.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-11-696x108.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-11-1068x165.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-11.png 1281w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 2 Install Docker CE using dnf command</strong></p>



<p>Now, use below dnf command to install latest version of docker.</p>



<pre class="wp-block-preformatted">dnf install docker-ce --nobest -y</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/3-10-1024x614.png" alt="" class="wp-image-17604" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-10-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2020/01/3-10.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 3 Start Docker Service</strong></p>



<p>After the installation, start and enable docker service using the following systemctl commands</p>



<pre class="wp-block-preformatted">systemctl start docker<br>systemctl enable docker<br>systemctl status docker</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/4-9-1024x614.png" alt="" class="wp-image-17605" srcset="https://www.osradar.com/wp-content/uploads/2020/01/4-9-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2020/01/4-9.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>Step 4 Verify and Test Docker CE Engine</strong></p>



<p>To verify that docker ce engine has been setup correctly, run below docker command,</p>



<pre class="wp-block-preformatted">docker run hello-world</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/5-8-1024x614.png" alt="" class="wp-image-17606" srcset="https://www.osradar.com/wp-content/uploads/2020/01/5-8-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2020/01/5-8.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Docker has been installed successfully and running fine, now we will install and configure portainer so that we can manage docker from web interface.</p>



<h2>Install Portainer on CentOS 8 / RHEL 8 for Docker Management</h2>



<p><strong>Step 1 Download Portainer Image</strong></p>



<p>Download the Portainer image from the DockerHub using the docker pull command below.</p>



<pre class="wp-block-preformatted">docker pull portainer/portainer</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="220" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/6-6-1024x220.png" alt="" class="wp-image-17607" srcset="https://www.osradar.com/wp-content/uploads/2020/01/6-6-1024x220.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/6-6-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/6-6-768x165.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/6-6-696x150.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/6-6-1068x230.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/6-6.png 1279w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 2 Run Portainer</strong></p>



<p>Run the Portainer container with the following command:</p>



<pre class="wp-block-preformatted">docker run -d -p 9000:9000 --name your_portainer_name --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="172" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/7-4-1024x172.png" alt="" class="wp-image-17608" srcset="https://www.osradar.com/wp-content/uploads/2020/01/7-4-1024x172.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/7-4-300x50.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/7-4-768x129.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/7-4-696x117.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/7-4-1068x179.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/7-4.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 3 Verify Portainer is Running</strong></p>



<p>After installing the Portainer container, run the docker ps command to verify the status of the container:</p>



<pre class="wp-block-preformatted">docker ps</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="210" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/8-3-1024x210.png" alt="" class="wp-image-17609" srcset="https://www.osradar.com/wp-content/uploads/2020/01/8-3-1024x210.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/8-3-300x61.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/8-3-768x157.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/8-3-696x142.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/8-3-1068x219.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/8-3.png 1275w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 4 Access Portainer Web Interface</strong></p>



<p>Now, open your browser, access the Portainer web interface with your server’s IP or FQDN with port 9000</p>



<p><strong>YOUR-SERVER-IP:9000</strong></p>



<p>In my case it is 192.168.231.130:9000</p>



<p><strong>Note:</strong> If you are facing any issue or unable to browse the link just use below commands</p>



<pre class="wp-block-preformatted">firewall-cmd --permanent --zone=trusted --change-interface=docker0
firewall-cmd --permanent --zone=trusted --add-port=4243/tcp
firewall-cmd --reload</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="743" height="445" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/9-1.png" alt="" class="wp-image-17610" srcset="https://www.osradar.com/wp-content/uploads/2020/01/9-1.png 743w, https://www.osradar.com/wp-content/uploads/2020/01/9-1-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/9-1-696x417.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/9-1-741x445.png 741w, https://www.osradar.com/wp-content/uploads/2020/01/9-1-701x420.png 701w" sizes="(max-width: 743px) 100vw, 743px" /></figure>



<p>Next we need to set admin username and password to access portainer. Then, click on &#8220;Create User&#8221; button to create your administrator user.</p>



<p><strong>Step 5 Configure Portainer</strong></p>



<p>We will configure Portainer to &#8220;manage the local Docker environment&#8221; select Local Docker environment and click on the Connect button</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="527" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/10-1-1024x527.png" alt="" class="wp-image-17611" srcset="https://www.osradar.com/wp-content/uploads/2020/01/10-1-1024x527.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-768x395.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-696x358.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-1068x550.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-816x420.png 816w, https://www.osradar.com/wp-content/uploads/2020/01/10-1.png 1140w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Finally, you will be redirected to the Portainer dashboard, select the &#8220;local docker&#8221;</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="565" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/11-1024x565.png" alt="" class="wp-image-17612" srcset="https://www.osradar.com/wp-content/uploads/2020/01/11-1024x565.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/11-300x166.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/11-768x424.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/11-696x385.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/11-1068x590.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/11-761x420.png 761w, https://www.osradar.com/wp-content/uploads/2020/01/11.png 1525w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Here you can see all info and a summary about your containers, images, networks, volumes and Templates. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="554" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/12-1024x554.png" alt="" class="wp-image-17613" srcset="https://www.osradar.com/wp-content/uploads/2020/01/12-1024x554.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/12-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/12-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/12-1536x831.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/12-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/12-1068x578.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/12-776x420.png 776w, https://www.osradar.com/wp-content/uploads/2020/01/12.png 1868w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Finally everything has been done and now you can create, manage and remove your docker containers from portainer graphical interface.</p>



<p><strong>Portainer Dashboard</strong>:</p>



<p>After logging in portainer you will be redirected to the Portainer home screen, select the &#8220;local docker&#8221; then go to the “Dashboard” here you will see running stacks, containers, images, volumes and networks. </p>



<p><strong>Stacks</strong>:</p>



<p>Click on the stacks option and it will provide status of all created stacks.</p>



<p><strong>Container</strong>:</p>



<p>This list will provide details of all running and stopped container. This output is very similar to docker ps command option.</p>



<p><strong>Images</strong>:</p>



<p>Clicking on this option will provide the host of container images that are available. It will show all the container images.</p>



<p><strong>Networks: </strong></p>



<p>It is used for network operations. Like assigning IP address, creating sub-nets, providing IP address range and user access control.</p>



<h2>Create a Container Using Portainer GUI</h2>



<p>There are many other features you can explore by yourself. Now we will create a docker container. we will create Apache container.</p>



<p>Under Add Templates option, Click on &#8220;Httpd&#8221; template</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="535" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/112-1024x535.png" alt="" class="wp-image-17681" srcset="https://www.osradar.com/wp-content/uploads/2020/01/112-1024x535.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/112-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/112-768x401.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/112-1536x803.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/112-696x364.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/112-1068x558.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/112-804x420.png 804w, https://www.osradar.com/wp-content/uploads/2020/01/112.png 1873w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Now set the Name for container, leave network as it is, then configure its ports and click on &#8220;Deploy the container&#8221; button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="471" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/113-1024x471.png" alt="" class="wp-image-17682" srcset="https://www.osradar.com/wp-content/uploads/2020/01/113-1024x471.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/113-300x138.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/113-768x353.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/113-1536x707.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/113-696x320.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/113-1068x492.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/113-913x420.png 913w, https://www.osradar.com/wp-content/uploads/2020/01/113.png 1912w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="543" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/114-1024x543.png" alt="" class="wp-image-17683" srcset="https://www.osradar.com/wp-content/uploads/2020/01/114-1024x543.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/114-300x159.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/114-768x407.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/114-1536x814.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/114-696x369.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/114-1068x566.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/114-792x420.png 792w, https://www.osradar.com/wp-content/uploads/2020/01/114.png 1858w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Now you can verify the status of created container from &#8220;Containers&#8221; option. you can see in image below that container named &#8220;my-apache-server&#8221; is running</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="311" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/114-1-1024x311.png" alt="" class="wp-image-17685" srcset="https://www.osradar.com/wp-content/uploads/2020/01/114-1-1024x311.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-300x91.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-768x233.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-1536x466.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-696x211.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-1068x324.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-1385x420.png 1385w, https://www.osradar.com/wp-content/uploads/2020/01/114-1.png 1912w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Test Apache is running fine. open your browser and browse your <strong>SERVER-IP-ADDRESS</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="156" src="https://www.osradar.com/wp-content/uploads/2020/01/115-1024x156.png" alt="" class="wp-image-17684" srcset="https://www.osradar.com/wp-content/uploads/2020/01/115-1024x156.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/115-300x46.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/115-768x117.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/115-1536x234.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/115-696x106.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/115-1068x162.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/115.png 1861w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>That’s it in this article, I hope this will be very helpful.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/">Install Docker and Manage it with Portainer on CENTOS 8 / RHEL 8</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-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install and Configure logrotate on Linux</title>
		<link>https://www.osradar.com/how-to-install-and-configure-logrotate-on-linux/</link>
					<comments>https://www.osradar.com/how-to-install-and-configure-logrotate-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Fri, 22 Nov 2019 13:11:17 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[logrotate]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15811</guid>

					<description><![CDATA[<p>Logrotate utility is designed to used in system administration in which dated log files are archived. Servers which run large applications such as LAMP stacks, often log every activity and request in the face of bulky logs which may use high disk space on the server. Log rotation provides a way to limit the total [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-logrotate-on-linux/">How to Install and Configure logrotate on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Logrotate utility is designed to used in system administration in which dated log files are archived. Servers which run large applications such as LAMP stacks, often log every activity and request in the face of bulky logs which may use high disk space on the server. Log rotation provides a way to limit the total size of the logs retained while still allowing analysis of recent events.</p>



<p>The primary configuration file for logrotate is /etc/logrotate.conf and it has the default settings. So, if you want additional application-specific configuration then you have to create a separate file for that application in /etc/logrotate.d directory.</p>



<p>In this article you will learn that how to configure logrotate in Linux</p>



<h2>Step 1: Install logrotate on Linux</h2>



<p>Install logrotate on Ubuntu and Debian</p>



<pre class="wp-block-preformatted">apt install logrotate </pre>



<p>Install logrotate on CentOS, RHEL and Fedora</p>



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



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="281" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/1-1-1024x281.jpg" alt="" class="wp-image-15814" srcset="https://www.osradar.com/wp-content/uploads/2019/11/1-1-1024x281.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-300x82.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-768x211.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-1536x422.jpg 1536w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-696x191.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-1068x293.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-1530x420.jpg 1530w, https://www.osradar.com/wp-content/uploads/2019/11/1-1.jpg 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>OR</p>



<pre class="wp-block-preformatted">dnf install  -y logrotate</pre>



<h2>Step 2: Configure logrotate</h2>



<p>We will configure logrotate for Apache web server in CentOS server. Let&#8217;s say we want to rotate the logs of a service &#8220;apache&#8221; that is creating logfiles under /var/log/httpd directory. So we will create a file &#8220;apache&#8221; under /etc/logrotate.d directory and make appropriate configuration in this file to rorate all the logs of apache service.</p>



<p>Run following command and add below lines in that file.</p>



<pre class="wp-block-preformatted">vi /etc/logrotate.d/apache<br></pre>



<pre class="wp-block-preformatted">/var/log/httpd/* {<br>     daily<br>     rotate 50<br>     size 2M<br>     compress<br>     delaycompress<br> }</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="226" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/2-1024x226.jpg" alt="" class="wp-image-15815" srcset="https://www.osradar.com/wp-content/uploads/2019/11/2-1024x226.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/2-300x66.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/2-768x170.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/2-696x154.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/2-1068x236.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/11/2.jpg 1271w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><br><strong>/var/log/httpd</strong> It means rotating all logs from httpd directory. <br><strong>daily</strong>  means rotate the logs on a daily basis. you can also use weekly or monthly.<br><strong>rotate 50</strong> It means last 50 rotated logs should be kept.<br><strong>size=2M</strong> means log will not be rotated until it reaches 2MB. sets the minimum size for the logs rotation. <br><strong>compress</strong> It compress the old log files to save disk space.<br><strong>delaycompress</strong> so it means rotated logs with the exception of the most recent one should be compressed.</p>



<p>now save changes to file and exit</p>



<p>You can also set many other options, for details run following command.</p>



<pre class="wp-block-preformatted">man logrotate</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="546" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/3-1024x546.jpg" alt="" class="wp-image-15816" srcset="https://www.osradar.com/wp-content/uploads/2019/11/3-1024x546.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/3-300x160.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/3-768x409.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/3-1536x818.jpg 1536w, https://www.osradar.com/wp-content/uploads/2019/11/3-696x371.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/3-1068x569.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/11/3-788x420.jpg 788w, https://www.osradar.com/wp-content/uploads/2019/11/3.jpg 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>By default, logrotate automatically configures a cron job scheduled to run daily. but we want also run our desired log rotation file, Tells logrotate to force the rotation.</p>



<pre class="wp-block-preformatted">logrotate -f /etc/logrotate.d/httpd</pre>



<p>Now run below command to see that what will logrotate do reading /etc/logrotate.d/httpd file.</p>



<pre class="wp-block-preformatted">logrotate -d /etc/logrotate.d/httpd</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1334" height="396" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/4-1024x304.jpg" alt="" class="wp-image-15817" srcset="https://www.osradar.com/wp-content/uploads/2019/11/4-1024x304.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/4-300x89.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/4-768x228.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/4-696x207.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/4-1068x317.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/11/4.jpg 1334w" sizes="(max-width: 1334px) 100vw, 1334px" /></figure>



<p>That&#8217;s it, so you can use logrotate and configure it for your desired service logs like it do for Apache web server.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-logrotate-on-linux/">How to Install and Configure logrotate on Linux</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-and-configure-logrotate-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Webmin on CentOS 8 / RHEL 8 / Oracle Linux 8?</title>
		<link>https://www.osradar.com/how-to-install-webmin-on-centos-8-rhel-8-oracle-linux-8/</link>
					<comments>https://www.osradar.com/how-to-install-webmin-on-centos-8-rhel-8-oracle-linux-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 20 Nov 2019 00:08:48 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[webmin]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15654</guid>

					<description><![CDATA[<p>Monitoring a computer is always necessary to verify its operation. Especially if we are talking about a computer connected to an internal network. So, installing a tool with some computer tasks is always a good idea. Therefore, in this post, I will show you how to install Webmin on CentOS 8. This tutorial will also [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-webmin-on-centos-8-rhel-8-oracle-linux-8/">How to install Webmin on CentOS 8 / RHEL 8 / Oracle Linux 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Monitoring a computer is always necessary to verify its operation.  Especially if we are talking about a computer connected to an internal network. So, installing a tool with some computer tasks is always a good idea. Therefore, in this post, I will show you <strong>how to install Webmin on CentOS 8.</strong> This tutorial will also work on RHEL 8 and Oracle Linux 8.</p>



<p><a href="http://www.webmin.com">Webmin</a> is a  web-based interface for managing UNIX systems. It has a new web interface where you can modify and manage several things on the computer. For example, user accounts, UNIX groups, DNS and others.</p>



<p>In addition, you will have no license problems with Webmin because it is released under the GPL3 license, which guarantees that you can use it, modify it and install it as you want.</p>



<p>So, let us start.</p>



<h2>Installing Webmin on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>



<p>Before you start installing Webmin, it is a good idea to update all the operating system packages. To do this, connect to your server using SSH or simply open a terminal session and run:</p>



<pre class="wp-block-preformatted">:~$ su<br>:~# dnf update</pre>



<p>This way your system will have the latest security patches installed. Therefore, it will be a more secure system.</p>



<p>Webmin offers us a repository of packages derived from RHEL 8 that facilitates the installation. So we must add the repository first, and do the installation like this.</p>



<p>So, create a file in <code>/etc/yum.repos.d/webmin.repo</code> and add the following:</p>



<pre class="wp-block-preformatted"> [Webmin]
 name=Webmin Distribution Neutral
 #baseurl=https://download.webmin.com/download/yum
 mirrorlist=https://download.webmin.com/download/yum/mirrorlist
 enabled=1</pre>



<figure class="wp-block-image"><img loading="lazy" width="862" height="202" src="https://www.osradar.com/wp-content/uploads/2019/11/1-11.png" alt="1.- Adding the webmin repository" class="wp-image-15671" srcset="https://www.osradar.com/wp-content/uploads/2019/11/1-11.png 862w, https://www.osradar.com/wp-content/uploads/2019/11/1-11-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/1-11-768x180.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/1-11-696x163.png 696w" sizes="(max-width: 862px) 100vw, 862px" /><figcaption>1.- Adding the webmin repository</figcaption></figure>



<p>Then download and add the GPG key to secure the repository. To download it we&#8217;ll use wget, but be sure to install it first in case you don&#8217;t have it.</p>



<pre class="wp-block-preformatted">:~# dnf install wget</pre>



<pre class="wp-block-preformatted">:~# wget http://www.webmin.com/jcameron-key.asc</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="211" src="https://www.osradar.com/wp-content/uploads/2019/11/2-11-1024x211.png" alt="2.- Add the GPG key for the repository" class="wp-image-15673" srcset="https://www.osradar.com/wp-content/uploads/2019/11/2-11-1024x211.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/2-11-300x62.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/2-11-768x158.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/2-11-696x143.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/2-11-1068x220.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/2-11.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Add the GPG key for the repository</figcaption></figure>



<p>And then add it with the following command:</p>



<pre class="wp-block-preformatted">:~# rpm --import jcameron-key.asc</pre>



<p>After this, we will be able to install Webmin in an easy and simple way as follows:</p>



<pre class="wp-block-preformatted">:~# dnf install webmin</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="538" src="https://www.osradar.com/wp-content/uploads/2019/11/3-10-1024x538.png" alt="3.- Install Webmin on CentOS 8 / RHEL 8 / Oracle Linux 8" class="wp-image-15674" srcset="https://www.osradar.com/wp-content/uploads/2019/11/3-10-1024x538.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/3-10-300x158.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/3-10-768x403.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/3-10-696x366.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/3-10-1068x561.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/3-10-800x420.png 800w, https://www.osradar.com/wp-content/uploads/2019/11/3-10.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Install Webmin on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure>



<p>At the end of the installation, we will be able to access the web interface of the program. However, first, you have to open port 10000 which is where the application works.</p>



<pre class="wp-block-preformatted">:~# firewall-cmd --add-port=10000/tcp --zone=public --permanent
:~# firewall-cmd --reload</pre>



<p>Now yes, open your favorite web browser and go to <code>http://your-server:10000</code> and you will see the following:</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2019/11/5-6-1024x502.png" alt="5.- Webmin login page" class="wp-image-15681" srcset="https://www.osradar.com/wp-content/uploads/2019/11/5-6-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/5-6-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/5-6-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/5-6-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/5-6-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/11/5-6-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/5-6-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/5-6-858x420.png 858w, https://www.osradar.com/wp-content/uploads/2019/11/5-6.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Webmin login page</figcaption></figure>



<p>Now you can log in with a user who has access to <a rel="noreferrer noopener" aria-label="sudo (opens in a new tab)" href="https://www.osradar.com/how-to-enable-sudo-on-centos-8/" target="_blank">sudo</a> or with the root user. Next, you will see the dashboard.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2019/11/6-1-1024x502.png" alt="6.- Webmin dashboard on CentOS 8 / RHEL 8 / Oracle Linux 8" class="wp-image-15682" srcset="https://www.osradar.com/wp-content/uploads/2019/11/6-1-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/6-1-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/6-1-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/6-1-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/6-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/11/6-1-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/6-1-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/6-1-858x420.png 858w, https://www.osradar.com/wp-content/uploads/2019/11/6-1.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Webmin dashboard on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>Webmin is an indispensable application if we have a server or equipment that we need to monitor. Of course, it is not the most advanced or the best but it does its functions efficiently without wasting a lot of system resources.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-webmin-on-centos-8-rhel-8-oracle-linux-8/">How to install Webmin on CentOS 8 / RHEL 8 / Oracle Linux 8?</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-webmin-on-centos-8-rhel-8-oracle-linux-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Nagios 4 on Centos 8 / RHEL 8.</title>
		<link>https://www.osradar.com/how-to-install-nagios-4-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-nagios-4-on-centos-8-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 11 Nov 2019 11:42:23 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Dnf tools]]></category>
		<category><![CDATA[how to install nagios]]></category>
		<category><![CDATA[nagios 4]]></category>
		<category><![CDATA[Nagios Plugins]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15465</guid>

					<description><![CDATA[<p>Nagios is network monitoring tool. In this tutorial, we will learn how to Install and configure Nagious 4 on Centos / RHEL 8. Nagious is configured using text files &#38; provides web interface for ease to use for administration and Monitoring. Just follow these steps to quickly install &#38; configure Nagious 4: Pre-requisites: SELinux (Passive [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nagios-4-on-centos-8-rhel-8/">How To Install Nagios 4 on Centos 8 / RHEL 8.</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 network monitoring tool. In this tutorial, we will learn how to Install and configure Nagious 4 on Centos  / RHEL  8. Nagious is configured using text files &amp; provides web interface for ease to use for administration and Monitoring. Just follow these steps to quickly install &amp; configure Nagious 4: </p>



<h3><strong>Pre-requisites:</strong></h3>



<ul><li><strong>SELinux (Passive mode):</strong></li></ul>



<pre class="wp-block-verse">sudo sed -i 's/SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config<br>sudo setenforce 0</pre>



<h3><strong>Step 1: Installing Dependencies</strong></h3>



<p>Update your system.</p>



<pre class="wp-block-verse">sudo dnf updates</pre>



<p>Install required Dependencies.</p>



<pre class="wp-block-verse">sudo dnf install @php<br>
sudo dnf install @perl @httpd wget unzip glibc automake glibc-common gettext autoconf php php-cli gcc gd gd-devel net-snmp openssl-devel unzip net-snmp postfix net-snmp-utils</pre>



<p>Guide for <a href="https://www.osradar.com/how-to-install-gcc-development-tools-on-centos-8-rhel-8/">Installing Development Tools on RHEL 8 / Cento 8.</a></p>



<pre class="wp-block-verse">sudo dnf groupinstall "Development Tools"</pre>



<p>Now, start and enable httpd and php-fpm services.</p>



<pre class="wp-block-verse">sudo systemctl enable --now httpd php-fpm</pre>



<p>Checki status is running.</p>



<pre class="wp-block-verse">systemctl status http php-fpm</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="736" height="498" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/php-httpd-status.png" alt="" class="wp-image-15467" srcset="https://www.osradar.com/wp-content/uploads/2019/11/php-httpd-status.png 736w, https://www.osradar.com/wp-content/uploads/2019/11/php-httpd-status-300x203.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/php-httpd-status-696x471.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/php-httpd-status-621x420.png 621w" sizes="(max-width: 736px) 100vw, 736px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="727" height="313" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/php-fpm-services.png" alt="" class="wp-image-15468" srcset="https://www.osradar.com/wp-content/uploads/2019/11/php-fpm-services.png 727w, https://www.osradar.com/wp-content/uploads/2019/11/php-fpm-services-300x129.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/php-fpm-services-696x300.png 696w" sizes="(max-width: 727px) 100vw, 727px" /></figure></div>



<p>Detailed instructions for the  Installation of<a href="https://www.osradar.com/how-to-install-cacti-on-centos-rhel-8/"> PHP</a> and <a href="https://www.osradar.com/how-to-install-cacti-on-centos-rhel-8/">httpd</a>.</p>



<h3><strong>Step 2: Downloading Nagios Core</strong></h3>



<p>Change  directory to <strong>/usr/src/</strong>. Go to <a href="https://github.com/NagiosEnterprises/nagioscore/releases">latest-release page of Nagios</a> to download.</p>



<pre class="wp-block-verse">sudo su -<br>cd /usr/src</pre>



<p>Create <strong>nagios-$VER</strong> directory.</p>



<p>Download &amp; extract Nagios tarball.</p>



<pre class="wp-block-verse"><a href="https://github.com/NagiosEnterprises/nagioscore/releases">https://github.com/NagiosEnterprises/nagioscore/releases</a></pre>



<p>Change path to created folder.</p>



<pre class="wp-block-verse">cd nagios-$VER</pre>



<h3><strong>Step 3: Compile Nagios Core on Centos 8 / RHEL 8.</strong></h3>



<p><strong>a.</strong> Run the configure script by command below:</p>



<pre class="wp-block-verse">./configure</pre>



<p>Output:</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="735" height="496" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/configure-summary-ngios.png" alt="" class="wp-image-15469" srcset="https://www.osradar.com/wp-content/uploads/2019/11/configure-summary-ngios.png 735w, https://www.osradar.com/wp-content/uploads/2019/11/configure-summary-ngios-300x202.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/configure-summary-ngios-696x470.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/configure-summary-ngios-622x420.png 622w" sizes="(max-width: 735px) 100vw, 735px" /></figure></div>



<p><strong>b.</strong> To compile the main program and CGIs, run the make command with <strong>all </strong>options.</p>



<pre class="wp-block-verse">sudo make all</pre>



<p>Output:</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="798" height="601" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/sudo-make-all-nagios.png" alt="" class="wp-image-15471" srcset="https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios.png 798w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-768x578.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-696x524.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/sudo-make-all-nagios-558x420.png 558w" sizes="(max-width: 798px) 100vw, 798px" /></figure></div>



<p><strong>c.</strong> Create User And Group</p>



<p>This will create user and groups in Nagios</p>



<p>Add apache user to Nagios Group.</p>



<pre class="wp-block-verse">make install-groups-users<br>usermod -a -G nagios apache</pre>



<p><strong>d. </strong>Install Nagios on Centos / RHEL 8.</p>



<p>Install Nagios base.</p>



<pre class="wp-block-verse">make install</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="790" height="579" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/make-install.png" alt="" class="wp-image-15473" srcset="https://www.osradar.com/wp-content/uploads/2019/11/make-install.png 790w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-300x220.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-768x563.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-696x510.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-573x420.png 573w" sizes="(max-width: 790px) 100vw, 790px" /></figure></div>



<p><strong>e.</strong> Install the init script in <strong>/lib/systemd/system</strong>.</p>



<pre class="wp-block-verse">make install-init</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="707" height="88" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/make-install-init.png" alt="" class="wp-image-15474" srcset="https://www.osradar.com/wp-content/uploads/2019/11/make-install-init.png 707w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-init-300x37.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-init-696x88.png 696w" sizes="(max-width: 707px) 100vw, 707px" /></figure></div>



<p><strong>f.</strong> Install and configure the permissions on the directory for holding the external command file.</p>



<pre class="wp-block-verse">make install-commandmode</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="728" height="128" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/commandmode-config.png" alt="" class="wp-image-15475" srcset="https://www.osradar.com/wp-content/uploads/2019/11/commandmode-config.png 728w, https://www.osradar.com/wp-content/uploads/2019/11/commandmode-config-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/commandmode-config-696x122.png 696w" sizes="(max-width: 728px) 100vw, 728px" /></figure></div>



<p><strong>g.</strong> Install sample config files in <strong>/usr/local/nagios/etc</strong>.</p>



<pre class="wp-block-verse">make install-config</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="734" height="498" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/make-install-config.png" alt="" class="wp-image-15476" srcset="https://www.osradar.com/wp-content/uploads/2019/11/make-install-config.png 734w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-config-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-config-696x472.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-config-619x420.png 619w" sizes="(max-width: 734px) 100vw, 734px" /></figure></div>



<p><strong>h.</strong> Install the Apache config file for the Nagios web interface.</p>



<pre class="wp-block-verse">make install-webconf</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="740" height="202" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/make-install-webconfig.png" alt="" class="wp-image-15477" srcset="https://www.osradar.com/wp-content/uploads/2019/11/make-install-webconfig.png 740w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-webconfig-300x82.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/make-install-webconfig-696x190.png 696w" sizes="(max-width: 740px) 100vw, 740px" /></figure></div>



<p><strong>i.</strong> Install the Exfoliation theme for the Nagios web interface.</p>



<pre class="wp-block-verse">make install-exfoliation</pre>



<p><strong>j. </strong> You can install classic theme for Nagios web interface by given command</p>



<pre class="wp-block-verse">make install-classicui</pre>



<h3><strong>Step 4: Creating Nagios Web User</strong></h3>



<p>We need to create a user account for  Nagios web interface . Use the given command:</p>



<pre class="wp-block-verse">sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="797" height="601" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/nagios-account-creation-users.png" alt="" class="wp-image-15480" srcset="https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users.png 797w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-768x579.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-696x525.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-account-creation-users-557x420.png 557w" sizes="(max-width: 797px) 100vw, 797px" /></figure></div>



<p>Restart Apache services to take effect.</p>



<pre class="wp-block-verse">systemctl restart httpd</pre>



<h3><strong>Step 5: Installing Nagios Plugins</strong></h3>



<p>Plugins are used to provide more monitoring features.<br>Switch to<strong> /usr/src</strong> directory.</p>



<pre class="wp-block-verse">cd /usr/src</pre>



<p>Create new directory as <strong>nagios-plugins-$VER</strong></p>



<pre class="wp-block-verse">mkdir nagios-plugins-$VER</pre>



<p>Download Nagios plugins from <a href="https://github.com/nagios-plugins/nagios-plugins/releases">Github releases page</a>.</p>



<p>Extract it to <strong>/usr/src/nagios-plugins-$VER</strong> directory.</p>



<p>Now, change directory to nagios-$VER.</p>



<pre class="wp-block-verse">cd 'nagios-$VER'</pre>



<p>Use this command to install and compile Nagios Plugins.</p>



<pre class="wp-block-verse">./configure --with-nagios-user=nagios --with--nagios-group=nagios<br>make &amp;&amp; make install</pre>



<p>Output:</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="727" height="496" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/nagios-plugin-result.png" alt="" class="wp-image-15486" srcset="https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result.png 727w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result-300x205.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result-696x475.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-plugin-result-616x420.png 616w" sizes="(max-width: 727px) 100vw, 727px" /></figure></div>



<h3><strong>Step 6: Verifying Installation &amp; Starting Nagios Services.</strong></h3>



<p>Make sure your Nagios installation is working properly.</p>



<pre class="wp-block-verse"> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg </pre>



<figure class="wp-block-image"><img loading="lazy" width="723" height="495" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/plugins-config-summary-2.png" alt="" class="wp-image-15488" srcset="https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2.png 723w, https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2-300x205.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2-696x477.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/plugins-config-summary-2-613x420.png 613w" sizes="(max-width: 723px) 100vw, 723px" /></figure>



<p>Start &amp; Enable Nagios service to start at boot.</p>



<pre class="wp-block-verse">sudo systemctl enable --now nagios</pre>



<p>Re-check the service status.</p>



<pre class="wp-block-verse">systemctl status nagios</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="725" height="496" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/service-check-nagios.png" alt="" class="wp-image-15489" srcset="https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios.png 725w, https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios-300x205.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios-696x476.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/service-check-nagios-614x420.png 614w" sizes="(max-width: 725px) 100vw, 725px" /></figure></div>



<h3><strong>Step 7: Accessing Nagios Web Dashboard</strong></h3>



<p>Remove firewall restrictions:</p>



<pre class="wp-block-verse">sudo firewall-cmd --permanent --add-service={http,https}<br>sudo firewall-cmd --reload</pre>



<p>Access Dashboard by visiting <a href="https://www.osradar.com">http:[IP/hostname]/nagios/</a><br> Fill out Authentication details:</p>



<pre class="wp-block-verse">Username:<strong> nagiosadmin</strong></pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="799" height="601" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/authentication.png" alt="" class="wp-image-15490" srcset="https://www.osradar.com/wp-content/uploads/2019/11/authentication.png 799w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-768x578.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-696x524.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/authentication-558x420.png 558w" sizes="(max-width: 799px) 100vw, 799px" /></figure></div>



<p>You can add device to be monitored in Dashboard.</p>



<figure class="wp-block-image"><img loading="lazy" width="798" height="600" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/nagios-dashboard.png" alt="" class="wp-image-15491" srcset="https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard.png 798w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-768x577.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-696x523.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/nagios-dashboard-559x420.png 559w" sizes="(max-width: 798px) 100vw, 798px" /></figure>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-nagios-4-on-centos-8-rhel-8/">How To Install Nagios 4 on Centos 8 / RHEL 8.</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-4-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Overwrite: an application to prevent recovering information from a hard disk</title>
		<link>https://www.osradar.com/overwrite-prevent-recovering-information-from-hard-disk/</link>
					<comments>https://www.osradar.com/overwrite-prevent-recovering-information-from-hard-disk/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 20 Oct 2019 23:14:31 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[disks]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[overwrite]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14732</guid>

					<description><![CDATA[<p>When we format an entire disk or partition we know that the data that is there is recoverable. This can be very useful, but what if we are sure we want to recover them? and if someone takes our computer and starts recovering them? as you can read, this poses a danger to the privacy [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/overwrite-prevent-recovering-information-from-hard-disk/">Overwrite: an application to prevent recovering information from a hard disk</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>When we format an entire disk or partition we know that the data that is there is recoverable. This can be very useful, but what if we are sure we want to recover them? and if someone takes our computer and starts recovering them? as you can read, this poses a danger to the privacy of our data. Luckily, there is an application called overwrite that allows us to avoid this situation. Today we will tell you about it.</p>



<p>Overwrite <a href="https://github.com/ivoprogram/overwrite" target="_blank" rel="noreferrer noopener" aria-label="is an application written in the C language (opens in a new tab)">is an application written in the C language</a> that simply <strong>overwrites with 1, 0 or random data the empty space of a disk</strong>. This helps prevent other programs from recovering information from that empty space. This puts your privacy at risk.</p>



<p>Similarly, Overwrite is an open-source application, <strong>released under the GPL license</strong>. Therefore there will be no problems with the use and dissemination of the application. On the other hand, it is multiplatform and in a single download, we will have all the binaries available with versions for Linux or <a href="https://www.osradar.com/tag/windows" target="_blank" rel="noreferrer noopener" aria-label="Windows (opens in a new tab)">Windows</a>.</p>



<p>Also, the application has some options to customize its use, such as the amount of data and files to overwrite.</p>



<p>So, let us install it and use it.</p>



<h2>Install Overwrite on any Linux distribution</h2>



<p>The application comes with compiled binaries so we can work as soon as we download it. However, make sure you have the wget and unzip packages installed.</p>



<p>For <a rel="noreferrer noopener" aria-label="Debian (opens in a new tab)" href="https://www.osradar.com/tag/debian/" target="_blank">Debian</a>, <a href="https://www.osradar.com/tag/ubuntu/" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">Ubuntu</a>, <a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://www.osradar.com/tag/linux-mint/" target="_blank">Linux Mint</a> and derivatives:</p>



<pre class="wp-block-preformatted">:~$ sudo apt install wget unzip</pre>



<p>In the case of <a rel="noreferrer noopener" aria-label="Fedora (opens in a new tab)" href="https://www.osradar.com/tag/fedora/" target="_blank">Fedora</a>, <a rel="noreferrer noopener" aria-label="CentOS (opens in a new tab)" href="https://www.osradar.com/tag/centos/" target="_blank">CentOS</a> 8, <a href="https://www.osradar.com/tag/rhel/" target="_blank" rel="noreferrer noopener" aria-label="RHEL (opens in a new tab)">RHEL</a> 8, Oracle Linux 8 and derivatives:</p>



<pre class="wp-block-preformatted">:~$ sudo dnf install wget unzip</pre>



<p>Finally, in the case of <a href="https://www.osradar.com/tag/opensuse/" target="_blank" rel="noreferrer noopener" aria-label="OpenSUSE (opens in a new tab)">OpenSUSE</a>, it would be enough to use the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo zypper in wget unzip</pre>



<p>Once they are installed, we can start downloading overwrite from github:</p>



<pre class="wp-block-preformatted">:~$ wget -c https://github.com/ivoprogram/overwrite/releases/download/ver1.1-2019-10-06/overwrite-bin-ver1.1-2019-10-06.zip</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="326" src="https://www.osradar.com/wp-content/uploads/2019/10/1-11-1024x326.png" alt="1.- Downloading Overwrite on Linux" class="wp-image-14733" srcset="https://www.osradar.com/wp-content/uploads/2019/10/1-11-1024x326.png 1024w, https://www.osradar.com/wp-content/uploads/2019/10/1-11-300x96.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/1-11-768x245.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/1-11-696x222.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/1-11-1068x340.png 1068w, https://www.osradar.com/wp-content/uploads/2019/10/1-11-1318x420.png 1318w, https://www.osradar.com/wp-content/uploads/2019/10/1-11.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Downloading Overwrite on Linux</figcaption></figure>



<p>Once the download has finished, we will have to decompress it using unzip. To do this, use the following command:</p>



<pre class="wp-block-preformatted">:~$ unzip overwrite-bin-ver1.1-2019-10-06.zip</pre>



<p>Remember, be aware of the downloaded version.</p>



<figure class="wp-block-image"><img loading="lazy" width="652" height="228" src="https://www.osradar.com/wp-content/uploads/2019/10/2-10.png" alt="2.- Decompressing the program" class="wp-image-14734" srcset="https://www.osradar.com/wp-content/uploads/2019/10/2-10.png 652w, https://www.osradar.com/wp-content/uploads/2019/10/2-10-300x105.png 300w" sizes="(max-width: 652px) 100vw, 652px" /><figcaption>2.- Decompressing the program</figcaption></figure>



<p>To make the job easier, I will rename the uncompressed folder by a name easier to remember.</p>



<pre class="wp-block-preformatted">:~$ mv [overwrite_folder_name] overwrite</pre>



<p>Also, you can check the contents of the folder with the command ls.</p>



<pre class="wp-block-preformatted">:~$ cd overwrite
:~$ ls</pre>



<figure class="wp-block-image"><img loading="lazy" width="988" height="84" src="https://www.osradar.com/wp-content/uploads/2019/10/3-9.png" alt="3.- using the ls command to check the content of the folder" class="wp-image-14735" srcset="https://www.osradar.com/wp-content/uploads/2019/10/3-9.png 988w, https://www.osradar.com/wp-content/uploads/2019/10/3-9-300x26.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/3-9-768x65.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/3-9-696x59.png 696w" sizes="(max-width: 988px) 100vw, 988px" /><figcaption>3.- using the ls command to check the content of the folder</figcaption></figure>



<p>As you can see, all 32-bit and 64-bit Linux binaries and Windows binaries are available. However, you have to choose the corresponding binary according to your system and make it executable. In my case, my system is 64 bits.</p>



<pre class="wp-block-preformatted">:~$ chmod +x overwrite-linux-x86-64</pre>



<p>And we will be able to use it.</p>



<p>First, it is a good idea to start with the program help.</p>



<pre class="wp-block-preformatted">:~$ ./overwrite-linux-x86-64 -h</pre>



<figure class="wp-block-image"><img loading="lazy" width="632" height="438" src="https://www.osradar.com/wp-content/uploads/2019/10/4-8.png" alt="4.- Overwrite help" class="wp-image-14736" srcset="https://www.osradar.com/wp-content/uploads/2019/10/4-8.png 632w, https://www.osradar.com/wp-content/uploads/2019/10/4-8-300x208.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/4-8-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2019/10/4-8-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/10/4-8-606x420.png 606w" sizes="(max-width: 632px) 100vw, 632px" /><figcaption>4.- Overwrite help</figcaption></figure>



<p>I added a new hard drive and mounted it on /media and used this example command.</p>



<pre class="wp-block-preformatted">:~$ sudo ./overwrite-linux-x86-64 -rand -block:512 -files:10 -data:10mb -path:/media</pre>



<figure class="wp-block-image"><img loading="lazy" width="927" height="230" src="https://www.osradar.com/wp-content/uploads/2019/10/5-9.png" alt="5.- Using Overwrite on Linux" class="wp-image-14737" srcset="https://www.osradar.com/wp-content/uploads/2019/10/5-9.png 927w, https://www.osradar.com/wp-content/uploads/2019/10/5-9-300x74.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/5-9-768x191.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/5-9-696x173.png 696w" sizes="(max-width: 927px) 100vw, 927px" /><figcaption>5.- Using Overwrite on Linux</figcaption></figure>



<p>In this case, the command is executed as the root user. It uses 10mb random data and overwrites 10 files in blocks of 512. Finally, the path where the file system is mounted is specified.</p>



<p>Finally, if you want to use overwrite comfortably, <strong>rename the binary and move it <g class="gr_ gr_6 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" id="6" data-gr-id="6">to </g><code>/usr/bin</code></strong><g class="gr_ gr_6 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" id="6" data-gr-id="6">.</g></p>



<h2>Conclusion</h2>



<p>Overwrite is a very lightweight program that can help us protect our data even more from third parties. Its installation and use is within reach of many people for its ease and quality of work. Best of all we can install it on all Linux distributions without problems.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/overwrite-prevent-recovering-information-from-hard-disk/">Overwrite: an application to prevent recovering information from a hard disk</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/overwrite-prevent-recovering-information-from-hard-disk/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Discovered vulnerability in sudo. Upgrade your system now!</title>
		<link>https://www.osradar.com/discovered-vulnerability-sudo/</link>
					<comments>https://www.osradar.com/discovered-vulnerability-sudo/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 15 Oct 2019 15:46:15 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[What's Hot]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[New version]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[SUSE]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14662</guid>

					<description><![CDATA[<p>One of the great advantages of using open source software is that its code is customizable by anyone. This brings the great advantage that there are many eyes seeing the caught in search of perfecting it. And that&#8217;s what happened because thanks to Joe Vennix has discovered a vulnerability in sudo. In this post, we [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/discovered-vulnerability-sudo/">Discovered vulnerability in sudo. Upgrade your system now!</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>One of the great advantages of using open source software is that its code is customizable by anyone. This brings the great advantage that there are many eyes seeing the caught in search of perfecting it. And that&#8217;s what happened because thanks to Joe Vennix has discovered a vulnerability in sudo. In this post, we will explain about it and also tell you how to correct it.</p>



<p>Quickly and by way of introduction, I will tell you that sudo is a tool that allows you to execute commands as if you were another user. Usually the other user is the root user. That is to say with our regular user, we can execute commands as if we were root user. </p>



<p>This situation brings many advantages when facilitating usability in a home system, but is not widely used in business.</p>



<p>The detail is that a vulnerability has been discovered that grants permissions of root user to whom it should not.</p>



<p>Specifically we refer to a vulnerability identified with the number <a rel="noreferrer noopener" aria-label="CVE-2019-14287 (opens in a new tab)" href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-14287" target="_blank">CVE-2019-14287</a> and has already been documented by Canonical under the number <a rel="noreferrer noopener" aria-label="USN-4154-1 (opens in a new tab)" href="https://usn.ubuntu.com/4154-1/" target="_blank">USN-4154-1</a>.</p>



<h2>In which Ubuntu versions is there a vulnerability in sudo?</h2>



<p>For now, the vulnerability in sudo affects the following versions of Ubuntu:</p>



<ul><li>Ubuntu 19.04</li><li><a rel="noreferrer noopener" aria-label="Ubuntu 18.04 LTS (opens in a new tab)" href="https://www.osradar.com/tag/bionic/" target="_blank">Ubuntu 18.04 LTS</a></li><li>Also, Ubuntu 16.04 LTS</li><li>Ubuntu 14.04 ESM</li><li>Ubuntu 12.04 ESM</li></ul>



<p>This at server level as well as desktop operating system level. Therefore, as Ubuntu is one of the most popular distributions, it is easy to deduce that many people are affected by the vulnerability.</p>



<p>On the other hand, also versions 17.x, 18.x and 19.x of <a rel="noreferrer noopener" aria-label="Linux Mint (opens in a new tab)" href="https://www.osradar.com/tag/linux-mint/" target="_blank">Linux Mint</a> has been affected. This is because Linux Mint uses Ubuntu&#8217;s base packages for the system.</p>



<h2>What was the problem?</h2>



<p>The <code>/etc/sudoers</code> file is where you find the configuration of which users may or may not use the sudo command.</p>



<p>However, the security breach discovered<strong> allowed any user to use commands as root</strong>. This was accomplished by modifying the file to circumvent the ban. That is, even when it was defined that a user could not execute sudo, modifying the sudoers file and setting user ID -1, this policy is circumvented.</p>



<p>On the other hand, it is worth mentioning that sudo is not enabled on many servers and there the consequences are less serious.</p>



<h2>How can I solve the problem?</h2>



<p>Fortunately, the vulnerability has been discovered and patched. Therefore, at this point it should already be available as an update through your preferred package manager.</p>



<p>For example, in the case of Ubuntu and Linux Mint is already available.</p>



<figure class="wp-block-image"><img loading="lazy" width="796" height="598" src="https://www.osradar.com/wp-content/uploads/2019/10/sudo.png" alt="Upgrade your system to resolve the vulnerability in sudo" class="wp-image-14669" srcset="https://www.osradar.com/wp-content/uploads/2019/10/sudo.png 796w, https://www.osradar.com/wp-content/uploads/2019/10/sudo-300x225.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/sudo-768x577.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/sudo-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/10/sudo-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2019/10/sudo-696x523.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/sudo-559x420.png 559w" sizes="(max-width: 796px) 100vw, 796px" /><figcaption>Upgrade your system to resolve the vulnerability in sudo</figcaption></figure>



<p>And so on the rest of the Linux distributions. Just upgrade. In case you do not have the new update, wait a little longer and it will surely be available.</p>



<p>Sudo has been compromised but there is already a solution. Upgrade now!</p>



<p>Also, you can learn<a rel="noreferrer noopener" aria-label=" how to enable on Debian (opens in a new tab)" href="https://www.osradar.com/how-to-enable-sudo-on-centos-8/" target="_blank"> how to enable on Debian</a> and <a href="https://www.osradar.com/how-to-enable-sudo-on-centos-8/" target="_blank" rel="noreferrer noopener" aria-label="CentOS (opens in a new tab)">CentOS</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/discovered-vulnerability-sudo/">Discovered vulnerability in sudo. Upgrade your system now!</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/discovered-vulnerability-sudo/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
