<?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 tutorials Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ubuntu-20-04-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 06 May 2021 00:58:18 +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>Hardening Ubuntu Security with UFW Firewall</title>
		<link>https://www.osradar.com/hardening-ubuntu-security-ufw/</link>
					<comments>https://www.osradar.com/hardening-ubuntu-security-ufw/#respond</comments>
		
		<dc:creator><![CDATA[rajneesh]]></dc:creator>
		<pubDate>Wed, 05 May 2021 19:13:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<category><![CDATA[UFW]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29889</guid>

					<description><![CDATA[<p>Firewall security is the key to manage all critical services. So many seasoned and decent securities are there. But, there is always room for improvisation and simplification of Firewall systems for Linux. A very classic and well-known example is IPTABLES, of course. IPtables took lots of experience and seasoning to be perfect with. Essentially Ubuntu [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/hardening-ubuntu-security-ufw/">Hardening Ubuntu Security with UFW Firewall</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p> Firewall security is the key to manage all critical services. So many seasoned and decent securities are there. But, there is always room for improvisation and simplification of Firewall systems for Linux. A very classic and well-known example is IPTABLES, of course. IPtables took lots of experience and seasoning to be perfect with. Essentially Ubuntu Kernal system provides Netfilter as a packet filtering system. IPtables is the traditional interface to manipulate  Netfilter in form of commands. The <a href="https://wiki.ubuntu.com/UncomplicatedFirewall">UFW</a> act as a frontend for IPTables. Users, having trouble with IPTables can manage their securities easily with this feature. </p>



<h2> Prerequisites and installation.</h2>



<p>I would be using Ubuntu as demo OS here, Most of the Linux OS comes with that features by default.   </p>



<p>Check status of firewall.        </p>



<pre class="wp-block-preformatted">$ ufw status</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="660" height="74" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-1.png" alt="" class="wp-image-29892" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-1.png 660w, https://www.osradar.com/wp-content/uploads/2021/05/image-1-300x34.png 300w" sizes="(max-width: 660px) 100vw, 660px" /></figure>



<p>Enable firewall. </p>



<pre class="wp-block-preformatted">$ ufw enable</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="834" height="129" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-2.png" alt="" class="wp-image-29893" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-2.png 834w, https://www.osradar.com/wp-content/uploads/2021/05/image-2-300x46.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/image-2-768x119.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/image-2-696x108.png 696w" sizes="(max-width: 834px) 100vw, 834px" /></figure>



<p>Reload firewall. SSH may stope when you enable firewall. If you are working in virtual environment, connection may lost. </p>



<h2>Allow and deny rules.</h2>



<p>Allow ssh port </p>



<pre class="wp-block-preformatted">$ sudo ufw allow 22</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="746" height="80" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-3.png" alt="" class="wp-image-29894" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-3.png 746w, https://www.osradar.com/wp-content/uploads/2021/05/image-3-300x32.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/image-3-696x75.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/image-3-741x80.png 741w" sizes="(max-width: 746px) 100vw, 746px" /></figure>



<p>Rule applied, check status. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="533" height="204" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-4.png" alt="" class="wp-image-29896" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-4.png 533w, https://www.osradar.com/wp-content/uploads/2021/05/image-4-300x115.png 300w" sizes="(max-width: 533px) 100vw, 533px" /></figure>



<p>Like port number, we can allow to open for a particular IP address. </p>



<pre class="wp-block-preformatted">$ sudo ufw allow from 192.168.42.142 &amp;&amp; sudo ufw status.</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="234" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-5-1024x234.png" alt="" class="wp-image-29897" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-5-1024x234.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/image-5-300x68.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/image-5-768x175.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/image-5-696x159.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/image-5-1068x244.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/image-5.png 1074w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>What if you wants to allow a particular port for specific IP Addr.</p>



<pre class="wp-block-preformatted">$ sudo sfw allow from 192.168.100.100 to any port 22</pre>



<p>Status check.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="947" height="263" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-6.png" alt="" class="wp-image-29901" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-6.png 947w, https://www.osradar.com/wp-content/uploads/2021/05/image-6-300x83.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/image-6-768x213.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/image-6-696x193.png 696w" sizes="(max-width: 947px) 100vw, 947px" /></figure>



<p>Deny a particular port for a specific IP addr. </p>



<pre class="wp-block-preformatted">$ sudo ufw deny from 192.168.100.100 to any port 80</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="311" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-7-1024x311.png" alt="" class="wp-image-29902" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-7-1024x311.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/image-7-300x91.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/image-7-768x233.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/image-7-696x211.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/image-7.png 1028w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, delete created rule, there are two methods and first option  with rule number.</p>



<pre class="wp-block-preformatted"> $ sudo ufw status numbered</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="740" height="263" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-8.png" alt="" class="wp-image-29903" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-8.png 740w, https://www.osradar.com/wp-content/uploads/2021/05/image-8-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/image-8-696x247.png 696w" sizes="(max-width: 740px) 100vw, 740px" /></figure>



<p>Here, I want to delete rule number 5.</p>



<pre class="wp-block-preformatted">$ sudo ufw delete 5</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="583" height="140" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-9.png" alt="" class="wp-image-29904" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-9.png 583w, https://www.osradar.com/wp-content/uploads/2021/05/image-9-300x72.png 300w" sizes="(max-width: 583px) 100vw, 583px" /></figure>



<p>Let&#8217;s use another way to delete any rule.</p>



<pre class="wp-block-preformatted">$ sudo ufw delete deny from 192.168.100.100 to any port 22</pre>



<p>Lets reset all firewall rules to default. </p>



<pre class="wp-block-preformatted">$ sudo ufw reset</pre>



<p>You can manage incoming and outgoing rules as well, have a look.</p>



<p></p>



<h2>GUI Tool for UFW </h2>



<p>Install  GUI application for the firewall.</p>



<pre class="wp-block-preformatted">$ sudo apt-get install gufw</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="386" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-10-1024x386.png" alt="" class="wp-image-29906" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-10-1024x386.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/image-10-300x113.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/image-10-768x290.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/image-10-696x262.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/image-10-1068x403.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/image-10.png 1122w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>With basic understanding of security, a moderate user can manage items as well.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="908" height="723" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/image-11.png" alt="" class="wp-image-29907" srcset="https://www.osradar.com/wp-content/uploads/2021/05/image-11.png 908w, https://www.osradar.com/wp-content/uploads/2021/05/image-11-300x239.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/image-11-768x612.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/image-11-696x554.png 696w" sizes="(max-width: 908px) 100vw, 908px" /></figure>



<h2>Conclusion</h2>



<p>UFW can be used by that user, which is having not so deep knowledge of IPTables. but still wants to manage securities of their server and services. With very quick deployment ports or IP addresses, level restrictions can be managed to have a similar impact as it was supposed to be with IPTables. </p>



<p> </p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/hardening-ubuntu-security-ufw/">Hardening Ubuntu Security with UFW Firewall</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/hardening-ubuntu-security-ufw/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Moodle with Ubuntu 20.04 LTS.</title>
		<link>https://www.osradar.com/how-to-install-moodle-with-ubuntu-20-04-lts/</link>
					<comments>https://www.osradar.com/how-to-install-moodle-with-ubuntu-20-04-lts/#respond</comments>
		
		<dc:creator><![CDATA[rajneesh]]></dc:creator>
		<pubDate>Tue, 04 May 2021 11:37:26 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[Linux server]]></category>
		<category><![CDATA[moodle]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29206</guid>

					<description><![CDATA[<p>The COVID pandemic situation is worldwide, educators are facing a challenge to provide online education. Though there are lots of TMS (Teaching management Systems) available in the market, either they are costly or complicated to deploy and manage. Moodle is here to get rid of all of the challenges. How to install Moodle with Ubuntu [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-moodle-with-ubuntu-20-04-lts/">How to install Moodle with Ubuntu 20.04 LTS.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>The COVID pandemic situation is worldwide, educators are facing a challenge to provide online education. Though there are lots of TMS (Teaching management Systems) available in the market, either they are costly or complicated to deploy and manage. Moodle is here to get rid of all of the challenges. How to install <a href="http://moodle.org">Moodle</a> with Ubuntu 20.04 LTS.</p>



<h3><strong>Features:</strong></h3>



<ul><li><strong>Interactive GUI</strong></li></ul>



<p>The interface is very attractive, responsive, and easy to use for both mobile and desktop users.</p>



<ul><li><strong>Personalized Dashboard.</strong></li></ul>



<p>Here, you can navigate, current, and old curriculums.</p>



<ul><li><strong>Progress reports.</strong></li></ul>



<p>You can keep track of the curriculum, based on the course and student level.</p>



<ul><li><strong>File management.</strong></li></ul>



<p>A very convenient interface connected with Onedrive,&nbsp; Dropbox, or any other famous cloud storage service.</p>



<ul><li><strong>Calendar and Notifications</strong></li></ul>



<p>A teacher can keep track of course deadlines, scheduled programs. &nbsp;Forum and personalized messages can be shared.</p>



<h3><strong>Installation:</strong></h3>



<p>Here, we will see how to set moodle with Ubuntu 20.04.</p>



<p>Update OS</p>



<pre class="wp-block-preformatted">$ sudo apt-get update</pre>



<p>Install PHP/MySql/PHP</p>



<p>Here, we would require PHP7, add the repo.</p>



<pre class="wp-block-preformatted">$ &nbsp;sudo add-apt-repository ppa:ondrej/php</pre>



<p>Update System</p>



<pre class="wp-block-preformatted">$ sudo apt-get update</pre>



<p>Get required packages.</p>



<pre class="wp-block-preformatted">&nbsp;&nbsp;$ apt install apache2 mysql-client mysql-server php libapache2-mod-php</pre>



<p>Setup root password</p>



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



<p>Install other required tools.</p>



<pre class="wp-block-preformatted">$ sudo apt install graphviz aspell ghostscript clamav php7.4-pspell php7.4-curl php7.4-gd php7.4-intl php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-ldap php7.4-zip php7.4-soap php7.4-mbstring</pre>



<p>Install git</p>



<pre class="wp-block-preformatted">$ sudo apt-get install git</pre>



<p>Download Moodle package, change to /opt directory.</p>



<pre class="wp-block-preformatted">$ sudo git clone git://git.moodle.org/moodle.git</pre>



<p>Move local repo to /var/www/html </p>



<p>Create new directory &#8216;moodledata&#8217; in /var/</p>



<pre class="wp-block-preformatted">$ sudo mv /opt/moodle /var/www/html/moodle</pre>



<pre class="wp-block-preformatted">$ sudo mkdir /var/moodledata </pre>



<p>Define required set of permissions.</p>



<pre class="wp-block-preformatted">$ sudo chown -R www-data /var/moodledata/
$ sudo chmod -R 755 /var/moodledata/
$ sudo chown www-data /var/moodledata
$ chmod -R 775 /var/www/html/moodledata</pre>



<p>Moodle database user for MySQL required.</p>



<pre class="wp-block-preformatted">CREATE DATABASE moodle;</pre>



<pre class="wp-block-preformatted">create user 'moodleuser'@'localhost' IDENTIFIED BY 'P@ssw0rd';</pre>



<pre class="wp-block-preformatted">GRANT ALL ON moodle.* TO 'moodleuser'@'localhost';</pre>



<p>Once all of the settings are done,  restart apache service.</p>



<p>Open browser and type IP_Addr/moodle. In my scenario IP address is <strong>172.16.16.81</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="481" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-step-1-1024x481.png" alt="" class="wp-image-29868" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-1-1024x481.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-1-300x141.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-1-768x361.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-1-1536x721.png 1536w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-1-696x327.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-1-1068x501.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-1.png 1751w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Click next, change directory to <strong>/var/moodledata</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="625" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-step-2-1024x625.png" alt="" class="wp-image-29869" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-2-1024x625.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-2-300x183.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-2-768x469.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-2-1536x937.png 1536w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-2-696x425.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-2-1068x652.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-2.png 1629w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Choose default Database type, provide credentials.  </p>



<p><strong>Database name:</strong> localhost </p>



<p><strong>Database user: </strong>moodleuser </p>



<p><strong>Database Password:</strong> P@ssw0rd</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="579" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-step-5-1024x579.png" alt="" class="wp-image-29871" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-5-1024x579.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-5-300x170.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-5-768x434.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-5-1536x868.png 1536w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-5-696x393.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-5-1068x604.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-5.png 1681w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Copy all content to /var/www/html/moodle/config.php, you require to create that file. </p>



<pre class="wp-block-preformatted">$ vim /var/www/html/moodle/config.php</pre>



<pre class="wp-block-preformatted">&lt;?php  // Moodle configuration file
 unset($CFG);
 global $CFG;
 $CFG = new stdClass();
 $CFG->dbtype    = 'mysqli';
 $CFG->dblibrary = 'native';
 $CFG->dbhost    = 'localhost';
 $CFG->dbname    = 'moodle';
 $CFG->dbuser    = 'moodleuser';
 $CFG->dbpass    = 'P@ssw0rd';
 $CFG->prefix    = 'mdl_';
 $CFG->dboptions = array (
   'dbpersist' => 0,
   'dbport' => '',
   'dbsocket' => '',
   'dbcollation' => 'utf8mb4_0900_ai_ci',
 );
 $CFG->wwwroot   = 'http://172.16.16.81/moodle';
 $CFG->dataroot  = '/var/moodledata';
 $CFG->admin     = 'admin';
 $CFG->directorypermissions = 0777;
 require_once(<strong>DIR</strong> . '/lib/setup.php');
 // There is no php closing tag in this file,
 // it is intentional because it prevents trailing whitespace problems!
 ~</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="579" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-6-1024x579.png" alt="" class="wp-image-29874" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-6-1024x579.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-6-300x170.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-6-768x434.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-6-1536x869.png 1536w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-6-696x394.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-6-1068x604.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-6.png 1703w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Accept conditions and move next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="530" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-Step-7-1024x530.png" alt="" class="wp-image-29875" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-Step-7-1024x530.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-Step-7-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-Step-7-768x397.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-Step-7-696x360.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-Step-7-1068x553.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-Step-7.png 1482w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Here, Moodle will go through, whether all required application are installed proper or not. </p>



<p> </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="593" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-step-8-1024x593.png" alt="" class="wp-image-29876" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-8-1024x593.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-8-300x174.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-8-768x445.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-8-1536x890.png 1536w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-8-696x403.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-8-1068x619.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-8.png 1703w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Get installation steps complete. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="608" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-step-9-1024x608.png" alt="" class="wp-image-29877" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-9-1024x608.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-9-300x178.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-9-768x456.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-9-1536x913.png 1536w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-9-696x413.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-9-1068x634.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-9.png 1621w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Assign credentials to admin, assign email id.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="640" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-step-11-1024x640.png" alt="" class="wp-image-29878" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-11-1024x640.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-11-300x188.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-11-768x480.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-11-1536x960.png 1536w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-11-696x435.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-11-1068x668.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-11.png 1547w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Move to next screen. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="611" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-step-12-1024x611.png" alt="" class="wp-image-29879" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-12-1024x611.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-12-300x179.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-12-768x458.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-12-696x415.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-12-1068x637.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-12.png 1486w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Save all changes and move next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="652" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-step-13-1024x652.png" alt="" class="wp-image-29880" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-13-1024x652.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-13-300x191.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-13-768x489.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-13-696x443.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-13-1068x680.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-13.png 1265w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Save changes and finish setup, congratulations!! you have working Moodle EMS system ready to use. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="530" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/05/Moodle-install-step-14-1024x530.png" alt="" class="wp-image-29881" srcset="https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-14-1024x530.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-14-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-14-768x397.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-14-1536x795.png 1536w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-14-696x360.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-14-1068x553.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/Moodle-install-step-14.png 1878w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3>Conclusion</h3>



<p>Here, the config.php file may not be available as default. Make sure to create and save that file. Sometimes web server may show errors, restart server and apache service to get rid of this.</p>



<p> </p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-moodle-with-ubuntu-20-04-lts/">How to install Moodle with Ubuntu 20.04 LTS.</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-moodle-with-ubuntu-20-04-lts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set up your NodeJS application for production</title>
		<link>https://www.osradar.com/set-up-nodejs-application-production/</link>
					<comments>https://www.osradar.com/set-up-nodejs-application-production/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 04 May 2021 04:06:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Production]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29777</guid>

					<description><![CDATA[<p>Hello friends. It comes to this point in life, you are a NodeJS developer and you want to deploy your application in production, how to do it? Well in this post you will learn how to set up a NodeJS application for production on an Ubuntu 20.04 server. We have talked a lot about NodeJS [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-up-nodejs-application-production/">How to set up your NodeJS application for production</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello friends. It comes to this point in life, you are a NodeJS developer and you want to deploy your application in production, how to do it? Well in this post you will learn how to set up a NodeJS application for production on an Ubuntu 20.04 server.</p>



<p><a href="https://www.osradar.com/tag/nodejs" target="_blank" rel="noreferrer noopener">We have talked a lot about NodeJS</a> in this blog because it is a new technology that allows us to create many complex web applications quickly.</p>



<p class="has-drop-cap">NodeJS is a technology that allows running Javascript on the server-side using Google’s V8 engine. It is a real revolution in the way web applications are developed because it reduces the asymmetry of client and server performance.</p>



<p>Many important forms such as Linkedin or eBay were created using this technology. This shows us the power of NodeJS.</p>



<p>An advantage of NodeJS is that its syntax is similar to that of <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer noopener">Javascript</a> and therefore its learning curve decreases a lot.</p>



<h2 id="set-up-your-nodejs-application-on-ubuntu-20.04"><a name="set-up-your-nodejs-application-on-ubuntu-20.04" href="#set-up-your-nodejs-application-on-ubuntu-20.04"></a>Set up your NodeJS application for production on Ubuntu 20.04</h2>



<p>The first thing we have to do is to install NodeJS on the server where we want our application to be. To do this, we will use the 14.x branch, which is one of the most modern ones.</p>



<p>To do this, connect via SSH to your server and update the distribution</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Now, add the NodeJS repository for the 14.x branch by downloading and executing the official script</p>



<pre class="wp-block-preformatted">curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh</pre>



<p>This will start the whole process and at the end, you will be able to check the version of NodeJS installed by running this command:</p>



<pre class="wp-block-preformatted">node -v
v14.16.1</pre>



<p>It is important that we also check the installed version of <code>npm</code>.</p>



<pre class="wp-block-preformatted">npm -v
6.14.12</pre>



<p>Now we have the software installed, let’s see an example of how to deploy our application.</p>



<p>To do this I will create a simple NodeJS file called <code>exmaple.js</code> that displays a <code>hello world</code>.</p>



<pre class="wp-block-preformatted">nano example.js
const http = require('http');

const hostname = 'localhost';
const port = 3000;

const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello World. Welcome to Osradar\n');
});

server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`);
});</pre>



<p>Of course, in your case, you will have several files and all the necessary structures.</p>



<p>To run the application just use this command</p>



<pre class="wp-block-preformatted">node example.js</pre>



<p>And you will get an output screen similar to this one:</p>



<pre class="wp-block-preformatted">Server running at http://localhost:3000/</pre>



<p>To stop the execution of the program, just press <code>CTRL + C</code>.</p>



<p>Running a production NodeJS application in this way is not recommended. The normal way is to use <code>pm2</code> which allows us to run it as a system service.</p>



<p>To do this, let’s install it on the system.</p>



<pre class="wp-block-preformatted">sudo npm install pm2@latest -g</pre>



<p>You will get an output screen similar to this one</p>



<pre class="wp-block-preformatted">+ pm2@4.5.6
added 175 packages from 194 contributors in 13.798s</pre>



<p>And now you can start running the created program:</p>



<pre class="wp-block-preformatted">pm2 start example.js</pre>



<p>You will get an output screen similar to this.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="497" src="https://www.osradar.com/wp-content/uploads/2021/05/1-1024x497.png" alt="1.- Running the NodeJS application" class="wp-image-29840" srcset="https://www.osradar.com/wp-content/uploads/2021/05/1-1024x497.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/1-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/1-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/1-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/1-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/1.png 1229w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Running the NodeJS application</figcaption></figure>



<p>Remember that this is an example and that you have to execute these commands from the folder where your project is and with the main execution file of your application.</p>



<h2 id="configuring-nginx-as-the-reverse-proxy"><a href="#configuring-nginx-as-the-reverse-proxy" name="configuring-nginx-as-the-reverse-proxy"></a>Configuring Nginx as the reverse proxy</h2>



<p>This step, although optional, is recommended so that our application can be accessed without any problems. To do this, install Nginx</p>



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



<p>And then, create a new configuration file for our application. In this case, I will call the file <code>node</code> but you can name it whatever you want.</p>



<pre class="wp-block-preformatted">sudo nano /etc/nginx/sites-available/node</pre>



<p>Now add the following to the file.</p>



<pre class="wp-block-preformatted">server {
    listen 80;
    server_name node.osradar.test;
    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}</pre>



<p>Remember to replace the <code>server_name</code> value with the domain you have.</p>



<p>Save your changes and close the text editor.</p>



<p>You can check if the Nginx syntax is correct by running</p>



<pre class="wp-block-preformatted">sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful</pre>



<p>The output on the screen indicates that the syntax is correct and you can continue.</p>



<p>To apply the changes, restart Nginx.</p>



<pre class="wp-block-preformatted">sudo systemctl restart nginx</pre>



<p>Now, open your web browser and log in with your domain name and you will see the application working.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1366" height="669" src="https://www.osradar.com/wp-content/uploads/2021/05/2-1024x502.png" alt="2.- NodeJS application for Production" class="wp-image-29841" srcset="https://www.osradar.com/wp-content/uploads/2021/05/2-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/2-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/2-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/2-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/2.png 1366w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption>2.- NodeJS application for Production</figcaption></figure>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>In this post, we have shown you how to deploy your NodeJS application on a server. At least you have the basics, from here you have to set up the security policies that your server needs.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-up-nodejs-application-production/">How to set up your NodeJS application for production</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/set-up-nodejs-application-production/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Taiga Project Management System Ubuntu 20.04</title>
		<link>https://www.osradar.com/taiga-project-management-system-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/taiga-project-management-system-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 21 Jan 2021 15:34:45 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install taiga on ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[taiga project management system]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27604</guid>

					<description><![CDATA[<p>In this article, you&#8217;ll learn that how to install Taiga Project Management System On Ubuntu 20.04. Taiga is an open source most popular tool for startups, agile developers &#38; designers. Taiga support the teams that work Agile across both Scrum &#38; Kanban frameworks. It&#8217;s frontend is written in the Javascript &#38; the backend in Python [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/taiga-project-management-system-ubuntu-20-04/">Taiga Project Management System 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>In this article, you&#8217;ll learn that <a href="https://www.osradar.com/?p=27604" target="_blank" rel="noreferrer noopener">how to install Taiga Project Management System</a> On Ubuntu 20.04. Taiga is an open source most popular tool for startups, agile developers &amp; designers. Taiga support the teams that work Agile across both Scrum &amp; Kanban frameworks. It&#8217;s frontend is written in the Javascript &amp; the backend in Python &amp; Django. Taiga is very useful &amp; powerful application that helps you to handle both simple &amp; complex projects. You&#8217;ve also the options to integrate taiga with many services like Kanban, Scrum, Talky.io etc. So, here we&#8217;ll see the steps to install the Taiga Project Management on Ubuntu 20.04.</p>



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



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



<pre class="wp-block-verse">sudo apt update -y</pre>



<p>And install the required dependencies by typing.</p>



<pre class="wp-block-verse">sudo apt install git gnupg2 pwgen automake wget curl gettext python3 virtualenvwrapper python3-dev python3-pip python3-dev libssl-dev tmux build-essential libgdbm-dev binutils-doc autoconf flex gunicorn bison libjpeg-dev libzmq3-dev libfreetype6-dev zlib1g-dev libncurses5-dev libtool libxslt-dev libxml2-dev libffi-dev</pre>



<p>And then setup the hostname by typing</p>



<pre class="wp-block-verse">sudo hostnamectl set-hostname taiga.osradar.com</pre>



<p>Then bind the hostname with system IP by editing <strong>/etc/host</strong> file.</p>



<pre class="wp-block-verse">sudo nano /etc/hosts</pre>



<pre class="wp-block-verse">192.168.154.128         taiga.osradar.com</pre>



<p><strong>Note: </strong>Replace your server IP &amp; domain with your own.</p>



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



<h3>Step 2: Install Node.js on Ubuntu 20.04</h3>



<p>Install the latest version of Node.js on Ubuntu 20.04 by adding the repository on your system.</p>



<pre class="wp-block-verse">sudo curl -sL https://deb.nodesource.com/setup_12.x | bash -
sudo apt install nodejs -y</pre>



<p>Once the installation finihed, verify the installed java version.</p>



<pre class="wp-block-verse">node -v</pre>



<h3>Step 3: Install &amp; Configure PostgreSQL On Ubuntu 20.04</h3>



<p>Fire the following commands to install the PostgreSQL on Ubuntu 20.04.</p>



<pre class="wp-block-verse">wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -<br>echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list<br>apt update -y<br>apt install postgresql -y</pre>



<p>Then update the PostgreSQL password by typing</p>



<pre class="wp-block-verse">passwd postgres</pre>



<p>Now, switch to the postgres user &amp; create a new user for Taiga by typing</p>



<pre class="wp-block-verse">sudo su - postgres
createuser taiga</pre>



<p>Then login to to the PostgreSQL by typing psql</p>



<p>Next create a database with the following commands.</p>



<pre class="wp-block-verse">ALTER USER osradaruser WITH ENCRYPTED password 'password';
 CREATE DATABASE osradardb OWNER osradaruser;
 \q
 exit</pre>



<h3>Step 4: Install RabbitMQ &amp; Redis On Ubuntu 20.04</h3>



<p>RabbitMQ &amp; Redis are required for Taiga as message broker &amp; caching respectively. So, install them by typing</p>



<pre class="wp-block-verse">sudo apt install rabbitmq-server redis-server -y</pre>



<p>Once installed, create a new user &amp; virtual host for RabbitMQ by typing the given commands.</p>



<pre class="wp-block-verse">rabbitmqctl add_user osradar password
 rabbitmqctl add_vhost osradar
 rabbitmqctl set_permissions -p  osradar osradar ".*<em>" ".*</em>" ".*"</pre>



<h3>Step 5: Install &amp; Configure Taiga Backend</h3>



<p>Add the new user for Taiga by typing the below commands</p>



<pre class="wp-block-verse">sudo adduser osradar<br>adduser osradar sudo</pre>



<p>Now, switch to the newly created user &amp; make a new directory for storing logs.</p>



<pre class="wp-block-verse">su - osradar<br>mkdir -p ~/logs</pre>



<p>And fire the below command to clone the taiga backend from git.</p>



<pre class="wp-block-verse">sudo git clone https://github.com/taigaio/taiga-back.git</pre>



<p>Once downloaded, switch to the downloaded directory &amp; check the latest branch by</p>



<pre class="wp-block-verse">cd taiga-back
sudo git checkout stable</pre>



<p>Next, activate the mkvirtualenv by</p>



<pre class="wp-block-verse">sudo nano ~/.bashrc</pre>



<p>Then add the given line to the above file.</p>



<p>source &#8216;/usr/share/virtualenvwrapper/virtualenvwrapper.sh&#8217;</p>



<p>Type the given command to source the file.</p>



<p>source ~/.bashrc</p>



<p>Now, hit the below command to create a Python virtula environment.</p>



<pre class="wp-block-verse">mkvirtualenv -p /usr/bin/python3 taiga_venv</pre>



<p>Fire the below command in order to resolve the required dependencies.</p>



<pre class="wp-block-verse">sudo pip3 install -r requirements.txt</pre>



<p><strong>Note:</strong> If you got requirements error, simply hit</p>



<pre class="wp-block-verse">pip freeze &gt; requirements.txt</pre>



<p>Now, migrate &amp; load data by typing the given below commands</p>



<pre class="wp-block-verse">python3 manage.py migrate --noinput<br>python3 manage.py loaddata initial_user<br>python3 manage.py loaddata initial_project_templates<br>python3 manage.py compilemessages<br>python3 manage.py collectstatic --noinput</pre>



<p>Edit the <strong>~/taiga-back/settings/local.py</strong> file to update application &amp; database settings.</p>



<pre class="wp-block-verse">sudo nano ~/taiga-back/settings/local.py</pre>



<pre class="wp-block-verse">from .common import *
 MEDIA_URL = "http://taiga.osradar.com/media/"
 STATIC_URL = "http://taiga.osradar.com/static/"
 SITES["front"]["scheme"] = "http"
 SITES["front"]["domain"] = "taiga.osradar.com"
 SECRET_KEY = "EJNSJIQHSNNANDBQNSOQOQNDOUQEJqQPOQOASQLSMS"
 DEBUG = False
 PUBLIC_REGISTER_ENABLED = True
 DEFAULT_FROM_EMAIL = "no-reply@taiga.osradar.com"
 SERVER_EMAIL = DEFAULT_FROM_EMAIL
 CELERY_ENABLED = True
 EVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend"
 EVENTS_PUSH_BACKEND_OPTIONS = {"url": "amqp://taiga:yourpassword@localhost:5672/taiga"}</pre>



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



<p>Start Taiga backend server with the help of below commands.</p>



<pre class="wp-block-verse">workon taiga_venv<br>python manage.py runserver</pre>



<p>To deactivate the virtual environment, type</p>



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



<h3>Step 6: Install &amp; Configure Taiga Frontend On Ubuntu 20.04</h3>



<p>Switch to the taiga user &amp; clone Taiga frontend from git.</p>



<pre class="wp-block-verse">sudo su - osradar<br>sudo git clone https://github.com/taigaio/taiga-front-dist.git</pre>



<p>Once downloaded, check out latest branch by</p>



<pre class="wp-block-verse">cd taiga-front-dist<br>git checkout stable</pre>



<p>Copy the config file</p>



<pre class="wp-block-verse">cp ~/taiga-front-dist/dist/conf.example.json ~/taiga-front-dist/dist/conf.json</pre>



<p>And then edit the <strong>conf.json</strong> file</p>



<pre class="wp-block-verse">sudo nano ~/taiga-front-dist/dist/conf.json</pre>



<p>Update the below lines according to your setup.</p>



<pre class="wp-block-verse">{
     "api": "http://taiga.osradar.com/api/v1/",
     "eventsUrl": "ws://taiga.osradar.com/events",
     "eventsMaxMissedHeartbeats": 5,
     "eventsHeartbeatIntervalTime": 60000,
     "eventsReconnectTryInterval": 10000,
     "debug": true,
     "debugInfo": false,
     "defaultLanguage": "en",
     "themes": ["taiga"],
     "defaultTheme": "taiga",
     "publicRegisterEnabled": true,
     "feedbackEnabled": true,
     "supportUrl": "https://tree.taiga.io/support",
     "privacyPolicyUrl": null,
     "termsOfServiceUrl": null,
     "GDPRUrl": null,
     "maxUploadFileSize": null,
     "contribPlugins": [],
     "tribeHost": null,
     "importers": [],
     "gravatar": true,
     "rtlLanguages": ["fa"]
 }</pre>



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



<h3>Step 7: Install &amp; Configure Taiga Event On Ubuntu 20.04</h3>



<p>Fire the below command the get the latest version of taiga event.</p>



<pre class="wp-block-verse">cd ~<br>sudo git clone https://github.com/taigaio/taiga-events.git taiga-events</pre>



<p>Then install NPM to the downloaded directory</p>



<pre class="wp-block-verse">cd taiga-events<br>npm install</pre>



<p>And copy the config file</p>



<pre class="wp-block-verse">cp config.example.json config.json</pre>



<p>Then edit the config.json &amp; update the given lines.</p>



<pre class="wp-block-verse">{
     "url": "amqp://taiga:yourpassword@localhost:5672/taiga",
     "secret": "EJNSJIQHSNNANDBQNSOQOQNDOUQEJqQPOQOASQLSMS",
     "webSocketServer": {
         "port": 8888
     }
 }</pre>



<p>Then save &amp; exit the file. Type exit in order to switch the taiga user.</p>



<h3>Step 8: Configure Nginx As Reverse Proxy for Taiga</h3>



<p>Install nginx by typing</p>



<pre class="wp-block-verse">sudo apt install nginx</pre>



<p>Create new virtual host file</p>



<pre class="wp-block-verse">sudo nano /etc/nginx/conf.d/taiga.conf</pre>



<p>Paste the below content into the file &amp; save it.</p>



<pre class="wp-block-verse">server {
     listen 80;
     server_name taiga.osradar.com;

large_client_header_buffers 4 32k;
     client_max_body_size 50M;
     charset utf-8;

access_log /home/taiga/logs/nginx.access.log;
     error_log /home/taiga/logs/nginx.error.log;

###Frontend
     location / {
         root /home/taiga/taiga-front-dist/dist/;
         try_files $uri $uri/ /index.html;
}

###Backend
location /api {
         proxy_set_header Host $http_host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Scheme $scheme;
         proxy_set_header X-Forwarded-Proto $scheme;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_pass http://127.0.0.1:8001/api;
         proxy_redirect off;
}
###Admin access (/admin/)
location /admin {
         proxy_set_header Host $http_host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Scheme $scheme;
         proxy_set_header X-Forwarded-Proto $scheme;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_pass http://127.0.0.1:8001$request_uri;
         proxy_redirect off;
}
###Static files
     location /static {
         alias /home/taiga/taiga-back/static;
     }

###Media files
     location /media {
         alias /home/taiga/taiga-back/media;
     }

###Events
     location /events {
         proxy_pass http://127.0.0.1:8888/events;
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection "upgrade";
         proxy_connect_timeout 7d;
         proxy_send_timeout 7d;
         proxy_read_timeout 7d;
     }
}
</pre>



<p>Then restart nginx services</p>



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



<h3>Step 9: Access Taiga WEb UI</h3>



<p>Type <strong>taiga.osradar.com</strong> in your browser to access Taiga web interface</p>



<p>Hit login by entering below credentials.You&#8217;ll be redirected to the Taiga dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1016" height="540" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-10_17h01_51.png" alt="" class="wp-image-27612" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-10_17h01_51.png 1016w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-10_17h01_51-300x159.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-10_17h01_51-768x408.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-10_17h01_51-696x370.png 696w" sizes="(max-width: 1016px) 100vw, 1016px" /></figure>



<pre class="wp-block-verse">User: <strong>admin</strong><br>Pass: <strong>123123</strong></pre>



<p>So, this is how you can install Taiga Project Management System On Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/taiga-project-management-system-ubuntu-20-04/">Taiga Project Management System 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/taiga-project-management-system-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Pandora FMS Monitoring Tool On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-pandora-fms-monitoring-tool-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-pandora-fms-monitoring-tool-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Tue, 12 Jan 2021 15:12:33 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install pandora on ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[pandora fms monitoring tool]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27375</guid>

					<description><![CDATA[<p>In this guide you&#8217;ll learn that how to install Pandora FMS Monitoring Tool on Ubuntu 20.04. Pandora FMS(Flexible Monitoring System) is a monitoring tool that can be used for servers,networks,apps &#38; virtual infrastructure. It is the simple, scalable &#38; easy tool for complex &#38; larger organizations. Pandora uses various protocols like HTTP, TCP, UDP,SNMP to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-pandora-fms-monitoring-tool-on-ubuntu-20-04/">How To Install Pandora FMS Monitoring Tool 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>In this guide you&#8217;ll learn that <a href="https://www.osradar.com/?p=27375" target="_blank" rel="noreferrer noopener">how to install Pandora FMS Monitoring Tool on Ubuntu 20.04</a>. Pandora FMS(Flexible Monitoring System) is a monitoring tool that can be used for servers,networks,apps &amp; virtual infrastructure. It is the simple, scalable &amp; easy tool for complex &amp; larger organizations. Pandora uses various protocols like HTTP, TCP, UDP,SNMP to collect informations. With the help of this tool you can monitor the status &amp; performance of Web Servers, database servers, apps, routers &amp; many other network devices.</p>



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



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



<pre class="wp-block-verse">sudo apt update -y
sudo apt upgrade -y

Server IP = 51.222.106.194
Server  Hostname =  pandora.osradar.com</pre>



<p>And hit the given command to install the required dependencies.</p>



<pre class="wp-block-verse">sudo apt install snmp snmpd libnet-telnet-perl libgeo-ip-perl libtime-format-perl libxml-simple-perl libxml-twig-perl libdbi-perl libnetaddr-ip-perl libhtml-parser-perl xprobe2 nmap libmail-sendmail-perl traceroute libio-socket-inet6-perl libhtml-tree-perl libsnmp-perl snmp-mibs-downloader libio-socket-multicast-perl libsnmp-perl libjson-perl -y</pre>



<p>Once the update finished, reboot your system.</p>



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



<h3>Step 2: Install LAMP Server On Ubuntu 20.04</h3>



<p>Fire the following command to install apache, mariaDB, PHP &amp; the other necessary dependencies.</p>



<pre class="wp-block-verse">sudo apt install apache2 mariadb-server php php-common php-gmp php-curl php-mbstring php-xmlrpc php-mysql php-gd php-bcmath php-xml php-cli php-zip php-pear php-zip php-sqlite3 php-snmp php-db graphviz php-curl php-ldap dbconfig-common unzip git -y</pre>



<p>After finishing the installation, edit the <strong>php.ini</strong> file.</p>



<p>And do the following changes.</p>



<pre class="wp-block-verse">memory_limit = 256M
 upload_max_filesize = 100M
 max_execution_time = 360
 max_input_vars = 2000
 date.timezone = Karachi/Asia</pre>



<h3>Step 3: Configure MariaDB Server On Ubuntu 20.04</h3>



<p>Hit the below command to configure MariaDB server on Ubuntu 20.04.</p>



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



<p>Provide the answers to asked questions.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="703" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-39-1024x703.png" alt="" class="wp-image-27654" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-39-1024x703.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-39-300x206.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-39-768x527.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-39-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2021/01/image-39-696x478.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-39-1068x733.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-39.png 1114w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Restart  Mariadb daemon </p>



<p><code>systemctl restart mariadb</code></p>



<p>And login to the MariaDB by typing</p>



<pre class="wp-block-verse">mysql -u root -p</pre>



<p>Enter the root password configured above to login to MariaDB. And type the below command to enable the mysql_native_password plugin.</p>



<pre class="wp-block-verse">USE mysql;
UPDATE user SET plugin='mysql_native_password' WHERE User='root';
</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="963" height="194" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-40.png" alt="" class="wp-image-27659" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-40.png 963w, https://www.osradar.com/wp-content/uploads/2021/01/image-40-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-40-768x155.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-40-696x140.png 696w" sizes="(max-width: 963px) 100vw, 963px" /></figure>



<p>Now create a new database with the following details.</p>



<pre class="wp-block-verse">CREATE DATABASE pandora;
 GRANT ALL PRIVILEGES ON pandora.* to pandora@'localhost' IDENTIFIED BY 'pandora';
 FLUSH PRIVILEGES;
 EXIT;</pre>



<p>And edit the <strong>/etc/mysql/my.cnf</strong> file &amp; declare the sql_mode.</p>



<pre class="wp-block-verse">sudo nano /etc/mysql/my.cnf</pre>



<p>Then add the below data.</p>



<pre class="wp-block-verse">[mysqld]<br>sql_mode=NO_ENGINE_SUBSTITUTION</pre>



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



<p>Then restart MariaDB server.</p>



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



<h3>Step 4: Download Pandora FMS On Ubuntu 20.04</h3>



<p>Switch to the <strong>/var/www/html/</strong> directory by typing</p>



<pre class="wp-block-verse">cd /var/www/html/</pre>



<p>And then clone the latest version of Pandora by hitting.</p>



<pre class="wp-block-verse">sudo git clone https://github.com/pandorafms/pandorafms.git
</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="965" height="159" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-41.png" alt="" class="wp-image-27660" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-41.png 965w, https://www.osradar.com/wp-content/uploads/2021/01/image-41-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-41-768x127.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-41-696x115.png 696w" sizes="(max-width: 965px) 100vw, 965px" /></figure>



<p>Then type the following commands to set the proper permissions to the downloaded directory.</p>



<pre class="wp-block-verse">sudo chown -R www-data:www-data /var/www/html/pandorafms<br>sudo chown -R www-data:www-data /var/www/html/pandorafms/pandora_console/<br>sudo chmod -R 775 /var/www/html/pandorafms/pandora_console/</pre>



<p>Next, edit the Pandora config file by typing</p>



<pre class="wp-block-verse">sudo nano /var/www/html/pandorafms/pandora_console/include/config.inc.php</pre>



<p>Then uncomment &amp; change the given lines as per your requirements.</p>



<pre class="wp-block-verse">// Default values
  $config["dbname"]="pandora";
  $config["dbuser"]="pandora";
  $config["dbpass"]="pandora";
  $config["dbhost"]="localhost";
 // This is used for reporting, please add "/" character at the end
 // $config["homedir"]="/var/www/pandora_console/";
 // $config["homeurl"]="/pandora_console/";
  $config["auth"]["scheme"] = "mysql";</pre>



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



<h3>Step 5: Configure Apache for Pandora FMS</h3>



<p>Now, create a new virtual host config file for apache to configure it with Pandora FMS.</p>



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



<p>Then add the below lines into the file.</p>



<pre class="wp-block-verse">&lt;VirtualHost *:80&gt;
 ServerAdmin admin@example.com
 ServerName localhost
 DocumentRoot /var/www/html/pandorafms/pandora_console
&lt;Directory /var/www/html/pandorafms/pandora_console&gt;
 AllowOverride All
 &lt;/Directory&gt;
 ErrorLog /var/log/apache2/error.log
 CustomLog /var/log/apache2/access.log combined
&lt;/VirtualHost&gt;</pre>



<p>Finally save &amp; exit the file. And enable the config file by</p>



<pre class="wp-block-verse">sudo a2ensite pandora</pre>



<p>Then restart the Apache.</p>



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



<h3>Step 6: Access Pandora FMS On Ubuntu 20.04</h3>



<p>Type  <strong>http://</strong>IP   or <strong>http://</strong>hostname in your browser in order to access Pandora. You&#8217;ll see the Pandora web installation wizard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="453" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-35-1024x453.png" alt="" class="wp-image-27586" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-35-1024x453.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-35-300x133.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-35-768x340.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-35-1536x680.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/image-35-696x308.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-35-1068x473.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-35.png 1592w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Press <strong>&#8220;Next&#8221;</strong>. A new page will be open.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="634" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-36-1024x634.png" alt="" class="wp-image-27587" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-36-1024x634.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-36-300x186.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-36-768x476.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-36-696x431.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-36-1068x661.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-36.png 1379w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Accept License.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="654" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-37-1024x654.png" alt="" class="wp-image-27588" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-37-1024x654.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-37-300x192.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-37-768x490.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-37-696x444.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-37-1068x682.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-37.png 1355w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Verify that all requirements are met and press <strong>&#8220;Next</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="666" height="763" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-42.png" alt="" class="wp-image-27663" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-42.png 666w, https://www.osradar.com/wp-content/uploads/2021/01/image-42-262x300.png 262w" sizes="(max-width: 666px) 100vw, 666px" /></figure>



<p>Provide DB details &amp; click :<strong>Next</strong>&#8220;.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="671" height="583" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-43.png" alt="" class="wp-image-27664" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-43.png 671w, https://www.osradar.com/wp-content/uploads/2021/01/image-43-300x261.png 300w" sizes="(max-width: 671px) 100vw, 671px" /></figure>



<p>As it&#8217;ll change the pass of Pandora DB user. Hit the below command to declare your origonal password.</p>



<pre class="wp-block-verse">sudo nano /var/www/html/pandorafms/pandora_console/include/config.php</pre>



<p>And change the &#8220;$config[&#8220;dbpass&#8221;]&#8221; with your origonal pass.</p>



<pre class="wp-block-verse">// Begin of automatic config file
$config["dbtype"] = "mysql"; //DB type (mysql, postgresql…in future others)
$config["mysqli"] = true;
$config["dbname"]="pandora";
$config["dbuser"]="pandora";
$config["dbpass"]="pandora";
$config["dbhost"]="localhost";</pre>



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



<p>Run the below command in termianl to remove the install.php file.</p>



<pre class="wp-block-verse">sudo rm -rf /var/www/html/pandorafms/pandora_console/install.php</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="529" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-09_22h51_24-1024x529.png" alt="" class="wp-image-27590" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_22h51_24-1024x529.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_22h51_24-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_22h51_24-768x397.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_22h51_24-696x360.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_22h51_24-1068x552.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_22h51_24.png 1387w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Adn press<strong> &#8220;Click here to access to your Pandora FMS console&#8221;</strong> on web interface to access Pandora dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="505" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-39-1024x505.jpg" alt="" class="wp-image-27591" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-39-1024x505.jpg 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-39-300x148.jpg 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-39-768x379.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-39-696x343.jpg 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-39-1068x527.jpg 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-39.jpg 1184w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>user:admin<br>pass:pandora</p>



<p>Provide default details to login &amp; you&#8217;ll be redirected to the Pandora FMS dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="489" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-44-1024x489.png" alt="" class="wp-image-27669" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-44-1024x489.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-44-300x143.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-44-768x367.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-44-1536x734.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/image-44-696x333.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-44-1068x511.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-44.png 1843w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3>Step 7: Secure Pandora FMS with Let&#8217;s Encrypt</h3>



<p>As for security reasons it is recommended to use SSL. We&#8217;ll use Let&#8217;s Encrypt SSL for this purposes to access Pandora securely. Run the given command to get certbot certificates.</p>



<pre class="wp-block-verse">sudo apt install python3-certbot-apache -y</pre>



<p>After installing certbot, type the below command to get SSL for your domain.</p>



<pre class="wp-block-verse">certbot --apache -d pandora.osradar.com</pre>



<p>And then provide the asked details.</p>



<p>Now, you can access Pandora via HTTPS.</p>



<p>So, this is how you can install Pandora FMS On Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-pandora-fms-monitoring-tool-on-ubuntu-20-04/">How To Install Pandora FMS Monitoring Tool 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-pandora-fms-monitoring-tool-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Jira Agile Project Management  On Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-jira-agile-project-management-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-jira-agile-project-management-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 11 Jan 2021 10:40:18 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install jira]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[install jira on ubuntu 20.04]]></category>
		<category><![CDATA[jira project managmement]]></category>
		<category><![CDATA[jira ubuntu]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27355</guid>

					<description><![CDATA[<p>In this tutorial, you&#8217;ll learn that how to install Jira Agile Project Management on Ubuntu 20.04. JIRA is a project management tool that can be used in the Customer &#38; Support services for tracking, generating &#38; to see the status of the tickets. It is commercial product &#38; available as a trial version for limited [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-jira-agile-project-management-on-ubuntu-20-04/">Install Jira Agile Project Management  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>In this tutorial, you&#8217;ll learn that <a href="https://www.osradar.com/?p=27355">how to install Jira Agile Project Management on Ubuntu 20.04</a>. JIRA is a project management tool that can be used in the Customer &amp; Support services for tracking, generating &amp; to see the status of the tickets. It is commercial product &amp; available as a trial version for limited time. The main functions of JIRA are Bugs &amp; defect managing, advance reports, search &amp; filtering, custom workflows, dashboards, advance security &amp; administration. Simply follow the below steps to install JIRA on Ubuntu 20.04.</p>



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



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



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



<p>Once updated, reboot your system.</p>



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



<h3>Step 2: Install &amp; Configure MariaDB Database Server</h3>



<p>As JIRA uses MariaDB to store it&#8217;s data, so we&#8217;ve to install &amp; configure it for JIRA. Fire the below command to install the MariaDB Server.</p>



<pre class="wp-block-verse">sudo apt install mariadb-server -y</pre>



<p>After installing the server type mysql to login to MariaDB.</p>



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



<p>Now, create a new database for JIRA by hitting the below commands.</p>



<pre class="wp-block-verse">CREATE DATABASE osradardb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
 CREATE USER 'osradaruser'@'localhost' IDENTIFIED BY 'password';
 GRANT ALL ON osradardb.* TO 'osradaruser'@'localhost' WITH GRANT OPTION;
 FLUSH PRIVILEGES;
 EXIT;</pre>



<p>Now, edit the <strong>/etc/mysql/mariadb.conf.d/50-server.cnf</strong> file by typing</p>



<pre class="wp-block-verse">sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf</pre>



<p>And then add the below data under <strong>[mysqld]</strong> section:</p>



<pre class="wp-block-verse">default-storage-engine= INNODB
 character_set_server = utf8mb4
 innodb_default_row_format = DYNAMIC
 innodb_large_prefix = ON
 innodb_file_format = Barracuda
 innodb_log_file_size = 2G
 sql_mode = NO_AUTO_VALUE_ON_ZERO</pre>



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



<p>Finally restart MariaDB services.</p>



<pre class="wp-block-verse">sudo systemctl restart mariadb.service</pre>



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



<p>Fetch the latest version of JIRA with the help of wget command.</p>



<pre class="wp-block-verse">wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-8.14.0-x64.bin</pre>



<p>Set the proper permissions for downloaded file by typing.</p>



<pre class="wp-block-verse">sudo chmod a+x atlassian-jira-software-8.14.0-x64.bin</pre>



<p>And then hit the below command to install the JIRA software.</p>



<pre class="wp-block-verse">sudo ./atlassian-jira-software-8.14.0-x64.bin</pre>



<p>You&#8217;ll see the similar output:</p>



<pre class="wp-block-verse">sabi@Ubuntu20:~$ sudo ./atlassian-jira-software-8.14.0-x64.bin
 Unpacking JRE …
 Starting Installer …
 This will install Jira Software 8.14.0 on your computer.
 OK [o, Enter], Cancel [c]
 o
 Click Next to continue, or Cancel to exit Setup.
 </pre>



<p>Presss <strong>&#8220;Enter&#8221;</strong> to continue the installation.</p>



<pre class="wp-block-verse">Choose the appropriate installation or upgrade option.
 Please choose one of the following:
 Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing Jira installation [3]
 2</pre>



<p>Choose the custom option by entering <strong>2</strong>.</p>



<pre class="wp-block-verse">Select the folder where you would like Jira Software to be installed.
 Where should Jira Software be installed?
 [/opt/atlassian/jira]</pre>



<p>Default location for Jira Software data<br>[/var/atlassian/application-data/jira]</p>



<p>Now, select the path where you want to install JIRA &amp; press Enter.</p>



<pre class="wp-block-verse">Configure which ports Jira Software will use.
 Jira requires two TCP ports that are not being used by any other
 applications on this machine. The HTTP port is where you will access Jira
 through your browser. The Control port is used to startup and shutdown Jira.
 Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
 1</pre>



<p>Now, type 1 to use default ports or select 2 to enter custom ports.</p>



<pre class="wp-block-verse">Jira can be run in the background.
 You may choose to run Jira as a service, which means it will start
 automatically whenever the computer restarts.
 Install Jira as Service?
 Yes [y, Enter], No [n]
 y</pre>



<p>Next, press <strong>&#8220;Y&#8221;</strong> &amp; hit <strong>&#8220;Enter&#8221; </strong>to install JIRA as a service.</p>



<pre class="wp-block-verse">Install as service: Yes 
 Install [i, Enter], Exit [e]
 i</pre>



<p>Finally select <strong>i </strong>&amp; press Enter to initialize the installation process.</p>



<p>Extracting files …</p>



<p>Please wait a few moments while Jira Software is configured.</p>



<pre class="wp-block-verse">Please wait a few moments while Jira Software starts up.
 Launching Jira Software …
 Installation of Jira Software 8.14.0 is complete
 Your installation of Jira Software 8.14.0 is now ready and can be accessed
 via your browser.
 Jira Software 8.14.0 can be accessed at http://localhost:8080
 Finishing installation …</pre>



<p>Now, select<strong> &#8220;Y&#8221; </strong>&amp; press <strong>&#8220;Enter&#8221; </strong>to start the JIRA. Upon successfull installation, you&#8217;ll see the following output:</p>



<pre class="wp-block-verse">Installation of Jira Software 8.14.0 is complete
Your installation of Jira Software 8.14.0 is now ready and can be accessed
via your browser.
Jira Software 8.14.0 can be accessed at http://localhost:8080
Finishing installation …</pre>



<h3>Step 4: Configure JIRA On Ubuntu 20.04</h3>



<p>To configure JIRA, you&#8217;ll need to download the MySQL JDBC driver &amp; then copy it to the Jira folder. You can do so by hitting the below command.</p>



<pre class="wp-block-verse">wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip</pre>



<p>Now, unzip the above downloaded file by typing</p>



<pre class="wp-block-verse">sudo unzip mysql-connector-java-8.0.18.zip</pre>



<p>And then copy the MySQL connector by typing</p>



<p>sudo cp mysql-connector-java-8.0.18/mysql-connector-java-8.0.18.jar /opt/atlassian/jira/lib</p>



<p>Now, stop &amp; start the Jira services by hitting</p>



<pre class="wp-block-verse">sudo /etc/init.d/jira stop<br>sudo /etc/init.d/jira start</pre>



<h3>Step 5: Configure Proxy For JIRA On Ubuntu 20.04</h3>



<p>Edit the <strong>/opt/atlassian/jira/conf/server.xml</strong> file to configure proxy for JIRA by typing</p>



<pre class="wp-block-verse">sudo nano /opt/atlassian/jira/conf/server.xml</pre>



<p>And look for the given lines.</p>



<pre class="wp-block-verse">&lt;Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^`"&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
                    maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPacceptCount="100" disableUploadTimeout="true" bindOnInit="false"/&gt;</pre>



<p>Then replace the above lines with the below lines.</p>



<pre class="wp-block-verse">&lt;Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^`"&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" scheme="http"
proxyName="jira.example.com" proxyPort="80"/&gt;</pre>



<p>And hit below commands to apply the changes.</p>



<pre class="wp-block-verse">sudo /etc/init.d/jira stop<br>sudo /etc/init.d/jira start</pre>



<h3>Step 6: Configure Nginx As Reverse Proxy for JIRA</h3>



<p>Now, configure the Nginx as a reverse proxy for JIRA. First install nginx by</p>



<pre class="wp-block-verse">sudo apt install nginx -y</pre>



<p>And then edit the config file to add new virtualhost.</p>



<p>sudo nano /etc/nginx/sites-available/jira.conf</p>



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



<pre class="wp-block-verse">server {
     listen 8080;
     server_name localhost;
     location / {
         proxy_set_header X-Forwarded-Host $host;
         proxy_set_header X-Forwarded-Server $host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_pass http://localhost:8080;
         client_max_body_size 10M;
     }
 }</pre>



<p>Save &amp; exit the file and then link it.</p>



<pre class="wp-block-verse">sudo ln -s /etc/nginx/sites-available/jira.conf /etc/nginx/sites-enabled</pre>



<p>Verify the nginx syntax.</p>



<pre class="wp-block-verse">sudo nginx -t</pre>



<p>If everything ok you&#8217;ll see the success message.</p>



<h3>Step 7: Access JIRA On Ubuntu 20.04</h3>



<p>Go to <strong>jira.example.com </strong>or localhost:8080 to access JIRA on web interface. I&#8217;ll show you here on my localhost.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="455" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-09_14h28_34-1024x455.png" alt="" class="wp-image-27570" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h28_34-1024x455.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h28_34-300x133.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h28_34-768x341.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h28_34-1536x683.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h28_34-696x309.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h28_34-1068x475.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h28_34.png 1613w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Choose the option <strong>&#8220;i&#8217;will set it up myself&#8221; </strong>&amp; press <strong>&#8220;Next&#8221;</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="564" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-09_14h32_05-1024x564.png" alt="" class="wp-image-27571" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h32_05-1024x564.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h32_05-300x165.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h32_05-768x423.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h32_05-1536x846.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h32_05-696x383.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h32_05-1068x588.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_14h32_05.png 1593w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Click <strong>&#8220;My own Database&#8221;</strong> &amp; then fill up the details &amp; press <strong>&#8220;Next</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="444" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-09_18h40_17-1024x444.png" alt="" class="wp-image-27573" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h40_17-1024x444.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h40_17-300x130.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h40_17-768x333.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h40_17-1536x666.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h40_17-696x302.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h40_17-1068x463.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h40_17.png 1661w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Here fill up your appliction data &amp; press <strong>&#8220;Next&#8221;</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="423" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-09_18h50_29-1024x423.png" alt="" class="wp-image-27575" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h50_29-1024x423.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h50_29-300x124.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h50_29-768x317.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h50_29-1536x634.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h50_29-696x287.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h50_29-1068x441.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_18h50_29.png 1606w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Give trial key and proceed.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="993" height="646" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-09_19h26_28.png" alt="" class="wp-image-27576" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_19h26_28.png 993w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_19h26_28-300x195.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_19h26_28-768x500.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-09_19h26_28-696x453.png 696w" sizes="(max-width: 993px) 100vw, 993px" /></figure>



<p>Enter admin account credentials &amp; press<strong> &#8220;Next</strong>&#8220;.</p>



<p>You&#8217;ll see the JIRA dashboard upon success.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="529" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-32-1024x529.png" alt="" class="wp-image-27577" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-32-1024x529.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-32-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-32-768x397.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-32-696x360.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-32-1068x552.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-32.png 1142w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>So, this is how you can install JIRA Project Management System On Ubuntu 20.04.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-jira-agile-project-management-on-ubuntu-20-04/">Install Jira Agile Project Management  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/install-jira-agile-project-management-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install DokuWiki On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-dokuwiki-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-dokuwiki-on-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 11 Jan 2021 10:38:16 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install dokuwiki]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[install dokuwiki ubuntu 20.04]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27338</guid>

					<description><![CDATA[<p>In this tutorial, you&#8217;ll learn that how to install DokuWiki on Ubuntu 20.04. DokuWiki is an open source &#38; most popular application written in PHP. You can create your favourite websites with the help of dockuwiki by just uploading your content to the server. Dokuwiki uses a simple file to store it&#8217;s data instead of [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-dokuwiki-on-ubuntu-20-04/">How To Install DokuWiki 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>In this tutorial, you&#8217;ll learn that <a href="https://www.osradar.com/?p=27338" target="_blank" rel="noreferrer noopener">how to install DokuWiki on Ubuntu 20.04</a>. DokuWiki is an open source &amp; most popular application written in PHP. You can create your favourite websites with the help of dockuwiki by just uploading your content to the server. Dokuwiki uses a simple file to store it&#8217;s data instead of using a database. It comes with all the features required for a website along with SEO, authentication &amp; much more. Simply follow the below steps for an easy &amp; optimal installation of dokuwiki on Ubuntu 20.04.</p>



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



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



<pre class="wp-block-verse">sudo apt update -y<br>sudo apt upgrade -y</pre>



<p>Once updated, reboot your system.</p>



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



<h3>Step 2: Install Apache &amp; PHP on Ubuntu 20.04</h3>



<p>Type the following commands in your terminal to install the apache &amp; PHP along with it&#8217;s extensions.</p>



<pre class="wp-block-verse">sudo apt install apache2 php php-gd php-xml php-json -y</pre>



<p>After installing the above packages, hit the below commands to start the apache.</p>



<pre class="wp-block-verse">suod systemctl start apache2<br>sudo systemctl enable apache2</pre>



<h3>Step 3: Download DokuWiki on Ubuntu 20.04</h3>



<p>Get the latest version of DokuWiki with the help of wget command. Run the following command in your terminal.</p>



<pre class="wp-block-verse">wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz</pre>



<p>Once completed, create a new folder under <strong>/var/www/html/dokuwiki</strong> &amp; then extract the dokuwiki.</p>



<pre class="wp-block-verse">sudo mkdir /var/www/html/dokuwiki
sudo tar -xvzf dokuwiki-stable.tgz -C /var/www/html/dokuwiki/ --strip-components=1</pre>



<p>And then copy the sample <strong>.htaccess</strong> file by running</p>



<pre class="wp-block-verse">sudo cp /var/www/html/dokuwiki/.htaccess{.dist,}</pre>



<p>And finally give proper permissions to dokuwiki.</p>



<pre class="wp-block-verse">sudo chown -R www-data:www-data /var/www/html/dokuwiki</pre>



<h3>Step 4: Configure Apache for DokuWiki</h3>



<p>Now create a new Apache virtualhost config by typing</p>



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



<p>And then add the below content into the file.</p>



<pre class="wp-block-verse">&lt;VirtualHost *:80&gt;
         ServerName    dokuwiki.osradar.com
         DocumentRoot  /var/www/html/dokuwiki

&lt;Directory ~ "/var/www/html/dokuwiki/(bin/|conf/|data/|inc/)"&gt;
&lt;IfModule mod_authz_core.c&gt;
AllowOverride All
                 Require all denied
&lt;/IfModule&gt;
&lt;IfModule !mod_authz_core.c&gt;
Order allow,deny
                 Deny from all
&lt;/IfModule&gt;
&lt;/Directory&gt;

ErrorLog   /var/log/apache2/dokuwiki_error.log
         CustomLog  /var/log/apache2/dokuwiki_access.log combined
&lt;/Virtualhost&gt;</pre>



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



<p>Next, enable dokuwiki site &amp; restart apache.</p>



<pre class="wp-block-verse">suod a2ensite dokuwiki.conf<br>sudo systemctl reload apache2</pre>



<h3>Step 5: Secure DokuWiki wit Let&#8217;s Encrypt SSL</h3>



<p>It is good practice to keep in mind the security practice. Install the certbot with the help of below command.</p>



<pre class="wp-block-verse">sudo apt install certbot python3-certbot-apache -y</pre>



<p>And type the given command to fetch SSL certificates for your domain.</p>



<pre class="wp-block-verse">certbot --apache -d dokuwiki.osradar.com</pre>



<p>Provide the asked details &amp; you&#8217;re all set.</p>



<h3>Step 6: Access DokuWiki On Ubntu 20.04</h3>



<p>Now, you can access the DokuWiki on Ubuntu 20.04 by typing <strong>https://yourdomain.com/install.php</strong>. Here I&#8217;ll perform it on localhost.You&#8217;ll see the installation page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="492" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-08_05h25_12-1024x492.png" alt="" class="wp-image-27532" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_12-1024x492.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_12-300x144.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_12-768x369.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_12-1536x738.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_12-696x335.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_12-1068x513.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_12.png 1847w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Fill the required fields &amp; finally press <strong>&#8220;Save&#8221;</strong> button. You&#8217;ll be redirected to the similar page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="558" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-08_05h25_40-1024x558.png" alt="" class="wp-image-27533" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_40-1024x558.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_40-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_40-768x418.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_40-696x379.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h25_40.png 1052w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Press on <strong>&#8220;You new dokuwiki&#8221;</strong>. You&#8217;ll see the similar page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="561" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/2021-01-08_05h28_10-1024x561.png" alt="" class="wp-image-27534" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h28_10-1024x561.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h28_10-300x164.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h28_10-768x421.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h28_10-1536x842.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h28_10-696x382.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h28_10-1068x586.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2021-01-08_05h28_10.png 1645w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, click <strong>&#8220;Login&#8221;</strong> button. You&#8217;ll be redirected to the login page. Provide the main username &amp; password given in 1st step to login.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="521" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-29-1024x521.png" alt="" class="wp-image-27539" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-29-1024x521.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-29-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-29-768x391.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-29-696x354.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-29-1068x543.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-29.png 1525w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>And then you&#8217;ll be redirected to the dokuwiki dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="562" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2021/01/image-30-1024x562.png" alt="" class="wp-image-27540" srcset="https://www.osradar.com/wp-content/uploads/2021/01/image-30-1024x562.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/image-30-300x165.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/image-30-768x422.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/image-30-1536x843.png 1536w, https://www.osradar.com/wp-content/uploads/2021/01/image-30-696x382.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/image-30-1068x586.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/image-30.png 1648w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>So, this is how you can install DokuWiki on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-dokuwiki-on-ubuntu-20-04/">How To Install DokuWiki 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-dokuwiki-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To  Install and Create a Blog with Hexo On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-and-create-a-blog-with-hexo-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-and-create-a-blog-with-hexo-on-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Tue, 05 Jan 2021 16:40:34 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[hexo linux installation guide]]></category>
		<category><![CDATA[hexo ubuntu 20.04]]></category>
		<category><![CDATA[how to install hexo]]></category>
		<category><![CDATA[how to install hexo on ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26448</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install &#38; create a blog with Hexo on Ubuntu 20.04. Hexo is a static blogging platform built on Node.js. With the help of hexo you can write posts in Markdown format. It converts the blog posts into static HTML files with the help of pre-built themes. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-create-a-blog-with-hexo-on-ubuntu-20-04/">How To  Install and Create a Blog with Hexo 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 <a href="https://www.osradar.com/?p=26448" target="_blank" rel="noreferrer noopener">how to install &amp; create a blog with Hexo on Ubuntu 20.04</a>. Hexo is a static blogging platform built on Node.js. With the help of hexo you can write posts in Markdown format. It converts the blog posts into static HTML files with the help of pre-built themes. It varies from the other blogging softwares as it uses static files instead of loading code again &amp; again when you reload the site. So, here we&#8217;ll see that how to install it on your system.</p>



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



<p>As usual we do, update your system to have the latest updates installed.</p>



<pre class="wp-block-verse">sudo apt update -y<br>sudo apt upgrade -y</pre>



<p>Then install the required packages by typing</p>



<pre class="wp-block-verse">sudo apt install git
git config --global user.name <strong>"Your Name"</strong>
git config --global user.email <strong>"youremail@domain.com"</strong></pre>



<p><strong>Note:</strong> Replace your git username, email &amp; domain name.</p>



<h3>Step 2: Configure Firewall on Ubuntu 20.04</h3>



<p>Allow the firewall access by enabling the SSH port. Don&#8217;t forget to enable firewall if you&#8217;re installing it for the first time.</p>



<pre class="wp-block-verse">sudo ufw enable</pre>



<p>Then enable the port 4000 in order to communicate</p>



<pre class="wp-block-verse">sudo ufw allow 4000</pre>



<p>Make sure to allow http, https &amp; then verify the status of firewall.</p>



<pre class="wp-block-verse">sudo ufw allow http<br>sudo ufw allow https<br>sudo ufw status</pre>



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



<pre class="wp-block-verse">sabi@Ubuntu20:~$ sudo ufw status
 Status: active
 To                         Action      From
 --                         ------      ----
 4000                       ALLOW       Anywhere                  
 80/tcp                     ALLOW       Anywhere                  
 443/tcp                    ALLOW       Anywhere                  
 4000 (v6)                  ALLOW       Anywhere (v6)             
 80/tcp (v6)                ALLOW       Anywhere (v6)             
 443/tcp (v6)               ALLOW       Anywhere (v6)             
 sabi@Ubuntu20:~$ </pre>



<h3>Step 3: Install Node.js on Ubuntu 20.04</h3>



<p>Hit the below commands to install <a href="https://www.osradar.com/how-to-install-nodejs-on-ubuntu-18-04-lts-linux-mint-19/" target="_blank" rel="noreferrer noopener">node.js on Ubuntu 20.04</a>.</p>



<pre class="wp-block-verse">curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -<br>sudo apt install nodejs</pre>



<p>Verify the installed version</p>



<pre class="wp-block-verse">node --version</pre>



<h3>Step 4: Install Hexo On Ubuntu 20.04</h3>



<p>Fire the below command in your terminal to install Hexo on Ubuntu 20.04</p>



<pre class="wp-block-verse">sudo npm install hexo-cli -g</pre>



<p>Once installed, make a new directory to install Hexo</p>



<pre class="wp-block-verse">sudo mkdir -p /var/www/hexo</pre>



<p>Give it proper permissions</p>



<pre class="wp-block-verse">sudo chown -R $USER:$USER /var/www/hexo<br>sudo chmod -R 755 /var/www/hexo</pre>



<p>Now switch to the hexo directory &amp; initialize it.</p>



<pre class="wp-block-verse">cd /var/www/hexo
hexo init</pre>



<pre class="wp-block-verse">INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
 INFO  Install dependencies
 added 185 packages from 430 contributors and audited 191 packages in 6.47s
 14 packages are looking for funding
 run npm fund for details
  found 0 vulnerabilities
 INFO  Start blogging with Hexo!</pre>



<p>Finally hit the below command to install hexo</p>



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



<h3>Step 5: Configure Hexo On Ubuntu 20.04</h3>



<p>Edit the<strong> _config.yml </strong>file</p>



<pre class="wp-block-verse">sudo nano _config.yml</pre>



<p>And then change the name of options according to your needs.</p>



<pre class="wp-block-verse">## Hexo Configuration
##  Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
 #Site
 title: Hexo
 subtitle: ''
 description: ''
 keywords:
 author: sabi
 language: en
 timezone: ''
 #URL
 If your site is put in a subdirectory, set url as 'http://example.com/child' and root as '/child/'
 url: http://example.com
 root: /
 permalink: :year/:month/:day/:title/
 permalink_defaults:
 pretty_urls:
   trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
   trailing_html: true # Set to false to remove trailing '.html' from permalinks</pre>



<p><strong>Note:</strong> Provide domain name, URL, site title &amp; other required options &amp; do 2 more changes.</p>



<ul><li>change <strong>default_layout</strong> value from post to draft.</li><li>change <strong>post_asset_folder </strong>variable to true.</li></ul>



<h3>Step 6: Install themes For Your Blog</h3>



<p>As hexo comes with the default theme, you can change to your favourite them by the hexo Themes page.</p>



<p>Here we&#8217;ll install Next theme for testing. To install this first switch to the <strong>/var/www/hexo/</strong> directory &amp; download the theme</p>



<pre class="wp-block-verse">cd /var/www/hexo<br>git clone https://github.com/theme-next/hexo-theme-next themes/next</pre>



<p>Once downloaded, edit the <strong>_config.yml</strong> to update your new theme.</p>



<pre class="wp-block-verse">sudo nano _config.yml</pre>



<p>Do the changes to theme variable in order to install new theme</p>



<pre class="wp-block-verse"># Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
 theme: next</pre>



<p>In order to update the theme settings, change the <strong>/var/www/hexo/themes/next/_config.yml</strong> file.</p>



<h3>Step 7: Create Your First Post</h3>



<p>Hit the below command to create your first post.</p>



<pre class="wp-block-verse">hexo new first-post<br>INFO Validating config<br>INFO Created: /var/www/hexo/source/_drafts/first-post.md</pre>



<p>Once created, fire the below command to edit new post.</p>



<pre class="wp-block-verse">sudo nano ./source/_drafts/first-post.md</pre>



<p>Each post should have it&#8217;s own front-master. It constists of title, published date, categories, tags, etc. Update the default details with the accurate one.</p>



<pre class="wp-block-verse">title: sabi's First Post
 tags:
 test
 categories:
 Hexo
 comments: true 
 date: 2021-01-02 00:00:00
 Markdown goes here.
**This is our first post!**</pre>



<p>To place an image in your post add the below command in your post.</p>



<pre class="wp-block-verse">{% asset_img "example.jpg" "This is an example image" %}</pre>



<p>Note: Replace<strong> example.jpg</strong> with your image name &amp; then copy that file to <strong>\source_posts\first-pos</strong>t directory.</p>



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



<p>Finally publish the post by typing</p>



<pre class="wp-block-verse">hexo publish first-post</pre>



<h3>Step 8: Installing a Plugin For Hexo</h3>



<p>Get the plugins for hexo from their <a href="https://hexo.io/plugins/" target="_blank" rel="noreferrer noopener nofollow">hexo plugins page</a>. You can install your favourite one according to your needs. Save the plugin by typing</p>



<pre class="wp-block-verse">cd /var/www/hexo<br>npm i hexo-filter-nofollow --save</pre>



<p>Then edit the below file</p>



<pre class="wp-block-verse">sudo nano _config.yml</pre>



<p>Add the below lines at the end of the above file.</p>



<pre class="wp-block-verse">nofollow:<br>enable: true<br>field: site<br>exclude:<br>- 'exclude1.com'<br>- 'exclude2.com<br>enable: To activate the plugin.<br>field: Explain the scope of the plugin.<br>exclude: To exclude domains for nofollow links.</pre>



<h3>Step 9: Testing Hexo Server</h3>



<p>Hit the below command to test the hexo server.</p>



<p>hexo server</p>



<p>Then type IP:4000 in browser &amp; you&#8217;ll see the welcome page with your post created earlier.</p>



<p>Simply hit Ctrl+C to stop the server.</p>



<h3>Step 10: Generate Hexo Static Files</h3>



<p>Hit the below command to generate the static files</p>



<pre class="wp-block-verse">hexo generate</pre>



<p>These files can be found at <strong>/var/www/hexo/public</strong>. From there, you can server them publically. We&#8217;ll use Nginx for this purpose.</p>



<p>Fire the given command to install nginx</p>



<pre class="wp-block-verse">sudo apt install nginx</pre>



<p>Edit the hexo config file</p>



<pre class="wp-block-verse">sudo nano /etc/nginx/sites-available/hexo.conf</pre>



<p>Then add the below data into the file.</p>



<pre class="wp-block-verse">server {
     server_name hexo.example.com;
root /var/www/hexo/public; 
index index.html index.htm; 
listen 443 ssl http2; listen [::]:443 ssl http2; 
ssl_certificate /etc/letsencrypt/live/hexo.example.com/fullchain.pem;
 ssl_certificate_key /etc/letsencrypt/live/hexo.example.com/privkey.pem; 
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_timeout 1d; 
ssl_session_cache shared:MozSSL:10m;  
# about 40000 sessions ssl_session_tickets off; 
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES25&gt;             ssl_prefer_server_ciphers off; 
ssl_dhparam /etc/ssl/certs/dhparam.pem; 
location / { 
    try_files $uri $uri/ =404; 
}
 }
 server {
     if ($host = hexo.example.com) {
         return 301 https://$host$request_uri;
     }
     server_name hexo.example.com;
     listen 80;
     listen [::]:80;
     return 404;
 }</pre>



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



<p>Link the config file by typing</p>



<pre class="wp-block-verse">sudo ln -s /etc/nginx/sites-available/hexo.conf /etc/nginx/sites-enabled/</pre>



<p>Next, hit the below command to edit the nginx config file</p>



<pre class="wp-block-verse">sudo nano /etc/nginx/nginx.conf</pre>



<p>Add the given line before the line include <strong>/etc/nginx/conf.d/*.conf</strong></p>



<pre class="wp-block-verse">server_names_hash_bucket_size 64;</pre>



<p>Update the types_hash_max_size value from 2048-4096</p>



<pre class="wp-block-verse">types_hash_max_size 4096;</pre>



<p>Save the file &amp; verify the syntax.</p>



<pre class="wp-block-verse">sudo nginx -t</pre>



<p>And restart nginx</p>



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



<h3>Step 11: Install SSL For Hexo</h3>



<p>Now, install certbot by typing</p>



<pre class="wp-block-verse">sudo apt install certbot</pre>



<p>Hit the below command to generate the certificates then create a DHParams certificates.</p>



<pre class="wp-block-verse">sudo certbot certonly --standalone -d hexo.yourdomain.com --preferred-challenges http --agree-tos -n -m email@yourdomain.com --keep-until-expiring 
 sudo systemctl start nginx
 sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048</pre>



<p>You can host hexo sites on your server as well as with git,netlify,vercel &amp; many more platforms.</p>



<p>So, this is how you can install &amp; create a Hexo blog on Ubuntu 20.04.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-create-a-blog-with-hexo-on-ubuntu-20-04/">How To  Install and Create a Blog with Hexo 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-and-create-a-blog-with-hexo-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Apache Spark On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-apache-spark-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-apache-spark-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 17 Dec 2020 06:15: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[Apache spark ubuntu 20.04]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[How To Install Apache Spark On Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26169</guid>

					<description><![CDATA[<p>In this article you&#8217;ll learn that how to install Apache Spark On Ubuntu 20.04. Apache Spark is most powerful cluster computing system that gives high level API&#8217;s in Java, Scala &#38; Python. It provides high level tools with advanced techniques like SQL,MLlib,GraphX &#38; Spark Streaming. So, follow the below steps for an easy &#38; optimal [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-spark-on-ubuntu-20-04/">How To Install Apache Spark 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>In this article you&#8217;ll learn that how to install Apache Spark On Ubuntu 20.04. Apache Spark is most powerful cluster computing system that gives high level API&#8217;s in Java, Scala &amp; Python. It provides high level tools with advanced techniques like SQL,MLlib,GraphX &amp; Spark Streaming. So, follow the below steps for an easy &amp; optimal installation of Apache Spark.</p>



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



<p>As usual we do, update your system before installing any new package.</p>



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



<p>Once the update finished, reboot your system.</p>



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



<h3>Step 2: Install Java On Ubuntu 20.04</h3>



<p>As apache spark needs Java to operate, install it by typing</p>



<pre class="wp-block-preformatted">sudo apt install default-jdk</pre>



<p>Verify the installed java version by typing.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ <strong>java -version</strong>
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)</pre>



<h3>Step 3: Download &amp; Install Apache Spark On Ubuntu 20.04</h3>



<p>Fire the below command in your terminal to download the latest version of Apache spark or visit the official page to download manually.</p>



<pre class="wp-block-preformatted">wget https://www.apache.org/dyn/closer.lua/spark/spark-3.0.1/spark-3.0.1-bin-hadoop2.7.tgz<br>tar xvzf spark-3.0.1-bin-hadoop2.7.tgz<br>sudo mv spark-3.0.1-bin-hadoop2.7/ /opt/spark</pre>



<p>Now, configure the apache environment.</p>



<pre class="wp-block-preformatted">sudo nano ~/.bashrc</pre>



<p>And add the environment variable into the file.</p>



<pre class="wp-block-preformatted">export SPARK_HOME=/opt/spark<br>export PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbin</pre>



<p>Finally source the file by typing</p>



<pre class="wp-block-preformatted">source ~/.bashrc</pre>



<h3>Step 4: Starting Spark Master Server</h3>



<p>You can start the Apache Spark Master server by typing the following command in your terminal.</p>



<pre class="wp-block-preformatted">start-master.sh</pre>



<h3>Step 5: Access Apache Spark Via Web Interface</h3>



<p>Go to your browser and type your server IP with port 8080 to access apache spark web interface.</p>



<pre class="wp-block-verse"><a href="http://osradar.com">http://127.0.0.1:8080/</a></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="792" height="549" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-4.png" alt="" class="wp-image-26265" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-4.png 792w, https://www.osradar.com/wp-content/uploads/2020/12/image-4-300x208.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-4-768x532.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-4-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2020/12/image-4-696x482.png 696w" sizes="(max-width: 792px) 100vw, 792px" /></figure>



<p>To start a new slave server under this Master server, type the following command.</p>



<pre class="wp-block-preformatted">start-slave.sh spark://ubuntu1:7077</pre>



<p>Reload the web page and you&#8217;ll see the slave server running.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="780" height="317" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-5.png" alt="" class="wp-image-26266" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-5.png 780w, https://www.osradar.com/wp-content/uploads/2020/12/image-5-300x122.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-5-768x312.png 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-5-696x283.png 696w" sizes="(max-width: 780px) 100vw, 780px" /></figure>



<p>Finally finish the config &amp; hit the below command to verify the installation.</p>



<p>So, this is how you can install Apache Spark on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-apache-spark-on-ubuntu-20-04/">How To Install Apache Spark 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-apache-spark-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Ruby On Rails On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-ruby-on-rails-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-ruby-on-rails-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 16 Dec 2020 05:39:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[How To Install Ruby On Rails On Ubuntu 20.04]]></category>
		<category><![CDATA[install rails on ubuntu 20]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26163</guid>

					<description><![CDATA[<p>In this tutorial you&#8217;ll learn that how to install Ruby On Rails On Ubuntu 20.04. Ruby On Rails also called Rails(simple form) is an open source platform that can be used to create high performance &#38; powerful websites as well as applications. So, here we&#8217;ll see that how we can install it on our Ubuntu [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-ruby-on-rails-on-ubuntu-20-04/">How To Install Ruby On Rails 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>In this tutorial you&#8217;ll learn that how to install Ruby On Rails On Ubuntu 20.04. Ruby On Rails also called Rails(simple form) is an open source platform that can be used to create high performance &amp; powerful websites as well as applications. So, here we&#8217;ll see that how we can install it on our Ubuntu 20.04 system.</p>



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



<p>As usual we do, update your system and install the required dependencies.</p>



<pre class="wp-block-preformatted">sudo apt update<br>sudo apt install -y curl gnupg2 dirmngr git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev</pre>



<h3>Step 2: Install Node.Js On Ubuntu 20.04</h3>



<p>As Rails required a Javascript runtime to build applications in Linux. So, install LTS version of Node.js (v12.x). You can also use the latest version of Node.js (14.x).</p>



<pre class="wp-block-preformatted">curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -<br>sudo apt install -y nodejs</pre>



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



<p>Now, add the yarn repository on Ubuntu 20.04 and install it with the help of below commands.</p>



<pre class="wp-block-preformatted">curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -<br>echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list<br>sudo apt update &amp;&amp; sudo apt install -y yarn</pre>



<h3>Step 4: Install Ruby On Ubuntu 20.04</h3>



<p>Here we&#8217;ll see two methods to install Ruby On Ubuntu 20.04.</p>



<ol><li>By Using rbenv (Recommended Method)</li><li>With the help of RVM</li></ol>



<p>So, choose your favourite method to proceed.</p>



<h4>By Using rbenv (Recommended Method)</h4>



<p>This method is very useful for managing the versions of Ruby quickly &amp; it is lighter than RVM. Simply, run the following commands in your terminal to install the rbenv.</p>



<pre class="wp-block-preformatted">cd<br>git clone https://github.com/rbenv/rbenv.git ~/.rbenv<br>echo 'export PATH="$HOME/.rbenv/bin:$PATH"' &gt;&gt; ~/.bashrc<br>echo 'eval "$(rbenv init -)"' &gt;&gt; ~/.bashrc<br>exec $SHELL<br>git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build<br>echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' &gt;&gt; ~/.bashrc<br>exec $SHELL</pre>



<p>Install the latest version of Ruby by typing</p>



<pre class="wp-block-preformatted">rbenv install 2.7.2</pre>



<p>You can also install other version with the help of <strong>rbenv install &lt;version&gt;</strong> command.</p>



<p>Now, set the above installed version as default by typing</p>



<pre class="wp-block-preformatted">rbenv global 2.7.2</pre>



<p>Verify the installed version by typing</p>



<pre class="wp-block-preformatted">ruby -v</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]</pre>



<p>And type the below command to install bundler.</p>



<pre class="wp-block-preformatted">gem install bundler</pre>



<h3>Step 5: Install Ruby By Using RVM</h3>



<p>RVM (Ruby Version Manager) helps you to install the ruby versions efficiently &amp; auto-download its dependencies.</p>



<p>Add Public key &amp; install it with the help of curl command.</p>



<pre class="wp-block-preformatted">gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB<br>curl -sSL https://get.rvm.io | bash -s stable</pre>



<p>Now, run the below command to load RVM environment variables.</p>



<pre class="wp-block-preformatted">source ~/.rvm/scripts/rvm</pre>



<p>And hit the following command to install Ruby 2.7.2</p>



<pre class="wp-block-preformatted">rvm install 2.7.2</pre>



<p>You can also install different versions by typing<strong> rvm install &lt;version&gt;.</strong></p>



<p>Set the default version by entering</p>



<pre class="wp-block-preformatted">rvm use 2.7.2 --default</pre>



<p>And verify the Ruby version.</p>



<pre class="wp-block-preformatted">ruby -v</pre>



<p>Output:</p>



<pre id="block-c204bcb1-5f3a-4bf0-9e1e-a7d902312ea1" class="wp-block-preformatted">sabi@Ubuntu20:~$ ruby -v<br>ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]</pre>



<p>And type the below command to install the bundler.</p>



<pre class="wp-block-preformatted">gem install bundler</pre>



<h3>Step 6: Install Rails On Ubuntu 20.04</h3>



<p>Type the given command to install the Rails on Ubuntu 20.04.</p>



<pre class="wp-block-preformatted">gem install rails</pre>



<p>To install a specific version, type</p>



<pre class="wp-block-preformatted">gem install rails –version=&lt;version&gt;</pre>



<p>Verify the installed version by</p>



<pre class="wp-block-preformatted">rails -v</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~$ rails -v
Rails 6.0.3.4</pre>



<h3>Step 7: Create Rails Application</h3>



<p>In order to create rails application, you&#8217;ve to install a database. By default Rails uses its own database but it is not recommended for production use. So, install MariaDB &amp; use it with the Rails.</p>



<p>To install <a href="https://www.osradar.com/list-all-users-on-mysql-mariadb/" target="_blank" rel="noreferrer noopener">MariaDB on Ubuntu 20.04</a>, type</p>



<pre class="wp-block-preformatted">sudo apt install -y mariadb-server mariadb-client</pre>



<p>And install the required packages.</p>



<pre class="wp-block-preformatted">sudo apt install -y libmariadb-dev</pre>



<p>Now, login to MariaDB &amp; create a database.</p>



<pre class="wp-block-preformatted">sudo mysql -u root -p
CREATE USER 'sabi'@'localhost' IDENTIFIED BY 'Your_Password';
GRANT ALL PRIVILEGES ON <em>.</em> TO 'sabi'@'localhost';
exit;</pre>



<p>And install the MySQL extension.</p>



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



<p>Then create the new test application.</p>



<pre class="wp-block-preformatted">cd ~<br>rails new sabitestapp -d mysql<br>cd sabitestapp</pre>



<p>And update the config file with Database info.</p>



<pre class="wp-block-preformatted">sudo nano config/database.yml<br>default: &amp;default<br>adapter: mysql2<br>encoding: utf8mb4<br>pool: &lt;%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %&gt;<br>username: sabi &lt;&lt; DB User<br>password: Your_Password &lt;&lt; DB Password<br>socket: /var/run/mysqld/mysqld.sock</pre>



<p>Note: Replace <strong>Username &amp; Password</strong> with your own.</p>



<p>Then create the database.</p>



<pre class="wp-block-preformatted">rake db:create</pre>



<p>Output:</p>



<p>You&#8217;ll see the similar output.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~/sabitestapp$ rake db:create<br>Created database 'sabitestapp_development'<br>Created database 'sabitestapp_test'</pre>



<p>And then start the application by typing.</p>



<pre class="wp-block-preformatted">rails server -b 0.0.0.0</pre>



<p>Output: You&#8217;ll see the similar output.</p>



<pre class="wp-block-preformatted">sabi@Ubuntu20:~/sabitestapp$ rails server -b 0.0.0.0
=&gt; Booting Puma
=&gt; Rails 6.0.3.4 application starting in development
=&gt; Run <code>rails server --help</code> for more startup options
Puma starting in single mode…
Version 4.3.7 (ruby 2.7.2-p137), codename: Mysterious Traveller
Min threads: 5, max threads: 5
Environment: development
Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop</pre>



<h3>Step 8: Access Rails On Web</h3>



<p>Rails application should be running on port<strong> 3000</strong> you can access it in your browser.</p>



<p>Type your server IP with port 3000 like <strong>IP:3000</strong> to access the web dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="495" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-4-1024x495.jpg" alt="How To Install Ruby On Rails On Ubuntu 20.04" class="wp-image-26255" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-4-1024x495.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/12/image-4-300x145.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-4-768x371.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/12/image-4-1536x743.jpg 1536w, https://www.osradar.com/wp-content/uploads/2020/12/image-4-696x337.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/12/image-4-1068x517.jpg 1068w, https://www.osradar.com/wp-content/uploads/2020/12/image-4.jpg 1838w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>As installation done, start building with Rails. So, this is how you can install Ruby on  Rails on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-ruby-on-rails-on-ubuntu-20-04/">How To Install Ruby On Rails 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-ruby-on-rails-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
