<?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>ubuntu 20.04 tu Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ubuntu-20-04-tu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 12 Dec 2020 16:29:58 +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 Gibbon LMS On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-gibbon-lms-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-gibbon-lms-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Tue, 15 Dec 2020 13:32:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[gibbon lms]]></category>
		<category><![CDATA[how to install gibbon on ubuntu 20]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[install gibbon lms ubuntu]]></category>
		<category><![CDATA[ubuntu 20.04 tu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26171</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install Gibbon LMS on Ubuntu 20.04. Gibbon is a free &#38; open source platform that provide you a fully functioned school management system. It is specially designed for interaction b/w the teachers,students,parents &#38; leader. Teachers can plan, provide, collect, assign work to students &#38; students can [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-gibbon-lms-on-ubuntu-20-04/">How To Install Gibbon LMS On Ubuntu 20.04</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 to install Gibbon LMS on Ubuntu 20.04. Gibbon is a free &amp; open source platform that provide you a fully functioned school management system. It is specially designed for interaction b/w the teachers,students,parents &amp; leader. Teachers can plan, provide, collect, assign work to students &amp; students can submit through the LMS. So, here we&#8217;ll see that how you can install it on your system.</p>



<h3>Step 1: Update Your System</h3>



<p>First of all update your system to have the latest updates installed.</p>



<pre class="wp-block-preformatted">sudo apt update &amp;&amp; sudo apt upgrade -y

Reboot  Sever 

</pre>



<h3>Step 2: Install Apache, MariaDB &amp; PHP On Ubuntu 20.04</h3>



<p>Hit the below commands to get install the required packages.</p>



<pre class="wp-block-preformatted">sudo apt install apache2 mariadb-server php libapache2-mod-php php-common php-sqlite3 php-mysql php-gmp php-curl php-intl php-mbstring php-xmlrpc php-gd php-bcmath php-xml php-cli php-zip unzip git -y</pre>



<p>When all dependencies are resolved, edit the <strong>php.ini</strong> file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/php/7.4/apache2/php.ini</pre>



<p>Modify the below lines according to your own requirements.</p>



<pre class="wp-block-preformatted">memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = Europe/Amsterdam</pre>



<p>Then save &amp; exit the file.</p>



<p>Now, type mysql in terminal to login to mariaDB.</p>



<pre class="wp-block-preformatted">mysql</pre>



<pre class="wp-block-preformatted">CREATE DATABASE gibbondb;
CREATE USER 'gibbon'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON gibbondb.* TO 'gibbon'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;</pre>



<h3>Step 3: Install Gibbon LMS On Ubuntu 20.04</h3>



<p>With the help of wget command get the latest version of gibbon from their official site.</p>



<pre class="wp-block-preformatted">wget https://github.com/GibbonEdu/core/archive/v20.0.00.zip</pre>



<p>After the download finished, extract it using unzip command.</p>



<pre class="wp-block-preformatted">unzip v20.0.00.zip</pre>



<p>And then move the extracted content to the apache root folder.</p>



<pre class="wp-block-preformatted">mv core-20.0.00 /var/www/html/gibbon</pre>



<p>And give the proper permssions.</p>



<pre class="wp-block-preformatted">chown -R www-data:www-data /var/www/html/gibbon/<br>chmod -R 755 /var/www/html/gibbon/</pre>



<h3>Step 4: Configure Apache For Gibbon LMS</h3>



<p>Create a new config file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/apache2/sites-available/gibbon.conf</pre>



<p>And then paste the below content into it.</p>



<pre class="wp-block-preformatted">&lt;VirtualHost *:80&gt;
      ServerAdmin admin@example.com
      DocumentRoot /var/www/html/gibbon
      ServerName gibbon.example.com

      &lt;Directory /var/www/html/gibbon/&gt;
              Options FollowSymlinks
              AllowOverride All
              Require all granted
      &lt;/Directory&gt;

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

      &lt;Directory /var/www/html/gibbon/&gt;
              RewriteEngine on
              RewriteBase /
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteRule ^(.*) index.php [PT,L]
       &lt;/Directory&gt;
&lt;/VirtualHost&gt;</pre>



<p>Save &amp; exit the file.</p>



<p>And enable the new config file by</p>



<pre class="wp-block-preformatted">a2ensite gibbon.conf</pre>



<p>Now, enable apache rewrite &amp; restart the apache services.</p>



<pre class="wp-block-preformatted">a2enmod rewrite<br>systemctl restart apache2</pre>



<h3>Step 5: Access Gibbon LMS Web Interface</h3>



<p>Type http://testlab.osradar.com in your browser to access gibbon lms on your system. You&#8217;ll see the given page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="628" src="https://www.osradar.com/wp-content/uploads/2020/12/Gibbon11-1024x628.jpg" alt="" class="wp-image-26678" srcset="https://www.osradar.com/wp-content/uploads/2020/12/Gibbon11-1024x628.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon11-300x184.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon11-768x471.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon11-696x427.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon11-1068x655.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon11.jpg 1523w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Verify the requirements &amp; hit <strong>&#8220;Submit&#8221;</strong> button. You&#8217;ll be redirected to other page. Here, provide mentioned details &amp; hit <strong>&#8220;Submit&#8221;</strong> button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="673" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/Gibbon12-1024x673.jpg" alt="" class="wp-image-26679" srcset="https://www.osradar.com/wp-content/uploads/2020/12/Gibbon12-1024x673.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon12-300x197.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon12-768x504.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon12-696x457.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon12-1068x702.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon12.jpg 1530w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, provide account configs, system settings &amp; organization settings &amp; finally click <strong>&#8220;Submit&#8221;</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="638" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/Gibbon13-1024x638.jpg" alt="" class="wp-image-26680" srcset="https://www.osradar.com/wp-content/uploads/2020/12/Gibbon13-1024x638.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon13-300x187.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon13-768x478.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon13-696x433.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon13-1068x665.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon13.jpg 1529w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>On successfull installation you&#8217;ll see the following page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="448" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-15-1024x448.png" alt="" class="wp-image-26289" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-15-1024x448.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/image-15-300x131.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-15-768x336.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-15-696x305.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/image-15-1068x467.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/image-15.png 1147w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Here, hit <strong>Gibbon Homepage</strong> to go to the login page.</p>



<p>Type credentials to login.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="496" src="https://www.osradar.com/wp-content/uploads/2020/12/Gibbon14-1024x496.jpg" alt="" class="wp-image-26681" srcset="https://www.osradar.com/wp-content/uploads/2020/12/Gibbon14-1024x496.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon14-300x145.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon14-768x372.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon14-1536x743.jpg 1536w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon14-696x337.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon14-1068x517.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon14.jpg 1647w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>You&#8217;ll see the Gibbon LMS Dashboard as shown below:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="557" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/Gibbon15-1-1024x557.png" alt="" class="wp-image-26683" srcset="https://www.osradar.com/wp-content/uploads/2020/12/Gibbon15-1-1024x557.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon15-1-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon15-1-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon15-1-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon15-1-1068x581.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/Gibbon15-1.png 1525w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3>Step 6: Secure Gibbon LMS with Let&#8217;s Encrypt SSL</h3>



<p>As for security reasons it is recommended to install SSL certificates. Hit the below commands to install SSL.</p>



<pre class="wp-block-verse">sudo apt-get install python3-certbot-apache -y
certbot --apache -d testlab.osradar.com</pre>



<p>Note: Replace <strong>testlab.osradar.com</strong> with your own domain. And provide the asked details to finish installing SSL.</p>



<pre class="wp-block-verse">Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): info@osradar.com

Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory

(A)gree/(C)ancel: <strong>A</strong>

Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.

(Y)es/(N)o: <strong>Y</strong>
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for gibbon.example.com
Enabled Apache rewrite module
Waiting for verification…
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/gibbon-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/gibbon-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/gibbon-le-ssl.conf</pre>



<p>Select redirect<strong> http to https</strong> &amp; press <strong>Enter</strong>.</p>



<pre class="wp-block-verse">Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.

1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.

Select the appropriate number [1-2] then [enter] (press 'c' to cancel): <strong>2</strong></pre>



<pre class="wp-block-verse">Enabled Apache rewrite module Redirecting vhost in /etc/apache2/sites-enabled/gibbon.conf to ssl vhost in /etc/apache2/sites-available/gibbon-le-ssl.conf - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Congratulations! You have successfully enabled https://gibbon.example.com You should test your configuration at: https://www.ssllabs.com/ssltest/analyze.html?d=gibbon.example.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/gibbon.example.com/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/gibbon.example.com/privkey.pem Your cert will expire on 2020-10-23. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the "certonly" option. To non-interactively renew *all* of your certificates, run "certbot renew" - If you like Certbot, please consider supporting our work by: Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le</pre>



<p>Now, you can access Gibbon LMS over https.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="849" height="640" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-23.png" alt="" class="wp-image-26688" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-23.png 849w, https://www.osradar.com/wp-content/uploads/2020/12/image-23-300x226.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-23-768x579.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-23-696x525.png 696w" sizes="(max-width: 849px) 100vw, 849px" /></figure>



<p>So, this is how you can install Gibbon LMS on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-gibbon-lms-on-ubuntu-20-04/">How To Install Gibbon LMS On Ubuntu 20.04</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-gibbon-lms-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install OpenNMS On Ubutnu 20.04</title>
		<link>https://www.osradar.com/how-to-install-opennms-on-ubutnu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-opennms-on-ubutnu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Tue, 08 Dec 2020 08:51:00 +0000</pubDate>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[how to install OpenNMS on Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[Opennms installation ubuntu]]></category>
		<category><![CDATA[ubuntu 20.04 tu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26172</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install OpenNMS Network Monitoring Tool on Ubuntu 20.04. OpenNMS is an open source network management tool that can be used to see the critical problems of remote devices. It supports many functions like Provisioning, Services Monitoring, Event managing, chart support &#38; many other features. The main [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-opennms-on-ubutnu-20-04/">How To Install OpenNMS On Ubutnu 20.04</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 to install OpenNMS Network Monitoring Tool on Ubuntu 20.04. OpenNMS is an open source network management tool that can be used to see the critical problems of remote devices. It supports many functions like Provisioning, Services Monitoring, Event managing, chart support &amp; many other features. The main feature is that it operates from the central location &amp; handles unlimited devices. Simply follow the below steps for an easy and optimal installation of OpenNMS on Ubuntu 20.04.</p>



<h2>Step 1: Update Your System</h2>



<p>Make sure that your system is updated before starting the installation.</p>



<pre class="wp-block-preformatted">sudo apt update &amp;&amp; sudo apt upgrade -y</pre>



<p>Reboot your system if needed.</p>



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



<p>And then install the other required packages by typing.</p>



<pre class="wp-block-preformatted">sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y</pre>



<p>After resolving the dependencies, move towards the next step.</p>



<h3>Step 2: Install Docker &amp; Docker Compose on Ubuntu 20.04</h3>



<p>To install docker on Ubuntu 20.04, add the repostiory &amp; then install the latest version as latest version is not present on Ubuntu default repository.</p>



<pre class="wp-block-preformatted">curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -<br>add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"</pre>



<p>After adding the repo hit the below command to install the docker &amp; docker compose.</p>



<pre class="wp-block-preformatted">sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose -y</pre>



<p>Verify the status by typing</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>sudo systemctl status docker</strong>
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor prese&gt;
Active: active (running) since Tue 2020-12-01 11:24:04 PKT; 23s ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 40347 (dockerd)
Tasks: 13
Memory: 48.9M
CGroup: /system.slice/docker.service
└─40347 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/co&gt;
دسمبر 01 11:24:01 Ubuntu20 dockerd[40347]: time="2020-12-01T11:24:01.635102089&gt;
دسمبر 01 11:24:01 Ubuntu20 dockerd[40347]: time="2020-12-01T11:24:01.635109806&gt;
دسمبر 01 11:24:01 Ubuntu20 dockerd[40347]: time="2020-12-01T11:24:01.635117110&gt;
دسمبر 01 11:24:01 Ubuntu20 dockerd[40347]: time="2020-12-01T11:24:01.635344751&gt;
دسمبر 01 11:24:03 Ubuntu20 dockerd[40347]: time="2020-12-01T11:24:03.538423340&gt;
دسمبر 01 11:24:03 Ubuntu20 dockerd[40347]: time="2020-12-01T11:24:03.870371403&gt;
دسمبر 01 11:24:04 Ubuntu20 dockerd[40347]: time="2020-12-01T11:24:04.205068138&gt;
دسمبر 01 11:24:04 Ubuntu20 dockerd[40347]: time="2020-12-01T11:24:04.205249608&gt;
دسمبر 01 11:24:04 Ubuntu20 systemd[1]: Started Docker Application Container En&gt;
دسمبر 01 11:24:04 Ubuntu20 dockerd[40347]: time="2020-12-01T11:24:04.245907850&gt;
lines 1-21/21 (END)</pre>



<p>See the installed version of docker by running</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>docker -v</strong>
Docker version 19.03.13, build 4484c46d9d</pre>



<p>For docker compose</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>docker-compose -v</strong>
docker-compose version 1.25.0, build unknown</pre>



<h3>Step 3: Install OpenNMS On Ubuntu 20.04</h3>



<p>Run the given command to create a project folder for OpenNMS.</p>



<pre class="wp-block-preformatted">sudo mkdir opennms</pre>



<p>Now, switch to the created directory &amp; create a new docker-compose.yml file in order to install OpenNMS.</p>



<pre class="wp-block-preformatted">cd opennms<br>sudo nano docker-compose.yml</pre>



<p>Paste the below content into the file.</p>



<pre class="wp-block-preformatted">version: '3'
volumes:
data-postgres: {}
data-opennms: {}
services:
database:
image: postgres:12
container_name: database
environment:
- TZ=Europe/Berlin
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- data-postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 30s
retries: 3
horizon:
image: opennms/horizon:26.1.1
container_name: horizon
environment:
- TZ=Europe/Berlin
- POSTGRES_HOST=database
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- OPENNMS_DBNAME=opennms
- OPENNMS_DBUSER=opennms
- OPENNMS_DBPASS=opennms
volumes:
- data-opennms:/opt/opennms/share/rrd
- ./overlay:/opt/opennms-overlay
command: ["-s"]
ports:
- "8980:8980/tcp"
- "8101:8101/tcp"
- "61616:61616/tcp"
healthcheck:
test: [ "CMD", "curl", "-f", "-I", "http://localhost:8980/opennms/login.jsp" ]
interval: 1m
timeout: 5s
retries: 3</pre>



<p>Save &amp; exit the file. Then hit the given command to download &amp; build the container for opennms.</p>



<pre class="wp-block-preformatted">sudo docker-compose up -d</pre>



<p>Check the running container by typing</p>



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



<p>Output:</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~/opennms$ <strong>sudo docker ps -a</strong>
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a77e102ae833 opennms/horizon:26.1.1 "/entrypoint.sh -s" 17 minutes ago Up 18 seconds (health: starting) 0.0.0.0:8101-&gt;8101/tcp, 1162/udp, 0.0.0.0:8980-&gt;8980/tcp, 10514/udp, 0.0.0.0:61616-&gt;61616/tcp horizon
c4716857deef postgres:12 "docker-entrypoint.s…" 17 minutes ago Up 19 seconds (healthy) 5432/tcp database</pre>



<h3>Step 4: Accessing OpenNMS Via Web</h3>



<p>Go to your favourite browser and access the OpenNMS by typing <a href="http://your-server-ip:8980">http://your-server-ip:8980</a>. You&#8217;ll see the login page. Provide default credentails to login.</p>



<p>User:<strong>admin</strong><br>Pass:<strong>admin</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="529" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-6-1024x529.jpg" alt="How To Install OpenNMS On Ubutnu 20.04" class="wp-image-26277" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-6-1024x529.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/image-6-300x155.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-6-768x397.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-6-696x360.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/image-6-1068x552.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/image-6.jpg 1262w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>You&#8217;ll be redirected to the dashboard. Now, click on the <strong>&#8220;+&#8221;</strong> icon on the top right side to add new server node(device to be monitored).</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="941" height="662" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-6.png" alt="How To Install OpenNMS On Ubutnu 20.04" class="wp-image-26278" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-6.png 941w, https://www.osradar.com/wp-content/uploads/2020/12/image-6-300x211.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-6-768x540.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-6-696x490.png 696w" sizes="(max-width: 941px) 100vw, 941px" /></figure>



<p>Give it a name &amp; press <strong>&#8220;OK&#8221;</strong>. You&#8217;ll see the similar screen. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="906" height="397" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-7.png" alt="" class="wp-image-26279" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-7.png 906w, https://www.osradar.com/wp-content/uploads/2020/12/image-7-300x131.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-7-768x337.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-7-696x305.png 696w" sizes="(max-width: 906px) 100vw, 906px" /></figure>



<p>Now, fill the required fields to add the new device to be monitored.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="507" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-8-1024x507.png" alt="" class="wp-image-26280" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-8-1024x507.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/image-8-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-8-768x380.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-8-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/image-8-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/image-8.png 1227w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="962" height="621" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-9.png" alt="" class="wp-image-26281" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-9.png 962w, https://www.osradar.com/wp-content/uploads/2020/12/image-9-300x194.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-9-768x496.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-9-696x449.png 696w" sizes="(max-width: 962px) 100vw, 962px" /></figure>



<p>You&#8217;ll see a success message once added. Press <strong>&#8220;Ok&#8221;</strong> button </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="343" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-10-1024x343.png" alt="How To Install OpenNMS On Ubutnu 20.04" class="wp-image-26282" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-10-1024x343.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/image-10-300x100.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-10-768x257.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-10-696x233.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/image-10-1068x357.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/image-10.png 1151w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>And  navigate to the <strong>Info&gt;&gt;&gt;Nodes</strong> to see the new device added.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="480" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-11-1024x480.png" alt="How To Install OpenNMS On Ubutnu 20.04" class="wp-image-26283" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-11-1024x480.png 1024w, https://www.osradar.com/wp-content/uploads/2020/12/image-11-300x141.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-11-768x360.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-11-696x326.png 696w, https://www.osradar.com/wp-content/uploads/2020/12/image-11-1068x501.png 1068w, https://www.osradar.com/wp-content/uploads/2020/12/image-11.png 1263w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>So, this is how you can install OpenNMS on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-opennms-on-ubutnu-20-04/">How To Install OpenNMS On Ubutnu 20.04</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-ubutnu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
