<?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>Linux Tools - Techyaz.com</title>
	<atom:link href="https://techyaz.com/category/linux/linux-tools/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Thu, 29 Mar 2018 18:56:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://techyaz.com/wp-content/uploads/2017/11/cropped-Site-icon-150x150.png</url>
	<title>Linux Tools - Techyaz.com</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Install Zabbix on Ubuntu Server 16.04?</title>
		<link>https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/</link>
					<comments>https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Thu, 29 Mar 2018 18:06:46 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zebbix]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=2002</guid>

					<description><![CDATA[<p>Zabbix is a great open source tool for monitoring servers mainly under the GNU/LINUX environment, specialized in networks with an important user base and an active community that is always contributing both in its development and in its support for&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/">How to Install Zabbix on Ubuntu Server 16.04?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Zabbix is a great open source tool for monitoring servers mainly under the GNU/LINUX environment, specialized in networks with an important user base and an active community that is always contributing both in its development and in its support for users. Today we are going to install Zabbix on Ubuntu Server 16.04.</p>
<p><strong>Note:</strong> The language in some of the screenshots is not in English but the command we have executed in English language. You just need to run the given commands and execution in your screen will show based on your preferred language set on the system,</p>
<h3><span style="color: #333399;"><strong>Install Zabbix on Ubuntu 16.04</strong></span></h3>
<p>The first thing we have to do is update the system in order to have the latest security updates.</p>
<pre><span style="color: #0000ff;"><strong>sudo apt update &amp;&amp; sudo apt –y upgrade</strong></span></pre>
<p>With this composite command, we refresh the repository cache and at the same time say yes to updates.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2003" src="http://techyaz.com/wp-content/uploads/2018/03/1.png" alt="Run updates" width="605" height="87" srcset="https://techyaz.com/wp-content/uploads/2018/03/1.png 605w, https://techyaz.com/wp-content/uploads/2018/03/1-300x43.png 300w" sizes="(max-width: 605px) 100vw, 605px" /></p>
<p>Once you will enter sudo password in above screen, a series of transactions will be executed as shown in below screenshot.</p>
<p><img decoding="async" class="alignnone size-full wp-image-2004" src="http://techyaz.com/wp-content/uploads/2018/03/2-updates.png" alt="sudo apt-get updates" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/2-updates.png 720w, https://techyaz.com/wp-content/uploads/2018/03/2-updates-300x167.png 300w" sizes="(max-width: 720px) 100vw, 720px" /></p>
<p>Once we have the system updated, the next thing we need to do is to install a basic LAMP server to run the Zabbix and mysql frontend as database manager.</p>
<pre><span style="color: #0000ff;"><strong>sudo apt install apache2 libapache2-mod-php7.0 mysql-server-5.7 mysql-client php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php-xml php-mbstring php-bcmath</strong></span></pre>
<p><img decoding="async" class="alignnone size-full wp-image-2005" src="http://techyaz.com/wp-content/uploads/2018/03/3-install-LAMP-server.png" alt="Install LAMP server" width="719" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/3-install-LAMP-server.png 719w, https://techyaz.com/wp-content/uploads/2018/03/3-install-LAMP-server-300x37.png 300w" sizes="(max-width: 719px) 100vw, 719px" /></p>
<p>Once you will execute above command, you will be getting a sequence of executions as shown in below image.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2006" src="http://techyaz.com/wp-content/uploads/2018/03/4-LAMP-server-installation.png" alt="LAMP server installation" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/4-LAMP-server-installation.png 720w, https://techyaz.com/wp-content/uploads/2018/03/4-LAMP-server-installation-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Once the LAMP server is installed, we must edit the <strong>php. ini</strong> file to set our time zone correctly. In my case “America/Caracas”.</p>
<pre><span style="color: #0000ff;"><strong>sudo nano /etc/php/7.0/apache2/php.ini</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2007" src="http://techyaz.com/wp-content/uploads/2018/03/5-edit-time-zone.png" alt="Edit Time zone" width="598" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/5-edit-time-zone.png 598w, https://techyaz.com/wp-content/uploads/2018/03/5-edit-time-zone-300x44.png 300w" sizes="auto, (max-width: 598px) 100vw, 598px" /></p>
<p>Once you will execute above command, you will get below screen to edit the time zone. Inside the archive, we locate the part where the time zone is established and edit it with our own.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2008" src="http://techyaz.com/wp-content/uploads/2018/03/6-edit-time-zone.png" alt="edit time zone" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/6-edit-time-zone.png 720w, https://techyaz.com/wp-content/uploads/2018/03/6-edit-time-zone-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Now we will restart Apache service using below command..</p>
<pre><span style="color: #0000ff;"><strong>sudo systmectl restart apache2.service</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2009" src="http://techyaz.com/wp-content/uploads/2018/03/7-Apache-service-restart.png" alt="Apache service restart" width="646" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/7-Apache-service-restart.png 646w, https://techyaz.com/wp-content/uploads/2018/03/7-Apache-service-restart-300x41.png 300w" sizes="auto, (max-width: 646px) 100vw, 646px" /></p>
<p>Now we must add the Zabbix repository, to do this we must download a. deb file hosted on their website.</p>
<pre><span style="color: #0000ff;"><strong><em>wget </em><a style="color: #0000ff;" href="http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb"><em>http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb</em></a></strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2010" src="http://techyaz.com/wp-content/uploads/2018/03/8-wget.png" alt="download the package" width="720" height="284" srcset="https://techyaz.com/wp-content/uploads/2018/03/8-wget.png 720w, https://techyaz.com/wp-content/uploads/2018/03/8-wget-300x118.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>And then install it to add the repository.</p>
<pre><span style="color: #0000ff;"><strong>sudo dpkg –i zabbix-release_3.4-1+xenial_all.deb
</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2011" src="http://techyaz.com/wp-content/uploads/2018/03/9-install.png" alt="install downloaded package" width="720" height="153" srcset="https://techyaz.com/wp-content/uploads/2018/03/9-install.png 720w, https://techyaz.com/wp-content/uploads/2018/03/9-install-300x64.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Now we must refresh the program sources cache and install zabbix packages. Run below command to update the repository.</p>
<pre><span style="color: #0000ff;"><strong>sudo apt update</strong></span></pre>
<p>You can see the execution of above command.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2012" src="http://techyaz.com/wp-content/uploads/2018/03/10-sudo-apt-update.png" alt="run sudo apt update" width="706" height="133" srcset="https://techyaz.com/wp-content/uploads/2018/03/10-sudo-apt-update.png 706w, https://techyaz.com/wp-content/uploads/2018/03/10-sudo-apt-update-300x57.png 300w" sizes="auto, (max-width: 706px) 100vw, 706px" /></p>
<p>Run below command to initiate the execution.</p>
<pre><span style="color: #0000ff;"><strong>sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent</strong></span></pre>
<p>We can see the installation in below image.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2013" src="http://techyaz.com/wp-content/uploads/2018/03/11.png" alt="Install Zabbix" width="719" height="344" srcset="https://techyaz.com/wp-content/uploads/2018/03/11.png 719w, https://techyaz.com/wp-content/uploads/2018/03/11-300x144.png 300w" sizes="auto, (max-width: 719px) 100vw, 719px" /></p>
<p><strong>Configure MySQL</strong></p>
<p>In this step we must configure mysql, skip this if you already had an installation before.</p>
<pre><span style="color: #0000ff;"><strong>sudo mysql_secure_installation</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2014" src="http://techyaz.com/wp-content/uploads/2018/03/12-configure-mysql.png" alt="configure mysql" width="695" height="219" srcset="https://techyaz.com/wp-content/uploads/2018/03/12-configure-mysql.png 695w, https://techyaz.com/wp-content/uploads/2018/03/12-configure-mysql-300x95.png 300w" sizes="auto, (max-width: 695px) 100vw, 695px" /></p>
<p>To the questions we must answer yes or no according to our needs. For this tutorial, the answers to these questions are no problem. The important thing is to remember the Mysql root password.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2015" src="http://techyaz.com/wp-content/uploads/2018/03/13.png" alt="Install mysql" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/13.png 720w, https://techyaz.com/wp-content/uploads/2018/03/13-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Then we must log in to Mysql when entering the command, we must enter the root password.</p>
<pre><span style="color: #0000ff;"><strong>mysql –u root –p</strong></span></pre>
<p>Once inside, we must create the zabbix database.</p>
<pre><span style="color: #0000ff;"><strong>CREATE DATABASE zabbix</strong></span></pre>
<p>We then create and give permission to a new Mysql user to use zabbix. This is a good security practice for our server.</p>
<pre><span style="color: #0000ff;"><strong>GRANT ALL ON zabbix TO ‘zabbix’@localhost IDENTIFIED BY ‘zabbixpss’;</strong></span></pre>
<p>Replace&#8217; zabbixpss&#8217; with another username if you prefer, and&#8217; zabbixpss&#8217; with another password. you can see all above steps in below command.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2018" src="http://techyaz.com/wp-content/uploads/2018/03/16.png" alt="Connect to Mysql, create db and assign permission" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/16.png 720w, https://techyaz.com/wp-content/uploads/2018/03/16-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Next we must &#8220;copy&#8221; the configuration of Mysql to the new zabbix user.</p>
<pre><span style="color: #0000ff;"><strong>zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql –u zabbix –p</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2019" src="http://techyaz.com/wp-content/uploads/2018/03/18.png" alt="copy the configuration of Mysql to the new zabbix user" width="720" height="115" srcset="https://techyaz.com/wp-content/uploads/2018/03/18.png 720w, https://techyaz.com/wp-content/uploads/2018/03/18-300x48.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>However at this point I got the error of &#8220;No database selected&#8221;. Don&#8217;t worry, we&#8217;ll figure it out. To fix error 1046, we must first copy and unzip the MySql creation file.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2020" src="http://techyaz.com/wp-content/uploads/2018/03/19.png" alt="fix error 1046" width="690" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/19.png 690w, https://techyaz.com/wp-content/uploads/2018/03/19-300x38.png 300w" sizes="auto, (max-width: 690px) 100vw, 690px" /></p>
<p>And then edit the “create.sql” file, we just must add USE zabbix; at the beginning of the file.</p>
<pre><span style="color: #0000ff;"><strong>nano create.sql</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2021" src="http://techyaz.com/wp-content/uploads/2018/03/20.png" alt="edit the file" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/20.png 720w, https://techyaz.com/wp-content/uploads/2018/03/20-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Save and we will be able to import the file.</p>
<pre><span style="color: #0000ff;"><strong>cat create.sql | mysql –u zabbix –p</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2022" src="http://techyaz.com/wp-content/uploads/2018/03/21.png" alt="import the saved file" width="674" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/21.png 674w, https://techyaz.com/wp-content/uploads/2018/03/21-300x39.png 300w" sizes="auto, (max-width: 674px) 100vw, 674px" /></p>
<p>This completes the configuration process of the database manager.</p>
<p>Now we proceed to edit the configuration file of zabbix to add the database parameters that the application will use.</p>
<pre><span style="color: #0000ff;"><strong>sudo nano /etc/zabbix/zabbix_server.conf</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2023" src="http://techyaz.com/wp-content/uploads/2018/03/23.png" alt="edit the zabbix configuration parameters" width="689" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/23.png 689w, https://techyaz.com/wp-content/uploads/2018/03/23-300x38.png 300w" sizes="auto, (max-width: 689px) 100vw, 689px" /></p>
<p>Verify below parameters from below screenshot.</p>
<p>DBHost=localhost</p>
<p>DBName=zabbix</p>
<p>DBUser=zabbix</p>
<p>DBPassword=zabbixpss</p>
<p>These parameters are the ones that we have to locate in the archive and change for the positions.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2024" src="http://techyaz.com/wp-content/uploads/2018/03/24.png" alt="edit the zabbix configuration file" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/24.png 720w, https://techyaz.com/wp-content/uploads/2018/03/24-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Then we must restart Apache2 and Zabbix services.</p>
<pre><span style="color: #0000ff;"><strong>sudo systemctl restart apache2.service</strong></span>
<span style="color: #0000ff;"><strong>sudo systemctl restart zabbix-server.service</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2025" src="http://techyaz.com/wp-content/uploads/2018/03/25.png" alt="restart the zabbix services" width="706" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/25.png 706w, https://techyaz.com/wp-content/uploads/2018/03/25-300x37.png 300w" sizes="auto, (max-width: 706px) 100vw, 706px" /></p>
<p><strong>Configure Zabbix</strong></p>
<p>Now, it&#8217;s ready. We have to go to our web browser and access from the ip address of the server computer.</p>
<p><em><strong>http://IP_ADRESS/zabbix </strong></em></p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2026" src="http://techyaz.com/wp-content/uploads/2018/03/26-min.png" alt="Zabbix window" width="648" height="421" srcset="https://techyaz.com/wp-content/uploads/2018/03/26-min.png 917w, https://techyaz.com/wp-content/uploads/2018/03/26-min-300x195.png 300w, https://techyaz.com/wp-content/uploads/2018/03/26-min-768x499.png 768w" sizes="auto, (max-width: 648px) 100vw, 648px" /></p>
<p>Then we proceed to configure it, pressing next. We check that all prerequisites are satisfied.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2027" src="http://techyaz.com/wp-content/uploads/2018/03/27-min.png" alt="Configure zabbix" width="659" height="327" srcset="https://techyaz.com/wp-content/uploads/2018/03/27-min.png 1350w, https://techyaz.com/wp-content/uploads/2018/03/27-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/27-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/27-min-1024x508.png 1024w" sizes="auto, (max-width: 659px) 100vw, 659px" /></p>
<p>In this screen we must configure the database parameters that we have made in the previous steps.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2029" src="http://techyaz.com/wp-content/uploads/2018/03/28-min.png" alt="enter database details" width="661" height="328" srcset="https://techyaz.com/wp-content/uploads/2018/03/28-min.png 1350w, https://techyaz.com/wp-content/uploads/2018/03/28-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/28-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/28-min-1024x508.png 1024w" sizes="auto, (max-width: 661px) 100vw, 661px" /></p>
<p>Then you have to configure the server parameters. In this case, we leave it the same way.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2030" src="http://techyaz.com/wp-content/uploads/2018/03/29-min-1024x508.png" alt="enter server details" width="662" height="328" srcset="https://techyaz.com/wp-content/uploads/2018/03/29-min-1024x508.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/29-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/29-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/29-min.png 1350w" sizes="auto, (max-width: 662px) 100vw, 662px" /></p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2032" src="http://techyaz.com/wp-content/uploads/2018/03/30-min-1024x508.png" alt="server details" width="660" height="327" srcset="https://techyaz.com/wp-content/uploads/2018/03/30-min-1024x508.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/30-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/30-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/30-min.png 1350w" sizes="auto, (max-width: 660px) 100vw, 660px" /></p>
<p>In the end if everything is correct we should see a screen like this.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2033" src="http://techyaz.com/wp-content/uploads/2018/03/31-min-1024x508.png" alt="Successful window" width="670" height="332" srcset="https://techyaz.com/wp-content/uploads/2018/03/31-min-1024x508.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/31-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/31-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/31-min.png 1350w" sizes="auto, (max-width: 670px) 100vw, 670px" /></p>
<p>Finally we can now access through the following form:</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2034" src="http://techyaz.com/wp-content/uploads/2018/03/32-min-1024x469.png" alt="Zabbix login screen" width="670" height="307" srcset="https://techyaz.com/wp-content/uploads/2018/03/32-min-1024x469.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/32-min-300x137.png 300w, https://techyaz.com/wp-content/uploads/2018/03/32-min-768x352.png 768w, https://techyaz.com/wp-content/uploads/2018/03/32-min-980x450.png 980w, https://techyaz.com/wp-content/uploads/2018/03/32-min.png 1366w" sizes="auto, (max-width: 670px) 100vw, 670px" /></p>
<p>Username: admin</p>
<p>Password: zabbix</p>
<p>And after that, we&#8217;ll have the main view with our zabbix running on the server.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2035" src="http://techyaz.com/wp-content/uploads/2018/03/33-min-1024x854.png" alt="Zabbix Home window" width="679" height="566" srcset="https://techyaz.com/wp-content/uploads/2018/03/33-min-1024x854.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/33-min-300x250.png 300w, https://techyaz.com/wp-content/uploads/2018/03/33-min-768x640.png 768w, https://techyaz.com/wp-content/uploads/2018/03/33-min.png 1349w" sizes="auto, (max-width: 679px) 100vw, 679px" /></p>
<p>As a conclusion we can say that Zabbix is a great open source application for server monitoring, its installation in server is relatively simple and is very useful to all system administrators.</p>
<p><em><strong><span style="color: #800000;">Read More:</span></strong></em></p>
<ul>
<li><strong><a href="http://techyaz.com/rhel/install-htop-monitor-linux-processes/" target="_blank" rel="noopener">How to Install and Use HTop on Linux system?</a></strong></li>
<li><strong><a href="http://techyaz.com/debian/install-pgadmin-4-in-debian-9-stretch/" target="_blank" rel="noopener">Installing PgAdmin 4 on Debian Stretch</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/red-hat-enterprise-linux-interview-questions-answers/" target="_blank" rel="noopener">RHEL Interview Questions and Answers</a></strong></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/">How to Install Zabbix on Ubuntu Server 16.04?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Htop and Use it to Monitor Linux Processes?</title>
		<link>https://techyaz.com/linux/install-htop-monitor-linux-processes/</link>
					<comments>https://techyaz.com/linux/install-htop-monitor-linux-processes/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Tue, 20 Feb 2018 08:16:55 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tools]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Htop]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1880</guid>

					<description><![CDATA[<p>Generally, we run lot of commands to get informations for Linux processes. We can use a tool name Htop to avoid running multiple commands and get lot of valuable information in one screen. Htop is an interactive process viewer tool&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/linux/install-htop-monitor-linux-processes/">How to Install Htop and Use it to Monitor Linux Processes?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Generally, we run lot of commands to get informations for Linux processes. We can use a tool name Htop to avoid running multiple commands and get lot of valuable information in one screen. Htop is an interactive process viewer tool for Linux systems that will show all processes in a Task Manager without wasting resources. Here, i will show you how to install Htop and its uses to monitor the Linux processes.</p>
<p><a href="http://hisham.hm/htop/">HTOP</a> is a process viewer on the terminal created for the entire Unix family but has great popularity within GNU/LINUX. The main advantages of this tool are that we can monitor processes, finalize and explore them all from the terminal which guarantees a minimum expenditure of resources.</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1882" src="http://techyaz.com/wp-content/uploads/2018/02/1-htop-min.jpg" alt="htop screen" width="480" height="360" srcset="https://techyaz.com/wp-content/uploads/2018/02/1-htop-min.jpg 480w, https://techyaz.com/wp-content/uploads/2018/02/1-htop-min-300x225.jpg 300w" sizes="auto, (max-width: 480px) 100vw, 480px" /></p>
<h3><span style="color: #333399;">How to Install Htop on Various Linux Systems?</span></h3>
<p>We can install Htop from your sources or simply from pre-compiled packages. However, Htop is found in most GNU/LINUX distributions through its main repositories. Please have a look at the step by step process to install Htop on Debian, RHEL, Ubuntu and other Linux systems.</p>
<h5><span style="color: #993300;">Install Htop on Debian 8 Jessie and Debian 9 Stretch</span></h5>
<p>The first thing we need to do is login as root. Type <em><strong>su</strong></em> on your terminal window and press enter followed by typing its password.</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once you will be connected using su account, run below command to install Htop on Debian systems.</p>
<pre><span style="color: #0000ff;"><strong>apt install htop</strong></span></pre>
<h5><span style="color: #993300;">Install Htop on Ubuntu 14.04  and Ubuntu 16.04</span></h5>
<p>Here, I will show you how to install Htop on Ubuntu servers. Installation of htop on Ubuntu is very much similar to installing it on Debian as we did in above section. In the case of Ubuntu, we must be root user to install htop. Type su and press enter followed by its password.</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once we will be connected using root user, we will proceed to install htop on Ubuntu by running below commands. A set of execution will start and execution will finish with its installation.</p>
<pre><span style="color: #0000ff;"><strong>apt install htop</strong></span></pre>
<h5><span style="color: #993300;">Install Htop on Fedora 26 and Fedora 27</span></h5>
<p>There is little different way to install Htop on Fedora systems as we use dnf command to install it on fedora. Fedora users can easily install htop as following below steps. First we connect to root privileges using su account. Type su and its password.</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once we will be connected using <strong>su</strong> account, we can invoke <strong>dnf</strong> which is Fedora package manager. Run below dnf command to install htop on Fedora systems. A set of execution will start and finish with htop installation.</p>
<pre><span style="color: #0000ff;"><strong>dnf install htop</strong></span></pre>
<h5><span style="color: #993300;">Install Htop on Gentoo</span></h5>
<p>For Gentoo we must also be root users. Write in a terminal:</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once we connected with root user permissions, we can install Htop by invoking Gentoo&#8217;s own package manager emerge. Run below command to start Htop installation on Gentoo system. A series of execution will start and finish with its installation.</p>
<pre><span style="color: #0000ff;"><strong>emerge sys-process/htop</strong></span></pre>
<h5><span style="color: #993300;">Install Htop on CentOS 7 and Red Hat Linux Enterprise</span></h5>
<p>In the case of CentOS 7, we must first add the EPEL repository and then install it normally. First we logged in as root user to get installation privileges. Connect using su account by typing below command and its password.</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once logged in as root user, we proceed to download the package containing the EPEL repository:</p>
<pre><span style="color: #0000ff;"><strong>wget http://mirror.pnl.gov/epel/7/x86_64/e/epel-release-7-5.noarch.rpm</strong></span></pre>
<p>And then install the downloaded package to add the EPEL repository:</p>
<pre><span style="color: #0000ff;"><strong>rpm -Uvh epel-release-7-5.noarch.rpm</strong></span></pre>
<p>The next step is to &#8220;validate&#8221; the newly added repository by running below command.</p>
<pre><span style="color: #0000ff;"><strong>yum repolist</strong></span></pre>
<p>And Finally we will install htop on RHEL and Centos by running below command.</p>
<pre><span style="color: #0000ff;"><strong>yum install htop</strong><strong> </strong></span></pre>
<h3><span style="color: #333399;">Basic use of HTOP</span></h3>
<p>We have installed Htop on various Linux systems in above section. We must write the command htop To launch it. Here, it is not necessary to do it as root user. You can see i wrote htop on terminal window and press enter to get the Htop task manager screen in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1883" src="http://techyaz.com/wp-content/uploads/2018/02/2-Htop-command-min.png" alt="Type htop to launch its screen" width="700" height="145" srcset="https://techyaz.com/wp-content/uploads/2018/02/2-Htop-command-min.png 700w, https://techyaz.com/wp-content/uploads/2018/02/2-Htop-command-min-300x62.png 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /></p>
<p>You will get below screen once you execute above command on your terminal screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1884" src="http://techyaz.com/wp-content/uploads/2018/02/3-Htop_Running-min.jpg" alt="htop running screen" width="960" height="720" srcset="https://techyaz.com/wp-content/uploads/2018/02/3-Htop_Running-min.jpg 960w, https://techyaz.com/wp-content/uploads/2018/02/3-Htop_Running-min-300x225.jpg 300w, https://techyaz.com/wp-content/uploads/2018/02/3-Htop_Running-min-768x576.jpg 768w" sizes="auto, (max-width: 960px) 100vw, 960px" /></p>
<p>It&#8217;s the initial screen. As we can see, it is very simple and easy to understand. We can have fun in three parts that we will study. In this &#8220;first part&#8221; we see the use of the processor and RAM by all processes along with other details. On the right side a small summary of them: how many tasks are running and the total active time.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1885" src="http://techyaz.com/wp-content/uploads/2018/02/4-Htop_top-min.jpg" alt="Top section of htop window" width="766" height="131" srcset="https://techyaz.com/wp-content/uploads/2018/02/4-Htop_top-min.jpg 766w, https://techyaz.com/wp-content/uploads/2018/02/4-Htop_top-min-300x51.jpg 300w" sizes="auto, (max-width: 766px) 100vw, 766px" /></p>
<p>&#8220;Second part&#8221; also you can say middle part is the main view where all the processes are showing. You can see this in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1886" src="http://techyaz.com/wp-content/uploads/2018/02/5-Htop_middle-min.jpg" alt="Main Processes View" width="932" height="430" srcset="https://techyaz.com/wp-content/uploads/2018/02/5-Htop_middle-min.jpg 932w, https://techyaz.com/wp-content/uploads/2018/02/5-Htop_middle-min-300x138.jpg 300w, https://techyaz.com/wp-content/uploads/2018/02/5-Htop_middle-min-768x354.jpg 768w" sizes="auto, (max-width: 932px) 100vw, 932px" /></p>
<p>This is where we have the information through columns that contain details about these processes. The columns are:</p>
<ul>
<li>PID: Displays the process identifier number.</li>
<li>User: The user tells us that he has activated this process.</li>
<li>PRI: It shows the priority with which the process is executed.</li>
<li>NI: Shows the priority level</li>
<li>VIRT: The number of virtual memory used by the process.</li>
<li>RES: Used ram memory (Megabytes)</li>
<li>SHR: Shared memory used</li>
<li>S: Process status (Running, sleeping or zombie)</li>
<li>CPU%: percentage of CPU used by the process</li>
<li>MEM%: percentage of ram memory used by the process</li>
<li>TIME+: Active life-time of the process</li>
<li>Command: The command that executes the process.</li>
</ul>
<p>So with this we have all the information of the processes that are running at that time.</p>
<p>The &#8220;last part&#8221; displays the tools provided by Htop for navigation. For example, allows us to search, sort the processes and the best, for me, the &#8220;kill&#8221; processes by using shortcut keys.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1887" src="http://techyaz.com/wp-content/uploads/2018/02/6-Htop_bottom-min.jpg" alt="Lower section of Htop" width="828" height="64" srcset="https://techyaz.com/wp-content/uploads/2018/02/6-Htop_bottom-min.jpg 828w, https://techyaz.com/wp-content/uploads/2018/02/6-Htop_bottom-min-300x23.jpg 300w, https://techyaz.com/wp-content/uploads/2018/02/6-Htop_bottom-min-768x59.jpg 768w" sizes="auto, (max-width: 828px) 100vw, 828px" /></p>
<p>To kill a process we must navigate through the processes with the up and down keys, select it, press the <strong>F9</strong> key, and choose the number that corresponds to the option of killing that serves us. I almost always use the 9th showing in below screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1888" src="http://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min-1024x552.png" alt="htop kill screen" width="1024" height="552" srcset="https://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min-1024x552.png 1024w, https://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>In conclusion we can say that Htop is a great tool to visualize the active and non-active processes in our Linux systems. Being terminal-based, it has the advantage of consuming virtually nothing in resources and helps us to close very heavy or unnecessary processes.</p>
<p>Here i have shown you how to install Htop on Red Hat, Ubuntu, Fedora and Debian systems and its uses. I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><span style="color: #800000;"><strong><em>Read More:</em></strong></span></p>
<ul>
<li><strong><a href="http://techyaz.com/debian/how-to-install-debian-9-stretch/" target="_blank" rel="noopener">How to Install Debian 9 Stretch?</a></strong></li>
<li><strong><a href="http://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/" target="_blank" rel="noopener">How to Install Zebbix on Ubuntu 16.4?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">How to Install RedHat Enterprise Linux?</a></strong></li>
<li><strong><a href="http://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">Installing Ubuntu 16.04 in Step by Step Process</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/linux/install-htop-monitor-linux-processes/">How to Install Htop and Use it to Monitor Linux Processes?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/linux/install-htop-monitor-linux-processes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install PgAdmin 4 in Debian 9 Stretch?</title>
		<link>https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/</link>
					<comments>https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/#comments</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Thu, 01 Feb 2018 12:05:40 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux Tools]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pgadmin]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1702</guid>

					<description><![CDATA[<p>I have written how to install PostgreSQL 10.1 on debian 9 stretch in my last article. Read the attached link if you want to learn its step by step process. Here, I am going to install pgAdmin 4 on debian&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/">How to Install PgAdmin 4 in Debian 9 Stretch?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have written<strong> <a href="http://techyaz.com/debian/install-postgresql-10-1-debian-9-stretch/" target="_blank" rel="noopener">how to install PostgreSQL 10.1 on debian 9 stretch</a> </strong>in my last article. Read the attached link if you want to learn its step by step process. Here, I am going to install pgAdmin 4 on debian 9 stretch that is most popular and feature rich Open Source administration and development tool to manage PostgreSQL databases.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1722 alignleft" src="http://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200.png" alt="pgadmin4 installation" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200.png 300w, https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>PostgreSQL is for many the best in its area, and it is not the aim of this article to defend or support that theory, what we can say with all certainty is that it is one of the most robust and secure database handlers that exist. As if this were not enough, it has one of the most popular and complete graphical tools to manage it, such as pgAdmin.</p>
<p>As the project <a href="https://www.pgadmin.org/">website</a> says: “pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.” And of course we can install it in our preferred GNU/LINUX distribution. In this case we are going to install it in our <a href="https://www.debian.org/">Debian</a> 9 Stretch a large GNU/LINUX distribution widely used in the server and database area.</p>
<h3><span style="color: #333399;">Install pgAdmin 4 on Debian 9 Stretch</span></h3>
<p><strong>Note: In this tutorial it is assumed that you have postgreSQL installed, otherwise, we must install it. You can find the way of doing it in below link.</strong></p>
<ul>
<li><strong><a href="http://techyaz.com/debian/install-postgresql-10-1-debian-9-stretch/" target="_blank" rel="noopener">How to Install PostgreSQL 10.1 on Debian 9 Stretch</a></strong></li>
</ul>
<p>Let&#8217;s get started. The first thing we have to do is add the postgreSQL apt repository. If you have installed postgreSQL with the tutorial we have attached above, you can skip these steps. Otherwise we must add it.</p>
<p>First we logged in as root user. Write su in your terminal screen along with its password and press enter to connect.</p>
<pre><span style="color: #008000;"><strong>#Connect using root user</strong></span>
<span style="color: #0000ff;"><strong>su</strong></span></pre>
<p><img loading="lazy" decoding="async" class="wp-image-1706 size-full alignnone" src="http://techyaz.com/wp-content/uploads/2018/02/2-.su-min.png" alt="Connect using superuser" width="505" height="123" srcset="https://techyaz.com/wp-content/uploads/2018/02/2-.su-min.png 505w, https://techyaz.com/wp-content/uploads/2018/02/2-.su-min-300x73.png 300w" sizes="auto, (max-width: 505px) 100vw, 505px" /></p>
<p>Now, use below command to create the <em>pgdp.list</em> file in the <em>/etc/apt/source.list.d/</em> path.</p>
<pre><span style="color: #0000ff;"><strong>nano /etc/apt/source.list.d/pgdg.list</strong></span></pre>
<p>Here, we will add the next line of code to the terminal screen that will come after executing above command.</p>
<pre><strong><span style="color: #0000ff;">deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1707 size-large" src="http://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-1024x552.png" alt="Enter the given code lines" width="1024" height="552" srcset="https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-1024x552.png 1024w, https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Press <strong>ctrl + x</strong> to exit and select yes to save the changes.</p>
<p>Now import the repository signing key by running below commands on your terminal screen.</p>
<pre><span style="color: #008000;"><strong>#Import the repository signing key</strong></span>
<span style="color: #0000ff;"><strong>wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -</strong></span></pre>
<p>And to refresh the repository cache, just run the following command.</p>
<pre><span style="color: #008000;"><strong>#Refresh the repository.</strong></span>
<span style="color: #0000ff;"><strong>apt update</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-1708 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/4.-update-min.png" alt="Run apt update to refresh packages" width="658" height="450" srcset="https://techyaz.com/wp-content/uploads/2018/02/4.-update-min.png 658w, https://techyaz.com/wp-content/uploads/2018/02/4.-update-min-300x205.png 300w" sizes="auto, (max-width: 658px) 100vw, 658px" /></p>
<p>You can see all packages have been updated in above screenshot. Now we are ready to start installing pgAdmin 4.</p>
<h5><span style="color: #333399;"><strong>Installing Dependencies and Creating the Virtual Environment</strong></span></h5>
<p>We must install the necessary dependencies to handle the package. They are basically Python dependencies that needs to be resolved before installing pgadmin package. Execute below command in your terminal before going to install pgadmin.</p>
<pre><span style="color: #008000;"><strong>#Install Python </strong></span><span style="color: #008000;"><b>dependency.</b></span>
<span style="color: #0000ff;"><strong>apt install virtualenv python-pip libpq-dev python-dev</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1709 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/5.-install_dep-min.png" alt="Install Dependencies" width="752" height="309" srcset="https://techyaz.com/wp-content/uploads/2018/02/5.-install_dep-min.png 752w, https://techyaz.com/wp-content/uploads/2018/02/5.-install_dep-min-300x123.png 300w" sizes="auto, (max-width: 752px) 100vw, 752px" /></p>
<p>Type <strong>Y</strong> and press enter to install this dependency. The next step will be to create the virtual environment. In this case we will create it on <em>/home/Your_user/. </em>Run below commands to get this done.</p>
<pre><span style="color: #0000ff;"><strong><span style="color: #008000;">#Go to your directory.</span>
cd /home/your_user/</strong></span>

<strong><span style="color: #008000;">#Create Virtual Environment.</span></strong>
<span style="color: #0000ff;"><strong>virtualenv pgadmin4</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1710" src="http://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min.png" alt="Run Virtualenv pgadmin4" width="1020" height="192" srcset="https://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min.png 1020w, https://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min-300x56.png 300w, https://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min-768x145.png 768w" sizes="auto, (max-width: 1020px) 100vw, 1020px" /></p>
<p>This creates a folder called &#8220;<em>pgadmin4</em>&#8220;. We must enter it to get in to this folder.</p>
<pre><span style="color: #0000ff;"><strong>cd pgadmin4</strong></span></pre>
<p>The next step will be to &#8220;activate&#8221; the virtual environment by running below statement.</p>
<pre><span style="color: #008000;"><strong>#Activate virtual environment.</strong></span>
<span style="color: #0000ff;"><strong>source bin/activate</strong></span></pre>
<h5><span style="color: #333399;"><strong>Downloading and Installing pgAdmin</strong></span></h5>
<p>Now, we will install pgadmin on this machine. We can download latest version pgAdmin4-2.1 from this <a href="https://www.postgresql.org/ftp/pgadmin/pgadmin4/v2.1/pip/">link</a>. For this tutorial we will use the python package that is showing in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1711" src="http://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min.png" alt="Download PgAdmin Package" width="864" height="554" srcset="https://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min.png 864w, https://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min-300x192.png 300w, https://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min-768x492.png 768w" sizes="auto, (max-width: 864px) 100vw, 864px" /></p>
<p>And finally we will proceed to install pgadmin using pip command as given below.</p>
<pre><span style="color: #008000;"><strong>#Replace &lt;path-where-file-is-located&gt; with your patch followed by file name.</strong></span>
<span style="color: #0000ff;"><strong>pip install &lt;path-where-file-is-located&gt;</strong></span></pre>
<p>We will be running below command in our case.</p>
<pre><span style="color: #008000;"><strong>#Run below command to install pgadmin.</strong></span>
<strong><span style="color: #0000ff;">pip install /home/angelo/Descargas/pgadmin4-2.1-py2.py3-none-any.whl</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1712 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min.png" alt="pip install" width="1282" height="610" srcset="https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min.png 1282w, https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min-300x143.png 300w, https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min-768x365.png 768w, https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min-1024x487.png 1024w" sizes="auto, (max-width: 1282px) 100vw, 1282px" /></p>
<p>With this pgAdmin is already installed but we are not finished yet. You need to create a local configuration and run it. Run below command to do this.</p>
<pre><strong><span style="color: #0000ff;"><span style="color: #008000;">#Go to pgadmin4 folder</span>
cd lib/python2.7/site-packages/pgadmin4

<span style="color: #008000;">#Create config file</span>
touch config_local.py</span></strong></pre>
<p>The &#8220;touch&#8221; command creates an empty file from the linux terminal, if the file exists it will change the date and time of the modification. In that file we can place the settings we want, if the file is left empty it will take the global settings of python.</p>
<p>We can now execute below command to create the credentials. Once you run below command, it will ask you to enter your email address and password. Those credentials will be the ones we use to access the application from the browser.</p>
<pre><strong><span style="color: #0000ff;">python lib/python2.7/site-packages/pgadmin4/pgAdmin4.pyc</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1713" src="http://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min.png" alt="Python settings" width="1020" height="176" srcset="https://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min.png 1020w, https://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min-300x52.png 300w, https://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min-768x133.png 768w" sizes="auto, (max-width: 1020px) 100vw, 1020px" /></p>
<p>Now we have created the credentials as well in above screenshot. At the end, we will be told that we must log in with our favorite browser to 127.0.0.1:5050 to log in and enter the main page of pgAdmin.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1714" src="http://techyaz.com/wp-content/uploads/2018/02/11.-running2-min.png" alt="running pgadmin" width="857" height="176" srcset="https://techyaz.com/wp-content/uploads/2018/02/11.-running2-min.png 857w, https://techyaz.com/wp-content/uploads/2018/02/11.-running2-min-300x62.png 300w, https://techyaz.com/wp-content/uploads/2018/02/11.-running2-min-768x158.png 768w" sizes="auto, (max-width: 857px) 100vw, 857px" /></p>
<p>Let&#8217;s go to our browser and type 127.0.0.1:5050</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1715 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/12.-login-min.png" alt="Launch pgadmin url" width="942" height="490" srcset="https://techyaz.com/wp-content/uploads/2018/02/12.-login-min.png 942w, https://techyaz.com/wp-content/uploads/2018/02/12.-login-min-300x156.png 300w, https://techyaz.com/wp-content/uploads/2018/02/12.-login-min-768x399.png 768w" sizes="auto, (max-width: 942px) 100vw, 942px" /></p>
<p>We put our email address and the password we have previously entered. We can also select the language. Once we will be logged in using given credentials, we can see the main pgAdmin panel that is also showing in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1716" src="http://techyaz.com/wp-content/uploads/2018/02/13.-inside-min.png" alt="PgAdmin Portal" width="1366" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min.png 1366w, https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min-1024x552.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></p>
<p>We can test the application by adding a server. In this case it will be a local server. We must click on the &#8220;<em><strong>Add new Server</strong></em>&#8221; link given in between <em>Quick Link</em> section. We will get below screen to enter details about the server that we want to add.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1717" src="http://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min.png" alt="Add New Server" width="1366" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min.png 1366w, https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min-1024x552.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></p>
<p>The name we want to give to the connection is placed in the window. I called it &#8220;local.&#8221; We&#8217;ll leave the rest the same, if we want to.</p>
<p>In the connection tab, we will enter the connection parameters <em>Host name, port, database, username, and password </em>to add the server. You can see this in beow screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1718" src="http://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min.png" alt="Add Server Connection Details" width="1094" height="626" srcset="https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min.png 1094w, https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min-300x172.png 300w, https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min-768x439.png 768w, https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min-1024x586.png 1024w" sizes="auto, (max-width: 1094px) 100vw, 1094px" /></p>
<p>And with this we already have an added server and we can start working with postgreSQL. You can see the server is added in left side pane of pgAdmin panel. You can expand the plus sign to see the details like databases etc.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1719" src="http://techyaz.com/wp-content/uploads/2018/02/16.-server-min.png" alt="Pgadmin panelpost adding server" width="1366" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/02/16.-server-min.png 1366w, https://techyaz.com/wp-content/uploads/2018/02/16.-server-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/16.-server-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/16.-server-min-1024x552.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></p>
<h3><span style="color: #333399;"><strong>Conclusion</strong></span></h3>
<p>We have installed pgadmin 4 in debian 9 stretch to manage PostgreSQL databases. Data management is vital to system administration and specialized programs are required to keep data secure and properly structured. Complementing PostgreSQL we have pgAdmin that helps us, with a friendly graphical interface, to manage our databases, to make sentences and to monitor the service.</p>
<p>Installing both is one of the best ways to have and view databases in a way that is appropriate for our applications.</p>
<p>I hope you like this article. Please Like, Share, Comment &amp; Subscribe to this website to get all new articles directly in your inbox. You can also follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/">How to Install PgAdmin 4 in Debian 9 Stretch?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
