<?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>You searched for Elastic - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/search/Elastic/feed/rss2/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 30 Jan 2023 02:22:03 +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>What is a virtual machine?</title>
		<link>https://www.osradar.com/what-is-a-virtual-machine/</link>
					<comments>https://www.osradar.com/what-is-a-virtual-machine/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Tue, 31 Jan 2023 10:20:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[vmware]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=38109</guid>

					<description><![CDATA[<p>Hello! Imagine any of these situations. For example, you want to test an operating system, but you have no space on your hard disk. Or you simply want to test a program that does not work on your operating system, but on another one. You probably think that the only solution is to install it [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/what-is-a-virtual-machine/">What is a virtual machine?</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! Imagine any of these situations. For example, you want to test an operating system, but you have no space on your hard disk. Or you simply want to test a program that does not work on your operating system, but on another one. You probably think that the only solution is to install it on your hard disk. In such a case, you would have to format the hard disk, with the consequent loss of information. Besides, it is a process that requires certain knowledge and special attention from the user. But this is not necessarily so. Maybe you have heard about <a href="https://www.osradar.com/?s=virtual+machine" target="_blank" rel="noreferrer noopener">virtual machines</a>. We are talking about software that allows you to run an operating system on another system contained in a computer. But what exactly is a virtual machine? What does it do? How does its mechanism work? We will try to answer these questions.</p>



<h2>What is a virtual machine?</h2>



<p>A virtual machine (VM) is a software implementation of a computer that runs on another computer. This way, allowing multiple operating systems to run on the same physical machine. It provides a virtualized environment for running applications, which are isolated from the host operating system and other VMs.</p>



<h2>How a virtual machine works?</h2>



<p>A virtual machine works by using a hypervisor, also known as a virtual machine monitor, to virtualize the underlying hardware of a physical computer. The hypervisor creates virtual devices and emulates their behavior. This way, it can to provide a virtual environment for the operating system and applications running within the VM. The VM communicates with the hypervisor, which in turn communicates with the physical hardware. So it allows the VM to access physical resources such as CPU, memory, and storage. This allows multiple VMs to run on the same physical machine. Also, each one with its own operating system and applications, without interfering with each other.</p>



<h2>What are the advantages of using a virtual machine?</h2>



<p>Some advantages of using a virtual machine include:</p>



<ul><li><strong>Isolation:</strong> VMs provide a layer of isolation between the host operating system and applications. Therefore, reducing the risk of contamination or system instability.</li><li><strong>Cost-effectiveness:</strong> VMs can be a cost-effective solution for running multiple operating systems and applications on the same physical machine. This way reducing the need for multiple physical computers.</li><li><strong>Portability:</strong> VMs can be easily moved between physical machines, making it easier to migrate to new hardware or to recover from a failure.</li><li><strong>Compatibility:</strong> VMs can run older or incompatible applications, allowing them to continue to be used even on newer hardware or operating systems.</li><li><strong>Test environment:</strong> VMs are available to create a safe and controlled environment for testing new software or configurations without affecting the host operating system</li></ul>



<h2>Disadvantages of working with virtual machines</h2>



<p>Some disadvantages of working with virtual machines include:</p>



<ul><li><strong>Performance:</strong> VMs can have lower performance compared to running directly on physical hardware, as they must share the physical resources of the host machine.</li><li><strong>Resource utilization:</strong> Running multiple VMs on a single physical machine can consume a large amount of resources. Especially memory and storage.</li><li><strong>Complexity:</strong> Virtualization can introduce additional complexity to an IT environment, requiring specialized knowledge and skills to manage and maintain the virtual infrastructure.</li><li><strong>Licensing costs:</strong> Some virtualization platforms and operating systems have additional licensing costs that can add to the overall cost of implementing virtualization.</li><li><strong>Security:</strong> VMs can be vulnerable to security threats just like physical computers. Therefore,  additional security measures may be required to secure the virtual environment.</li></ul>



<h2>What are the requirements for Windows to run virtual machines?</h2>



<p>The requirements for Windows to run virtual machines are:</p>



<ul><li>A 64-bit processor with Second Level Address Translation (SLAT)</li><li>At least 4 GB of RAM</li><li>At least 64 GB of free hard disk space</li><li>Hyper-V and Containers Windows features enabled</li><li>Windows 10/11 Pro or Enterprise (64-bit) version 1909 or later</li><li>A GPU with WDDM 2.0 driver for GPU acceleration (optional)</li></ul>



<h2>What is Hyper V, the virtualization module for windows?</h2>



<p>Hyper-V is a native hypervisor from Microsoft that provides virtualization technology for creating and running virtual machines on Windows operating systems. It allows multiple operating systems to run on a single physical machine. In the same way, providing isolation and security for each virtual machine and enabling efficient utilization of hardware resources. With Hyper-V, users can create and manage virtual machines. Also configuring virtual switches, storage, and network interfaces, and monitor virtual machine performance and resource usage. It is available as a feature in Windows 10/11 Pro and Enterprise editions.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="770" height="522" src="https://www.osradar.com/wp-content/uploads/2023/01/vm3.png" alt="" class="wp-image-38113" srcset="https://www.osradar.com/wp-content/uploads/2023/01/vm3.png 770w, https://www.osradar.com/wp-content/uploads/2023/01/vm3-300x203.png 300w, https://www.osradar.com/wp-content/uploads/2023/01/vm3-768x521.png 768w, https://www.osradar.com/wp-content/uploads/2023/01/vm3-696x472.png 696w" sizes="(max-width: 770px) 100vw, 770px" /></figure>



<h2>What are the most used virtualization software?</h2>



<p>The most widely used virtualization software are:</p>



<ul><li>VMware vSphere</li><li>Microsoft Hyper-V</li><li>Citrix XenServer</li><li>Oracle VirtualBox</li><li>Red Hat Virtualization (RHV)</li><li>Proxmox Virtual Environment</li><li>KVM (Kernel-based Virtual Machine)</li><li>AWS (Amazon Web Services)</li><li>Google Compute Engine</li><li>Alibaba Cloud Elastic Compute Service (ECS)</li></ul>



<p>They are certainly the most popular. However, we will highlight those most commonly used in Windows environment. Previously, we talked about Hyper V. Therefore, we will start with Virtual Box.</p>



<h2>Oracle Virtual Box</h2>



<p><a href="https://www.virtualbox.org/" target="_blank" rel="noreferrer noopener">VirtualBox</a> is a free and open-source virtualization software for x86 and AMD64/Intel64-based computers. It allows users to run multiple operating systems on a single physical machine. Also, each one in its own virtual environment. Moreover,  providing isolation and security for each virtual machine. VirtualBox provides a user-friendly interface for creating, configuring and managing virtual machines. </p>



<figure class="wp-block-image size-full"><img loading="lazy" width="894" height="894" src="https://www.osradar.com/wp-content/uploads/2023/01/vm.png" alt="" class="wp-image-38111" srcset="https://www.osradar.com/wp-content/uploads/2023/01/vm.png 894w, https://www.osradar.com/wp-content/uploads/2023/01/vm-300x300.png 300w, https://www.osradar.com/wp-content/uploads/2023/01/vm-150x150.png 150w, https://www.osradar.com/wp-content/uploads/2023/01/vm-768x768.png 768w, https://www.osradar.com/wp-content/uploads/2023/01/vm-696x696.png 696w" sizes="(max-width: 894px) 100vw, 894px" /></figure>



<p>In addition, including support for storage and network interfaces, and can be used for a wide range of purposes including software development, testing, and personal use. It can run on various host operating systems including Windows, macOS, Linux, and Solaris, and supports a wide range of guest operating systems including Windows, Linux, and BSD distributions.</p>



<h2>VMware vSphere</h2>



<p><a href="https://www.vmware.com/products/vsphere.html" target="_blank" rel="noreferrer noopener">VMware vSphere </a>is a comprehensive enterprise-class virtualization platform. It provides a centralized management solution for virtual infrastructure. Moreover, it is used for creating, deploying and managing virtual machines, networks, and storage resources. With vSphere, IT organizations can pool and allocate shared resources to virtual machines and application. With this in mind, enabling efficient utilization of hardware resources, high availability, and disaster recovery.</p>



<figure class="wp-block-image size-full"><img loading="lazy" width="565" height="526" src="https://www.osradar.com/wp-content/uploads/2023/01/vm2.png" alt="" class="wp-image-38112" srcset="https://www.osradar.com/wp-content/uploads/2023/01/vm2.png 565w, https://www.osradar.com/wp-content/uploads/2023/01/vm2-300x279.png 300w" sizes="(max-width: 565px) 100vw, 565px" /></figure>



<p>vSphere includes features such as live migration of virtual machines, storage and network resource management, and multi-hypervisor support, as well as a robust security model and a powerful API for integration with other management tools. It is widely used in data centers and cloud environments for virtualizing business-critical applications, and is available as a standalone product or as part of the VMware Cloud Foundation, a unified SDDC platform for deploying and managing a hybrid cloud.</p>



<p>Very well, in this way we have seen what Virtual Machines are. We also check what are the advantages and disadvantages of using them. We also learned how they work. Furthermore, we saw which are the most used ones, plus what you need to run them on Windows.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/what-is-a-virtual-machine/">What is a virtual machine?</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/what-is-a-virtual-machine/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install GoAccess on Ubuntu 20.04 / Debian 10?</title>
		<link>https://www.osradar.com/install-goaccess-ubuntu-debian/</link>
					<comments>https://www.osradar.com/install-goaccess-ubuntu-debian/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 08 Apr 2021 02:57:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[goaccess]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=24741</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install GoAccess on Ubuntu 20.04 / Debian 10. This way you will be able to monitor your web server without problems. What is it? According to the project&#8217;s website, GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-goaccess-ubuntu-debian/">Install GoAccess on Ubuntu 20.04 / Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><strong>Hello, friends. In this post, you will learn how to install GoAccess on Ubuntu 20.04 / Debian 10. This way you will be able to monitor your web server without problems.</strong></p>



<h2>What is it?</h2>



<p>According to the <a href="https://goaccess.io/" target="_blank" rel="noreferrer noopener">project&#8217;s website</a>,</p>



<blockquote class="wp-block-quote"><p>GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.</p></blockquote>



<p>Also, &#8220;It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly&#8221;.</p>



<p>Some features are:</p>



<ul><li><strong>Fast</strong>, <strong>real-time</strong>, millisecond/second updates, written in C</li><li><strong>Only</strong> ncurses as a <strong>dependency</strong></li><li><strong>Nearly all</strong> web log <strong>formats</strong> (Apache, Nginx, Amazon S3, Elastic Load Balancing, CloudFront, etc)</li><li>Simply set the log format and run it against your log</li><li>Beautiful terminal and bootstrap dashboards (Tailor GoAccess to suit your own color taste/schemes)</li><li>and of course, <a href="http://valgrind.org/">Valgrind</a> tested.</li></ul>



<h2>Installing GoAccess on Ubuntu 20.04 / Debian 10</h2>



<p>GoAccess is available in the official Ubuntu repositories, so the installation is quite simple but it is convenient to have the latest version available. So, you have to add the GoAccess repository.</p>



<p>To do this, open a terminal and execute the following commands:</p>



<pre class="wp-block-preformatted">echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/goaccess.list<br>wget -O - https://deb.goaccess.io/gnugpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/goaccess.gpg add -</pre>



<p>Now refresh the APT cache:</p>



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



<p>And performs the installation running:</p>



<pre class="wp-block-preformatted">sudo apt install goaccess
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following additional packages will be installed:
   libmaxminddb0 libncursesw5 libtinfo5
 Suggested packages:
   mmdb-bin
 Recommended packages:
   libgpm2
 The following NEW packages will be installed:
   goaccess libmaxminddb0 libncursesw5 libtinfo5
 0 upgraded, 4 newly installed, 0 to remove and 28 not upgraded.
 Need to get 833 kB of archives.
 After this operation, 2,025 kB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>If you want, you ca check the installed version:</p>



<pre class="wp-block-preformatted">goaccess --version
GoAccess - 1.4.6.
 For more details visit: https://goaccess.io/
 Copyright (C) 2009-2020 by Gerardo Orellana
And so you can get GoAccess, now let's use it a little.</pre>



<h2>Using GoAccess on Ubuntu 20.04 / Debian 10</h2>



<p>The first thing you can do is check the help that the terminal gives us, for that you can run:</p>



<pre class="wp-block-preformatted">goaccess --help</pre>



<p>On the other hand, the most basic way to use goaccess is simply by specifying a log file.</p>



<pre class="wp-block-preformatted">goaccess /var/log/apache2/access.log</pre>



<p>Or you can select the log of your <a href="https://www.osradar.com/configure-virtual-hosts-lighttpd/" target="_blank" rel="noreferrer noopener">Virtualhost</a>.</p>



<p>There you will be shown a screen in the terminal where you can choose the log output format.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="573" height="386" src="https://www.osradar.com/wp-content/uploads/2020/10/1-14.png" alt="1.- Using GoAccess on Ubuntu 20.04 / Debian 10" class="wp-image-24807" srcset="https://www.osradar.com/wp-content/uploads/2020/10/1-14.png 573w, https://www.osradar.com/wp-content/uploads/2020/10/1-14-300x202.png 300w" sizes="(max-width: 573px) 100vw, 573px" /><figcaption>1.- Using GoAccess on Ubuntu 20.04 / Debian 10</figcaption></figure>



<p>In my case, I have chosen the third option (CLF).</p>



<p>And immediately it will start the analysis.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="536" src="https://www.osradar.com/wp-content/uploads/2020/10/2-14-1024x536.png" alt="2.- Log view on GoAccess" class="wp-image-24808" srcset="https://www.osradar.com/wp-content/uploads/2020/10/2-14-1024x536.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/2-14-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/2-14-768x402.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/2-14-696x365.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/2-14-1068x559.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/2-14.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Log view on GoAccess</figcaption></figure>



<p><strong>Note: I am working with a home test server. Therefore, there is not so much activity in the log.</strong></p>



<p>But you can also specify a log format to make it work with, for example, squid. Although we recommend that you read the <a href="https://goaccess.io/man" target="_blank" rel="noreferrer noopener">official documentation</a></p>



<p>A very interesting option is to display it directly on your web browser. I think this is the best possible option.</p>



<pre class="wp-block-preformatted">sudo goaccess /var/log/apache2/access.log --log-format=COMBINED -a -o /var/www/html/file.html</pre>



<p>And <strong>this will generate a file that you can open from the browser</strong>. Remember to modify the name of the output file.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/10/3-12-1024x506.png" alt="3.- GoAccess html log view" class="wp-image-24809" srcset="https://www.osradar.com/wp-content/uploads/2020/10/3-12-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/3-12-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/3-12-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/3-12-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/3-12-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/10/3-12.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- GoAccess html log view</figcaption></figure>



<p>And this is the basic use of GoAccess as we see is a basic but very useful tool.</p>



<h2>Conclusion</h2>



<p>Having a program that can analyze logs graphically and interactively is an advantage for all of us who work on Linux. That&#8217;s why today we wanted to show you GoAccess.</p>



<p>So, share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram channel</a> and our <a href="https://www.facebook.com/osradar" target="_blank" rel="noreferrer noopener">Facebook page</a>. Also, buy us a coffee 😉</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-goaccess-ubuntu-debian/">Install GoAccess on Ubuntu 20.04 / Debian 10?</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-goaccess-ubuntu-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Apache Spark on Debian 10</title>
		<link>https://www.osradar.com/install-apache-spark-debian-10/</link>
					<comments>https://www.osradar.com/install-apache-spark-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 02 Mar 2021 09:49:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[spark]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28812</guid>

					<description><![CDATA[<p>Hello, folks. Many companies are looking at Apache Spark as a component that can serve to somehow not depend so much on Elasticsearch. That’s why in this post, I’ll show you how to install Apache Spark on Debian 10. According to the project website: Apache Spark is a unified analytics engine for large-scale data processing. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-spark-debian-10/">How to install Apache Spark on Debian 10</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, folks. Many companies are looking at Apache Spark as a component that can serve to somehow not depend so much on Elasticsearch. That’s why in this post, I’ll show you how to install Apache Spark on Debian 10.</p>



<p>According to <a href="https://spark.apache.org/">the project website</a>:</p>



<blockquote class="wp-block-quote"><p>Apache Spark is a unified analytics engine for large-scale data processing.</p></blockquote>



<p>Also, we can count on its maintenance and evolution to be carried out by prestigious working groups, and there will be great flexibility and interconnection with other Apache modules such as Hadoop, Hive, or Kafka.</p>



<p>Spark is used by a wide range of organizations to process large datasets. In fact, Since 2009, more than 1200 developers have contributed to Spark!</p>



<p><strong>Learning Apache Spark is easy</strong> whether you come from a Java, Scala, Python, R, or SQL background.</p>



<h2 id="install-apache-spark-on-debian-10"><a href="#install-apache-spark-on-debian-10" name="install-apache-spark-on-debian-10"></a>Install Apache Spark on Debian 10</h2>



<p>The installation of Apache Spark is quite simple and easier than you might think.</p>



<h3 id="install-some-required-packages"><a href="#install-some-required-packages" name="install-some-required-packages"></a>Install some required packages</h3>



<p>So, connect via <a href="https://www.osradar.com/manages-ssh-connections-from-windows-10-with-putty/" target="_blank" rel="noreferrer noopener">SSH</a> to your server or open a terminal. To make sure there are no problems, update the distribution completely.</p>



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



<p>After that, install Java on Debian 10.</p>



<pre class="wp-block-preformatted">sudo apt install default-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ca-certificates-java default-jdk-headless default-jre default-jre-headless fontconfig-config fonts-dejavu-core java-common libasound2 libasound2-data
  libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libfontconfig1
  libgif7 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libjpeg62-turbo liblcms2-2 libllvm7 libnspr4 libnss3 libpciaccess0 libpcsclite1
  libsensors-config libsensors5 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcb1 libxdamage1
  libxdmcp6 libxext6 libxfixes3 libxi6 libxrender1 libxshmfence1 libxtst6 libxxf86vm1 openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre openjdk-11-jre-headless
  x11-common
Suggested packages:
  libasound2-plugins alsa-utils cups-common liblcms2-utils pciutils pcscd lm-sensors openjdk-11-demo openjdk-11-source visualvm libnss-mdns fonts-dejavu-extra
  fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
Recommended packages:
  libxt-dev libatk-wrapper-java-jni fonts-dejavu-extra
The following NEW packages will be installed:
  ca-certificates-java default-jdk default-jdk-headless default-jre default-jre-headless fontconfig-config fonts-dejavu-core java-common libasound2 libasound2-data
  libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libfontconfig1
  libgif7 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libjpeg62-turbo liblcms2-2 libllvm7 libnspr4 libnss3 libpciaccess0 libpcsclite1
  libsensors-config libsensors5 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxcb1 libxdamage1
  libxdmcp6 libxext6 libxfixes3 libxi6 libxrender1 libxshmfence1 libxtst6 libxxf86vm1 openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre openjdk-11-jre-headless
  x11-common
0 upgraded, 61 newly installed, 0 to remove and 0 not upgraded.
Need to get 294 MB of archives.
After this operation, 642 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>And verify that everything went well by displaying the installed version.</p>



<pre class="wp-block-preformatted">java --version
openjdk 11.0.9.1 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)</pre>



<p>With Java running correctly, it’s time to install the Scala package on Debian 10.</p>



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



<p>Check the version of Scala to make sure it was installed correctly.</p>



<pre class="wp-block-preformatted">scala -version
Scala code runner version 2.11.12 -- Copyright 2002-2017, LAMP/EPFL</pre>



<p>With this, we are done with the Apache Spark dependencies.</p>



<h3 id="download-and-install-apache-spark-on-debian-10"><a href="#download-and-install-apache-spark-on-debian-10" name="download-and-install-apache-spark-on-debian-10"></a>Download and install Apache Spark on Debian 10</h3>



<p>Now we can download the Apache Spark binary.</p>



<p>So, navigate to the /tmp/ folder and from there with the wget command to perform the download</p>



<pre class="wp-block-preformatted">cd /tmp
wget -c https://archive.apache.org/dist/spark/spark-3.0.2/spark-3.0.2-bin-hadoop2.7.tgz</pre>



<p>then decompress it and move it to a safe location such as <code>/opt/.</code></p>



<pre class="wp-block-preformatted">tar -xvzf spark-3.0.2-bin-hadoop2.7.tgz
sudo mv spark-3.0.2-bin-hadoop2.7/ /opt/spark</pre>



<p>To use Apache Spark seamlessly from any location at the prompt, you need to add this path to the <code>.bashrc</code> file</p>



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



<p>At the end of the file, add the following lines:</p>



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



<p>Save the changes and close the editor. To apply the changes run:</p>



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



<p>Now start Apache Spark with these commands, one of which is the master of the cluster</p>



<pre class="wp-block-preformatted">start-master.sh
starting org.apache.spark.deploy.master.Master, logging to /opt/spark/logs/spark-angelo-org.apache.spark.deploy.master.Master-1-osradar.out</pre>



<p>And the slave, which in this case will be the same localhost, but you can replace it with the IP address or Domain of the computer.</p>



<pre class="wp-block-preformatted">start-slave.sh spark://localhost:7077
starting org.apache.spark.deploy.worker.Worker, logging to /opt/spark/logs/spark-angelo-org.apache.spark.deploy.worker.Worker-1-osradar.out</pre>



<p>Now you can open a web browser and access the web interface via <code>http://your-server:8080</code>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/02/1-9-1024x502.png" alt="1.- Apache Spark on Debian 10" class="wp-image-28843" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-9-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/1-9-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-9-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-9-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/1-9-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/1-9.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Apache Spark on Debian 10</figcaption></figure>



<p>So, Apache Spark is working properly…</p>



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



<p>Apache Spark is easy to install on Debian 10 but so powerful that you can hardly believe it. With this tool, you can do a lot of things with a lot of data.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-spark-debian-10/">How to install Apache Spark on Debian 10</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-apache-spark-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Graylog On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-graylog-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-graylog-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 05 Oct 2020 09:58:50 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[graylog]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=23209</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install graylog on Ubuntu 20.04. Graylog provides the logs about the system and manage the system logs centrally. It contains three parts as Graylog server, Elasticsearch and the MongoDB. Simply follow the below steps for an easy and optimal installation. Step 1: Update Your System First [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-graylog-on-ubuntu-20-04/">How To Install Graylog On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that how to install graylog on Ubuntu 20.04. Graylog provides the logs about the system and manage the system logs centrally. It contains three parts as Graylog server, Elasticsearch and the MongoDB. Simply follow the below steps for an easy and optimal installation.</p>



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



<p>First of all as usual we do, update your system to have the latest packages installed.</p>



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



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



<p>As Java is required for the graylog server so install it by visiting the below tutorial and proceed further.</p>



<p><a href="https://www.osradar.com/how-to-install-java-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">How To Install Java On Ubuntu 20.04</a></p>



<p>Install the other required packages by typing</p>



<pre class="wp-block-verse">sudo apt install -y apt-transport-https openjdk-11-jre-headless uuid-runtime pwgen curl dirmngr</pre>



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



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



<p>Output:</p>



<pre class="wp-block-verse">sabi@sabi20:~$ java --version
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)</pre>



<h3>Step 3: Install Elasticsearch on Ubuntu 20.04</h3>



<p>Now, install the elasticsearch as it provides the facility of storing the logs coming from the external sources so it is very useful to use with graylog. Install it by following the below steps.</p>



<p>Hit the below command to download and install the GPG signing key.</p>



<pre class="wp-block-verse">wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -</pre>



<p>Then type the below command to add the Elasticsearch repository on your system.</p>



<pre class="wp-block-verse">echo "deb https://artifacts.elastic.co/packages/oss-6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list</pre>



<p>Finally type the following command to install the Elasticsearch on Ubuntu 20.04.</p>



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



<h3>Step 4: Configure Elasticsearch with Graylog Server on Ubuntu 20.04</h3>



<p>To configure the elasticsearch with graylog, edit the <strong>/etc/elasticsearch/elasticsearch.yml</strong> file and set up the cluster name as graylog.</p>



<pre class="wp-block-verse">cluster.name: graylog</pre>



<p>Then add or uncomment the following line.</p>



<pre class="wp-block-verse">action.auto_create_index: false</pre>



<p>After it reload the Elasticsearch services to take effect of updated configs.</p>



<pre class="wp-block-verse">sudo systemctl daemon-reload
sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch</pre>



<p>It&#8217;ll take maximum 1 minutes to start the services.</p>



<p>Elasticsearch listen to the port 9200. You can use the curl command to verify it.</p>



<pre class="wp-block-verse">curl -X GET http://localhost:9200</pre>



<p>Output:</p>



<p>You&#8217;ll see the similar result. Make sure that the cluster name is graylog.</p>



<p></p>



<h3>Step 5:Install MongoDB on Ubuntu 20.04</h3>



<p>Install the MongoDB v3.6 by running the below commands in your terminal.</p>



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



<p>And start the MogoDB services.</p>



<pre class="wp-block-verse">sudo systemctl start mongodb
sudo systemctl enable mongodb</pre>



<h3>Step 6: Install Graylog Server on Ubuntu 20.04</h3>



<p>As graylog gets data from the elasticsearch and show it on its web interface so it&#8217;s easy to read and go through.</p>



<p>Hit the below commands to add the repository of graylog and install it in Ubuntu 20.04.</p>



<pre class="wp-block-verse">wget https://packages.graylog2.org/repo/packages/graylog-3.3-repository_latest.deb<br>sudo dpkg -i graylog-3.3-repository_latest.deb<br>sudo apt update<br>sudo apt install -y graylog-server</pre>



<p>As for security reasons, enable the secret to secure the user passwords. To do this hit the below command in your terminal.</p>



<pre class="wp-block-verse">pwgen -N 1 -s 96</pre>



<p>Result:</p>



<pre class="wp-block-verse">sabi@sabi20:~$ pwgen -N 1 -s 96
LmnaUmCKUmBgA2mwYpPNoC9FQP8YVR1ijerL00W00oB3scJrwk4CCpIQo3uI2llBlqug5v13UVIx5kXSrvExZ28gGRZlRulC</pre>



<p>Now, edit the server.conf file and paste the above secret as seen below:</p>



<pre class="wp-block-verse">sudo nano /etc/graylog/server/server.conf
password_secret = LmnaUmCKUmBgA2mwYpPNoC9FQP8YVR1ijerL00W00oB3scJrwk4CCpIQo3uI2llBlqug5v13UVIx5kXSrvExZ28gGRZlRulC</pre>



<p>Then generate a hash password for the admin user of graylog that can be used to log in to web interface.</p>



<pre class="wp-block-verse">echo -n Your_Password | sha256sum</pre>



<p>Replace <strong>Your_Password</strong> with your desired password.</p>



<p>Result:</p>



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



<p>Now, edit the server.conf file and paste the hash password generated above.</p>



<pre class="wp-block-verse">root_password_sha2 = 99e87ec1196275a0c4ef6e5dd1cabd34f0c9a6ed680f24914b773295babd5da2 -</pre>



<h3>Step 7: Setup Graylog Web Interface on Ubuntu 20.04</h3>



<p>To use the graylog web interface, enable it by editing server.conf file.</p>



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



<p>And replace the below line with your system IP.</p>



<pre class="wp-block-verse">http_bind_address = 192.168.0.10:9000</pre>



<p>Finally start the graylog services by running below commands.</p>



<pre class="wp-block-verse">sudo systemctl daemon-reload<br>sudo systemctl start graylog-server<br>sudo systemctl enable graylog-server</pre>



<p>If you got any error during the installation, you can follow up the graylog logs at startup by typing.</p>



<pre class="wp-block-verse">sudo tail -f /var/log/graylog-server/server.log</pre>



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



<pre class="wp-block-verse">2020-09-29T16:03:06.326-04:00 INFO [ServerBootstrap] Graylog server up and running.</pre>



<h3>Step 8: Access Graylog on Ubuntu 20.04</h3>



<p>Type the IP:9000 in your browser to access graylog web interface.</p>



<p>Provide the  credentials (username=&#8221;admin&#8221; and password=&#8221;root_password_sha2&#8243; created earlier) to log in to the dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="610" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/1-1024x610.jpg" alt="" class="wp-image-24210" srcset="https://www.osradar.com/wp-content/uploads/2020/10/1-1024x610.jpg 1024w, https://www.osradar.com/wp-content/uploads/2020/10/1-300x179.jpg 300w, https://www.osradar.com/wp-content/uploads/2020/10/1-768x457.jpg 768w, https://www.osradar.com/wp-content/uploads/2020/10/1-696x414.jpg 696w, https://www.osradar.com/wp-content/uploads/2020/10/1.jpg 1043w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>After the logged in, you&#8217;ll see the welcome page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="697" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/2-1024x697.png" alt="" class="wp-image-24211" srcset="https://www.osradar.com/wp-content/uploads/2020/10/2-1024x697.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/2-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/2-768x523.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/2-696x474.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/2.png 1048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then, navigate to the <strong>System&gt;&gt;Overview</strong> to see the status of graylog server.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1041" height="704" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/10/3-1024x693.png" alt="" class="wp-image-24212" srcset="https://www.osradar.com/wp-content/uploads/2020/10/3-1024x693.png 1024w, https://www.osradar.com/wp-content/uploads/2020/10/3-300x203.png 300w, https://www.osradar.com/wp-content/uploads/2020/10/3-768x519.png 768w, https://www.osradar.com/wp-content/uploads/2020/10/3-696x471.png 696w, https://www.osradar.com/wp-content/uploads/2020/10/3.png 1041w" sizes="(max-width: 1041px) 100vw, 1041px" /></figure>



<p>So, this is how you can install Graylog on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-graylog-on-ubuntu-20-04/">How To Install Graylog 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-graylog-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Pip on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-pip-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-pip-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 01 May 2020 14:40:35 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How To Install Pip on Ubuntu 20.04]]></category>
		<category><![CDATA[how to install pip3 on linux]]></category>
		<category><![CDATA[pip3 install guide]]></category>
		<category><![CDATA[pip3 ubuntu 20.04 installation]]></category>
		<category><![CDATA[Ubuntu 20.04 tutorials]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=19910</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install Pip on Ubuntu 20.4. Pip is used like apt to get packages from Python Package Index. So as you get packages by apt package manager as the same way you can get from pip but for Python. So, in this tutorial you&#8217;ll learn the steps [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-pip-on-ubuntu-20-04/">How To Install Pip 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=19910">how to install Pip on Ubuntu 20.4</a>. Pip is used like apt to get packages from Python Package Index. So as you get packages by apt package manager as the same way you can get from pip but for Python. So, in this tutorial you&#8217;ll learn the steps to cover the installation of pip on Ubuntu 20.04.</p>



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



<p>First of all before going to install any package, update your system with the command.</p>



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



<h3><strong>Step 2: Install Pip for Python3 on Ubuntu 20.04</strong></h3>



<p>As Python3 is already installed on Ubuntu 20.04, to make sure verify the version by using the following command.</p>



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



<p>Output:</p>



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



<pre class="wp-block-verse">sabi@Ubuntu:~$ python3 --version<br> Python 3.8.2</pre>



<p>After confirming that Python3 is present on your Ubuntu 20.04, move towards the installation of pip package for installing Python3 pip packages. Type the given command into your terminal.</p>



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



<p>Output:</p>



<pre class="wp-block-verse">Setting up python3-pip (20.0.2-5ubuntu1) ... Setting up libc6-dev:amd64 (2.31-0ubuntu9) ... Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1) ... Setting up libstdc++-9-dev:amd64 (9.3.0-10ubuntu2) ... Setting up binutils (2.34-6ubuntu1) ... Setting up dpkg-dev (1.19.7ubuntu3) ... Setting up libexpat1-dev:amd64 (2.2.9-1build1) ... Setting up libpython3.8-dev:amd64 (3.8.2-1ubuntu1.1) ... Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu1) ... Setting up gcc-9 (9.3.0-10ubuntu2) ... Setting up libpython3-dev:amd64 (3.8.2-0ubuntu2) ... Setting up gcc (4:9.3.0-1ubuntu2) ... Setting up g++-9 (9.3.0-10ubuntu2) ... Setting up python3.8-dev (3.8.2-1ubuntu1.1) ... Setting up g++ (4:9.3.0-1ubuntu2) ... update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) i n auto mode Setting up build-essential (12.8ubuntu1) ... Setting up python3-dev (3.8.2-0ubuntu2) ... Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for libc-bin (2.31-0ubuntu9) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu2) ... </pre>



<p>After the installation completed, verify the version of pip using the following command.</p>



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



<p>Output:</p>



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



<pre class="wp-block-verse">sabi@Ubuntu:~$ pip3 --version<br>pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)</pre>



<p>So, as we&#8217;ve installed the pip successfully now we&#8217;ll learn that how we can use pip to get Python packages on Ubuntu 20.04.</p>



<h3><strong>Step 3: How To Use Pip on Ubuntu 20.04</strong></h3>



<p>Below is the format you can use in order to install the package with the help of Pip command.</p>



<pre class="wp-block-verse">pip3 install <strong>package-name</strong></pre>



<p>In this case I&#8217;m going to install IPython on my Ubuntu 20.04 system so the command will be like this.</p>



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



<p>Successful output;</p>



<pre class="wp-block-verse">Successfully built backcall<br> Installing collected packages: decorator, pygments, parso, jedi, pickleshare, wcwidth, prompt-toolkit, ipython-genutils, traitlets, backcall, IPython<br>   WARNING: The script pygmentize is installed in '/home/sabi/.local/bin' which is not on PATH.<br>   Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.<br>   WARNING: The scripts iptest, iptest3, ipython and ipython3 are installed in '/home/sabi/.local/bin' which is not on PATH.<br>   Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.<br> Successfully installed IPython-7.13.0 backcall-0.1.0 decorator-4.4.2 ipython-genutils-0.2.0 jedi-0.17.0 parso-0.7.0 pickleshare-0.7.5 prompt-toolkit-3.0.5 pygments-2.6.1 traitlets-4.3.3 wcwidth-0.1.9</pre>



<p>You can mention the version name if you want to install the specific version of the packages with the help of following command.</p>



<pre class="wp-block-verse">pip3 install IPython==6.0</pre>



<h3><strong>Step 4: Find installed Pip Packages</strong></h3>



<p>Simply fire the follwoing command to get list of the installed packages using pip.</p>



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



<p>Result:</p>



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



<pre class="wp-block-verse">abi@Ubuntu:~$ pip3 list<br> Package                Version      <br> <br> apturl                 0.5.2        <br> backcall               0.1.0        <br> blinker                1.4          <br> Brlapi                 0.7.0        <br> certifi                2019.11.28   <br> chardet                3.0.4        <br> command-not-found      0.3          <br> cryptography           2.8          <br> cupshelpers            1.0          <br> dbus-python            1.2.16       <br> decorator              4.4.2        <br> defer                  1.0.6        <br> distro                 1.4.0        <br> distro-info            0.23ubuntu1  <br> entrypoints            0.3          <br> httplib2               0.14.0                 </pre>



<h3><b>Step 5: How to Upgrade Packages with Pip</b></h3>



<p>For upgrading of the installed package run the following command.</p>



<pre class="wp-block-verse">pip3 install --upgrade IPython</pre>



<p>So, it will upgrade the package to latest one.</p>



<h3><strong>Step 6: How To Remove Packages using Pip</strong></h3>



<p>In order to remove any package installed with pip, hit the given command in your Ubuntu 20.04 terminal.</p>



<pre class="wp-block-verse">pip3 uninstall IPython</pre>



<h3><strong>Step 7 How To Search Packages with Pip</strong></h3>



<p>With the help of Pip you can search the different packages for your convenience. It provides you the available packages from the PyPI. Run the command in similar way to search for packages.</p>



<pre class="wp-block-verse">pip3 search zabbix</pre>



<p>Output:</p>



<pre class="wp-block-verse">abi@Ubuntu:~$ pip3 search zabbix<br> zabbix (1.2.4)                            - Python module to work<br>                                             with zabbix.<br> zabbix-tuner (0.2)                        - Zabbix Tuner<br> zabbix-api (0.5.4)                        - Zabbix API<br> zabbix-multisender (0.4.7)                - Zabbix MiltiSender<br> zabbix-client (0.1.2)                     - Zabbix API wrapper<br> zabbix-elasticsearch (0.4.0)              - Zabbix Monitoring for<br>                                             Elasticsearch<br> flask-zabbix (0.1.1)                      - Zabbix API wrapper<br> dbaas-zabbix (0.7.2)                      - A Zabbix Integration for<br>                                             DBaaS.<br> waldur-zabbix (0.8.4)                     - Waldur Zabbix adds<br>                                             support for Zabbix<br>                                             monitoring server<br>                                             management<br> nodeconductor-zabbix (0.6.0)              - NodeConductor Zabbix adds<br>                                             support for Zabbix</pre>



<p>So, this is how you can install and use Pip on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-pip-on-ubuntu-20-04/">How To Install Pip 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-pip-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Icinga 2 on Centos / RHEL 8</title>
		<link>https://www.osradar.com/how-to-install-icinga-2-on-centos-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-icinga-2-on-centos-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 07 Nov 2019 14:52:32 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Icinga2]]></category>
		<category><![CDATA[RHEL8]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15058</guid>

					<description><![CDATA[<p>What is Icinga 2? It is a network monitoring tool that helps you to monitor your network status. Icinga gets data and after various performance give you status over Internet anywhere. So, in this lecture we will cover the installation of Icinga 2. First of all make sure you&#8217;ve root privileges. $ sudo su &#8211; [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-icinga-2-on-centos-rhel-8/">How to Install Icinga 2 on Centos / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3><strong>What is Icinga 2?</strong></h3>



<p>It is a network monitoring tool that helps you to monitor your network status.<br> Icinga gets data and after various performance give you status over Internet anywhere.</p>



<p> So, in this lecture we will cover the installation of Icinga 2.</p>



<p> First of all make sure you&#8217;ve root privileges.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> $ sudo su &#8211;</p>



<p> As it depends upon other packages. So, configure EPEL repository on Centos 8 / RHEL 8.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm</p>



<p> Also enable the optional &amp; extra repositories.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> subscription-manager repos &#8211;enable rhel-8-server-optional-rpms<br> subscription-manager repos &#8211;enable rhel-8-server-extras-rpms</p>



<h3><strong>Adding Icinga 2 Repository</strong></h3>



<p> Now, add Icinga 2 repository.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> rpm &#8211;import https://package.icinga.com/icinga.key<br> yum install https://package.icinga.com/epel/icinga-rpm-release-8-latest.noarch.rpm</p>



<h3> <strong>Installing Icinga 2</strong></h3>



<p class="has-background has-cyan-bluish-gray-background-color">  yum -y install icinga2</p>



<p> Start and enable Icinga Services.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> systemctl start icinga2</p>



<p class="has-background has-cyan-bluish-gray-background-color">systemctl enable icinga2</p>



<h3><strong>SELinux</strong></h3>



<p> Make sure you&#8217;ve installed SELinux.</p>



<p> Now install the given package for targeted policy.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> yum install -y icinga2-selinux</p>



<p> Plugin is necessary for monitoring. So install Nagios Plugin.</p>



<h3><strong>Installing Nagios Plugin</strong></h3>



<p class="has-background has-cyan-bluish-gray-background-color"> yum -y install nagios-plugins-all</p>



<h3><strong>Configuring DB IDO MySQL</strong></h3>



<p> DB IDO helps to export all the configuration &amp; status information to database. So, we must have DB server.</p>



<p> If you&#8217;ve already installed then skip the below step.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> yum -y install mariadb-server mariadb</p>



<p> Now, start and enable MariaDB services.</p>



<p class="has-background has-cyan-bluish-gray-background-color">systemctl start mariadb </p>



<p class="has-background has-cyan-bluish-gray-background-color">systemctl enable mariadb</p>



<p> Make sure to Secure your MariaDB installation.</p>



<h3><strong>Installing IDO modules for MySQL</strong></h3>



<p> Now install IDO modules for MySQL</p>



<p class="has-background has-cyan-bluish-gray-background-color"> yum -y install icinga2-ido-mysql</p>



<h3><strong>Creating Database for Icinga2</strong></h3>



<p> Now create a Database after logging as a root user. It will help you to set up web interface.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> mysql -u -root -p</p>



<p class="has-background has-cyan-bluish-gray-background-color"> CREATE DATABASE icinga2;</p>



<p class="has-background has-cyan-bluish-gray-background-color"> GRANT ALL PRIVILEGES ON icinga2.* to icinga2@localhost IDENTIFIED BY &#8216;icinga123&#8217;;<br> FLUSH PRIVILEGES;<br> quit</p>



<p> Now import the Icinga 2 IDO schema by running this command</p>



<p class="has-background has-cyan-bluish-gray-background-color"> mysql -u -root -p icinga2 &lt; /usr/share/icinga2-ido-mysql/schema/mysql.sql</p>



<h3><strong>Enabling IDO MySQL Modules</strong></h3>



<p> Now, Enable IDO MYSQL modules.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> icinga2 feature list</p>



<h4><strong> Output:</strong></h4>



<p class="has-background has-cyan-bluish-gray-background-color"><strong>Disabled features:</strong> api command compatlog elasticsearch gelf graphite influxdb livestatus opentsdb perfdata statusdata syslog<br><strong> Enabled features:</strong> checker ido-mysql mainlog notification</p>



<p> You can see that<strong> ido-mysql</strong> is already enabled.<br> If not enabled you can do it by this command.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> icinga2 feature enable ido-mysql</p>



<p> For smooth performance, you can also enable <strong>command</strong> feature.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> icinga2 feature enable command</p>



<h3> <strong>Configuration of IDO DB MySQL module</strong></h3>



<p> After enabling IDO module icinga2 changes the file path to /etc/icinga2/features-enabled/ido-mysql.conf.<br> You can set up DB manually.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> vi /etc/icinga2/features-enabled/ido-mysql.conf</p>



<p> Provide your details according to your own requirements.<br> Now restart icinga2 services.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> systemctl restart icinga2</p>



<p> Make sure icinga2 is running.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> systemctl status icinga2.</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="930" height="381" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/icinga2-status.png" alt="" class="wp-image-15368" srcset="https://www.osradar.com/wp-content/uploads/2019/11/icinga2-status.png 930w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-status-300x123.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-status-768x315.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/icinga2-status-696x285.png 696w" sizes="(max-width: 930px) 100vw, 930px" /></figure></div>



<h3><strong>Firewall</strong></h3>



<p> If firewall blocks you, give permissions to disable it.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> firewall-cmd &#8211;permanent &#8211;add-port=5665/tcp<br> firewall-cmd &#8211;reload You&#8217;ve all done we will cover the web configuration of Icinga 2 in next tutorial.<br> READ: <a href="https://www.osradar.com/?p=15365"><a href="https://www.osradar.com/how-to-setup-icinga-2-web-interface-on-centos-rhel-8/">How to Setup Icinga 2 Web interface on Centos / RHEL </a>8.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-icinga-2-on-centos-rhel-8/">How to Install Icinga 2 on Centos / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-icinga-2-on-centos-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install ELK Stack on Centos 8?</title>
		<link>https://www.osradar.com/how-to-install-elk-stack-on-centos-8/</link>
					<comments>https://www.osradar.com/how-to-install-elk-stack-on-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Tue, 22 Oct 2019 02:17:25 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Elasticsearch]]></category>
		<category><![CDATA[ELK]]></category>
		<category><![CDATA[Kibana]]></category>
		<category><![CDATA[Logstash]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14775</guid>

					<description><![CDATA[<p>What is ELK?&#160; ELK is the group of three open source projects in Linux.&#160; Elastic Search, Logstash and Kibana respectively. Before going into depth let&#8217;s have a short definition about these: Elasticsearch: This is an open source distribution, reliable, scalable, easy to use and flexible Lucene library based search engine.&#160;It provides multitenant-capable text with an [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-elk-stack-on-centos-8/">How to Install ELK Stack on Centos 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3><strong> What is ELK?&nbsp;</strong></h3>



<p>ELK is the group of three open source projects in Linux.&nbsp; Elastic Search, Logstash and Kibana respectively. Before going into depth let&#8217;s have a short definition about these:</p>



<h3><strong>Elasticsearch: </strong></h3>



<p>This is an open source distribution, reliable, scalable, easy to use and flexible Lucene library based search engine.&nbsp;It provides multitenant-capable text with an HTTP web interface.</p>



<h3><strong>Logstash: </strong></h3>



<p>It is an open source tool used to store data, collect information, and store it for further use. Kibana is used to retrieve the logs stored by Logstash.</p>



<h3><strong>Kibana:</strong></h3>



<p> Let&#8217;s you transform your data into your own format or specific shape like charts and graphs in Elasticsearch.&nbsp;</p>



<p>So, in this article we will cover the following :</p>



<ul><li><strong>How to Install Java on Centos 8</strong></li></ul>



<ul><li><strong>How to add ELK repository to Centos 8</strong></li></ul>



<ul><li><strong>How to install and Configure Elasticsearch&nbsp;</strong></li></ul>



<ul><li><strong>How to instaall and configure Kibana on Centos 8</strong></li></ul>



<ul><li><strong>How to install and configure Logstash on Centos 8</strong></li></ul>



<ul><li><strong>How to install other ELK tools(Optional)</strong></li></ul>



<h3><strong>Step 1: Install Java on Centos 8</strong></h3>



<p>Before installing Elasticsearch we must have java installed on our system as Elasticsearch depends on java.&nbsp; So install it before further proceeding.</p>



<p><a href="https://www.osradar.com/install-java-on-rhel-8-centos-8-oracle-linux-8/">How to install Java 11 (OpenJdk 11 on RHEL / Centos 8</a></p>



<h3><strong>Step 2: Add ELK repository to Centos 8</strong></h3>



<p>After installing java, add ELK repository&nbsp; to Centos 8 and run the following command as Sudo.</p>



<h3><strong>For</strong> <strong>Elasticsearch 7.x&nbsp;</strong></h3>



<p class="has-background has-cyan-bluish-gray-background-color">cat &lt;&lt;EOF | sudo tee /etc/yum.repos.d/elasticsearch.repo</p>



<p class="has-background has-cyan-bluish-gray-background-color">[elasticsearch -7.x]</p>



<p class="has-background has-cyan-bluish-gray-background-color">name=Elasticsearch repository for 7.x packages</p>



<p class="has-background has-cyan-bluish-gray-background-color">baseurl=https://artifacts.elasticsearch.co/packages/7.x/yum</p>



<p class="has-background has-cyan-bluish-gray-background-color">gpgcheck=1</p>



<p class="has-background has-cyan-bluish-gray-background-color">gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticse</p>



<p class="has-background has-cyan-bluish-gray-background-color">enabled=1</p>



<p class="has-background has-cyan-bluish-gray-background-color">autorefresh=1</p>



<p class="has-background has-cyan-bluish-gray-background-color">type=rpm-md</p>



<p class="has-background has-cyan-bluish-gray-background-color">EOF</p>



<h3><strong> For Elasticsearch 6.x </strong></h3>



<p class="has-background has-cyan-bluish-gray-background-color">cat &lt;&lt;EOF | sudo tee /etc/yum.repos.d/elasticsearch.repo</p>



<p class="has-background has-cyan-bluish-gray-background-color">[elasticsearch -6.x]</p>



<p class="has-background has-cyan-bluish-gray-background-color">name=Elasticsearch repository for 6.x packages</p>



<p class="has-background has-cyan-bluish-gray-background-color">baseurl=https://artifacts.elasticsearch.co/packages/6.x/yum</p>



<p class="has-background has-cyan-bluish-gray-background-color">gpgcheck=1</p>



<p class="has-background has-cyan-bluish-gray-background-color">gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticse</p>



<p class="has-background has-cyan-bluish-gray-background-color">enabled=1</p>



<p class="has-background has-cyan-bluish-gray-background-color">autorefresh=1</p>



<p class="has-background has-cyan-bluish-gray-background-color">type=rpm-md</p>



<p class="has-background has-cyan-bluish-gray-background-color">EOF</p>



<h3><strong>For</strong> <strong>Elasticsearch 5.x</strong></h3>



<p class="has-background has-cyan-bluish-gray-background-color">cat &lt;&lt;EOF | sudo tee /etc/yum.repos.d/elasticsearch.repo</p>



<p class="has-background has-cyan-bluish-gray-background-color">[elasticsearch -5.x]</p>



<p class="has-background has-cyan-bluish-gray-background-color">name=Elasticsearch repository for 5.x packages</p>



<p class="has-background has-cyan-bluish-gray-background-color">baseurl=https://artifacts.elasticsearch.co/packages/5.x/yum</p>



<p class="has-background has-cyan-bluish-gray-background-color">gpgcheck=1</p>



<p class="has-background has-cyan-bluish-gray-background-color">gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticse</p>



<p class="has-background has-cyan-bluish-gray-background-color">enabled=1</p>



<p class="has-background has-cyan-bluish-gray-background-color">autorefresh=1</p>



<p class="has-background has-cyan-bluish-gray-background-color">type=rpm-md</p>



<p class="has-background has-cyan-bluish-gray-background-color">EOF</p>



<p>After doing so, import GPG key</p>



<p class="has-background has-cyan-bluish-gray-background-color">sudo rpm &#8211;import https://artifacts.elastic.co/GPG-KEY-elasticsearch</p>



<p>

Now,&nbsp; clear and update your YUM package index.&nbsp;

</p>



<p class="has-background has-cyan-bluish-gray-background-color">sudo yum clean all</p>



<p class="has-background has-cyan-bluish-gray-background-color">sudo yum makecache</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="780" height="563" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/elasticsearch-repo.png" alt="" class="wp-image-14787" srcset="https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-repo.png 780w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-repo-300x217.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-repo-768x554.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-repo-324x235.png 324w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-repo-696x502.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-repo-582x420.png 582w" sizes="(max-width: 780px) 100vw, 780px" /></figure></div>



<h3><strong>Step 3: Install and Configure Elasticsearch</strong></h3>



<p> As we have done with Elasticsearch repository and now it&#8217;s ready to use. Now make sure to run this command to install Elasticsearch.</p>



<p class="has-background has-cyan-bluish-gray-background-color">sudo yum -y install elasticsearch</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="799" height="588" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/elasticsearch-installed.png" alt="" class="wp-image-14816" srcset="https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-installed.png 799w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-installed-300x221.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-installed-768x565.png 768w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-installed-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-installed-696x512.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/elasticsearch-installed-571x420.png 571w" sizes="(max-width: 799px) 100vw, 799px" /></figure></div>



<p>Double-check that installation completed successfully.&nbsp;</p>



<p class="has-background has-cyan-bluish-gray-background-color">rpm -qi elasticsearch</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="734" height="503" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/query-es.png" alt="" class="wp-image-14817" srcset="https://www.osradar.com/wp-content/uploads/2019/10/query-es.png 734w, https://www.osradar.com/wp-content/uploads/2019/10/query-es-300x206.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/query-es-100x70.png 100w, https://www.osradar.com/wp-content/uploads/2019/10/query-es-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2019/10/query-es-696x477.png 696w, https://www.osradar.com/wp-content/uploads/2019/10/query-es-613x420.png 613w" sizes="(max-width: 734px) 100vw, 734px" /></figure></div>



<p>Set up the JVM options like memory limits and others according to your own needs. For this edit the following file:</p>



<p>Here we have set up maximum size of total heap space.</p>



<p class="has-background has-cyan-bluish-gray-background-color"> /etc/elasticsearch/jvm.options</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="716" height="111" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/heapsize.png" alt="" class="wp-image-14818" srcset="https://www.osradar.com/wp-content/uploads/2019/10/heapsize.png 716w, https://www.osradar.com/wp-content/uploads/2019/10/heapsize-300x47.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/heapsize-696x108.png 696w" sizes="(max-width: 716px) 100vw, 716px" /></figure></div>



<p>You can adjust according to your system requirements.&nbsp;</p>



<p>Now,&nbsp; start and enable the Elasticsearch services.</p>



<figure class="wp-block-image"><img loading="lazy" width="737" height="130" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/enable-elasticsearch-services.png" alt="" class="wp-image-14819" srcset="https://www.osradar.com/wp-content/uploads/2019/10/enable-elasticsearch-services.png 737w, https://www.osradar.com/wp-content/uploads/2019/10/enable-elasticsearch-services-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/enable-elasticsearch-services-696x123.png 696w" sizes="(max-width: 737px) 100vw, 737px" /></figure>



<p>Make sure these are properly working.&nbsp;</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="756" height="347" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/test-to-verify-elasticsearch.png" alt="" class="wp-image-14820" srcset="https://www.osradar.com/wp-content/uploads/2019/10/test-to-verify-elasticsearch.png 756w, https://www.osradar.com/wp-content/uploads/2019/10/test-to-verify-elasticsearch-300x138.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/test-to-verify-elasticsearch-696x319.png 696w" sizes="(max-width: 756px) 100vw, 756px" /></figure></div>



<p>Let&#8217;s create a test index.</p>



<p class="has-background has-cyan-bluish-gray-background-color">curl -X PUT &#8220;http://127.0.0.1:9200/mytest_index&#8221;</p>



<h3><strong>Step 4: Install / Configure Kibana on Centos 8</strong></h3>



<p>From added Elasticsearch repository download and install kibana.&nbsp;</p>



<p class="has-background has-cyan-bluish-gray-background-color">sudo yum -y install kibana</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="729" height="408" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/installed-kibana.png" alt="" class="wp-image-14823" srcset="https://www.osradar.com/wp-content/uploads/2019/10/installed-kibana.png 729w, https://www.osradar.com/wp-content/uploads/2019/10/installed-kibana-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/installed-kibana-696x390.png 696w" sizes="(max-width: 729px) 100vw, 729px" /></figure></div>



<p>Configure it after installation completed.&nbsp;</p>



<p class="has-background has-cyan-bluish-gray-background-color"><strong>sudo vim /etc/kibana/kibana.yml </strong><br> server.host: &#8220;<strong>0.0.0.0</strong>&#8220;<br> server.name: &#8220;<strong>kibana.example.com&#8221;</strong><br> elasticsearch.url: &#8220;<strong>http://localhost:9200</strong>&#8220;</p>



<p>Set up other settings to your own requirements and start kibana services.</p>



<p class="has-background has-cyan-bluish-gray-background-color">sudo systemctl enable &#8211;now kibana</p>



<p>Visit&nbsp;<a href="http://osradar.com" target="_blank" rel="noreferrer noopener" aria-label="http://ip-address:5601 (opens in a new tab)">http://ip-address:5601</a>&nbsp;to open kibana dashboard&nbsp;</p>



<div class="wp-block-image"><figure class="aligncenter"><img loading="lazy" width="714" height="252" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/kibana-dashboard.png" alt="" class="wp-image-14822" srcset="https://www.osradar.com/wp-content/uploads/2019/10/kibana-dashboard.png 714w, https://www.osradar.com/wp-content/uploads/2019/10/kibana-dashboard-300x106.png 300w, https://www.osradar.com/wp-content/uploads/2019/10/kibana-dashboard-696x246.png 696w" sizes="(max-width: 714px) 100vw, 714px" /></figure></div>



<p>If you have firewall service active make sure to allow TCP port 5601.</p>



<p class="has-background has-cyan-bluish-gray-background-color">sudo firewall-cmd &#8211;add-port=5601/tcp &#8211;permanent<br>
sudo firewall-cmd &#8211;reload</p>



<h3><strong>Step 4: Install / Configure Logstash on Centos 8</strong></h3>



<p>The last step is to install and configure Logstash which will act like a centralized logs server for your client systems and runs an agent like filebeat.</p>



<p class="has-background has-cyan-bluish-gray-background-color">sudo yum -y install logstash</p>



<p>Customize settings under the following directory: <strong>/etc/logstash/conf.d</strong>/ For further information you can check out <a href="https://www.elastic.co/guide/en/logstash/current/index.html">Logstash configuration manual.&nbsp;</a></p>



<h3><strong>Step 5: Install other ELK tools &#8211; (optional)&nbsp;</strong></h3>



<p>Some of these tools help you to work smoothly.</p>



<h4><strong>Filebeat:</strong></h4>



<p>It makes things simple by following lightweight way to forward and centralized logs and files.&nbsp;</p>



<h4><strong>Metricbeat:</strong></h4>



<p>Helps you to send and collect metrics from your systems and services, from CPU to memory,&nbsp; Redis to NGINX,&nbsp; and many more.&nbsp; It&#8217;s also a lightweight way to access system and services statistics.</p>



<h4><strong>Packetbeat:</strong></h4>



<p>Packetbeat provides a lightweight way for Network Data to increase performance.</p>



<h4><strong>Heartbeat:</strong></h4>



<p>Monitors the up time of Services. Helps you to know Availability of services.&nbsp;</p>



<h4><strong>Auditbeat:</strong></h4>



<p>Useful for auditing the activities and processes on your system by users.&nbsp;The tools we have discussed so far can be installed with the give command one time or you can install individually by this command. </p>



<p class="has-background has-cyan-bluish-gray-background-color">sudo yum install filebeat auditbeat metricbeat packetbeat heartbeat-elastic</p>



<p>These add-on tools help you better experience.To configure any tool you can check&nbsp; <a href="https://www.elastic.co/guide/index.html">official ELK stack documentation.</a></p>



<p>Hope you are all done!&nbsp;&nbsp;If have any queries regarding this tutorial leave a comment! </p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-elk-stack-on-centos-8/">How to Install ELK Stack on Centos 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-elk-stack-on-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Basic use of the firewall on CentOS 8</title>
		<link>https://www.osradar.com/basic-use-of-the-firewall-centos-8/</link>
					<comments>https://www.osradar.com/basic-use-of-the-firewall-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 10 Oct 2019 01:50:04 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=14250</guid>

					<description><![CDATA[<p>Let&#8217;s start with the first thing, what&#8217;s a firewall? A firewall is a program or hardware device that regulates connections to a computer. This computer is usually a server. Using a firewall is a great way to maintain the security of our system because it limits who and who can connect to the computer. CentOS [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/basic-use-of-the-firewall-centos-8/">Basic use of the firewall on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Let&#8217;s start with the first thing, what&#8217;s a firewall? A <a href="https://en.wikipedia.org/wiki/Firewall_(computing)" target="_blank" rel="noopener noreferrer">firewall</a> is a program or hardware device that regulates connections to a computer. This computer is usually a server. Using a firewall is a great way to maintain the security of our system because it limits who and who can connect to the computer. CentOS also has a very efficient one that you need to know how to use even a little. In this post, you will learn the basic use of the firewall on CentOS 8.</p>
<h2>The Firewall on CentOS 8</h2>
<p>CentOS firewall is <code>firewalld</code>. It is an application that allows trusting a firewall in a Linux system in a fast and easy way. It has the main advantage that it supports IPv4 and IPv6 in addition to being very stable and fast to set the rules.</p>
<p>Firewalld is configured as a system service. Therefore, we use <code>systemctl</code> as a command to manage it. By default, it is installed and active which makes CentOS a fairly stable and secure system.</p>
<p>In case you want to stop the service just apply this command:</p>
<pre>:~# systemctl stop firewalld</pre>
<p>Then, if you want to start it, just use this one:</p>
<pre>:~# systemctl start firewalld</pre>
<p>Or just restart it,</p>
<pre>:~# systemctl restart firewalld</pre>
<p>Finally, if you want to know the status of the service, the command would be as follows:</p>
<pre>:~# systemctl status firewalld</pre>
<p>so we manage the service on a basic basis.</p>
<h2>The firewall zones on CentOS</h2>
<p>Firewalld works with different zones that have a default configuration. There are many different zones. If we order them from greater restriction to lesser restriction, they would be as follows:</p>
<ul>
<li>Drop</li>
<li>Block</li>
<li>Public</li>
<li>External</li>
<li>Internal</li>
<li>Dmz</li>
<li>Work</li>
<li>Home</li>
<li>Trusted</li>
</ul>
<p>Generally, the default zone in CentOS is public. It implies that the changes we make will be reflected in that zone. If you want to know the active zone, use this command:</p>
<pre>:~# firewall-cmd --get-default-zone<br>public</pre>
<p>Now let&#8217;s add service and open ports.</p>
<h2>Adding service and ports</h2>
<p>This firewall allows you to add services that contain configuration for the most common programs that use ports. To know what these services are, you can list them with the following command:</p>
<pre>:~# firewall-cmd --get-services<br>RH-Satellite-6 amanda-client amanda-k5-client bacula bacula-client bitcoin bitcoin-rpc bitcoin-testnet bitcoin-testnet-rpc ceph ceph-mon cfengine condor-collector ctdb dhcp dhcpv6 dhcpv6-client dns docker-registry dropbox-lansync elasticsearch freeipa-ldap freeipa-ldaps freeipa-replication freeipa-trust ftp ganglia-client ganglia-master high-availability http https imap imaps ipp ipp-client ipsec iscsi-target kadmin kerberos kibana klogin kpasswd kshell ldap ldaps libvirt libvirt-tls managesieve mdns mosh mountd ms-wbt mssql mysql nfs nrpe ntp openvpn ovirt-imageio ovirt-storageconsole ovirt-vmconsole pmcd pmproxy pmwebapi pmwebapis pop3 pop3s postgresql privoxy proxy-dhcp ptp pulseaudio puppetmaster quassel radius rpc-bind rsh rsyncd samba samba-client sane sip sips smtp smtp-submission smtps snmp snmptrap spideroak-lansync squid ssh synergy syslog syslog-tls telnet tftp tftp-client tinc tor-socks transmission-client vdsm vnc-server wbem-https xmpp-bosh xmpp-client xmpp-local xmpp-server</pre>
<p>As you can note are many, so it&#8217;s probably all there.</p>
<p>To add a service to the current zone, just use the following command:</p>
<pre>:~# firewall-cmd --zone=public --add-service=http --permanent</pre>
<p>We added the clause <code>--permanent</code> so that the changes are not temporary. In this way, we will be able to enjoy the service at all times.</p>
<p>Then list the active services in the current zone and you will see the changes.</p>
<pre>:~# firewall-cmd --zone=public --list-services<br>dhcpv6-client http ssh</pre>
<p>Finally, restart the firewall for the changes to take effect on the network.</p>
<pre>:~# firewall-cmd --reload</pre>
<p>In case you need to open a specific port, it can also be done with firewalld. To do this, use the following command:</p>
<pre>:~#firewall-cmd --zone=public --permanent --add-port=[port]/[protocol]</pre>
<p>The protocols can be TCP or UDP. For example:</p>
<pre>:~#firewall-cmd --zone=public --permanent --add-port=5234/tcp</pre>
<p>Now see the open ports in the firewall.</p>
<pre>:~# firewall-cmd --zone=public --permanent --list-ports<br>5234/tcp</pre>
<p>Finally, restart the firewall.</p>
<pre>:~# firewall-cmd --reload</pre>
<p>And that&#8217;s it.</p>
<h2>Conclusion</h2>
<p>With this little guide you will not be an expert in the use of <a href="https://osradar.com/tag/centos-8" target="_blank" rel="noopener noreferrer">CentOS</a> 8 Firewall. But it does serve as the basis for most of the tutorials on our website. It is also necessary to know something about the basic use of the firewall in CentOS in order to perform better in the use of the system.</p>
<p>You can also learn to use the <a href="https://www.osradar.com/how-to-configure-a-firewall-on-ubuntu-18-04/" target="_blank" rel="noopener noreferrer">firewall in Ubuntu</a>.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/basic-use-of-the-firewall-centos-8/">Basic use of the firewall on CentOS 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/basic-use-of-the-firewall-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install ElasticSearch via Ansible</title>
		<link>https://www.osradar.com/install-elasticsearch-via-ansible/</link>
					<comments>https://www.osradar.com/install-elasticsearch-via-ansible/#respond</comments>
		
		<dc:creator><![CDATA[osradar_editor]]></dc:creator>
		<pubDate>Mon, 16 Sep 2019 19:41:45 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ansible]]></category>
		<category><![CDATA[Elasticsearch]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=11307</guid>

					<description><![CDATA[<p>The whole idea of this post is obvious. I have already covered the same objective in a standard fashion but this is about perform the installation via ansible automation. If you don&#8217;t have an understanding on Ansible Directory Structure &#8211; I really recommend to check my other post &#8211;  where I highlighted each key areas [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-elasticsearch-via-ansible/">Install ElasticSearch via Ansible</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 whole idea of this post is obvious. I have already covered the same objective in a standard fashion but this is about perform the installation via ansible automation. If you don&#8217;t have an understanding on Ansible Directory Structure &#8211; I really recommend to check my other <a href="https://www.osradar.com/getting-understand-ansible-structure/">post</a> &#8211;  where I highlighted each key areas that needed to get familiar.</p>
<h4><strong>Inventory File</strong></h4>
<p>In the example, I am going to deploy Three nodes of ElasticSearch &#8211; one represent MASTER role, while other two as DATA role.</p>
<pre><strong>[elastic_master]</strong>
es-0001 ansible_host=172.17.0.10
<strong>
[elastic_data]</strong>
es-0002 ansible_host=172.17.0.11
es-0003 ansible_host=172.17.0.12
</pre>
<p>&nbsp;</p>
<h4><strong>prod.yaml</strong></h4>
<pre>- hosts: elastic_master <span style="color: #008000;">&lt;------------ following actions will be performed against any host listed in <strong>elastic_master</strong> alias which found to be in inventory file</span>
  remote_user: root <span style="color: #008000;">&lt;---------------- to execute the command as root</span>
  become: true
  pre_tasks:
    - name: "Installing basic packages"
      action: yum <span style="color: #008000;">&lt;---------------- calls the yum module and any key that goes with <strong>with_items</strong> will be installed</span>
              name={{ item }}
              state=installed
      with_items:
        - unzip
      when: ansible_os_family == "RedHat" <span style="color: #008000;">&lt;---------------- a condition such that instruct the ansible <strong>pre_tasks</strong> should only suppose to be executed on a Fedora based distribution</span>
  roles:
   - { role: elastic_master_install }


- hosts: elastic_data
  remote_user: root
  become: true
  pre_tasks:
    - name: "Installing basic packages"
      action: yum
              name={{ item }}
              state=installed
      with_items:
        - unzip
      when: ansible_os_family == "RedHat"
  roles:
   - { role: elastic_data_install }</pre>
<p>&nbsp;</p>
<h4><strong>Default File</strong></h4>
<p>As we already covered this variables will be used when files which are in Jinga format are being copied under the Template DIrectory.</p>
<pre># vim roles/elastic_master_install/defaults</pre>
<pre>cluster_name: clusterName
node_master_true: "true"
node_data_true: "false"
node_ingest_true: "false"
path_to_log: /data/elk/logs
path_to_data: /data/elk/data
http_port: 9200
transport_tcp_port: 9300
discovery_zen_ping_unicast_hosts: '["172.17.0.10"]'

### - jvm config
init_heap_size: "-Xms8g"
max_heap_size: "-Xmx8g"
</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4><strong>Template file Example</strong></h4>
<p>This is how a basic elasticsearch.yaml looks like in Jinja fromat.</p>
<pre># vim roles/elastic_master_install/templates/elasticsearch.yml.j2</pre>
<pre>cluster.name: {{cluster_name}}
node.name: {{inventory_hostname}}
node.master: {{node_master_true}}
node.data: {{node_data_true}}
node.ingest: {{node_ingest_true}}
path.data: {{path_to_data}}
path.logs: {{path_to_log}}
network.host: {{ansible_host}}
</pre>
<p>&nbsp;</p>
<h4><strong>Task File</strong></h4>
<p>This is where we can define all the task that are part of the respective role, in this case task that needed to execute setting up Elasticsearch</p>
<pre># vim roles/elastic_master_install/tasks/main.yml</pre>
<pre>- name: Creating elk user...
  user:
    name: elk
    comment: "elk User"
    createopt: yes
    opt: /opt/elk/
    uid: 1999
    shell: /bin/bash
  become: true

- name: Copying &amp; untar ElasticSearch5.5..
  unarchive: 
    src: /root/Ansible/ElasticSearch5/roles/elastic_master_install/Files/elasticsearch-5.5.0.tar.gz
    dest: /opt/elk/
    owner: elk
    group: elk
    mode: 0755
  become: true

- name: Creating necessary directories..
  file:
    path: /data/elk/{{ item }}
    state: directory
    owner: elk
    group: elk
    mode: 0775
    recurse: yes
  with_items:
     - [data, logs, run]
  become: true

- name: Copying the main config file...
  template: src=elasticsearch.yml.j2 dest={{elasticsearch_config_dir}}/elasticsearch.yml owner=elk group=elk mode=0644 
  become: true
</pre>
<p>&nbsp;</p>
<p>Please note that I have only added files for Role &#8220;<em>elastic_master_install</em>&#8221; =&gt; <strong>Task</strong>/<strong>Template</strong>/<strong>Default</strong>. However, as in the prod.yaml there is another role called &#8220;<em>elastic_data_install</em>&#8221; which you also need to work on as did in above last three steps.</p>
<p>When you have the Directory Structure ready, you can initiate the Ansible by;</p>
<pre># ansible-playbook -i inventory prod.yaml</pre>
<p>&nbsp;</p>
<p><em><strong>&#8220;I hope this has been informative for you&#8221;</strong></em></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-elasticsearch-via-ansible/">Install ElasticSearch via Ansible</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-elasticsearch-via-ansible/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Wagtail on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-install-wagtail-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-wagtail-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 20 Jul 2019 00:33:04 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[gunicorn]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wagtail]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12521</guid>

					<description><![CDATA[<p>As today almost everything has to do with the Internet and blogs, there are many CMS available. In this post, I will show you how to install Wagtail on Ubuntu 18.04. Of course, I will also tell you about this great CMS new and very well designed. Wagtail is built with Python We have talked [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-wagtail-on-ubuntu-18-04/">How to install Wagtail on Ubuntu 18.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>As today almost everything has to do with the Internet and blogs, there are many CMS available. In this post, I will show you how to install Wagtail on Ubuntu 18.04. Of course, I will also tell you about this great CMS new and very well designed.</p>
<h2>Wagtail is built with Python</h2>
<p>We have talked about many <a href="https://www.osradar.com/tag/cms/">CMS</a> on this website. Some with very new features and others simpler and focused on a very specific audience. But Wagtail is something different.</p>
<p><a href="https://wagtail.io/">Wagtail</a> is an open source CMS that is built <strong>with <a href="https://www.osradar.com/install-django-ubuntu-18-04/">Django</a> and therefore in <a href="https://www.osradar.com/get-the-latest-python-on-linux/">Python</a></strong>. This has many advantages in the execution of the application. Above all in issues of performance and clarity of code.</p>
<p>On the other hand, many well-known companies use Wagtail to build some websites, like <a href="https://www.osradar.com/improve-the-firefox-scroll-down/">Mozilla</a> or BMW. So, we are in the presence of a quite powerful CMS.</p>
<p>Some of its main <a href="https://wagtail.io/features/">features</a> focus on fast content <strong>editing using blocks</strong>; likewise, Wagtail has a <strong>form builder</strong> and <strong>integrates <a href="https://www.osradar.com/setting-up-elasticsearch-on-linux/">elasticsearch</a></strong> to do intelligent searches.</p>
<p>Finally, Wagtail wants the user not to waste too much time on configurations. He only spends time perfecting the website. That is to say, it is a CMS out the box. Everything is working for the first time.</p>
<p>So, let us install Wagtail.</p>
<h2>First steps to install Wagtail</h2>
<p>First, we need to update the system so that all the security patches are properly installed.</p>
<p>Open a terminal or connect to your SSH server and run the following:</p>
<pre>:~$ sudo apt update
:~$ sudo apt upgrade</pre>
<p>Then you need to install Python, Python PIP and the tool to create virtual environments with Python. So you have to run this command to do it.</p>
<pre>:~$ sudo apt install python3 python3-pip python3-venv</pre>
<h3>Create a virtual environment for Wagtail</h3>
<p>The next step is to create a virtual Python environment for Wagtail. This way we will be able to isolate the installation and create more security. Besides that, it will facilitate the installation together with PIP. First, install it.</p>
<pre>:~$ sudo pip3 install virtualenv</pre>
<p><figure id="attachment_12599" aria-describedby="caption-attachment-12599" style="width: 1361px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12599" src="https://www.osradar.com/wp-content/uploads/2019/07/1-4.png" alt="1.- install Python env" width="1361" height="250" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-4.png 1361w, https://www.osradar.com/wp-content/uploads/2019/07/1-4-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/1-4-768x141.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/1-4-1024x188.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/1-4-696x128.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/1-4-1068x196.png 1068w" sizes="(max-width: 1361px) 100vw, 1361px" /><figcaption id="caption-attachment-12599" class="wp-caption-text">1.- install Python env</figcaption></figure></p>
<p>Then, create a new user. And add it to the sudoers file.</p>
<pre>:~$ sudo useradd -m -s /bin/bash wag
:~$ sudo passwd wag
passwd: password updated successfully
:~$ sudo nano /etc/sudoers
wag ALL=(ALL:ALL) ALL</pre>
<p>Next, create a virtual environment.</p>
<pre>:~$ su - wag
:~$ virtualenv wagtail</pre>
<p><figure id="attachment_12600" aria-describedby="caption-attachment-12600" style="width: 790px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12600" src="https://www.osradar.com/wp-content/uploads/2019/07/2-4.png" alt="2.- Create the python environment" width="790" height="211" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-4.png 790w, https://www.osradar.com/wp-content/uploads/2019/07/2-4-300x80.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/2-4-768x205.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/2-4-696x186.png 696w" sizes="(max-width: 790px) 100vw, 790px" /><figcaption id="caption-attachment-12600" class="wp-caption-text">2.- Create a python environment</figcaption></figure></p>
<p>You can replace &#8220;wagtail&#8221; for any name what you want.</p>
<h3>Install Wagtail</h3>
<p>Now that we have the virtual environment created, we will be able to install Wagtail. However, first, we must activate it.</p>
<pre>:~$ source ~/wagtail/bin/activate</pre>
<p>Now, you can install Wagtail.</p>
<pre>:~$ pip install wagtail</pre>
<p><figure id="attachment_12601" aria-describedby="caption-attachment-12601" style="width: 444px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12601" src="https://www.osradar.com/wp-content/uploads/2019/07/3-2.png" alt="3.- Install Wagtail on Ubuntu 18.04" width="444" height="61" srcset="https://www.osradar.com/wp-content/uploads/2019/07/3-2.png 444w, https://www.osradar.com/wp-content/uploads/2019/07/3-2-300x41.png 300w" sizes="(max-width: 444px) 100vw, 444px" /><figcaption id="caption-attachment-12601" class="wp-caption-text">3.- Install Wagtail on Ubuntu 18.04</figcaption></figure></p>
<p>In this case, the command is PIP and not PIP3. This is because, in Python virtual environments, the PIP command does not distinguish from the version used. Therefore, it will always be PIP regardless of the version we have.</p>
<p>Now,  we can create a new project.</p>
<pre>:~$ cd ~
:~$ wagtail start [project_name]</pre>
<p><figure id="attachment_12602" aria-describedby="caption-attachment-12602" style="width: 783px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12602" src="https://www.osradar.com/wp-content/uploads/2019/07/4.png" alt="4.- Create a new wagtail project" width="783" height="151" srcset="https://www.osradar.com/wp-content/uploads/2019/07/4.png 783w, https://www.osradar.com/wp-content/uploads/2019/07/4-300x58.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/4-768x148.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/4-696x134.png 696w" sizes="(max-width: 783px) 100vw, 783px" /><figcaption id="caption-attachment-12602" class="wp-caption-text">4.- Create a new wagtail project</figcaption></figure></p>
<p>Then, after the project directory is created. You need to follow these commands to start the new project.</p>
<pre>:~$ cd [project_name]
:~$ python manage.py migrate
:~$ python manage.py createsuperuser
:~$ python manage.py runserver 0.0.0.0:8000</pre>
<p>Now, open your web browser and go to http://server-ip:8000. Remember to open the port on the firewall.</p>
<p><figure id="attachment_12603" aria-describedby="caption-attachment-12603" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12603" src="https://www.osradar.com/wp-content/uploads/2019/07/5.png" alt="5.- Wagtail running" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/07/5.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/5-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/5-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/5-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/5-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/07/5-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/5-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/07/5-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12603" class="wp-caption-text">5.- Wagtail running</figcaption></figure></p>
<p>And you can go to the admin page on http://server-ip:8000/admin. You can log in with the super user previously created.</p>
<p><figure id="attachment_12604" aria-describedby="caption-attachment-12604" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12604" src="https://www.osradar.com/wp-content/uploads/2019/07/6.png" alt="6.- Wagtail admin" width="1366" height="666" srcset="https://www.osradar.com/wp-content/uploads/2019/07/6.png 1366w, https://www.osradar.com/wp-content/uploads/2019/07/6-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/6-768x374.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/6-1024x499.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/6-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/07/6-696x339.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/6-1068x521.png 1068w, https://www.osradar.com/wp-content/uploads/2019/07/6-861x420.png 861w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12604" class="wp-caption-text">6.- Wagtail admin</figcaption></figure></p>
<h3>Install Gunicorn</h3>
<p>Wagtail is an application built in Django. In that aspect, to deploy it is convenient to use a request manager that runs in Python. But ironically, Python is not the best for processing all requests. In this sense, I will use <a href="https://gunicorn.org/">Gunicorn</a> and link it to the project. Then, I&#8217;ll install <a href="https://www.osradar.com/install-nginx-from-the-source-code-ubuntu-18-04/">Nginx</a>.</p>
<pre>:~$ pip install gunicorn
:~$ cd ~/wagproject
:~$ python manage.py collectstatic
:~$ deactivate
:~$ exit</pre>
<p><figure id="attachment_12605" aria-describedby="caption-attachment-12605" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12605" src="https://www.osradar.com/wp-content/uploads/2019/07/7.png" alt="7.- Getting gunicorn to install Wagtail correctly" width="1365" height="319" srcset="https://www.osradar.com/wp-content/uploads/2019/07/7.png 1365w, https://www.osradar.com/wp-content/uploads/2019/07/7-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/7-768x179.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/7-1024x239.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/7-696x163.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/7-1068x250.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12605" class="wp-caption-text">7.- Getting gunicorn to install Wagtail correctly</figcaption></figure></p>
<p>Now, create a new systemd file to manage gunicorn like a service.</p>
<pre>:~$ sudo nano /etc/systemd/system/gunicorn.service</pre>
<p>And add the following:</p>
<pre>[Unit]
Description=Gunicorn Daemon file
After=network.target

[Service]
User=wag
Group=www-data
WorkingDirectory=/home/wag/wagproject
ExecStart=/home/wag/wagtail/bin/gunicorn --access-logfile - --workers 3 --bind unix:/home/wag/wagproject.sock wagproject.wsgi:application

[Install]
WantedBy=multi-user.target</pre>
<p><figure id="attachment_12607" aria-describedby="caption-attachment-12607" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12607" src="https://www.osradar.com/wp-content/uploads/2019/07/88888.png" alt="8.- Creating a systemctl service for gunicorn" width="1365" height="263" srcset="https://www.osradar.com/wp-content/uploads/2019/07/88888.png 1365w, https://www.osradar.com/wp-content/uploads/2019/07/88888-300x58.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/88888-768x148.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/88888-1024x197.png 1024w, https://www.osradar.com/wp-content/uploads/2019/07/88888-696x134.png 696w, https://www.osradar.com/wp-content/uploads/2019/07/88888-1068x206.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-12607" class="wp-caption-text">8.- Creating a systemctl service for gunicorn</figcaption></figure></p>
<p>Remember, change the user name and the project name so that everything works well.</p>
<p>Press CTRL + O to save the changes and CTRL + X to close the file.</p>
<p>Next, reload all systemd daemon to apply the changes.</p>
<pre>:~$ sudo systemctl daemon-reload</pre>
<p>Then, start gunicorn.</p>
<pre>:~$ sudo systemctl start gunicorn</pre>
<h3>Install Nginx</h3>
<p>As I mentioned earlier, Python is not the best at processing requests. Then, with Nginx, we will be able to improve all that request flow. So let&#8217;s install it</p>
<pre>:~$ sudo apt install nginx</pre>
<p>Now let&#8217;s create a new Nginx server block file.</p>
<pre>:~$ nano /etc/nginx/sites-enabled/your-domain.conf</pre>
<p>Add the following:</p>
<pre>server {
    listen 80;
    server_name your-domain.com;

    location = /favicon.ico { access_log off; log_not_found off; }
    location /static/ {
        root /home/wag/wagproject;
    }

    location / {
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass http://unix:/home/wag/wagproject.sock;
    }
}</pre>
<p>Save the changes and close the file.</p>
<p>Then, assign permissions on the project folder and add the new user to the www-data group.</p>
<pre>:~$ sudo usermod -aG www-data wag
:~$ sudo chmod -R 710 /home/wag</pre>
<p>Finally, start and enable Nginx.</p>
<pre>:~$ sudo systemctl enable nginx
:~$ sudo systemctl start nginx</pre>
<p>Now, you can access to Wagtail using your web browser to your domain.</p>
<p>And that is it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-wagtail-on-ubuntu-18-04/">How to install Wagtail on Ubuntu 18.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-wagtail-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
