<?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>Debian - Techyaz.com</title>
	<atom:link href="https://techyaz.com/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Sat, 28 Apr 2018 06:39:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>

<image>
	<url>https://techyaz.com/wp-content/uploads/2017/11/cropped-Site-icon-150x150.png</url>
	<title>Debian - Techyaz.com</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Use CAT Command on Linux System?</title>
		<link>https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/</link>
					<comments>https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Tue, 24 Apr 2018 13:55:44 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=2126</guid>

					<description><![CDATA[<p>This time we continue with the explanation of simple Linux command to learn basics. The command chosen today is the cat command. Cat comes from the word &#8220;concatenate&#8220;.  In short the main utility is to display the contents of one or&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/">How to Use CAT Command on Linux System?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This time we continue with the explanation of simple Linux command to learn basics. The command chosen today is the cat command. Cat comes from the word &#8220;<em>concatenate</em>&#8220;.  In short the main utility is to display the contents of one or more files in the terminal. Here, i will describe most useful examples of CAT command.</p>
<p>Normally the cat command is applied for basically three things in particular:</p>
<ul>
<li>Display the contents of a file</li>
<li>Copy text files to another text file</li>
<li>Append a text file&#8217;s contents to another text file</li>
</ul>
<p>Being a UNIX command it is ported to all GNU/LINUX distributions and of course, it has options to expand and vary the power of the command itself.  Let&#8217;s see the output at the terminal if we do the following command:</p>
<pre><span style="color: #0000ff;"><strong>cat --help</strong></span></pre>
<p>The command shows us a quick help on the cat command including its options.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2127" src="http://techyaz.com/wp-content/uploads/2018/04/1-cat-min.png" alt="cat help" width="616" height="504" srcset="https://techyaz.com/wp-content/uploads/2018/04/1-cat-min.png 616w, https://techyaz.com/wp-content/uploads/2018/04/1-cat-min-300x245.png 300w" sizes="(max-width: 616px) 100vw, 616px" /></p>
<p>The basic usage syntax is:</p>
<p><strong><em>cat [OPTION] [FILE]&#8230;</em></strong></p>
<p>And the list of commands is shown in this table:</p>
<table>
<tbody>
<tr>
<td width="234"><strong>Option</strong></td>
<td width="342"><strong>Description</strong></td>
</tr>
<tr>
<td width="234">-A</td>
<td width="342">&#8211;show-all Euivalent to –vET</td>
</tr>
<tr>
<td width="234">-b</td>
<td width="342">&#8211;number-nonblank number nonempty output lines, overrides -n</td>
</tr>
<tr>
<td width="234">-e</td>
<td width="342">equivalent to -vE</td>
</tr>
<tr>
<td width="234">-E</td>
<td width="342">&#8211;show-ends display $ at end of each line</td>
</tr>
<tr>
<td width="234">-n</td>
<td width="342">&#8211;number number all outpout lines</td>
</tr>
<tr>
<td width="234">-s</td>
<td width="342">&#8211;squeeze-blank  suppress repeated empty output lines</td>
</tr>
<tr>
<td width="234">-t</td>
<td width="342">equivalent to -vT</td>
</tr>
<tr>
<td width="234">-T</td>
<td width="342">&#8211;show-tabs display TAB characters as ^I</td>
</tr>
<tr>
<td width="234">-u</td>
<td width="342">(ignored)</td>
</tr>
<tr>
<td width="234">-V</td>
<td width="342">&#8211;show-nonprinting   use ^ and M- notation, except for LFD and TAB</td>
</tr>
</tbody>
</table>
<p>Don&#8217;t worry; we&#8217;ll examine the most useful options with several examples.</p>
<h5><span style="color: #993300;">Display Content of File</span></h5>
<p>If we want to show the content of a text file, the syntax would be:</p>
<pre><span style="color: #0000ff;"><strong>cat path_of_the_archive</strong></span></pre>
<p>I&#8217;m going to show the content of a file called file1.txt located in the Example folder. Run below command to display file1.txt content.</p>
<pre><span style="color: #0000ff;"><strong>cat file1.txt</strong></span></pre>
<p><img decoding="async" class="alignnone size-full wp-image-2128" src="http://techyaz.com/wp-content/uploads/2018/04/2-cat-min.png" alt="Show content of a file using CAT" width="842" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/2-cat-min.png 842w, https://techyaz.com/wp-content/uploads/2018/04/2-cat-min-300x60.png 300w, https://techyaz.com/wp-content/uploads/2018/04/2-cat-min-768x152.png 768w" sizes="(max-width: 842px) 100vw, 842px" /></p>
<p>And there we have the content of the file shown on the terminal in above image.</p>
<p>If you would like to display the contents of several files, simply place them next. Run below command to display contents of two files file1.txt and file2.txt.</p>
<pre><span style="color: #0000ff;"><strong>cat file1.txt file2.txt</strong></span></pre>
<p>The exit at the terminal would be as follows:</p>
<p><img decoding="async" class="alignnone size-full wp-image-2129" src="http://techyaz.com/wp-content/uploads/2018/04/3-cat-min.png" alt="Display content of several files" width="805" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/3-cat-min.png 805w, https://techyaz.com/wp-content/uploads/2018/04/3-cat-min-300x62.png 300w, https://techyaz.com/wp-content/uploads/2018/04/3-cat-min-768x159.png 768w" sizes="(max-width: 805px) 100vw, 805px" /></p>
<p>You can see the contents of both files one by one in above image.</p>
<h5><span style="color: #993300;">Identify Specific File Content</span></h5>
<p>As we can see in above image, it simply shows the contents of file 1 and when it ends, it immediately shows the content of file 2 as if they were &#8220;concatenated&#8221;. If you would like to know where the content of each file ends, then use the <strong>-e</strong> option to show a <strong>$</strong> at the end of the file.</p>
<pre><span style="color: #0000ff;"><strong>cat –e file1.txt file2.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2130" src="http://techyaz.com/wp-content/uploads/2018/04/4-cat-min.png" alt="Display where the content of the file ends" width="815" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/4-cat-min.png 815w, https://techyaz.com/wp-content/uploads/2018/04/4-cat-min-300x61.png 300w, https://techyaz.com/wp-content/uploads/2018/04/4-cat-min-768x157.png 768w" sizes="auto, (max-width: 815px) 100vw, 815px" /></p>
<h5><span style="color: #993300;">Add Number of Lines in Output</span></h5>
<p>If you want to display the number of lines along with the file content then you can show it by adding <strong>-n</strong> option. Run below command to display the line numbers while displaying the file content.</p>
<pre><span style="color: #0000ff;"><strong>cat –n file1.txt file2.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2131" src="http://techyaz.com/wp-content/uploads/2018/04/5-cat-min.png" alt="display the number of lines in a file" width="887" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/5-cat-min.png 887w, https://techyaz.com/wp-content/uploads/2018/04/5-cat-min-300x56.png 300w, https://techyaz.com/wp-content/uploads/2018/04/5-cat-min-768x145.png 768w" sizes="auto, (max-width: 887px) 100vw, 887px" /></p>
<h5><span style="color: #993300;">Copy Contents of One file to Another</span></h5>
<p>We can also copy the content of one text file to another using CAT command. Run below command to copy content of file1.txt to file4.txt.</p>
<pre><span style="color: #0000ff;"><strong>cat file1.txt &gt; file4.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2132" src="http://techyaz.com/wp-content/uploads/2018/04/6-cat-min.png" alt="Copy content of file 1 to file 2" width="698" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/6-cat-min.png 698w, https://techyaz.com/wp-content/uploads/2018/04/6-cat-min-300x72.png 300w" sizes="auto, (max-width: 698px) 100vw, 698px" /></p>
<p>In this case, the command reads the contents of file1.txt and overwrites the contents of the new file. If it does not exist, it is simply created. Now we can validate above command whether contents have been copied to not. Now we proceed to show the contents of <em>file4.txt</em> to verify that it made the &#8220;copy&#8221;. Display content of file4.txt by running below command.</p>
<pre><span style="color: #0000ff;"><strong>cat file4.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2133" src="http://techyaz.com/wp-content/uploads/2018/04/7-cat-min.png" alt="Validate the copied content" width="655" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/7-cat-min.png 655w, https://techyaz.com/wp-content/uploads/2018/04/7-cat-min-300x76.png 300w" sizes="auto, (max-width: 655px) 100vw, 655px" /></p>
<p>We can see the content is same as file1.txt in above image.</p>
<h5><span style="color: #993300;">Combine or Append the Content of One File to Another</span></h5>
<p>The cat command also allows us to combine or append a text file data to another one, thanks to the operator &gt;&gt;</p>
<p>In this case, we will combine the content of file1.txt with that of file2.txt</p>
<pre><span style="color: #0000ff;"><strong>cat file1.txt &gt;&gt; file2.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2134" src="http://techyaz.com/wp-content/uploads/2018/04/8-cat-min.png" alt="Combine the content of two files into one file" width="693" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/8-cat-min.png 693w, https://techyaz.com/wp-content/uploads/2018/04/8-cat-min-300x72.png 300w" sizes="auto, (max-width: 693px) 100vw, 693px" /></p>
<p>And then we check the contents of the file2.txt file to validate it.</p>
<pre><span style="color: #0000ff;"><strong>cat file2.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2135" src="http://techyaz.com/wp-content/uploads/2018/04/9-cat-min.png" alt="Validate the combined content" width="626" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/9-cat-min.png 626w, https://techyaz.com/wp-content/uploads/2018/04/9-cat-min-300x80.png 300w" sizes="auto, (max-width: 626px) 100vw, 626px" /></p>
<p>We can see contents have been combined in to this file. Basically the command takes the content of file1.txt and places it at the end of the file2.txt file</p>
<p>As a conclusion we can say that the cat command is a useful and important command to work with text files in GNU/LINUX and everything about the terminal. It is very useful for managing service configuration files on a server.</p>
<p>I hope you like this article. Please follow us on 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;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><a href="http://techyaz.com/rhel/11-examples-ls-command-list-files-linux/" target="_blank" rel="noopener">11 Examples of ls command to List Files in Linux</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/linux-user-administration-add-delete-modify-user-accounts/" target="_blank" rel="noopener">Add, Delete &amp; Modify Linux User Accounts</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/" target="_blank" rel="noopener">How to Reset or Change Linux User Passwords?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/change-hostname-red-hat-linux-server/" target="_blank" rel="noopener">How to Change Linux Server Name?</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/">How to Use CAT Command on Linux System?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux User Administration &#8211; Add, Delete &#038; Modify User Accounts</title>
		<link>https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/</link>
					<comments>https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Mon, 12 Mar 2018 10:41:35 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[user]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1906</guid>

					<description><![CDATA[<p>In IT’s World, it is common to hear about system users, especially if you work in the administration of systems under that environment. GNU/LINUX is a multiuser and reliable operating system in terms of security, but it is always good&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/">Linux User Administration &#8211; Add, Delete &#038; Modify User Accounts</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In IT’s World, it is common to hear about system users, especially if you work in the administration of systems under that environment. GNU/LINUX is a multiuser and reliable operating system in terms of security, but it is always good to know the basics of managing system users. Well, today we&#8217;ll be talking about creating, modifying and deleting users in the GNU/LINUX systems. Here, i will explain how to add user to Linux and Modify or remove user to Linux machine.</p>
<h3><span style="color: #333399;">USERS IN GNU/LINUX<strong> </strong></span></h3>
<p>The first thing we need to know is that, in GNU/LINUX there are different types of users already predefined and each of them have different characteristics for the correct functioning of the system. The first of these is the <strong>root</strong> user.</p>
<p><strong>Root user</strong></p>
<p>The Root user is the administrator of the operating system, with all options and permissions to perform operations and changes in the system. Its main features are:</p>
<ul>
<li>It is the only user account with system-wide privileges.</li>
<li>In charge of controlling the administration of user accounts.</li>
<li>It is the only user that can stop the system.</li>
<li>The root user can install, uninstall and update basic system programs and libraries.</li>
</ul>
<p>In other words, the root user is the all-powerful user of the system.</p>
<p><strong>Special Users</strong><strong> </strong></p>
<p>They are also called users without login. Their roles in the system are determined by the addition of installed programs. They are distinguished by:</p>
<ul>
<li>They are created (usually) automatically at the time of Linux or application installation.</li>
<li>It does not have all the privileges of the root user, but depending on the account they assume different root privileges.</li>
<li>They are created when installing the system or any of its extra components.</li>
<li>Some of them are: bin, daemon, adm, lp, sync, shutdown, mail, operator, squid, apache</li>
</ul>
<p><strong>Common Users</strong><strong> </strong></p>
<p>These last users are us. That is, they are accounts that are created to use all accessible parts of the system, such as assigned programs and directories. They have a Home directory where they can easily access their documents and files.</p>
<ul>
<li>Such users have only full privileges in their working directory or HOME.</li>
<li>They are used for individual users.</li>
<li>These users do not have privileges to manage the system or install software.<strong> </strong></li>
</ul>
<h5><span style="color: #993300;"><strong>How to Create or Add USERS TO Linux Systems?</strong></span></h5>
<p>The adduser command is a &#8220;new&#8221; alternative to the useradd binary that allows us to add common users to our GNU/LINUX distribution. It is much more &#8220;friendly&#8221; and intuitive than useradd and allows us to add additional information about the new user. Here we will learn how to create user on Linux system.</p>
<p>In order to use the adduser command we must be root users, for that reason write the following command in a terminal</p>
<pre><span style="color: #008000;"><strong>#Connect using su.</strong></span>
<span style="color: #0000ff;"><strong>su</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1907" src="http://techyaz.com/wp-content/uploads/2018/03/1-su-min.png" alt="" width="648" height="110" srcset="https://techyaz.com/wp-content/uploads/2018/03/1-su-min.png 648w, https://techyaz.com/wp-content/uploads/2018/03/1-su-min-300x51.png 300w" sizes="auto, (max-width: 648px) 100vw, 648px" /></p>
<p>You need to write the root password then we can use adduser. The most basic way to use the adduser command is:</p>
<pre><span style="color: #0000ff;"><strong>adduser new_user</strong><strong> </strong></span></pre>
<p>where new_user is the name of user account. With this &#8220;basic&#8221; form a new user is created and by giving Enter we are asked to enter the new password for this new user account.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1908" src="http://techyaz.com/wp-content/uploads/2018/03/2-adduser-min.png" alt="Add Linux User" width="599" height="191" srcset="https://techyaz.com/wp-content/uploads/2018/03/2-adduser-min.png 599w, https://techyaz.com/wp-content/uploads/2018/03/2-adduser-min-300x96.png 300w" sizes="auto, (max-width: 599px) 100vw, 599px" /></p>
<p>Type the password for your new user account and press Enter. Prompt will ask you to reenter the same password. Re-enter the password and press enter button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1909" src="http://techyaz.com/wp-content/uploads/2018/03/3-enter-password-min.png" alt="Set Password for New User in Linux" width="567" height="193" srcset="https://techyaz.com/wp-content/uploads/2018/03/3-enter-password-min.png 567w, https://techyaz.com/wp-content/uploads/2018/03/3-enter-password-min-300x102.png 300w" sizes="auto, (max-width: 567px) 100vw, 567px" /></p>
<p>After that you will be asked for any additional information such as Full Name, phone number etc.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1910" src="http://techyaz.com/wp-content/uploads/2018/03/4-fullName-min.png" alt="Enter User Account Details" width="588" height="244" srcset="https://techyaz.com/wp-content/uploads/2018/03/4-fullName-min.png 588w, https://techyaz.com/wp-content/uploads/2018/03/4-fullName-min-300x124.png 300w" sizes="auto, (max-width: 588px) 100vw, 588px" /></p>
<p>At the end, prompt will ask us to confirm the information provided. Type Y to proceed if all information is correct.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1911" src="http://techyaz.com/wp-content/uploads/2018/03/5-enter-details-min.png" alt="Enter User Details" width="587" height="343" srcset="https://techyaz.com/wp-content/uploads/2018/03/5-enter-details-min.png 587w, https://techyaz.com/wp-content/uploads/2018/03/5-enter-details-min-300x175.png 300w" sizes="auto, (max-width: 587px) 100vw, 587px" /></p>
<p>Now, as mentioned above, that is the most basic way to create a user but adduser also has options and alternatives to create users. These alternatives are given by the options that can be added to the command, some of them are:</p>
<pre><strong><span style="color: #0000ff;">adduser [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID]</span></strong>
<strong><span style="color: #0000ff;">[--firstuid ID] [--lastuid ID] [--gecos GECOS] [--ingroup GROUP | --gid ID]</span></strong>
<strong><span style="color: #0000ff;">[--disabled-password] [--disabled-login] [--add_extra_groups] USER

</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1912" src="http://techyaz.com/wp-content/uploads/2018/03/6-adduser-options-min.png" alt="Add Linux User options" width="691" height="562" srcset="https://techyaz.com/wp-content/uploads/2018/03/6-adduser-options-min.png 691w, https://techyaz.com/wp-content/uploads/2018/03/6-adduser-options-min-300x244.png 300w" sizes="auto, (max-width: 691px) 100vw, 691px" /></p>
<p>You can see various options available with adduser command in above screenshot. Let&#8217;s look at example. If you would like to add a user named <em>angelob</em>, and set their home directory to <em>/opt/angelob/</em> the the command will be as follows.</p>
<pre><strong><span style="color: #0000ff;">adduser --home /opt/angelob/ angelob</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1913" src="http://techyaz.com/wp-content/uploads/2018/03/7-adduser-min.png" alt="Add User" width="634" height="192" srcset="https://techyaz.com/wp-content/uploads/2018/03/7-adduser-min.png 634w, https://techyaz.com/wp-content/uploads/2018/03/7-adduser-min-300x91.png 300w" sizes="auto, (max-width: 634px) 100vw, 634px" /></p>
<p>And then it will ask us for the new password and basic user information. This way you can add user to Linux system.</p>
<h5><span style="color: #993300;"><strong>How to Delete Linux User Accounts?</strong></span><strong> </strong></h5>
<p>As in above section we have learnt how to create user on Linux system. Here i will explain how remove user from Linux system. Removing users from the Linux system is simple and the command to do so is <em><strong>userdel</strong></em> and has many fewer options to make the task. You can see the descriptions for this command in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1914" src="http://techyaz.com/wp-content/uploads/2018/03/8-deleteuser-min.png" alt="Delete Linux User" width="704" height="254" srcset="https://techyaz.com/wp-content/uploads/2018/03/8-deleteuser-min.png 704w, https://techyaz.com/wp-content/uploads/2018/03/8-deleteuser-min-300x108.png 300w" sizes="auto, (max-width: 704px) 100vw, 704px" /></p>
<p>The easiest way to delete a user is to remove it by running below command. Here user is the name of user account.</p>
<pre><span style="color: #0000ff;"><strong><span style="color: #008000;">#user is the name of user account.</span>
userdel user</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1915" src="http://techyaz.com/wp-content/uploads/2018/03/9-deleteuser-min.png" alt="Remove Linux User" width="605" height="103" srcset="https://techyaz.com/wp-content/uploads/2018/03/9-deleteuser-min.png 605w, https://techyaz.com/wp-content/uploads/2018/03/9-deleteuser-min-300x51.png 300w" sizes="auto, (max-width: 605px) 100vw, 605px" /></p>
<p>We can also delete your entire personal directory with the -r option. Run below command to do this.</p>
<pre><span style="color: #0000ff;"><strong>userdel -r user</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1916" src="http://techyaz.com/wp-content/uploads/2018/03/10-userdeletion-min.png" alt="Drop Linux user" width="629" height="98" srcset="https://techyaz.com/wp-content/uploads/2018/03/10-userdeletion-min.png 629w, https://techyaz.com/wp-content/uploads/2018/03/10-userdeletion-min-300x47.png 300w" sizes="auto, (max-width: 629px) 100vw, 629px" /></p>
<h5><span style="color: #993300;"><strong>How to Modify Linux User Accounts?</strong><strong> </strong></span></h5>
<p>I have shown how to remove Linux user  in above section. Here, i will explain how to modify a Linux user. To modify users in the GNU/LINUX system we use the command <strong><em>usermod</em></strong>. We can see in the following image the possibilities shown in command:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1917" src="http://techyaz.com/wp-content/uploads/2018/03/11-modifyuser-min.png" alt="Modify Linux User" width="705" height="572" srcset="https://techyaz.com/wp-content/uploads/2018/03/11-modifyuser-min.png 705w, https://techyaz.com/wp-content/uploads/2018/03/11-modifyuser-min-300x243.png 300w" sizes="auto, (max-width: 705px) 100vw, 705px" /></p>
<p>For example, if we wanted to change the password of a created user, it would be as follows.</p>
<pre><span style="color: #008000;"><strong>#user is the name of Linux user account.</strong></span>
<span style="color: #0000ff;"><strong>usermod -p ‘new_password’ user</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1918" src="http://techyaz.com/wp-content/uploads/2018/03/12-modifyuser-min.png" alt="modify linux users" width="654" height="109" srcset="https://techyaz.com/wp-content/uploads/2018/03/12-modifyuser-min.png 654w, https://techyaz.com/wp-content/uploads/2018/03/12-modifyuser-min-300x50.png 300w" sizes="auto, (max-width: 654px) 100vw, 654px" /></p>
<p>Obviously this method is not recommended because it leaves the password visible. Be careful. Read below article if you want to change your Linux user account password.</p>
<ul>
<li><strong><a href="http://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/" target="_blank" rel="noopener">How to Reset or Change User Password on RHEL?</a></strong></li>
</ul>
<p>Another useful example is to move the personal folder of the desired user to another one, for it we must combine the options -d and -m in the following way.</p>
<p><span style="color: #0000ff;"><strong>usermod -d /opt/angelob1/ -m angelob</strong></span></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1919" src="http://techyaz.com/wp-content/uploads/2018/03/13-modifyuser-min.png" alt="Modify Linux user" width="619" height="107" srcset="https://techyaz.com/wp-content/uploads/2018/03/13-modifyuser-min.png 619w, https://techyaz.com/wp-content/uploads/2018/03/13-modifyuser-min-300x52.png 300w" sizes="auto, (max-width: 619px) 100vw, 619px" /></p>
<p>With the rest of the options, we only have to place them according to our needs.</p>
<p>In conclusion we can say that the administration of GNU/LINUX users is a matter for system administrators, the subject is wide and with many options to take into account for the creation of them.</p>
<p><em>Adduser</em> simplifies the creation of user accounts and <em>usermod</em> allows us to modify them in a very fast and dynamic way. And if a user has already completed his life cycle in the system, we can remove it with <em>userdel</em>.</p>
<p>I hope this small guide has been useful to understand a little bit about GNU/LINUX users, clarifying that the commands explained in the article can be used in all popular distributions such as Ubuntu, Red Hat, Suse, Debian and others.<br />
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><em><span style="color: #800000;"><strong>Read More:</strong></span></em></p>
<ul>
<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>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/change-hostname-red-hat-linux-server/" target="_blank" rel="noopener">How to Change Hostname of RHEL system?</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/install-htop-monitor-linux-processes/" target="_blank" rel="noopener">How to Install and Use Htop to Monitor Linux Processes?</a></strong></li>
<li><strong><a href="http://techyaz.com/debian/how-to-install-debian-9-stretch/" target="_blank" rel="noopener">Install Debian 9 Stretch in Step by Step Process</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/">Linux User Administration &#8211; Add, Delete &#038; Modify User Accounts</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Red Hat Enterprise Linux Interview Questions and Answers</title>
		<link>https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/</link>
					<comments>https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Mon, 26 Feb 2018 09:32:20 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[RedHat Linux Interview Questions]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Linux Interview Questions and Answers]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1901</guid>

					<description><![CDATA[<p>When we talk about GNU/LINUX distributions we find a big collection of them, which can cover practically all the needs in almost all areas. Some of them range from simple home use to commercial production. The GNU/LINUX distribution that we&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/">Red Hat Enterprise Linux Interview Questions and Answers</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>When we talk about GNU/LINUX distributions we find a big collection of them, which can cover practically all the needs in almost all areas. Some of them range from simple home use to commercial production. The GNU/LINUX distribution that we will be talking about not only has a great impact on the &#8220;penguin&#8221; world, but also on the business sector is an obligatory reference because of its stability, commercial support and solutions applied to the cloud. Welcome to Red Hat Enterprise Linux. This article is about Red Hat Enterprise Linux Interview Questions and Answers that will help you to crack your technical round of Linux interviews.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1902 alignright" src="http://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA.png" alt="Red Hat Linux Interview Questions and Answers" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA.png 300w, https://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<h3><span style="color: #333399;">Red Hat Linux Interview Questions and Answers</span></h3>
<p><strong>1. What is Red Hat Enterprise Linux?</strong></p>
<p><strong>Answer &#8211;</strong> It is a GNU/LINUX distribution created and developed by the multinational enterprise oriented company Red Hat, being the basis for deploying cloud applications, servers or data center.</p>
<p><strong>2. Which is the package manager used by RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> The package manager in RHEL is YUM.</p>
<p><strong>3. How do I install a program in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> Installing a package or program in RHEL is simple thanks to YUM. With root permission we type in a terminal.</p>
<pre><strong><span style="color: #0000ff;">yum install package_name</span></strong></pre>
<p><strong>4. How can I update the packages in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> Run below command to update all packages in your RHEL system.</p>
<pre><strong><span style="color: #0000ff;">yum upgrade</span></strong></pre>
<p><strong>5. How can I remove the packages in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> Run below command to remove any package from RedHat Linux system.</p>
<pre><span style="color: #008000;"><strong>#Make sure to change the name of package that needs to be removed.</strong></span>
<strong><span style="color: #0000ff;">yum remove package_name</span></strong></pre>
<p><strong>6. How can I create a user in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> We can create a new user from the terminal with the command:</p>
<pre><strong><span style="color: #008000;">#Pass the user name in place of user_name </span></strong>
<span style="color: #0000ff;"><strong>useradd user_name</strong></span></pre>
<p><strong>7. How can I change the user password?</strong></p>
<p><strong>Answer &#8211;</strong> The command that allows us to change the password of the active user is <em><strong>passwd</strong></em>. By entering the command in the terminal, you will be prompted for the current password and twice for the new password. Read below article to learn step by step process to change user as well as sudo passwords.</p>
<ul>
<li><strong><a href="http://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/" target="_blank" rel="noopener">How to Reset or Change User Password on RHEL?</a></strong></li>
</ul>
<p><strong>8. How can I change the system language?</strong></p>
<p><strong>Answer-</strong> In RHEL, the system language can be changed using the following command:</p>
<pre><strong><span style="color: #0000ff;">localectl set-locale LANG=”xx_XX.utf8”</span></strong></pre>
<p>For example, if the system is in English and we want to change to German</p>
<pre><strong><span style="color: #0000ff;">localectl set-locale LANG=de_DE.utf8</span></strong></pre>
<p>Then simply restart the active session (not the system)</p>
<p><strong>9. What is a GNU/LINUX service?</strong></p>
<p><strong>Answer &#8211;</strong> A service is a program that runs in the background, outside the interactive control of the users of the system.</p>
<p><strong>10. How can I list the services that are running in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> This is very useful when managing systems in GNU/LINUX. We can list all the services that are running with the command:</p>
<pre><strong><span style="color: #0000ff;">systemctl -t service --state=active</span></strong></pre>
<p>If you want to check specific service running on RHEL then you can pass service name in above command. For example, i want to check SQL Server service running on my RHEL system then i will run below command. This command will show the output for only this service.</p>
<pre><strong><span style="color: #0000ff;">systemctl status mssql-server</span></strong></pre>
<p><strong>11. How can I start or stop a service?</strong></p>
<p><strong>Answer &#8211;</strong> During the administration of a GNU/LINUX based server we will have to initialize and also stop services.</p>
<p>To initialize:</p>
<pre><strong><span style="color: #0000ff;">systemctl start name.service </span></strong></pre>
<p>To Stop:</p>
<pre><strong><span style="color: #0000ff;">systemctl stop name.service</span></strong></pre>
<p>To Restart:</p>
<pre><strong><span style="color: #0000ff;">systemctl restart name.service</span></strong></pre>
<p><strong>12. How do I know which version of the kernel I am using?</strong></p>
<p><strong>Answer &#8211;</strong> To know which version of the Linux Kernel we are using, just use the command:</p>
<pre><strong><span style="color: #0000ff;">uname –r</span></strong></pre>
<p><strong>13. How can I add and remove kernel modules?</strong></p>
<p><strong>Answer &#8211;</strong> The kernel modules are small programs or libraries that are added to the kernel so that it can manage hardware devices. To add or remove it we use the command modprobe.</p>
<p>For example, to add a module:</p>
<pre><strong><span style="color: #0000ff;">modprobe module_name</span></strong></pre>
<p>And to remove a module</p>
<pre><strong><span style="color: #0000ff;">modprobe –r module_name</span></strong></pre>
<p><strong>14. What is the file system RHEL uses?</strong></p>
<p><strong>Answer &#8211;</strong> The file system used by RHEL is XFS</p>
<p><strong>15. How do I know how much space is available on my hard disk with RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> This is useful to know when we are reaching the hard disk capacity. With the command:</p>
<pre><strong><span style="color: #0000ff;">df –h</span></strong></pre>
<p><strong>16. Can I change hostname in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> Yes. There are multiple ways to change hostname of a RHEL system. For example if we want hostname to be example. com, we must write the following command in a terminal:</p>
<pre><strong><span style="color: #0000ff;">hostnamectl set-hostname example.com
</span></strong></pre>
<p>I have explained it in below article in very details way. Have a look at this article to learn the process to rename or change the hostname of RHEL system.</p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/change-hostname-red-hat-linux-server/" target="_blank" rel="noopener">How to Change Hostname of RHEL system?</a></strong></li>
</ul>
<p><strong>17. How do I know the IP address of the equipment in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> With the command:</p>
<pre><strong><span style="color: #0000ff;">nmcli dev show</span></strong></pre>
<p>We will not only be able to see the ip address, but also the complete information of all the network interfaces. You can read below article to learn how to check and change the IP address, subnet mask etc of a RHEL system.</p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/check-change-ip-address-subnet-mask-default-gateway-linux-server/" target="_blank" rel="noopener">How to Find and Change IP Address, Subnet Mask and Default Gateway of RHEL system?</a></strong></li>
</ul>
<p><strong>18. Can I install a Web server in RHEL?</strong></p>
<p><strong>Answer-</strong> Of course, we can install the web server we want: Apache, nGix or other.</p>
<p><strong>19. After installing Apache2, where is the default Document Root located?</strong></p>
<p><strong>Answer &#8211;</strong> By default the apache2 DocumentRoot in RHEL sets it to /var/www/html/</p>
<p><strong>20. How do I know which version of Red Hat Enterprise Linux is running the server?</strong></p>
<p><strong>Answer &#8211;</strong> Run the command in a terminal to get the RHEL version running on your system.</p>
<pre><strong><span style="color: #0000ff;">/etc/redhat-release</span></strong></pre>
<p>I hope you like this set of Linux Interview Questions and Answers. 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>The post <a href="https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/">Red Hat Enterprise Linux Interview Questions and Answers</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/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 Debian 9 Stretch?</title>
		<link>https://techyaz.com/debian/how-to-install-debian-9-stretch/</link>
					<comments>https://techyaz.com/debian/how-to-install-debian-9-stretch/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Mon, 12 Feb 2018 14:56:09 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1814</guid>

					<description><![CDATA[<p>There are many good distributions in the GNU/LINUX world, but if we want a &#8220;universal&#8221; one, I think we should talk about Debian. Debian is a distribution with a phenomenal track record with stability as its main focus but also&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/debian/how-to-install-debian-9-stretch/">How to Install Debian 9 Stretch?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There are many good distributions in the GNU/LINUX world, but if we want a &#8220;universal&#8221; one, I think we should talk about Debian. Debian is a distribution with a phenomenal track record with stability as its main focus but also its universality, Debian can be used in production servers as it is a small home PC. In this guide I will help you install Debian 9 Stretch from the beginning.</p>
<h3><span style="color: #333399;">Downloading Debian</span></h3>
<p>To install Debian 9 Stretch, first we need to access the download <a href="https://www.debian.org/CD/">section of the Debian website</a>, and first choose how we want to download it.</p>
<p>There are multiple options to download the debian package. You can choose whatever is easiest for you. I almost always choose the method of downloading via Torrent because it is faster and helps not saturate the main distribution servers. I recommend this method. To download via Torrent, I recommend Deluge or Qbittorrent.</p>
<p>After that, we choose cd (smaller size and smaller packets included) or DVD (large size and more packets) and the processor architecture that is usually 64-bit. And finally burn it to a DVD or USB drive.</p>
<h3><span style="color: #333399;">Install Debian 9 Stretch</span></h3>
<p><strong>Note:</strong><em> I always have to tell people that before they install a new operating system, try installing it on a virtual machine. This in order to minimize errors and loss of </em>information<em>. Once you are familiar with the process and satisfied with the result, you proceed to install it on the &#8220;real&#8221; computer.</em></p>
<p>Let&#8217;s install Debian 9 Stretch on our machine. This is the first image that Debian displays when you enter the installer. We choose Graphical install and press Enter as shown in below image. After that, we chose the language and our localization.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1816" src="http://techyaz.com/wp-content/uploads/2018/02/1-min-1.png" alt="Debian 9 Stretch Installation Welcome Screen" width="640" height="480" srcset="https://techyaz.com/wp-content/uploads/2018/02/1-min-1.png 640w, https://techyaz.com/wp-content/uploads/2018/02/1-min-1-300x225.png 300w" sizes="auto, (max-width: 640px) 100vw, 640px" /></p>
<p>Once you choose graphical install from above image, you will get below image to select your preferred language. Here, i have chosen English as my language. You can go with your language.</p>
<p><img loading="lazy" decoding="async" class="wp-image-1817 size-full aligncenter" src="http://techyaz.com/wp-content/uploads/2018/02/2-min-1.png" alt="Select Language" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/2-min-1.png 800w, https://techyaz.com/wp-content/uploads/2018/02/2-min-1-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/2-min-1-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Once you click on continue button after selecting the language, you will be getting next window to choose your time zone location . Here, choose your the location for which you want to display the server time. I have chosen united states time zone for myself.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1818" src="http://techyaz.com/wp-content/uploads/2018/02/3-min.png" alt="Select Country" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/3-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/3-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/3-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Once you click on continue button of above image, next step will come to choose our &#8220;locals&#8221;. That is, the system&#8217;s regional configuration. After that we must choose the input language.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1819" src="http://techyaz.com/wp-content/uploads/2018/02/4-min.png" alt="Configure Locales" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/4-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/4-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/4-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>I have selected United States as locales and clicked on continue button to proceed. Now we have to choose keyboard language configuration (input language configuration). Here i have selected English.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1820" src="http://techyaz.com/wp-content/uploads/2018/02/5-min.png" alt="Keyboard Configuration" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/5-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/5-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/5-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Once you press continue button, the installer will start writing the changes that you have selected or entered during above steps. You can see this in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1821" src="http://techyaz.com/wp-content/uploads/2018/02/6-min.png" alt="Debian setting apply in process" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/6-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/6-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/6-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Once above changes will be set then next thing you&#8217;ll see about network configuration. We will enter the hostname and then the domain name. I have entered debian as hostname of this system. You can write your hostname as per your naming convention.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1822" src="http://techyaz.com/wp-content/uploads/2018/02/7-min.png" alt="Set the Hostname of debian 9 stretch" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/7-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/7-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/7-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Next we need to type the domain of the system. Enter full domain name in which your server is hosted.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1823" src="http://techyaz.com/wp-content/uploads/2018/02/8-min.png" alt="Set domain name" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/8-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/8-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/8-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Once you will click at continue button, next window will come to set the root password. Enter the root password in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1824" src="http://techyaz.com/wp-content/uploads/2018/02/9-min.png" alt="Set the root password" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/9-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/9-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/9-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Now it follows user creation and new user password creation. Set up a user and password in next windows. Enter the full name of your username in below image and click at continue button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1825" src="http://techyaz.com/wp-content/uploads/2018/02/10-min.png" alt="Set up user" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/10-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/10-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/10-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Now type your username that will be used to login to this server. I entered my first name as my username.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1826" src="http://techyaz.com/wp-content/uploads/2018/02/11-min.png" alt="set up username" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/11-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/11-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/11-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Once you will click at continue button after setting the username, next screen will come to set its password.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1827" src="http://techyaz.com/wp-content/uploads/2018/02/12-min.png" alt="Configure Password" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/12-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/12-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/12-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Then comes the delicate part of installing any operating system: Disk Partitioning. We can choose the option we like, but I like to have control of what partitioned so I choose manual.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1828" src="http://techyaz.com/wp-content/uploads/2018/02/15-1-min.png" alt="Configure Disk Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/15-1-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/15-1-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/15-1-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>In this window appears the hard disk of our computer, create a virtual disk from 0 and does not even have partitions but do not worry, see how it is done. Select the disc and click to continue.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1829" src="http://techyaz.com/wp-content/uploads/2018/02/14-min.png" alt="Disk Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/14-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/14-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/14-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>As the disk is &#8220;new&#8221; it warns me that there is no partition table, but the installer offers to create it. We say yes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1830" src="http://techyaz.com/wp-content/uploads/2018/02/15-min.png" alt="Select New Disk" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/15-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/15-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/15-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Once you will press continue, below screen will come to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1831" src="http://techyaz.com/wp-content/uploads/2018/02/16-min.png" alt="Configure Disk Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/16-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/16-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/16-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>At this point we can create the first partition that we will use for the system as such. Select the free space and click on continue.  And then we enter the size. Debian also recommends a swap partition so we put a smaller size than the total.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1832" src="http://techyaz.com/wp-content/uploads/2018/02/17-min.png" alt="Create the First Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/17-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/17-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/17-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Now we will allocate the size to this disk.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1833" src="http://techyaz.com/wp-content/uploads/2018/02/18-min.png" alt="Allocate the size to this disk Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/18-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/18-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/18-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>In the following windows we placed that the partition will be primary and created at the beginning of the free space.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1834" src="http://techyaz.com/wp-content/uploads/2018/02/19-min.png" alt="Select Partition Type" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/19-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/19-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/19-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Choose location of this new partition using below window.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1835" src="http://techyaz.com/wp-content/uploads/2018/02/20-min.png" alt="Select Partition Location" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/20-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/20-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/20-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>After that, we must modify the file system type (Ext4) and the mounting point (/) and leave it as it is in the image. Select that we have finished defining partition and click on continue.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1836" src="http://techyaz.com/wp-content/uploads/2018/02/21-min.png" alt="Setting up disk Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/21-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/21-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/21-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Then start creating the swap partition with the remaining disk space. Select the remaining free space and click on continue.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1837" src="http://techyaz.com/wp-content/uploads/2018/02/22-min.png" alt="Create Swap Partition with remaining disk" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/22-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/22-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/22-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>We then tell the installer that we want to create a new partition but this time it will be logical.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1838" src="http://techyaz.com/wp-content/uploads/2018/02/23-min.png" alt="Create Logical Disk Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/23-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/23-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/23-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1839" src="http://techyaz.com/wp-content/uploads/2018/02/24-min.png" alt="Create Logical Disk Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/24-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/24-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/24-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1840" src="http://techyaz.com/wp-content/uploads/2018/02/25-min.png" alt="Create Logical Disk Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/25-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/25-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/25-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>And in this step is where we define that it will be swap partition.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1841" src="http://techyaz.com/wp-content/uploads/2018/02/26-min.png" alt="Logical Swap Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/26-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/26-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/26-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1842" src="http://techyaz.com/wp-content/uploads/2018/02/27-min.png" alt="disk Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/27-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/27-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/27-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>We say that we have finished defining the partition and click Continue to see the summary of the partition.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1843" src="http://techyaz.com/wp-content/uploads/2018/02/28-min.png" alt="Summary of Partitions" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/28-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/28-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/28-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1844" src="http://techyaz.com/wp-content/uploads/2018/02/29-min.png" alt="Summary of Partition" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/29-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/29-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/29-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>This way, a simple and basic partitioning in GNU/LINUX must remain: one partition for / and another for Swap. If you are installing this installation on a main computer and &#8220;real&#8221; and the hard disk must already be partitioned and what you should do is simply say where you want to install the system. Now we say that we have finished partitioning the disk and click Continue for the installer to make the changes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1845" src="http://techyaz.com/wp-content/uploads/2018/02/30-min.png" alt="Continue to Apply changes" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/30-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/30-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/30-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1846" src="http://techyaz.com/wp-content/uploads/2018/02/31-min.png" alt="Partitioning in process" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/31-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/31-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/31-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>After that Debian will ask us if we want to analyze another DVD, if we want to use a replica of beef and if we want to participate in an anonymous packet usage survey. In this tutorial, we use the DVD so to all questions I will answer NO.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1847" src="http://techyaz.com/wp-content/uploads/2018/02/32-min.png" alt="Configure the Package manager of Debian 9 Stretch" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/32-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/32-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/32-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1848" src="http://techyaz.com/wp-content/uploads/2018/02/33-min.png" alt="Package Manager" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/33-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/33-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/33-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Configure Popularity Contest.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1849" src="http://techyaz.com/wp-content/uploads/2018/02/34-min.png" alt="Configure Popularity Contest" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/34-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/34-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/34-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>And we come to the step of selecting the software to install. This is how it looks by default.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1850" src="http://techyaz.com/wp-content/uploads/2018/02/35-min.png" alt="Software variant selection" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/35-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/35-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/35-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>The software you choose will depend on you and your needs, for example for a production server you should not install graphical environment. There would be something like that.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1851" src="http://techyaz.com/wp-content/uploads/2018/02/36-min.png" alt="Software selection" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/36-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/36-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/36-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>In this case, I will choose MATE as my desktop environment. Once you have finished the installation process of the chosen software, you will ask us if we want to install the Boot Loader.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1852" src="http://techyaz.com/wp-content/uploads/2018/02/37-min.png" alt="boot loader" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/37-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/37-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/37-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>We say yes, and he&#8217;ll ask us where we want to be. Select your hard drive and click on continue.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1853" src="http://techyaz.com/wp-content/uploads/2018/02/38-min.png" alt="Install the GRUB boot Loader" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/38-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/38-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/38-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>After that we should see the window where the installation is finished and we can relocate the computer to use our brand-new Debian 9 Stretch.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1854" src="http://techyaz.com/wp-content/uploads/2018/02/39-min.png" alt="Finish the Installation" width="800" height="600" srcset="https://techyaz.com/wp-content/uploads/2018/02/39-min.png 800w, https://techyaz.com/wp-content/uploads/2018/02/39-min-300x225.png 300w, https://techyaz.com/wp-content/uploads/2018/02/39-min-768x576.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>Now your Debian 9 Stretch has been installed on your server. 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;"><em><strong>Read More:</strong></em></span></p>
<ul>
<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 Linux 7.3</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">How to Install Ubuntu Server 16.04</a> </strong></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://techyaz.com/debian/how-to-install-debian-9-stretch/">How to Install Debian 9 Stretch?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/debian/how-to-install-debian-9-stretch/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>
		<item>
		<title>How to Install PostgreSQL 10.1 in Debian 9 Stretch</title>
		<link>https://techyaz.com/postgresql/install-postgresql-10-1-debian-9-stretch/</link>
					<comments>https://techyaz.com/postgresql/install-postgresql-10-1-debian-9-stretch/#comments</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Tue, 30 Jan 2018 08:02:24 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1644</guid>

					<description><![CDATA[<p>I will show you how to install PostgreSQL latest version on debian operating system in this article. PostgreSQL is one of the popular database management system, distinguished by its speed and reliability to maintain the data of our applications. As&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/postgresql/install-postgresql-10-1-debian-9-stretch/">How to Install PostgreSQL 10.1 in Debian 9 Stretch</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I will show you how to install PostgreSQL latest version on debian operating system in this article. PostgreSQL is one of the popular database management system, distinguished by its speed and reliability to maintain the data of our applications. As it says on its website: “<em>PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness</em>&#8220;. This popular program has reached version 10.1 which brings with it many improvements and above all security improvements. With this new version, PostgreSQL developers want their product to continue gaining ground in the field of database management systems and face other closed source alternatives such as Oracle, DB2 or Microsoft SQL Server.</p>
<p>Installing PostgreSQL in Debian GNU/LINUX is not a major problem, as it is available in the main repositories, but the version that comes with it is not the last one and does not allow us to have the latest updates and security patches that are necessary to ensure data protection.</p>
<p>Read below article if you want to install PostgreSQL administration and development tool pgAdmin on your Debian 9 stretch server.</p>
<ul>
<li><a href="http://techyaz.com/debian/install-pgadmin-4-in-debian-9-stretch/" target="_blank" rel="noopener"><strong>How to Install PgAdmin 4 on Debian 9 Stretch</strong></a></li>
</ul>
<h4><span style="color: #333399;">New Features in </span><span style="color: #333399;">PostgreSQL 10 </span></h4>
<p>PostgreSQL improves with each version, the changes are multiple both in administration and security level. Some important new features of PostgreSQL 10.1 are:</p>
<ul>
<li>Improved authentication process. Thanks to the new authentication system SCRAM-SHA-256.</li>
<li>Many bug fixes for logical replication. Users can now fine-tune replicated data to multiple database clusters and will have the ability to perform zero-time activity updates to larger future versions of PostgreSQL.</li>
<li>Declaratory partitioning of tables. This means that users no longer need to create triggers for routing data; it&#8217;s all handled by the system.</li>
<li>Improved parallel query execution.</li>
<li>Fix memory leak over the lifespan of a query when evaluating a set-returning function from the target list in a SELECT.</li>
</ul>
<p>As has been said, there are many changes at the application level and you can consult them all <a href="https://www.postgresql.org/docs/10/static/release-10-1.html">here.</a></p>
<h4><span style="color: #333399;">Install PostgreSQL 10.1 on Debian</span></h4>
<p>Let&#8217;s get to work  to install PostgreSQL. We will start with Adding PostgreSQL Apt Repository.</p>
<p>The first thing we must do is to create a new file called <em><strong>pgdg.list</strong></em> in the following path: <em><strong>/etc/apt/sources. list.d/</strong></em>. To do this, we must be logged in as superuser. Run below command to connect using superuser.</p>
<pre><span style="color: #008000;"><strong><em>--Connect using superuser</em></strong></span>
<span style="color: #0000ff;"><strong><em>su</em></strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1646" src="http://techyaz.com/wp-content/uploads/2018/01/2-su-min.png" alt="connect using superuser" width="524" height="143" srcset="https://techyaz.com/wp-content/uploads/2018/01/2-su-min.png 524w, https://techyaz.com/wp-content/uploads/2018/01/2-su-min-300x82.png 300w" sizes="auto, (max-width: 524px) 100vw, 524px" /></p>
<p>As you can see in the image, we must enter the password for root access. Then we invoke the nano editor and create the file in question.</p>
<pre><span style="color: #0000ff;"><em><strong>nano /etc/apt/sources.list.d/pgdg.list</strong></em></span></pre>
<p>We further add the below line of code:</p>
<pre><em><strong><span style="color: #0000ff;">deb http://apt.postgresql.org/pub/repos/apt/stretch-pgdg main</span></strong></em></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1647" src="http://techyaz.com/wp-content/uploads/2018/01/3-add-pgdgmain-min.png" alt="Add text code to pgdg file" width="658" height="444" srcset="https://techyaz.com/wp-content/uploads/2018/01/3-add-pgdgmain-min.png 658w, https://techyaz.com/wp-content/uploads/2018/01/3-add-pgdgmain-min-300x202.png 300w" sizes="auto, (max-width: 658px) 100vw, 658px" /></p>
<p>Press <strong>Ctrl + x</strong> to save the changes. We say yes and with this we already have the repository added to our software sources.</p>
<p>The next step is import the repository signing key. After updating the package lists, doing this makes our package manager recognize the repository as a reliable one. Execute below commands in your terminal window to import the repository signing key.</p>
<pre><span style="color: #0000ff;"><em><strong><span style="color: #008000;">--import the repository signing key</span>
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -</strong></em></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1648" src="http://techyaz.com/wp-content/uploads/2018/01/4-Import-Repository-Key-min.png" alt="Import Repository key" width="646" height="151" srcset="https://techyaz.com/wp-content/uploads/2018/01/4-Import-Repository-Key-min.png 646w, https://techyaz.com/wp-content/uploads/2018/01/4-Import-Repository-Key-min-300x70.png 300w" sizes="auto, (max-width: 646px) 100vw, 646px" /></p>
<p>And to refresh the repository cache, just use the following command</p>
<pre><em><strong><span style="color: #0000ff;"><span style="color: #008000;">--Update Package Lists</span>
apt-get update </span></strong></em></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1649" src="http://techyaz.com/wp-content/uploads/2018/01/5-apt-get-update-min.png" alt="update package list using apt-get update" width="644" height="338" srcset="https://techyaz.com/wp-content/uploads/2018/01/5-apt-get-update-min.png 644w, https://techyaz.com/wp-content/uploads/2018/01/5-apt-get-update-min-300x157.png 300w" sizes="auto, (max-width: 644px) 100vw, 644px" /></p>
<p>We are now proceeding to install the latest version PostgreSQL 10.1 in our Debian 9 Stretch.  Write in Terminal:</p>
<pre><em><strong><span style="color: #0000ff;"><span style="color: #008000;">--Install PostgreSQL Latest Version.</span>
apt install postgresql-10</span></strong></em></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1650" src="http://techyaz.com/wp-content/uploads/2018/01/6-Install-PostgreSQL-min.png" alt="Install PostgreSQL" width="658" height="345" srcset="https://techyaz.com/wp-content/uploads/2018/01/6-Install-PostgreSQL-min.png 658w, https://techyaz.com/wp-content/uploads/2018/01/6-Install-PostgreSQL-min-300x157.png 300w" sizes="auto, (max-width: 658px) 100vw, 658px" /></p>
<p>Above command will download and install the latest version of PostgreSQL on this Debian machine. Type <strong>Y</strong> and press enter to proceed with the installation. After downloading and installing the packages, we must initialize the postgreSQL service because if it is not running, it is not possible to access or connect with it. We can do it with the following command.</p>
<pre><em><strong><span style="color: #008000;">--Start PostgreSQL service.</span></strong></em>
<span style="color: #0000ff;"><em><strong>systemctl start postgresql</strong></em></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1651" src="http://techyaz.com/wp-content/uploads/2018/01/7-restart-postgreSQL-service-min.png" alt="Restart PostgreSQL Service" width="618" height="136" srcset="https://techyaz.com/wp-content/uploads/2018/01/7-restart-postgreSQL-service-min.png 618w, https://techyaz.com/wp-content/uploads/2018/01/7-restart-postgreSQL-service-min-300x66.png 300w" sizes="auto, (max-width: 618px) 100vw, 618px" /></p>
<p>We verify that we can make connection with PostgreSQL:</p>
<pre><span style="color: #008000;"><em><strong>--Connect to PostgreSQL and Verify Installed PostgreSQL version.</strong></em></span>
<em><strong><span style="color: #0000ff;">su postgres -c psql postgres</span></strong></em></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1652" src="http://techyaz.com/wp-content/uploads/2018/01/8-check-postgresql-version-min.png" alt="Connect to PostgreSQL" width="646" height="179" srcset="https://techyaz.com/wp-content/uploads/2018/01/8-check-postgresql-version-min.png 646w, https://techyaz.com/wp-content/uploads/2018/01/8-check-postgresql-version-min-300x83.png 300w" sizes="auto, (max-width: 646px) 100vw, 646px" /></p>
<p>And that&#8217;s it. That&#8217;s all.!!!!!!!!! We already have installed the latest version of this powerful database manager.</p>
<p>Now we can start working, for example, we can show the existing databases in a clean installation of PostgreSQL.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1653" src="http://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min.png" alt="Connect to PostgreSQL databases" width="1042" height="402" srcset="https://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min.png 1042w, https://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min-300x116.png 300w, https://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min-768x296.png 768w, https://techyaz.com/wp-content/uploads/2018/01/9-connect-postgresql-min-1024x395.png 1024w" sizes="auto, (max-width: 1042px) 100vw, 1042px" /></p>
<h4><span style="color: #333399;">Conclusion</span></h4>
<p>Debian is a large Linux distribution and is among the most popular in the world of system administrators. Known for its high stability and flexibility, but in its main repositories it has older versions of software and in many cases this is often a big problem. However, there are external repositories that facilitate the distribution of the latest versions of these programs.</p>
<p>PostgreSQL in the world of database has a very high reputation that makes it compete for the throne with other free alternatives such as Mysql or SQLite. Upgrading to the latest stable version guarantees us security patches and new features focused on speed, performance is very useful if we have a large database.</p>
<p>I hope you have learnt how to install PostgreSQL on Debian. Please follow our <a href="https://www.facebook.com/Techyaz/" target="_blank" rel="noopener">Facebook</a> page and <a href="https://twitter.com/Tech_yaz" target="_blank" rel="noopener">Twitter</a> handle to get latest updates.</p>
<p><span style="color: #800000;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><span style="color: #000080;"><a style="color: #000080;" href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">How to Install SQL Server 2017 on Ubuntu 16.04?</a></span></strong></li>
<li><strong><span style="color: #000080;"><a style="color: #000080;" href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">Installing SQL Server 2017 on Red Hat Linux Server</a></span></strong></li>
<li><strong><span style="color: #000080;"><a style="color: #000080;" href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Installing SQL Server on Ubuntu in Offline Mode</a></span></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/postgresql/install-postgresql-10-1-debian-9-stretch/">How to Install PostgreSQL 10.1 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-postgresql-10-1-debian-9-stretch/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
