<?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 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/rhel-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 16 Jun 2021 16:15:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install 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>
<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>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>
<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>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>
<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>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>
<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>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 run Docker Containers using Podman and Libpod.</title>
		<link>https://www.osradar.com/how-to-run-docker-containers-using-podman-and-libpod/</link>
					<comments>https://www.osradar.com/how-to-run-docker-containers-using-podman-and-libpod/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 23 Dec 2019 12:11:00 +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 8]]></category>
		<category><![CDATA[Docker containers on CentOS 8]]></category>
		<category><![CDATA[how to run docker containers using podman and libpod]]></category>
		<category><![CDATA[libpod]]></category>
		<category><![CDATA[podman]]></category>
		<category><![CDATA[Podman and Libpod on CentOS 8]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16904</guid>

					<description><![CDATA[<p>Today we are going to learn that how we can run Docker containers using Podman and Libpod. Without going in detail about podman and libpod we will cover the practical aspects to see how they work actually. You can search from Google or any search engine about Podman and Libpod. Moreover we&#8217;ve described a little [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-run-docker-containers-using-podman-and-libpod/">How To run Docker Containers using Podman and Libpod.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that how we can run Docker containers using Podman and Libpod. Without going in detail about podman and libpod we will cover the practical aspects to see how they work actually. You can search from Google or any search engine about Podman and Libpod. Moreover we&#8217;ve described a little bit about Podman in our previous tutorial. But here we will introduce the necessary things shortly. </p>



<h2><strong>Docker CLI working</strong></h2>



<p>Docker CLI operates as a client/server to communicate with the Docker engine upon creation of operations of a container. But it will raise issues when you have to start the Docker daemon before accessing Docekr CLI live. After it CLI sends API call to the Docker Engine to launch Open Contianer Initiative (OCI) runtime. </p>



<h3><strong>Difference between Docker and Podman</strong></h3>



<p>One of the main difference between Docker and Podman is that there is no daemon in the Podman. Upon applying any cgroup constraints you apply on the podman command containers will recieve those constraints directly. Moreover, advanced features of systemd can be utilized using this model.</p>



<h3><strong> Libpod</strong></h3>



<p>Libpod provides the library for those applications which are looking to use the Container Pod concept. It is also refereed as the Home of Podman.<br> So now lets proceed further</p>



<h3><strong>Step 1: Managing Container Images</strong></h3>



<p>Type the below command to download the container Images using Podman</p>



<pre class="wp-block-verse">$ podman pull ubuntu<br>$ podman pull centos<br>$ podman pull centos:8</pre>



<p>Run the below command to list the downloaded images</p>



<pre class="wp-block-verse">$ podman  images<br> REPOSITORY                 TAG      IMAGE ID       CREATED        SIZE<br> docker.io/library/ubuntu   latest   3556258649b2   2 weeks ago    66.6 MB<br> docker.io/library/alpine   latest   b7b28af77ffe   3 weeks ago    5.85 MB<br> docker.io/library/debian   latest   00bf7fdd8baf   4 weeks ago    119 MB<br> docker.io/library/centos   latest   9f38484d220f   4 months ago   209 MB</pre>



<p>Follow the below syntax to remove the images </p>



<pre class="wp-block-verse">$<strong> podman rmi &lt;Type your Container Image ID here&gt;</strong><br>$ podman rmi 00bf7fdd8baf<br> 00bf7fdd8baf2ba6f0918e1f48415b2a4a1a616806e7cf32527a749dd2ce4b2c<br> $ podman rmi docker.io/library/ubuntu<br> 3556258649b2ef23a41812be17377d32f568ed9f45150a26466d2ea26d926c32</pre>



<h4><strong>Tagging Image</strong></h4>



<p>Check out the tag by running <strong>podman images</strong> command</p>



<pre class="wp-block-verse">podman tag  &lt;Image ID&gt; webserver</pre>



<h3><strong>Step 2: Running Containers with Podman</strong></h3>



<p>Let&#8217;s print a message using simple container </p>



<pre class="wp-block-verse">[sabi@localhost ~]$ podman run --rm centos /bin /echo/ "Osradar"<br>Osradar</pre>



<p>Use -d option to run the container in background</p>



<pre class="wp-block-verse">podman run -dt -p 8080:8080/tcp -e HTTPD_VAR_RUN=/var/run/httpd -e HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \<br>
                  -e HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \<br>
                  -e HTTPD_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/httpd/ \<br>
                  registry.fedoraproject.org/f29/httpd /usr/bin/run-httpd</pre>



<p>It will return the contianer ID:</p>



<pre class="wp-block-verse">Trying to pull registry.fedoraproject.org/f29/httpd…Getting image source signatures<br> Copying blob d77ff9f653ce done<br> Copying blob aaf5ad2e1aa3 done<br> Copying blob 7692efc5f81c done<br> Copying config 25c76f9dcd done<br> Writing manifest to image destination<br> Storing signatures<br> d2cdf0efb0ddc6e2ae52a5a0bdadababa6ee6cc2e1e49145c92a0474b089b664</pre>



<p>To List the running containers, use the below command</p>



<pre class="wp-block-verse">$ podman ps<br> CONTAINER ID  IMAGE                                        COMMAND               CREATED        STATUS            PORTS                   NAMES<br> d2cdf0efb0dd  registry.fedoraproject.org/f29/httpd:latest  container-entrypo…  4 minutes ago  Up 4 minutes ago  0.0.0.0:8080-&gt;8080/tcp  cranky_borg<br> To include stopped / exited containers, use:<br> $ podman ps --all</pre>



<p>For accessing a container shell use the option <strong>-it</strong></p>



<pre class="wp-block-verse">podman run -it ubuntu bash<br> root@d273c12899cd:/#<br> root@d273c12899cd:/# apt update<br>  Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]<br>  Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]          <br>  Get:3 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [717 kB]<br>  Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]        <br>  Get:5 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [535 kB]<br>  Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]</pre>



<h3><strong>Step 3: Searching in Podman</strong></h3>



<pre class="wp-block-verse">podman search httpd</pre>



<h4><strong>Inspect Containers</strong></h4>



<p>It will display the some basic info on containers &amp; images identified by name or ID</p>



<pre class="wp-block-verse">podman inspect &lt;image id&gt;</pre>



<p>For help run the below command</p>



<pre class="wp-block-verse">podman inspect --help</pre>



<h3><strong>Step 4: Removing Containers</strong></h3>



<p>To remove the containers, list all running containers.</p>



<pre class="wp-block-verse">podman ps -a</pre>



<p>Now type the command <strong>podman rm</strong> with the ID of container image to remove it.</p>



<pre class="wp-block-verse">podman rm &lt;image id&gt;</pre>



<p>For removing all containers, type the following command.</p>



<p><strong>Note it will remove all containers running and stopped.</strong></p>



<pre class="wp-block-verse">podman rm $(podman ps -a -q)</pre>



<h3><strong>Step 5: View the container&#8217;s logs</strong></h3>



<p>Here we will view the containers logs in different ways</p>



<h5><strong>View by latest category</strong></h5>



<pre class="wp-block-verse">podman logs --latest</pre>



<h5><strong>View by mentioning container ID:</strong></h5>



<pre class="wp-block-verse">podman p<br>podman logs &lt;image id&gt;</pre>



<p>For attaining real-time, use the below command</p>



<pre class="wp-block-verse">podman logs -f <br>podman logs --follow=true --since 10m Container ID</pre>



<p>You can also specify the number of lines in logs:</p>



<pre class="wp-block-verse">podman logs --tail 10 </pre>



<h3><strong>Step 6: View the container&#8217;s pids</strong></h3>



<p>Type podman <strong>top</strong> to view container pids.</p>



<pre class="wp-block-verse">podman top &lt;image id&gt;</pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-verse">$ podman top d2cdf0efb0dd<br> USER      PID   PPID   %CPU    ELAPSED            TTY     TIME   COMMAND<br> default   1     0      0.000   29m22.496484247s   pts/0   0s     httpd -D FOREGROUND <br> default   22    1      0.000   29m21.496767511s   pts/0   0s     /usr/bin/coreutils --coreutils-prog-shebang=cat /usr/bin/cat <br> default   23    1      0.000   29m21.496866314s   pts/0   0s     /usr/bin/coreutils --coreutils-prog-shebang=cat /usr/bin/cat <br> default   24    1      0.000   29m21.497020539s   pts/0   0s     /usr/bin/coreutils --coreutils-prog-shebang=cat /usr/bin/cat <br> default   25    1      0.000   29m21.497127237s   pts/0   0s     /usr/bin/coreutils --coreutils-prog-shebang=cat /usr/bin/cat <br> default   26    1      0.000   29m21.49723933s    pts/0   0s     httpd -D FOREGROUND <br> default   27    1      0.000   29m21.497361006s   pts/0   0s     httpd -D FOREGROUND <br> default   28    1      0.000   29m21.497459891s   pts/0   0s     httpd -D FOREGROUND <br> default   29    1      0.000   29m21.497552695s   pts/0   0s     httpd -D FOREGROUND </pre>



<h3><strong>Step 7: Checkpointing the container</strong></h3>



<p>Checkpointing a container stops the container while writing the state of all processes in the container to disk. To do this you&#8217;ll requires CRIU 3.11 or later installed on the system.</p>



<p>See <a href="https://criu.org/Installation">CRIU </a>Installation guide here.</p>



<pre class="wp-block-verse">podman container checkpoint &lt;container id&gt;</pre>



<p><strong>Example:</strong></p>



<pre class="wp-block-verse">podman container checkpoint d1hf0dbf0dd</pre>



<p>It can later be restored and continue running exactly at the same point in time as the checkpoint.</p>



<pre class="wp-block-verse">podman container restore &lt;container id&gt;</pre>



<h3><strong>Step 8: Migrate Container</strong></h3>



<p>Migrating the container contains 3 steps.</p>



<p>In first step, checkpoint the container on the source system.</p>



<pre class="wp-block-verse">podman container checkpoint &lt;container id&gt; -e /tmp/checkpoint.tar.gz</pre>



<p>In Second Step copy it to the destination server.</p>



<pre class="wp-block-preformatted">scp /tmp/checkpoint.tar.gz :/tmp</pre>



<p>Last step involve the restoration on the destination system.</p>



<h3><strong>Step 9: Manage Container pods with Podman</strong></h3>



<p>Podman pods are similar to the Kubernetes concept of Pods.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-large"><img loading="lazy" width="831" height="422" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/pods-and-podmans.jpg" alt="" class="wp-image-16922" srcset="https://www.osradar.com/wp-content/uploads/2019/12/pods-and-podmans.jpg 831w, https://www.osradar.com/wp-content/uploads/2019/12/pods-and-podmans-300x152.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/pods-and-podmans-768x390.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/pods-and-podmans-696x353.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/pods-and-podmans-827x420.jpg 827w" sizes="(max-width: 831px) 100vw, 831px" /></figure></div>



<p>You can expose most of the interaction with  pods through the <strong>podman pod</strong> command.</p>



<pre class="wp-block-verse">podman pod --help</pre>



<p>Create a pod called web</p>



<pre class="wp-block-verse">podman pod create --name web</pre>



<p>Below will creates a pod without the extra attributes available on:</p>



<pre class="wp-block-verse">podman pod create --help</pre>



<p>Make sure pod is created</p>



<pre class="wp-block-verse">podman pod list</pre>



<p>By default, the created pod will have a container called infra. The infra container holds the namespace associated with the pod to allow podman to connect to the containers to the pod. It is in sleep mode by default.</p>



<pre class="wp-block-verse">podman ps -a --pod</pre>



<p>After creating pod, we can add a container to it.</p>



<pre class="wp-block-verse">podman run -dt --pod web alpine:latest top</pre>



<p>You&#8217;ll see that the pod has two containers.</p>



<pre class="wp-block-verse">podman ps -a --pod<br>CONTAINER ID  IMAGE                            COMMAND  CREATED             STATUS                 PORTS  NAMES               POD<br> 36ccace2d653  docker.io/library/alpine:latest  top      About a minute ago  Up About a minute ago         zen_hugle           0f565b11e9cb<br> 44cca777d12f  k8s.gcr.io/pause:3.1                      28 minutes ago      Up 28 minutes ago             0f565b11e9cb-infra  0f565b11e9cb</pre>



<p>You can also expose a port to the created container with root privileges.</p>



<pre class="wp-block-verse">sudo podman pod create -p 8080:80 --name web1<br>sudo podman run -dt --pod web1 -p  8080 nginx:latest</pre>



<pre class="wp-block-verse">You need to publish as many port as will be used during the pod creation. This can't be changed after the creation.</pre>



<p>So this is how we can run Docker Container using podman and libpod.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-run-docker-containers-using-podman-and-libpod/">How To run Docker Containers using Podman and Libpod.</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-run-docker-containers-using-podman-and-libpod/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Configure iSCSI Initiator on CentOS / RHEL 8.</title>
		<link>https://www.osradar.com/how-to-configure-iscsi-initiator-on-centos-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-configure-iscsi-initiator-on-centos-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 20 Nov 2019 19:35:14 +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 8]]></category>
		<category><![CDATA[install iscsi initiator on rhel]]></category>
		<category><![CDATA[iscsi initiator on centos 8]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15772</guid>

					<description><![CDATA[<p>We&#8217;ve cover the installation of iSCSI Target on CentOS 8 / RHEL 8 in our previous tutorial. In this tutorial we&#8217;ll cover the configuration of iSCSI Initiator on CentOS / RHEL 8. So follow these steps to get started. Step 1: Install iscsi-initiator-utils on CentOS / RHEL 8. sudo dnf -y install iscsi-initiator-utils Step 2: [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-iscsi-initiator-on-centos-rhel-8/">How To Configure iSCSI Initiator on CentOS / 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>We&#8217;ve cover the installation of iSCSI Target on CentOS 8 / RHEL 8 in our previous tutorial. In this tutorial we&#8217;ll cover the configuration of iSCSI Initiator on CentOS / RHEL 8. So follow these steps to get started.</p>



<h3><strong>Step 1: Install iscsi-initiator-utils on CentOS / RHEL 8.</strong></h3>



<pre class="wp-block-verse">sudo dnf -y install iscsi-initiator-utils</pre>



<h3><strong>Step 2: Configure Initiator Name</strong></h3>



<p>Edit the file <strong>/etc/iscsi/initiatorname.iscsi/</strong> and name it to match the target server name you&#8217;ve used.</p>



<pre class="wp-block-verse">sudo vi /etc/iscsi/initiatorname.iscsi</pre>



<pre class="wp-block-verse">InitiatorName=iqn.2019-11.com.osradar:initiator01</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="542" height="39" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/initiator-name.png" alt="" class="wp-image-15776" srcset="https://www.osradar.com/wp-content/uploads/2019/11/initiator-name.png 542w, https://www.osradar.com/wp-content/uploads/2019/11/initiator-name-300x22.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/initiator-name-533x39.png 533w, https://www.osradar.com/wp-content/uploads/2019/11/initiator-name-534x39.png 534w" sizes="(max-width: 542px) 100vw, 542px" /></figure></div>



<h3><strong>Step 3: Configure Credentials</strong></h3>



<p>Open the following file to set up credential details.</p>



<pre class="wp-block-verse">sudo vi /etc/iscsi/iscsid.conf</pre>



<p>Note: Use the credentials as you&#8217;ve done in setting up target so they match.</p>



<pre class="wp-block-verse">Uncomment "node.session.auth.authmethod=CHAP"<br>Uncomment "node.session.auth.username" and set username as "Initiator01"<br>Uncomment "node.session.auth.password" and set it as you've setup in previous setup.</pre>



<h3><strong>Step 4: Testing iSCSI Target discovery</strong></h3>



<p>Run the following command to confirm that iSCSI can discover our installed iSCSI Target.</p>



<pre class="wp-block-verse">iscsiadm -m discovery -t sendtargets -p 172.17.52.184</pre>



<p>Note: Use your iSCSI target server IP.</p>



<p>If the IP info and access details is displayed we can say the discovery is successful.</p>



<h3><strong>Step 5: Confirm Target&#8217;s status</strong></h3>



<p>Run the given command to check the status.</p>



<pre class="wp-block-verse">iscsiadm -m node -o show</pre>



<pre class="wp-block-verse"># BEGIN RECORD 6.2.0.874-10  node.name = <a href="https://osradar.com">iqn.2019-11.osradar.com</a>:target01  node.tpgt = 1  node.startup = automatic  node.leading_login = No  iface.hwaddress =   iface.ipaddress =   iface.iscsi_ifacename = default  iface.net_ifacename =   iface.gateway =   iface.subnet_mask =   iface.transport_name = tcp  iface.initiatorname =   iface.state =   iface.vlan_id = 0  iface.vlan_priority = 0  iface.vlan_state =   iface.iface_num = 0  iface.mtu = 0  </pre>



<h3><strong>Step 6: Access iSCSI Target on CentOS / RHEL 8</strong></h3>



<p>Login to your account by typing this command , you will see a success message at the end.</p>



<pre class="wp-block-verse">iscsiadm -m node --login</pre>



<pre class="wp-block-verse">Logging in to<a href="https://www.osradar.com"> iface: default, target: iqn.2019-11.osradar.com:target01, portal: 172.17.255.109,</a>3260 Login to [iface: default, target: , portal: 172.17.255.109,3260] <br> <a href="https://www.osradar.com/">iqn.2019-11.osradar.com:target01</a> successful.</pre>



<p>Make sure you&#8217;re logged into your iSCSI Target Server.</p>



<pre class="wp-block-verse">iscsiadm -m session -o show</pre>



<pre class="wp-block-verse">tcp: [1] 172.17.255.109:3260,1 <a href="https://www.osradar.com" target="_blank" rel="noreferrer noopener" aria-label="iqn.2019-11.osradar.com:target01 (opens in a new tab)">iqn.2019-11.osradar.com:target01</a> (non-flash)</pre>



<p><strong>Check disks if you&#8217;ve added Target&#8217;s disk</strong></p>



<p>We&#8217;ve created backstore of 5GB space in our previous tutorial.</p>



<pre class="wp-block-verse">lsb1k</pre>



<p>Format &amp; mount the new disk to make it ready for use.</p>



<p>In this tutorial we&#8217;ll use fdisk to set up LVM type. You are free to use your desired one.</p>



<pre class="wp-block-verse">fdisk /dev/sdb</pre>



<p>Confirm the new partition number.</p>



<pre class="wp-block-verse">lsb1k</pre>



<p>Look at the new partition , we have sdb1 as seen below. Now, add a file system on the new partition.</p>



<pre class="wp-block-verse"> NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT  fd0               2:0    1    4K  0 disk  sda               8:0    0   20G  0 disk  ├─sda1            8:1    0  953M  0 part /boot  └─sda2            8:2    0 19.1G  0 part    ├─centos-root 253:0    0    6G  0 lvm  /    ├─centos-swap 253:1    0  956M  0 lvm  [SWAP]    ├─centos-home 253:2    0  7.5G  0 lvm  /home    └─centos-var  253:3    0  4.7G  0 lvm  /var  sdb               8:16   0    5G  0 disk  <strong>└─sdb1            8:17   0    5G  0 part</strong> <strong>##sdb1 Added</strong>  sr0              11:0    1 1024M  0 rom </pre>



<p><strong>Set file system on the partition</strong></p>



<p>Here, we&#8217;ll use xfs. You can use any (ext3,ext4,Btrfs etc) to fit your case.</p>



<pre class="wp-block-verse">mkfs.xfs /dev/sdb1</pre>



<p><strong>Mount your partition and confirm</strong></p>



<pre class="wp-block-verse">mount /dev/sdb1/mnt</pre>



<pre class="wp-block-verse">df -TH</pre>



<p>Congratulations! You&#8217;ve all done. If have any queries regarding this tutorial, you can ask in comments.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-iscsi-initiator-on-centos-rhel-8/">How To Configure iSCSI Initiator on CentOS / 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-configure-iscsi-initiator-on-centos-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install OpenNMS on Centos / RHEL 8.</title>
		<link>https://www.osradar.com/how-to-install-opennms-on-centos-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-opennms-on-centos-rhel-8/#comments</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Tue, 12 Nov 2019 11:10:40 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[How to install OpenNMS on Centos 8]]></category>
		<category><![CDATA[OpenNMS Network Monitoring Tool]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15555</guid>

					<description><![CDATA[<p>What is OpenNMS? OpenNMS is a free &#38; open source highly configurable, scaleable, extensible and cross-platform network Monitoring and network management platform. It is built using Java. Features: Device &#38; Application Monitoring Event-driven Architecture. It supports the collection of performance from Industry standard agents via SNMP,JMX,WMI,NPRE,NSCLient++ &#38; XMP simply through configuration. Provides easy integration to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-opennms-on-centos-rhel-8/">How to Install OpenNMS on Centos / 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[
<h3><strong>What is OpenNMS?</strong></h3>



<p>OpenNMS is a free &amp; open source highly configurable, scaleable, extensible and cross-platform network Monitoring and network management platform. It is built using Java.</p>



<h4><strong> Features:</strong></h4>



<ul><li>Device &amp; Application Monitoring</li><li> Event-driven Architecture.</li><li> It supports the collection of performance from Industry standard agents via SNMP,JMX,WMI,NPRE,NSCLient++ &amp; XMP simply through configuration.</li><li> Provides easy integration to extend service polling, performance &amp; data collection framework.</li><li> Different modes like maual, detected or ReST API driven interfaces.</li></ul>



<h4><strong>OpenNMS Requirements:</strong></h4>



<p>Operating System: Red Hat Enterprise Linux 8 or Centos 8.<br>Minimal Hardware: 2 CPU, 2 GB RAM, 20 GB Disk.</p>



<p>In this tutorial, we will learn how to install &amp; setup the latest OpenNMS Horizon network service monitoring software in Centos / RHEL 8.</p>



<h3><strong> Step 1: Install Java &amp; Setting Java_Home</strong></h3>



<pre class="wp-block-verse">yum install java-11-openjdk</pre>



<p>Check installed version</p>



<p>java -version</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="733" height="152" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/java-version.png" alt="" class="wp-image-15558" srcset="https://www.osradar.com/wp-content/uploads/2019/11/java-version.png 733w, https://www.osradar.com/wp-content/uploads/2019/11/java-version-300x62.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/java-version-696x144.png 696w" sizes="(max-width: 733px) 100vw, 733px" /></figure></div>



<p>Add this line to set Java Environment to all users at boot time.</p>



<pre class="wp-block-verse">export JAVA_HOME=/usr/lib/jvm/java-11</pre>



<h3><strong>Step 2: Installing OpenNms Horizon</strong></h3>



<p>For installing OpenNMS Horizon, add the following yum repository &amp; then import GPG key.</p>



<pre class="wp-block-verse">yum -y install https://yum.opennms.org/repofiles/opennms-repo-stable-rhel8.noarch.rpm<br>rpm --import https://yum.opennms.org/OPENNMS-GPG-KEY</pre>



<p>Now, Install opennms meta package together alognwith all its built-in dependencies like jicmp6, opennms-webapp-jettty, postgresql and many more.</p>



<pre class="wp-block-verse">yum -y install opennms</pre>



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



<p>Confirm that packages are successfully installed.</p>



<pre class="wp-block-verse">cd /opt/opennms</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="402" height="292" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/cd.png" alt="" class="wp-image-15560" srcset="https://www.osradar.com/wp-content/uploads/2019/11/cd.png 402w, https://www.osradar.com/wp-content/uploads/2019/11/cd-300x218.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/cd-324x235.png 324w" sizes="(max-width: 402px) 100vw, 402px" /></figure></div>



<h3><strong>Step 3: Initializing &amp; Setup PostgreSQL</strong></h3>



<p>Initialize the PostgreSQL database </p>



<pre class="wp-block-verse">postgresql-setup initdb</pre>



<p>Start &amp; enable PostgreSQL services and check status for confirmation.</p>



<pre class="wp-block-verse">systemctl start postgresql<br>systemctl enable postgresql<br>systemctl status postgresql</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="721" height="427" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/postgresql-services.png" alt="" class="wp-image-15561" srcset="https://www.osradar.com/wp-content/uploads/2019/11/postgresql-services.png 721w, https://www.osradar.com/wp-content/uploads/2019/11/postgresql-services-300x178.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/postgresql-services-696x412.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/postgresql-services-709x420.png 709w" sizes="(max-width: 721px) 100vw, 721px" /></figure></div>



<p>Switch to PostgreSQL user account to create access to PostgreSQL. After it create opennms database user with a password &amp; create an opennms database.</p>



<pre class="wp-block-verse">su - postgres<br>createuser -P opennms<br>createdb -O opennms opennms </pre>



<p>Setup password for Postgres super user.</p>



<pre class="wp-block-verse">psq; -c "ALTER USER postgres WITH PASSWORD 'admin123';"<br> exit</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="713" height="86" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/alter-user.png" alt="" class="wp-image-15562" srcset="https://www.osradar.com/wp-content/uploads/2019/11/alter-user.png 713w, https://www.osradar.com/wp-content/uploads/2019/11/alter-user-300x36.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/alter-user-696x84.png 696w" sizes="(max-width: 713px) 100vw, 713px" /></figure></div>



<p>Modify the access policy for PostgreSQL in the <strong>/var/lib/pgsql/data/pg_hba.conf</strong> config file.</p>



<pre class="wp-block-verse">vi var/lib/pgsql/data/pg_hba.conf</pre>



<p>Change the authentication method to <strong>md5 </strong>by finding given lines to allow OpenNMS Horizon accessing database over LAN with a <strong>MD5 hashed password.</strong></p>



<pre class="wp-block-verse">host           all            all           127.0.0.1/32           md5<br>host           all            all           ::1/128                   md5</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="723" height="503" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/md5.png" alt="" class="wp-image-15563" srcset="https://www.osradar.com/wp-content/uploads/2019/11/md5.png 723w, https://www.osradar.com/wp-content/uploads/2019/11/md5-300x209.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/md5-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2019/11/md5-696x484.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/md5-604x420.png 604w" sizes="(max-width: 723px) 100vw, 723px" /></figure></div>



<p>Reload postgresql to take effect of configuration.</p>



<pre class="wp-block-verse">systemctl reload postgresql</pre>



<p>Now, configure the db access in OpenNMS Horizon by opening following file.</p>



<pre class="wp-block-verse">vim /opt/opennms/etc/opennms-datasources.xml. </pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="723" height="266" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/data-source-.png" alt="" class="wp-image-15564" srcset="https://www.osradar.com/wp-content/uploads/2019/11/data-source-.png 723w, https://www.osradar.com/wp-content/uploads/2019/11/data-source--300x110.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/data-source--696x256.png 696w" sizes="(max-width: 723px) 100vw, 723px" /></figure></div>



<p>And set up Credentials.</p>



<h3><strong>Step 4: Initialize &amp; Start OpenNMS Horizon</strong></h3>



<p>Now, you need to integrate the default version of JAVA with OpenNMS. Run the following command to detect environment and persist in the <strong>/opt/opennms/etc/java.conf </strong>file.</p>



<pre class="wp-block-verse">/opt/opennms/bin/runjava -s</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="724" height="291" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/run-java.png" alt="" class="wp-image-15565" srcset="https://www.osradar.com/wp-content/uploads/2019/11/run-java.png 724w, https://www.osradar.com/wp-content/uploads/2019/11/run-java-300x121.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/run-java-696x280.png 696w" sizes="(max-width: 724px) 100vw, 724px" /></figure></div>



<p>On next step, you need to run the OpenNMS installer which will initialize the db and detect system libararies persisted in <strong>/opt/opennms/etc/libararies.properties.</strong></p>



<pre class="wp-block-verse">/opt/opennms/bin/install -dis</pre>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="712" height="221" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/opennms-isntaller.png" alt="" class="wp-image-15567" srcset="https://www.osradar.com/wp-content/uploads/2019/11/opennms-isntaller.png 712w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-isntaller-300x93.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-isntaller-696x216.png 696w" sizes="(max-width: 712px) 100vw, 712px" /></figure></div>



<p>Start OpenNMS service via systemd for the mean time, enable it to auto-start at system boot.</p>



<pre class="wp-block-verse">systemctl start opennms<br>systemctl enable opennms<br>systemctl status opennms</pre>



<p>Allow 8990 port to access Web Console.</p>



<pre class="wp-block-verse">firewall-cmd --permanent --add-port=8980/tcp<br> firewall-cmd --reload</pre>



<h3><strong>Step 5: Access OpenNMS Web Console &amp; Login</strong></h3>



<p>Go to your browser and type any of the following command to access the web console.</p>



<pre style="text-align:center" class="wp-block-verse"><a href="https://www.osradar.com">http://SERVER_IP:8980/opennms</a><br> OR<br><a href="https://www.osradar.com"> http://FDQN-OF-YOUR-SERVER:8980/opennms</a></pre>



<p>Provide authentication details as default username admin &amp; password admin.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="799" height="475" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/opennms-dashboard.png" alt="" class="wp-image-15569" srcset="https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard.png 799w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard-300x178.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard-768x457.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard-696x414.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/opennms-dashboard-706x420.png 706w" sizes="(max-width: 799px) 100vw, 799px" /></figure></div>



<p>This is not secure so you should change your password. To do so, go to main navigation menu on admin.</p>



<p>Under Account Self-Service, click Change Password&#8221;.<br>Enter the old, set new and click &#8220;Submit&#8221;. Afterwards, logout and login with your new user details for security.</p>



<p>That&#8217;s it You&#8217;ve done installing OpenNMS, if have any queries regarding this tutorial feel free to ask!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-opennms-on-centos-rhel-8/">How to Install OpenNMS on Centos / 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-opennms-on-centos-rhel-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Zabbix server on CentOS 8 / RHEL 8 / Oracle Linux 8 ?</title>
		<link>https://www.osradar.com/install-zabbix-server-centos-8-rhel-oracle-linux/</link>
					<comments>https://www.osradar.com/install-zabbix-server-centos-8-rhel-oracle-linux/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 05 Sep 2019 23:01:19 +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[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[zabbix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13266</guid>

					<description><![CDATA[<p>Knowing what is happening in a network is the most frequent work of computer experts in any company. In this way, you get reliable data on the operation and performance of it. This becomes important because it would make the organization&#8217;s work more effective and error-free. In this sense, Zabbix is a reference in this [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-zabbix-server-centos-8-rhel-oracle-linux/">How to install Zabbix server 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>Knowing what is happening in a network is the most frequent work of computer experts in any company. In this way, you get reliable data on the operation and performance of it. This becomes important because it would make the organization&#8217;s work more effective and error-free. In this sense, Zabbix is a reference in this type of applications. With them, you will know what is happening in the network. Therefore, in this post, we will teach you how to install Zabbix on CentOS 8 / RHEL 8 / Oracle Linux 8.</p>
<h2>What is Zabbix?</h2>
<p><a href="https://www.zabbix.com/" rel="noopener">Zabbix</a> is quite a wonder. It is an open-source application that works under the client-server architecture. In other words, when installed on any server, it requires an agent to be installed on the client computers. In this way, the application will be able to monitor all the behavior of the nodes as well as the performance of the network.</p>
<p>On the other hand, the development of Zabbix is quite positive and constant, which makes it quite safe and functional. In addition to being quite mature in its development supports several database management systems including the popular <a href="https://www.osradar.com/tag/mariadb/" rel="noopener">MariaDB</a>, <a href="https://www.osaradar.com/tag/mysql/" rel="noopener">MySQL</a>, <a href="https://osradar.com/tag/postgresql/" rel="noopener">PostgreSQL</a> or proprietary alternatives such as Oracle and IBM DB2.</p>
<p>In this post, we will install step by step the Zabbix server on CentOS 8 / RHEL 8 / Oracle Linux 8.</p>
<h2>Install Zabbix on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>As expected, Zabbix has precompiled binaries available for RHEL 8 and derivatives. These are available from the official repository, but there are some prerequisites we must meet. One of them is that we need a web server running on our computer. Besides that, a database management system like MariaDB.</p>
<h3>Install LAMP on CentOS 8 / RHEL 8 / Oracle Linux 8</h3>
<p>In this case, we have a complete tutorial where you can install LAMP on CentOS 8 / RHEL 8 / Oracle Linux 8. There, step by step, you will be able to get a web server running as well as the database manager MariaDB.</p>
<p>Read, <a href="https://www.osradar.com/install-lamp-stack-on-oracle-linux-8-rhel-8-centos-8/" rel="noopener">How to install LAMP on CentOS 8 / RHEL 8 / Oracle Linux 8?</a></p>
<h3>Create the Zabbix user on MariaDB</h3>
<p>Once the server is running correctly. It is necessary to create a new user and database for Zabbix. To do this, open the MySQL console and run:</p>
<pre>:~# mysql -u root -p 
&gt; CREATE DATABASE zabbixdb;
&gt; GRANT ALL PRIVILEGES ON zabbixdb.* TO 'zabbixuser'@'localhost' IDENTIFIED BY 'zabbixpss';
&gt; FLUSH PRIVILEGES;
&gt; exit;</pre>
<p><figure id="attachment_13324" aria-describedby="caption-attachment-13324" style="width: 931px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13324" src="https://www.osradar.com/wp-content/uploads/2019/09/1.jpeg" alt="1.- Creating the new database and user for Zabbix" width="931" height="348" srcset="https://www.osradar.com/wp-content/uploads/2019/09/1.jpeg 931w, https://www.osradar.com/wp-content/uploads/2019/09/1-300x112.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/09/1-768x287.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/09/1-696x260.jpeg 696w" sizes="(max-width: 931px) 100vw, 931px" /><figcaption id="caption-attachment-13324" class="wp-caption-text">1.- Creating the new database and user for Zabbix</figcaption></figure></p>
<h3>Install Zabbix on CentOS 8 / RHEL 8 / Oracle Linux 8 (I)</h3>
<p>Then we can install Zabbix without problems. We will achieve this by using the official Zabbix repository for RHEL 8.</p>
<p>So as a root user, run the following command to add the GPG key from the repository:</p>
<pre>:~# rpm --import http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX</pre>
<p>Then add the repository as such:</p>
<pre>:~# rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/8/x86_64/zabbix-release-4.0-2.el8.noarch.rpm</pre>
<p><figure id="attachment_13325" aria-describedby="caption-attachment-13325" style="width: 907px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13325" src="https://www.osradar.com/wp-content/uploads/2019/09/2.jpeg" alt="2.- Adding the Zabbix repository" width="907" height="160" srcset="https://www.osradar.com/wp-content/uploads/2019/09/2.jpeg 907w, https://www.osradar.com/wp-content/uploads/2019/09/2-300x53.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/09/2-768x135.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/09/2-696x123.jpeg 696w" sizes="(max-width: 907px) 100vw, 907px" /><figcaption id="caption-attachment-13325" class="wp-caption-text">2.- Adding the Zabbix repository</figcaption></figure></p>
<p>Then proceed to install the Zabbix packages.</p>
<pre>:~# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-sender zabbix-java-gateway</pre>
<p><figure id="attachment_13326" aria-describedby="caption-attachment-13326" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13326" src="https://www.osradar.com/wp-content/uploads/2019/09/3.jpeg" alt="3.- Install Zabbix on CentOS / RHEL 8 / Oracle Linux 8" width="1366" height="670" srcset="https://www.osradar.com/wp-content/uploads/2019/09/3.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/09/3-300x147.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/09/3-768x377.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/09/3-1024x502.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/09/3-324x160.jpeg 324w, https://www.osradar.com/wp-content/uploads/2019/09/3-533x261.jpeg 533w, https://www.osradar.com/wp-content/uploads/2019/09/3-696x341.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/09/3-1068x524.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/09/3-856x420.jpeg 856w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13326" class="wp-caption-text">3.- Install Zabbix on CentOS / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>If you want you can modify the PHP timezone on the Zabbix configuration file.</p>
<pre>:~# nano /etc/httpd/conf.d/zabbix.conf</pre>
<p>Uncomment the line date.timezone and add your timezone.</p>
<pre>php_value date.timezone [TIMEZONE]</pre>
<p>The next step is to load the initial Zabbix database.</p>
<pre>:~# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbixuser -p zabbixdb</pre>
<p>Then, it is necessary to specify the database parameters in the Zabbix configuration file.</p>
<pre>:~# nano /etc/zabbix/zabbix_server.conf</pre>
<p>In this file, you have to modify the following values</p>
<pre>DBHost:localhost
DBName=[DB_name]
DBUser=[Mariadb_zabbix_user]
DBPassword=[Password]</pre>
<p><figure id="attachment_13327" aria-describedby="caption-attachment-13327" style="width: 575px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13327" src="https://www.osradar.com/wp-content/uploads/2019/09/4.jpeg" alt="4.- Configuring Zabbix on CentOS 8 / RHEL 8 / Oracle Linux 8" width="575" height="395" srcset="https://www.osradar.com/wp-content/uploads/2019/09/4.jpeg 575w, https://www.osradar.com/wp-content/uploads/2019/09/4-300x206.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/09/4-100x70.jpeg 100w, https://www.osradar.com/wp-content/uploads/2019/09/4-218x150.jpeg 218w" sizes="(max-width: 575px) 100vw, 575px" /><figcaption id="caption-attachment-13327" class="wp-caption-text">4.- Configuring Zabbix on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>Save the changes and close the file. The next step is to open the Zabbix ports in the Firewall so that it can run smoothly.</p>
<pre>:~# firewall-cmd --permanent --add-port=10050/tcp
success
:~# firewall-cmd --permanent --add-port=10051/tcp
success
:~# firewall-cmd --reload
success</pre>
<p>Finally, start the service. If you want Zabbix to run at system startup, you can add these commands:</p>
<pre>:~# systemctl enable zabbix-server
:~# systemctl start zabbix-server
:~# systemctl restart httpd</pre>
<h3>Install Zabbix on CentOS 8 / RHEL 8 / Oracle Linux 8 (II)</h3>
<p>The last thing we need to do before we have our Zabbix server running is to complete the installation using the web browser. Open it and go to http://your-server/ you will see this</p>
<p><figure id="attachment_13328" aria-describedby="caption-attachment-13328" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13328" src="https://www.osradar.com/wp-content/uploads/2019/09/5.png" alt="5.- Zabbix 4 working" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/09/5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/09/5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/5-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/5-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/5-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/5-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/5-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13328" class="wp-caption-text">5.- Zabbix 4 working</figcaption></figure></p>
<p>Then, the installer will check the prerequisites.</p>
<p><figure id="attachment_13329" aria-describedby="caption-attachment-13329" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13329" src="https://www.osradar.com/wp-content/uploads/2019/09/6.png" alt="6.- The wizard will check the requisites" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/09/6.png 1366w, https://www.osradar.com/wp-content/uploads/2019/09/6-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/6-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/6-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/6-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/6-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/6-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13329" class="wp-caption-text">6.- The wizard will check the requisites</figcaption></figure></p>
<p>Now, we have to set the parameters of the database that we have previously defined.</p>
<p><figure id="attachment_13330" aria-describedby="caption-attachment-13330" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13330" src="https://www.osradar.com/wp-content/uploads/2019/09/7.png" alt="7.- Configure the databases parameters" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/09/7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/09/7-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/7-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/7-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/7-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/7-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/7-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13330" class="wp-caption-text">7.- Configure the parameters of the database</figcaption></figure></p>
<p>Then, set up some server details.</p>
<p><figure id="attachment_13331" aria-describedby="caption-attachment-13331" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13331" src="https://www.osradar.com/wp-content/uploads/2019/09/8.png" alt="8.- Server details" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/09/8.png 1366w, https://www.osradar.com/wp-content/uploads/2019/09/8-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/8-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/8-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/8-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/8-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/8-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13331" class="wp-caption-text">8.- Server details</figcaption></figure></p>
<p>In the end, you will see the summary and the message that Zabbix has been successfully installed.</p>
<p><figure id="attachment_13332" aria-describedby="caption-attachment-13332" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13332" src="https://www.osradar.com/wp-content/uploads/2019/09/9.png" alt="9.- Zabbix is installed on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/09/9.png 1366w, https://www.osradar.com/wp-content/uploads/2019/09/9-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/9-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/9-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/9-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/9-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/9-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13332" class="wp-caption-text">9.- Zabbix is installed on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>After finishing the process, you will see the login screen. Log in with admin as user and zabbix as password.</p>
<p><figure id="attachment_13333" aria-describedby="caption-attachment-13333" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13333" src="https://www.osradar.com/wp-content/uploads/2019/09/10.png" alt="10.- Zabbix log in page" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/09/10.png 1366w, https://www.osradar.com/wp-content/uploads/2019/09/10-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/10-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/10-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/10-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/10-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/10-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13333" class="wp-caption-text">10.- Zabbix log in page</figcaption></figure></p>
<p>Finally, you will see the dashboard. And that is it.</p>
<h2>Install the Zabbix agent on the nodes</h2>
<p>In order for Zabbix to monitor correctly, it is necessary to install the agents in each of the nodes. Probably, they use different operating systems, so the installation can vary in each of them.</p>
<p>First, you have to add the Zabbix repository for each system. In case you use Ubuntu 18.04:</p>
<pre>:~$ wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb
:~$ sudo dpkg -i zabbix-release_4.0-2+bionic_all.deb
:~$ sudo apt update</pre>
<p>Then, install Zabbix with the following command:</p>
<pre>:~$ sudo apt install zabbix-agent</pre>
<p>If you use CentOS 8, add the repository with this command:</p>
<pre>:~# rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm</pre>
<p>Then, install the agent with the following command:</p>
<pre>:~# yum install zabbix zabbix-agent</pre>
<p>Finally, if you use Debian 9:</p>
<pre>:~$ wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-release_4.0-2+stretch_all.deb
:~# dpkg -i zabbix-release_4.0-2+stretch_all.deb
:~# apt update</pre>
<p>And you install it with the command:</p>
<pre>:~$ apt install zabbix-agent</pre>
<h2>Conclusion</h2>
<p>Zabbix is an important application in any network service. Thanks to it it is possible to do complete monitoring on the operation of the same one. It also verifies the state of the nodes. In this post, you have learned to install it on the server-side.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-zabbix-server-centos-8-rhel-oracle-linux/">How to install Zabbix server 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-zabbix-server-centos-8-rhel-oracle-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install GlassFish 5 on RHEL and CENTOS 8</title>
		<link>https://www.osradar.com/how-to-install-glassfish-5-on-rhel-and-centos-8/</link>
					<comments>https://www.osradar.com/how-to-install-glassfish-5-on-rhel-and-centos-8/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Fri, 30 Aug 2019 02:02:58 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[glassfish server]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13076</guid>

					<description><![CDATA[<p>GlassFish is an open-source application server project started by Sun Microsystems for the Java EE platform, then sponsored by Oracle Corporation, and now living at the Eclipse Foundation and supported by Payara, Oracle and Red Hat. The supported version under Oracle was called Oracle GlassFish Server. GlassFish is free software and was initially dual-licensed under [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-glassfish-5-on-rhel-and-centos-8/">How to Install GlassFish 5 on RHEL and CENTOS 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>GlassFish is an open-source application server project started by Sun Microsystems for the Java EE platform, then sponsored by Oracle Corporation, and now living at the Eclipse Foundation and supported by Payara, Oracle and Red Hat. The supported version under Oracle was called Oracle GlassFish Server. GlassFish is free software and was initially dual-licensed under two free software licenses. So, in this post I will show how to install Glassfish 5 on RHEL 8 and CentOS 8.</p>
<p>GlassFish is the reference implementation of Java EE and as such supports Enterprise JavaBeans, JPA, JavaServer Faces, JMS, RMI, JavaServer Pages, servlets, etc. This allows developers to create enterprise applications that are portable and scalable, and that integrate with legacy technologies. Optional components can also be installed for additional services.</p>
<h2>Step 1: Install Some necessary packages</h2>
<p>Install wget and unzip using below commands</p>
<pre>dnf install -y wget unzip</pre>
<p><img loading="lazy" class="alignnone wp-image-13082" src="https://www.osradar.com/wp-content/uploads/2019/08/1-300x180.png" alt="glassfish installation" width="668" height="401" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/1-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/08/1.png 1280w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<h2>Step 2: Install and Configure OpenJDK</h2>
<pre>dnf install -y java-1.8.0-openjdk</pre>
<p><img loading="lazy" class="alignnone wp-image-13083" src="https://www.osradar.com/wp-content/uploads/2019/08/2-2-300x180.png" alt="Open JDK installation" width="668" height="401" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-2-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-2-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-2-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-2-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-2-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/2-2-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/08/2-2.png 1280w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p><strong>Set Java’s Home Environment</strong></p>
<p>Run below command to find java path</p>
<pre>update-alternatives --config java</pre>
<p><img loading="lazy" class="alignnone wp-image-13084" src="https://www.osradar.com/wp-content/uploads/2019/08/3-300x72.png" alt="" width="670" height="161" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-300x72.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-768x184.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-1024x245.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/3-696x166.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/3-1068x255.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/3.png 1280w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p>Then copy that path and insert it into below file</p>
<p><strong>Now Set Java’s Path in Your Environment using below command</strong></p>
<pre>vi .bash_profile</pre>
<p>Now add below line in .bash_profile file</p>
<pre>export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el8_0.x86_64/jre/bin/java</pre>
<p><img loading="lazy" class="alignnone wp-image-13085" src="https://www.osradar.com/wp-content/uploads/2019/08/4-1-300x91.png" alt="" width="666" height="202" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-1-300x91.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-1-768x233.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-1-1024x311.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-1-696x212.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-1-1068x325.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/4-1.png 1280w" sizes="(max-width: 666px) 100vw, 666px" /></p>
<p><strong>Refresh .bash_file to make changes using below command</strong></p>
<pre>source .bash_profile</pre>
<p><strong>Run below commands to see the Java path you set and the java version.</strong></p>
<pre>echo $JAVA_HOME
java -version</pre>
<p><img loading="lazy" class="alignnone wp-image-13086" src="https://www.osradar.com/wp-content/uploads/2019/08/5-4-300x63.png" alt="" width="667" height="140" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-4-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-4-768x161.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/5-4-1024x215.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/5-4-696x146.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/5-4-1068x224.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/5-4.png 1280w" sizes="(max-width: 667px) 100vw, 667px" /></p>
<h2>Step 3: Installing Glassfish 5.0 on RHEL/CENTOS 8</h2>
<p>We will install Glassfish Full platform.</p>
<p><strong>Create a user for Glassfish.</strong></p>
<pre>useradd -s /sbin/nologin glassfish</pre>
<p><strong>Download Glassfish 5.0</strong></p>
<pre>wget http://download.oracle.com/glassfish/5.0/release/glassfish-5.0.zip</pre>
<p><img loading="lazy" class="alignnone wp-image-13087" src="https://www.osradar.com/wp-content/uploads/2019/08/6-4-300x101.png" alt="" width="668" height="225" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-4-300x101.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-768x258.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-1024x344.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-696x234.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-1068x359.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-1250x420.png 1250w, https://www.osradar.com/wp-content/uploads/2019/08/6-4.png 1280w" sizes="(max-width: 668px) 100vw, 668px" /></p>
<p><strong>Unzip glassfish-5.0.zip file.</strong></p>
<pre>unzip -d /opt/ glassfish-5.0.zip</pre>
<p><strong>Assign the ownership of /opt/glassfish5 directory to glassfish user which we have created above.</strong></p>
<pre>chown -R glassfish:glassfish /opt/glassfish5/</pre>
<h2>Step 4: Create a Glassfish Service on CentOS 8 / RHEL 8</h2>
<p>Create systemd service (glassfish.service) for Glassfish server</p>
<pre>vi /usr/lib/systemd/system/glassfish.service</pre>
<p>Now add below script in this file</p>
<pre>[Unit]
Description = GlassFish Server v5.0
After = syslog.target network.target

[Service]
User = glassfish
ExecStart = /usr/bin/java -jar /opt/glassfish5/glassfish/lib/client/appserver-cli.jar start-domain
ExecStop = /usr/bin/java -jar /opt/glassfish5/glassfish/lib/client/appserver-cli.jar stop-domain
ExecReload = /usr/bin/java -jar /opt/glassfish5/glassfish/lib/client/appserver-cli.jar restart-domain
Type = forking

[Install]
WantedBy = multi-user.target

</pre>
<p>Save changes and exit the file.</p>
<p><img loading="lazy" class="alignnone wp-image-13088" src="https://www.osradar.com/wp-content/uploads/2019/08/7-4-300x91.png" alt="" width="666" height="202" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7-4-300x91.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-4-768x232.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-4-1024x310.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/7-4-696x210.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/7-4-1068x323.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/7-4.png 1280w" sizes="(max-width: 666px) 100vw, 666px" /></p>
<p><strong>Start and enable glassfish services.</strong></p>
<pre>systemctl start glassfish.service
systemctl enable glassfish.service</pre>
<p><img loading="lazy" class="alignnone wp-image-13089" src="https://www.osradar.com/wp-content/uploads/2019/08/8-5-300x52.png" alt="" width="663" height="115" srcset="https://www.osradar.com/wp-content/uploads/2019/08/8-5-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/8-5-768x134.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/8-5-1024x178.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/8-5-696x121.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/8-5-1068x186.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/8-5.png 1280w" sizes="(max-width: 663px) 100vw, 663px" /></p>
<h2>Step 5: Add Glassfish ports in Firewall</h2>
<pre>firewall-cmd --add-port={4848,8080,8181}/tcp --permanent 
firewall-cmd --reload</pre>
<p><img loading="lazy" class="alignnone wp-image-13090" src="https://www.osradar.com/wp-content/uploads/2019/08/9-3-300x55.png" alt="" width="665" height="122" srcset="https://www.osradar.com/wp-content/uploads/2019/08/9-3-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/9-3-768x140.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/9-3-1024x187.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/9-3-696x127.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/9-3-1068x195.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/9-3.png 1280w" sizes="(max-width: 665px) 100vw, 665px" /></p>
<h2>Step 6: Setting up Glassfish Path</h2>
<p>Now set Glassfish binaries PATH environment variable using below command</p>
<pre>sed -i 's/^PATH=*/PATH=\/opt\/glassfish5\/bin:/g' ~/.bash_profile</pre>
<h2>Step 7: Set password for Glassfish and enable secure login</h2>
<p>By default, Glassfish has no password using below command and set a password for the admin user, Press ENTER 2 times and then type new password</p>
<pre>/opt/glassfish5/bin/asadmin --port 4848 change-admin-password</pre>
<p><img loading="lazy" class="alignnone wp-image-13091" src="https://www.osradar.com/wp-content/uploads/2019/08/10-2-300x60.png" alt="" width="665" height="133" srcset="https://www.osradar.com/wp-content/uploads/2019/08/10-2-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/10-2-768x154.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/10-2-1024x205.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/10-2-696x139.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/10-2-1068x214.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/10-2.png 1280w" sizes="(max-width: 665px) 100vw, 665px" /></p>
<p>Glassfish Admin Console is running as a clear text HTTP service. Run the following command to enable secure administration console.</p>
<pre>/opt/glassfish5/bin/asadmin --port 4848 enable-secure-admin</pre>
<p>Now restart Glassfish</p>
<pre>systemctl restart glassfish.service</pre>
<p><img loading="lazy" class="alignnone wp-image-13093" src="https://www.osradar.com/wp-content/uploads/2019/08/11-3-300x63.png" alt="" width="667" height="140" srcset="https://www.osradar.com/wp-content/uploads/2019/08/11-3-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/11-3-768x162.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/11-3-1024x216.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/11-3-696x147.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/11-3-1068x225.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/11-3.png 1280w" sizes="(max-width: 667px) 100vw, 667px" /></p>
<p><span class="td_text_highlight_marker_red td_text_highlight_marker"><strong>Note:</strong></span> we&nbsp;may unable&nbsp;to access the Glassfish Admin Console after enabling the secure login due to older version of Grizzly module so we will update Grizzly using below commands to access Glassfish admin console.</p>
<pre>cd /opt/glassfish5/glassfish/modules/endorsed

mv grizzly-npn-bootstrap.jar grizzly-npn-bootstrap.jar.1

wget https://search.maven.org/remotecontent?filepath=org/glassfish/grizzly/grizzly-npn-bootstrap/1.9/grizzly-npn-bootstrap-1.9.jar -O grizzly-npn-bootstrap.jar

chown glassfish:glassfish grizzly-npn-bootstrap.jar

systemctl restart glassfish.service</pre>
<p><img loading="lazy" class="alignnone wp-image-13094" src="https://www.osradar.com/wp-content/uploads/2019/08/12-300x114.png" alt="" width="666" height="253" srcset="https://www.osradar.com/wp-content/uploads/2019/08/12-300x114.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/12-768x292.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/12-1024x390.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/12-696x265.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/12-1068x406.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/12-1104x420.png 1104w, https://www.osradar.com/wp-content/uploads/2019/08/12.png 1280w" sizes="(max-width: 666px) 100vw, 666px" /></p>
<h2>Step 8: Accessing Glassfish Server on CentOS / RHEL 8</h2>
<p>Finally browse below URL to access Glassfish Admin Console, ignore the certificate warning or install it.</p>
<p><strong>https://SERVER-IP-OR-DOMAIN-NAME:4848/</strong></p>
<p>Then, type your login credentials to log in it.</p>
<p><img loading="lazy" class="wp-image-13096 aligncenter" src="https://www.osradar.com/wp-content/uploads/2019/08/13-300x167.png" alt="" width="632" height="352" srcset="https://www.osradar.com/wp-content/uploads/2019/08/13-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/13-768x429.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/13-696x389.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/13-752x420.png 752w, https://www.osradar.com/wp-content/uploads/2019/08/13.png 910w" sizes="(max-width: 632px) 100vw, 632px" /></p>
<p>So, this is the Glassfish Admin Console</p>
<p><img loading="lazy" class="wp-image-13097 aligncenter" src="https://www.osradar.com/wp-content/uploads/2019/08/14-1-300x193.png" alt="" width="631" height="406" srcset="https://www.osradar.com/wp-content/uploads/2019/08/14-1-300x193.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/14-1-768x494.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/14-1-696x447.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/14-1-653x420.png 653w, https://www.osradar.com/wp-content/uploads/2019/08/14-1.png 907w" sizes="(max-width: 631px) 100vw, 631px" /></p>
<p>So, you can read <a href="https://www.osradar.com/install-payara-server-debian-10/" target="_blank" rel="noopener noreferrer">our post about Payara server</a> which is another server.</p>
<p>Finally, share this post with your friends and join<a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer"> our Telegram Channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-glassfish-5-on-rhel-and-centos-8/">How to Install GlassFish 5 on RHEL and CENTOS 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-glassfish-5-on-rhel-and-centos-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Install the latest version of GIT on CentOS 8 / RHEL 8 / Oracle Linux 8</title>
		<link>https://www.osradar.com/install-the-latest-version-of-git-centos-8-rhel-oracle-linux/</link>
					<comments>https://www.osradar.com/install-the-latest-version-of-git-centos-8-rhel-oracle-linux/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 28 Aug 2019 23:01:54 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[New version]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13207</guid>

					<description><![CDATA[<p>Many human and technological factors are involved in the development of an application. This is because there are many tools that help make the coding and maintenance process as simple and organized as possible. In this sense, a version control system is necessary to organize the development cycle of an application in general. Of all [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-latest-version-of-git-centos-8-rhel-oracle-linux/">Install the latest version of GIT 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>Many human and technological factors are involved in the development of an application. This is because there are many tools that help make the coding and maintenance process as simple and organized as possible. In this sense, a version control system is necessary to organize the development cycle of an application in general. Of all of them, Git is one of the most popular and has the best support from developers. In this post, you will learn how to install the latest version of Git on CentOS 8 / RHEL 8 / Oracle Linux 8.</p>
<p>As time goes by, the versions of the programs that come in the repositories of the Linux distributions become old. Similarly, program developers often release new versions with new features or bug fixes and we miss them.</p>
<p><a href="https://git-scm.com/">Git</a> is a program with quite active development and that requires to be always updated to have news and security fixes. So it is better to do it. And the best way to do it is to compile the source code of the application yourself.</p>
<p>Let us get started.</p>
<h2>The latest version of GIT on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>Open a terminal and log in as root user, in case you do not have sudo. Then, install all the tools to compile and build from the source code.</p>
<pre>:~$ su
:~# dnf groupinstall "Development Tools"</pre>
<p><figure id="attachment_13209" aria-describedby="caption-attachment-13209" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13209" src="https://www.osradar.com/wp-content/uploads/2019/08/1-19.jpeg" alt="1.- Install the development tools" width="1366" height="707" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-19.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/1-19-300x155.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-19-768x397.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-19-1024x530.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-19-696x360.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-19-1068x553.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/1-19-811x420.jpeg 811w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13209" class="wp-caption-text">1.- Install the development tools</figcaption></figure></p>
<p>Then, it is necessary to install some packages that will help us with the process.</p>
<pre>:~# dnf install wget unzip curl</pre>
<p>Now it is necessary to install some libraries necessary for Git compilation.</p>
<pre>:~# dnf install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-CPAN perl-devel</pre>
<p><figure id="attachment_13210" aria-describedby="caption-attachment-13210" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13210" src="https://www.osradar.com/wp-content/uploads/2019/08/2-17.jpeg" alt="2.- Install the libraries required" width="1366" height="708" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-17.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/2-17-300x155.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-17-768x398.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-17-1024x531.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-17-696x361.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-17-1068x554.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/2-17-810x420.jpeg 810w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13210" class="wp-caption-text">2.- Install the libraries required</figcaption></figure></p>
<p>Now, we can start to download Git using wget.</p>
<pre>:~# wget https://github.com/git/git/archive/v2.23.0.zip -O latestgit.zip</pre>
<p><figure id="attachment_13211" aria-describedby="caption-attachment-13211" style="width: 1360px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13211" src="https://www.osradar.com/wp-content/uploads/2019/08/3-16.jpeg" alt="3.- Download latest Git on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1360" height="299" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-16.jpeg 1360w, https://www.osradar.com/wp-content/uploads/2019/08/3-16-300x66.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-16-768x169.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-16-1024x225.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/3-16-696x153.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/3-16-1068x235.jpeg 1068w" sizes="(max-width: 1360px) 100vw, 1360px" /><figcaption id="caption-attachment-13211" class="wp-caption-text">3.- Download latest Git on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>Then, unzip it. And access the folder.</p>
<pre>:~# unzip latestgit.zip
:~# cd git-2.23.0/</pre>
<p>After that, configure the source before starting the compilation.</p>
<pre>:~# make configure
:~# ./configure --prefix=/usr/local</pre>
<p><figure id="attachment_13212" aria-describedby="caption-attachment-13212" style="width: 1146px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13212" src="https://www.osradar.com/wp-content/uploads/2019/08/4-14.jpeg" alt="4.- Configuring the source code before the installation" width="1146" height="708" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-14.jpeg 1146w, https://www.osradar.com/wp-content/uploads/2019/08/4-14-300x185.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-14-768x474.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-14-1024x633.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-14-356x220.jpeg 356w, https://www.osradar.com/wp-content/uploads/2019/08/4-14-696x430.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-14-1068x660.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/4-14-680x420.jpeg 680w" sizes="(max-width: 1146px) 100vw, 1146px" /><figcaption id="caption-attachment-13212" class="wp-caption-text">4.- Configuring the source code before the installation</figcaption></figure></p>
<p>Then, run the make command.</p>
<pre>:~# make all</pre>
<p><figure id="attachment_13213" aria-describedby="caption-attachment-13213" style="width: 1214px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13213" src="https://www.osradar.com/wp-content/uploads/2019/08/5-8.jpeg" alt="5.- Using the make command" width="1214" height="709" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-8.jpeg 1214w, https://www.osradar.com/wp-content/uploads/2019/08/5-8-300x175.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-8-768x449.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/5-8-1024x598.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/5-8-696x406.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/5-8-1068x624.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/5-8-719x420.jpeg 719w" sizes="(max-width: 1214px) 100vw, 1214px" /><figcaption id="caption-attachment-13213" class="wp-caption-text">5.- Using the make command</figcaption></figure></p>
<p>Now, start the installation.</p>
<pre>:~# make install</pre>
<p><figure id="attachment_13214" aria-describedby="caption-attachment-13214" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-13214 size-full" src="https://www.osradar.com/wp-content/uploads/2019/08/6-5.jpeg" alt="6.- Install the latest version of Git on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1366" height="710" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-5.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-300x156.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-768x399.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-1024x532.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-696x362.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-1068x555.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-808x420.jpeg 808w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13214" class="wp-caption-text">6.- Install the latest version of Git on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>And that is it. Git is installed. If you want to check, you can use the Git command to display the current version.</p>
<pre>:~# git --version</pre>
<p><figure id="attachment_13215" aria-describedby="caption-attachment-13215" style="width: 470px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13215" src="https://www.osradar.com/wp-content/uploads/2019/08/7-1.jpeg" alt="7.- Git on CentOS 8 / RHEL 8 / Oracle Linux 8" width="470" height="107" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7-1.jpeg 470w, https://www.osradar.com/wp-content/uploads/2019/08/7-1-300x68.jpeg 300w" sizes="(max-width: 470px) 100vw, 470px" /><figcaption id="caption-attachment-13215" class="wp-caption-text">7.- Git on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>So, enjoy it.</p>
<h2>Conclusion</h2>
<p>Git is a pretty good version control system. It is one of the best. And by the way, if we combine it with a powerful Linux distribution like CentOS 8 or RHEL 8 or Oracle Linux 8, it is better used. Now that you know how to install its latest stable version, it&#8217;s time to make the most of it.</p>
<p>Also, you can learn to <a href="https://www.osradar.com/install-git-on-debian-10/">install Git on Debian 10?</a> or <a href="https://www.osradar.com/how-to-install-git-on-ubuntu-18-04-linux-mint-19/">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>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-latest-version-of-git-centos-8-rhel-oracle-linux/">Install the latest version of GIT 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-the-latest-version-of-git-centos-8-rhel-oracle-linux/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>How to enable the EPEL repository on CentOS 8 / RHEL 8 / Oracle Linux 8?</title>
		<link>https://www.osradar.com/nable-the-epel-repository-centos-rhel-oracle-linux-8/</link>
					<comments>https://www.osradar.com/nable-the-epel-repository-centos-rhel-oracle-linux-8/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 26 Aug 2019 22:59:38 +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[EPEL]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13182</guid>

					<description><![CDATA[<p>Large Linux distributions have a large number of packages in their repositories. These distributions base their stability on the freezing of the versions of the mentioned packages. However, it is always possible to add external repositories to install packages that are not in the official repositories. Of course, these repositories have to be reliable and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/nable-the-epel-repository-centos-rhel-oracle-linux-8/">How to enable the EPEL repository 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>Large Linux distributions have a large number of packages in their repositories. These distributions base their stability on the freezing of the versions of the mentioned packages. However, it is always possible to add external repositories to install packages that are not in the official repositories. Of course, these repositories have to be reliable and quite secure. Today, I will teach you how to enable the EPEL on CentOS 8 / RHEL 8 / Oracle Linux 8 repository.</p>
<h2>What is the EPEL repository?</h2>
<p>The Extra Packages for Enterprise Linux (EPEL) is an unofficial repository that provides a variety of packages that are not in the official RHEL and derivative repositories. It is quite reliable and secure, so it is highly recommended to enable it if we need any packages available in this repository.</p>
<p>Keep in mind that Linux distirbutions such as RHEL and its derivatives, as well as Debian, Ubuntu and SUSE, incorporate packages tested by them. In this immense effort, there are many very good packages that cannot be added to the repositories.</p>
<p>For that reason, these repositories are born, to be able to install many extra packages without much effort&#8230; let us get to work.</p>
<h2>Enable the EPEL repository on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>The EPEL project is fantastic. Not only because of the large number of packages available but also because of the ease of use. To add it, you have to download and install an RPM package that they put at our disposal.</p>
<p>So, open a terminal and upgrade the system.</p>
<pre>:~$ sudo dnf update</pre>
<p>This way we will have all the packages updated with the built-in security patches.</p>
<p>Now install the repository configuration package with the following command:</p>
<pre>:~$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm</pre>
<p><figure id="attachment_13195" aria-describedby="caption-attachment-13195" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13195" src="https://www.osradar.com/wp-content/uploads/2019/08/1-17.jpeg" alt="1.- Enable the EPEL repository on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1366" height="383" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-17.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/1-17-300x84.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-17-768x215.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-17-1024x287.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-17-696x195.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-17-1068x299.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13195" class="wp-caption-text">1.- Enable the EPEL repository on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>Then, check that everything is OK with the new repository. So, list all the enabled repository.</p>
<pre>:~$ sudo dnf repolist -v</pre>
<p><figure id="attachment_13196" aria-describedby="caption-attachment-13196" style="width: 973px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13196" src="https://www.osradar.com/wp-content/uploads/2019/08/2-15.jpeg" alt="2.- The EPEL repository was successfully added" width="973" height="475" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-15.jpeg 973w, https://www.osradar.com/wp-content/uploads/2019/08/2-15-300x146.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-15-768x375.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-15-533x261.jpeg 533w, https://www.osradar.com/wp-content/uploads/2019/08/2-15-696x340.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-15-860x420.jpeg 860w" sizes="(max-width: 973px) 100vw, 973px" /><figcaption id="caption-attachment-13196" class="wp-caption-text">2.- The EPEL repository was successfully added</figcaption></figure></p>
<p>As you can see in the image, the repository was correctly added. That is to say, we will be able to use it.</p>
<p>You can see all available packages with the following command:</p>
<pre>:~$ sudo dnf repository-packages epel list</pre>
<p>The image above shows that there are many packages available to be installed thanks to the EPEL repository.</p>
<h2>Conclusion</h2>
<p>In conclusion, adding the EPEL repository is almost an obligation if we want to counter many extra packages for our distribution. On the other hand, EPEL is a safe, reliable and easy to enable repository. To be so simple, the benefits are many.</p>
<p>Also, you can read <a href="https://www.osradar.com/how-to-enable-sudo-on-debian-10/" target="_blank" rel="noopener noreferrer">How to enable Sudo on Debian 10?</a></p>
<p>Please share this post that can help many people. And join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/nable-the-epel-repository-centos-rhel-oracle-linux-8/">How to enable the EPEL repository 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/nable-the-epel-repository-centos-rhel-oracle-linux-8/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Install Elgg on RHEL and CENTOS 8 for Online Social Networking Site</title>
		<link>https://www.osradar.com/install-elgg-on-rhel-and-centos-8-for-online-social-networking-site/</link>
					<comments>https://www.osradar.com/install-elgg-on-rhel-and-centos-8-for-online-social-networking-site/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Mon, 26 Aug 2019 18:57:19 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[elgg]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[social network]]></category>
		<category><![CDATA[social network platform]]></category>
		<category><![CDATA[social network website]]></category>
		<category><![CDATA[socila network site]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13099</guid>

					<description><![CDATA[<p>In this post, you will learn how to install Elgg on RHEL and CentOS 8. Elgg is an open source social networking software that provides individuals and organizations with the components needed to create an online social environment. It offers blogging, microblogging, file sharing, networking, groups and a number of other features. It was also [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-elgg-on-rhel-and-centos-8-for-online-social-networking-site/">Install Elgg on RHEL and CENTOS 8 for Online Social Networking Site</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 post, you will learn how to install Elgg on RHEL and CentOS 8. Elgg is an open source social networking software that provides individuals and organizations with the components needed to create an online social environment. It offers blogging, microblogging, file sharing, networking, groups and a number of other features. It was also the first platform to bring ideas from commercial social networking platforms to educational software.</p>
<h2>Step 1: Install LAMP Stack</h2>
<p>Elgg requires MySQL, PHP, and a web server. So we need to install LAMP stack before Elgg installation.</p>
<h5><strong>i: Install Apache webserver</strong></h5>
<pre>dnf install httpd -y</pre>
<p><img loading="lazy" class="alignnone wp-image-13103" src="https://www.osradar.com/wp-content/uploads/2019/08/1-1-300x180.png" alt="" width="675" height="405" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-1-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-1-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-1-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/1-1-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-1-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/1-1-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/08/1-1.png 1280w" sizes="(max-width: 675px) 100vw, 675px" /></p>
<p>Now start and enable apache service on boot.</p>
<pre>systemctl start httpd

systemctl enable httpd</pre>
<p><img loading="lazy" class="alignnone wp-image-13104" src="https://www.osradar.com/wp-content/uploads/2019/08/2-3-300x56.png" alt="" width="670" height="125" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-3-300x56.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-3-768x143.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-3-1024x190.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-3-696x129.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-3-1068x199.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/2-3.png 1280w" sizes="(max-width: 670px) 100vw, 670px" /></p>
<p>Adding apache ports in the firewall.</p>
<pre>firewall-cmd --add-port={80/tcp,443/tcp} --permanent
firewall-cmd --reload</pre>
<p><img loading="lazy" class="alignnone wp-image-13105" src="https://www.osradar.com/wp-content/uploads/2019/08/3-1-300x51.png" alt="" width="671" height="114" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-1-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-1-768x131.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-1-1024x174.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/3-1-696x119.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/3-1-1068x182.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/3-1.png 1280w" sizes="(max-width: 671px) 100vw, 671px" /></p>
<h5><strong>ii: Install PHP</strong></h5>
<pre>dnf install php php-common php-pecl-apcu php-json php-cli php-pear php-pdo php-mysqlnd php-pgsql php-gd php-mbstring php-xml -y</pre>
<p><img loading="lazy" class="alignnone wp-image-13106" src="https://www.osradar.com/wp-content/uploads/2019/08/4-2-300x180.png" alt="" width="667" height="400" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-2-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/4-2-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/08/4-2.png 1280w" sizes="(max-width: 667px) 100vw, 667px" /></p>
<h5><strong>iii: Install MYSQL</strong></h5>
<pre>dnf install mysql-server -y</pre>
<p><img loading="lazy" class="alignnone wp-image-13107" src="https://www.osradar.com/wp-content/uploads/2019/08/5-5-300x180.png" alt="" width="667" height="400" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-5-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/5-5-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/5-5-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/5-5-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/5-5-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/5-5-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/08/5-5.png 1280w" sizes="(max-width: 667px) 100vw, 667px" /></p>
<p><strong>Start and enable MYSQL service on boot.</strong></p>
<pre>systemctl start mysqld
systemctl enable mysqld</pre>
<p><img loading="lazy" class="alignnone wp-image-13108" src="https://www.osradar.com/wp-content/uploads/2019/08/6-5-300x51.png" alt="" width="665" height="113" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-5-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-768x130.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-1024x173.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-696x117.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/6-5-1068x180.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/6-5.png 1280w" sizes="(max-width: 665px) 100vw, 665px" /></p>
<p>Complete MYSQL installation</p>
<pre>mysql_secure_installation</pre>
<pre>Set root password? [Y/n] Y 
New password: password
Re-enter new password: password
Remove anonymous users? [Y/n] Y 
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y</pre>
<p><img loading="lazy" class="alignnone wp-image-13109" src="https://www.osradar.com/wp-content/uploads/2019/08/7-5-300x180.png" alt="" width="662" height="397" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7-5-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-5-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-5-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/7-5-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/7-5-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/7-5-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/08/7-5.png 1280w" sizes="(max-width: 662px) 100vw, 662px" /></p>
<h2>Step 2: Create a MySQL database for Elgg</h2>
<p>Log in to the MySQL console using below command and type your password when asked.</p>
<pre>mysql -u root -p</pre>
<p>now create a new database</p>
<pre>CREATE DATABASE elgg;</pre>
<p>Now create a new MySQL user and grant it privileges on the created database. You can replace username and password with the username and password of your own choice.</p>
<pre>CREATE USER 'database_user'@'localhost' IDENTIFIED BY 'user_password';
GRANT ALL PRIVILEGES ON database_name.* TO 'database_user'@'localhost';
FLUSH PRIVILEGES;</pre>
<p>Exit the MySQL console.</p>
<pre>exit</pre>
<p><img loading="lazy" class="alignnone wp-image-13110" src="https://www.osradar.com/wp-content/uploads/2019/08/9-4-300x180.png" alt="" width="665" height="399" srcset="https://www.osradar.com/wp-content/uploads/2019/08/9-4-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/9-4-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/9-4-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/9-4-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/9-4-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/9-4-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/08/9-4.png 1280w" sizes="(max-width: 665px) 100vw, 665px" /></p>
<h2>Step 3: Download and Install Elgg on CentOS 8 / RHEL 8</h2>
<p>Download Elgg using below commands</p>
<pre>cd /var/www/html
wget https://elgg.org/about/getelgg?forward=elgg-3.1.1.zip</pre>
<p><img loading="lazy" class="alignnone wp-image-13111" src="https://www.osradar.com/wp-content/uploads/2019/08/10-3-300x69.png" alt="" width="661" height="152" srcset="https://www.osradar.com/wp-content/uploads/2019/08/10-3-300x69.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/10-3-768x178.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/10-3-1024x237.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/10-3-696x161.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/10-3-1068x247.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/10-3.png 1280w" sizes="(max-width: 661px) 100vw, 661px" /></p>
<p>Now Unzip the downloaded archive</p>
<pre>unzip getelgg?forward=elgg-3.1.1.zip
mv ./elgg-3.1.1/* .
rm -rf getelgg?forward=elgg-3.1.1.zip
rm -rf elgg-3.1.1</pre>
<p>Create a data directory for Elgg in /var/www/html directory</p>
<pre>mkdir -p /var/www/html/data</pre>
<p>Set the appropriate file permissions</p>
<pre>chown -R apache:apache /var/www/html/
chmod -R 755 /var/www/html/</pre>
<p><img loading="lazy" class="alignnone wp-image-13112" src="https://www.osradar.com/wp-content/uploads/2019/08/11-4-300x58.png" alt="" width="667" height="129" srcset="https://www.osradar.com/wp-content/uploads/2019/08/11-4-300x58.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/11-4-768x149.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/11-4-1024x199.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/11-4-696x135.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/11-4-1068x208.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/11-4.png 1280w" sizes="(max-width: 667px) 100vw, 667px" /></p>
<h2>Step 4: Apache Configuration for Elgg</h2>
<p>Create an Apache virtual hosts configuration file.</p>
<pre>vi /etc/httpd/conf.d/vhost.conf</pre>
<p>and place below lines in that file.</p>
<pre>&lt;VirtualHost *:80&gt;
DocumentRoot /var/www/html/
&lt;Directory /var/www/html/&gt;
Options FollowSymlinks
AllowOverride All
Require all granted
&lt;/Directory&gt;
ErrorLog /var/log/httpd/elgg_error.log
CustomLog /var/log/httpd/elgg_access.log combined
&lt;/VirtualHost&gt;</pre>
<p>Save changes and exit.</p>
<p><img loading="lazy" class="alignnone wp-image-13113" src="https://www.osradar.com/wp-content/uploads/2019/08/12-1-300x82.png" alt="" width="662" height="181" srcset="https://www.osradar.com/wp-content/uploads/2019/08/12-1-300x82.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/12-1-768x209.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/12-1-1024x278.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/12-1-696x189.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/12-1-1068x290.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/12-1.png 1280w" sizes="(max-width: 662px) 100vw, 662px" /></p>
<p>Restart Apache server.</p>
<pre>systemctl restart httpd.service</pre>
<h2>Step 5: Install Elgg on CentOS 8 / RHEL 8 (using the web interface)</h2>
<p>Finally, browse below URL to access</p>
<pre>http://YOUR-SERVER-IP/
OR
http://YOUR-DOMAIN-NAME</pre>
<p><img loading="lazy" class="alignnone wp-image-13114" src="https://www.osradar.com/wp-content/uploads/2019/08/13-1-300x164.png" alt="" width="622" height="340" srcset="https://www.osradar.com/wp-content/uploads/2019/08/13-1-300x164.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/13-1-768x419.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/13-1-696x380.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/13-1-769x420.png 769w, https://www.osradar.com/wp-content/uploads/2019/08/13-1.png 943w" sizes="(max-width: 622px) 100vw, 622px" /></p>
<p>Click Next and enter the Database and its user details.</p>
<p><img loading="lazy" class="alignnone wp-image-13115" src="https://www.osradar.com/wp-content/uploads/2019/08/14-300x211.png" alt="" width="630" height="443" srcset="https://www.osradar.com/wp-content/uploads/2019/08/14-300x211.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/14-768x539.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/14-1024x719.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/14-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2019/08/14-696x488.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/14-1068x750.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/14-598x420.png 598w, https://www.osradar.com/wp-content/uploads/2019/08/14.png 1345w" sizes="(max-width: 630px) 100vw, 630px" /></p>
<p>Click Next and enter the required details.</p>
<p><img loading="lazy" class="alignnone wp-image-13117" src="https://www.osradar.com/wp-content/uploads/2019/08/15-300x148.png" alt="" width="632" height="312" srcset="https://www.osradar.com/wp-content/uploads/2019/08/15-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/15-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/15-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/15-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/08/15-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/15-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/15-851x420.png 851w, https://www.osradar.com/wp-content/uploads/2019/08/15.png 1920w" sizes="(max-width: 632px) 100vw, 632px" /></p>
<p>Once again click Next button and create your Admin Account.</p>
<p><img loading="lazy" class="alignnone wp-image-13119" src="https://www.osradar.com/wp-content/uploads/2019/08/16-300x150.png" alt="" width="632" height="316" srcset="https://www.osradar.com/wp-content/uploads/2019/08/16-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/16-768x384.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/16-1024x511.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/16-696x348.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/16-1068x533.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/16-841x420.png 841w, https://www.osradar.com/wp-content/uploads/2019/08/16.png 1894w" sizes="(max-width: 632px) 100vw, 632px" /></p>
<p>Finally, you will see below page, Click on &#8220;Go to Site&#8221; button and start your work.</p>
<p><img loading="lazy" class="alignnone wp-image-13120" src="https://www.osradar.com/wp-content/uploads/2019/08/17-300x128.png" alt="" width="628" height="268" srcset="https://www.osradar.com/wp-content/uploads/2019/08/17-300x128.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/17-768x327.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/17-696x296.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/17-987x420.png 987w, https://www.osradar.com/wp-content/uploads/2019/08/17.png 1001w" sizes="(max-width: 628px) 100vw, 628px" /></p>
<p>So, that is it. Hope you like it.</p>
<p>Also, you can read <a href="https://www.osradar.com/create-nginx-server-block-centos-rhel-oracle-linux-8/" target="_blank" rel="noopener noreferrer">How to create an Nginx Server block on CentOS 8 / RHEL 8 / Oracle Linux 8?</a></p>
<p>Do not forget to share 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-elgg-on-rhel-and-centos-8-for-online-social-networking-site/">Install Elgg on RHEL and CENTOS 8 for Online Social Networking Site</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-elgg-on-rhel-and-centos-8-for-online-social-networking-site/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8?</title>
		<link>https://www.osradar.com/install-arangodb-centos-8-rhel-oracle-linux/</link>
					<comments>https://www.osradar.com/install-arangodb-centos-8-rhel-oracle-linux/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 23 Aug 2019 23:01:55 +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[database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[oracle linux 8]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13133</guid>

					<description><![CDATA[<p>Relational database management systems dominate many segments of programming. However, it is increasingly common to see real alternatives to this type of database. Of those applications, it seems that MongoDB is one of the most popular but ArangoDB improves and improves every day. In this post, I will tell you about ArangoDB, some of the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-arangodb-centos-8-rhel-oracle-linux/">How to install ArangoDB 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>Relational database management systems dominate many segments of programming. However, it is increasingly common to see real alternatives to this type of database. Of those applications, it seems that MongoDB is one of the most popular but ArangoDB improves and improves every day. In this post, I will tell you about ArangoDB, some of the main features and more. Also, I will show you how to install ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8.</p>
<h2>A little bit of ArangoDB</h2>
<p><a href="https://www.arangodb.com/" rel="noopener">ArangoDB</a> is a <a href="https://www.osradar.com/tag/nosql/" rel="noopener">NoSQL</a> <a href="https://www.osradar.com/tag/database/" rel="noopener">database</a> manager. It is built in<a href="https://www.osradar.com/install-codeblocks-on-linux/" rel="noopener"> C++</a> and is open source. Its main feature is that it is multi-model. That is, it supports different data models such as (JSON), graphs and key-value.</p>
<p>On the other hand, ArangoDB has two versions. The first one is paid and offers support at different levels. The second is communitarian, ideal for small or educational projects.</p>
<p>If you want to manage a server instance easily, ArangoDB allows it through a nice and intuitive web interface. Besides this, it has connectors for many programming languages, so this should not be a limitation. Of course, it has installers for many Linux distributions.</p>
<p>So let us get to work.</p>
<h2>Install ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>ArangoDB is an application that takes documentation very seriously. In fact, it is a very well documented application that makes it easy to work with. And the installation process is available to many systems through its repository.</p>
<p>So the first step to install ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8 is to add the repository.</p>
<p>Open a terminal and run the following:</p>
<pre>:~$ su
:~# cd /etc/yum.repos.d/</pre>
<p>Then, import the GPG key to secure the repository addition.</p>
<pre>:~# curl -OL https://download.arangodb.com/arangodb35/RPM/arangodb.repo</pre>
<p><figure id="attachment_13171" aria-describedby="caption-attachment-13171" style="width: 776px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13171" src="https://www.osradar.com/wp-content/uploads/2019/08/1-15.jpeg" alt="1.- Download the GPG key for the repository" width="776" height="103" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-15.jpeg 776w, https://www.osradar.com/wp-content/uploads/2019/08/1-15-300x40.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-15-768x102.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/1-15-696x92.jpeg 696w" sizes="(max-width: 776px) 100vw, 776px" /><figcaption id="caption-attachment-13171" class="wp-caption-text">1.- Download the GPG key for the repository</figcaption></figure></p>
<p>After this, you can install ArangoDB by typing the following command:</p>
<pre>:~# dnf install arangodb3-3.5.0</pre>
<p><figure id="attachment_13170" aria-describedby="caption-attachment-13170" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13170" src="https://www.osradar.com/wp-content/uploads/2019/08/2-13.jpeg" alt="2.- Install ArangoDB on CentOS 8 / RHEL 8 /Oracle Linux 8" width="1366" height="359" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-13.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/2-13-300x79.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-13-768x202.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-13-1024x269.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/2-13-696x183.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/2-13-1068x281.jpeg 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13170" class="wp-caption-text">2.- Install ArangoDB on CentOS 8 / RHEL 8 /Oracle Linux 8</figcaption></figure></p>
<p>Now that ArangoDB is installed, you have to do some configuration before using it.</p>
<h2>Making some configuration before using ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8</h2>
<p>ArangoDB is already installed but does not have a key configured for the root user. As we know, this is vital because then, anyone can access the stored data.</p>
<p>So use the following command to set the password for the root user:</p>
<pre>:~# arango_secure_installation</pre>
<p><figure id="attachment_13172" aria-describedby="caption-attachment-13172" style="width: 986px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13172" src="https://www.osradar.com/wp-content/uploads/2019/08/3-14.jpeg" alt="3.- Set a password for the root user" width="986" height="179" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-14.jpeg 986w, https://www.osradar.com/wp-content/uploads/2019/08/3-14-300x54.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-14-768x139.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-14-696x126.jpeg 696w" sizes="(max-width: 986px) 100vw, 986px" /><figcaption id="caption-attachment-13172" class="wp-caption-text">3.- Set a password for the root user</figcaption></figure></p>
<p>With this you can now enter the ArangoDB shell and start working:</p>
<pre>:~# systemctl start arangodb3
:~# arangosh</pre>
<p><figure id="attachment_13173" aria-describedby="caption-attachment-13173" style="width: 1283px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13173" src="https://www.osradar.com/wp-content/uploads/2019/08/4-12.jpeg" alt="4.- ArangoDB shell on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1283" height="296" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-12.jpeg 1283w, https://www.osradar.com/wp-content/uploads/2019/08/4-12-300x69.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-12-768x177.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-12-1024x236.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-12-696x161.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-12-1068x246.jpeg 1068w" sizes="(max-width: 1283px) 100vw, 1283px" /><figcaption id="caption-attachment-13173" class="wp-caption-text">4.- ArangoDB shell on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>One of the most outstanding potentials of ArangoDB is its web interface. Thanks to it, it is possible to administer the instance quickly and easily. In addition to visualizing the data in a better way.</p>
<p>So, open the file <code>/etc/arangodb3/arangod.conf</code>. At the beginning of the file, it changes the <code>endpoint</code> value and adds the IP address of the computer where ArangoDB is running. By default, it is configured for localhost. There you will also see the default port used by the application which is 8529.</p>
<pre>:~# nano /etc/arangodb3/arangod.conf</pre>
<p><figure id="attachment_13174" aria-describedby="caption-attachment-13174" style="width: 619px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13174" src="https://www.osradar.com/wp-content/uploads/2019/08/5-6.jpeg" alt="5.- Enabling the web interface for ArangoDB" width="619" height="359" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-6.jpeg 619w, https://www.osradar.com/wp-content/uploads/2019/08/5-6-300x174.jpeg 300w" sizes="(max-width: 619px) 100vw, 619px" /><figcaption id="caption-attachment-13174" class="wp-caption-text">5.- Enabling the web interface for ArangoDB</figcaption></figure></p>
<p>This same process must be done in the file /etc/arangodb3/arangosh.conf.</p>
<pre>:~# nano /etc/arangodb3/arangosh.conf</pre>
<p><figure id="attachment_13175" aria-describedby="caption-attachment-13175" style="width: 478px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13175" src="https://www.osradar.com/wp-content/uploads/2019/08/6-3.jpeg" alt="6.- Configuring the web interface" width="478" height="143" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-3.jpeg 478w, https://www.osradar.com/wp-content/uploads/2019/08/6-3-300x90.jpeg 300w" sizes="(max-width: 478px) 100vw, 478px" /><figcaption id="caption-attachment-13175" class="wp-caption-text">6.- Configuring the web interface</figcaption></figure></p>
<p>For all this to work, it is necessary to add the corresponding rules in the Firewall. Specifically, open port 8529. Then, restart ArangoDB.</p>
<pre>:~# firewall-cmd --add-port=8529/tcp --permanent
success
:~# firewall-cmd --reload
success
:~# systemctl restart arangodb3</pre>
<p>Now, you can access to the web interface using your web browser. Go to http://your-server:8529</p>
<p><figure id="attachment_13176" aria-describedby="caption-attachment-13176" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13176" src="https://www.osradar.com/wp-content/uploads/2019/08/7-7.png" alt="7.- ArangoDB running on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7-7.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/7-7-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-7-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-7-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/7-7-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/7-7-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/7-7-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13176" class="wp-caption-text">7.- ArangoDB running on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>Type your credentials and click on the Login button. You will have to select the database.</p>
<p><figure id="attachment_13177" aria-describedby="caption-attachment-13177" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13177" src="https://www.osradar.com/wp-content/uploads/2019/08/8-6.png" alt="8.- Select the database to connect the web interface" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/8-6.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/8-6-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/8-6-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/8-6-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/8-6-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/8-6-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/8-6-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13177" class="wp-caption-text">8.- Select the database to connect the web interface</figcaption></figure></p>
<p>Finally, you will see the dashboard. And you can start to work.</p>
<p><figure id="attachment_13178" aria-describedby="caption-attachment-13178" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13178" src="https://www.osradar.com/wp-content/uploads/2019/08/9-5.png" alt="9.- ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/9-5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/9-5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/9-5-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/9-5-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/9-5-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/9-5-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/9-5-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13178" class="wp-caption-text">9.- ArangoDB on CentOS 8 / RHEL 8 / Oracle Linux 8</figcaption></figure></p>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>ArangoDB is a very popular database manager and increasingly influential in the world of programming. It is frequently used in IoT technology as well as in mobile phones. As you could see, it is easy to install and thus saves us a lot of work.</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-arangodb-centos-8-rhel-oracle-linux/">How to install ArangoDB 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-arangodb-centos-8-rhel-oracle-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
