<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux - Techyaz.com</title>
	<atom:link href="https://techyaz.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Tue, 15 May 2018 15:22:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

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

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

					<description><![CDATA[<p>Normally, the work of system administrators consists of an almost permanent use of the terminal; this is because servers with GNU/LINUX-based systems, for security reasons, do not have a graphical desktop environment. And this means that we have to use&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/linux/11-examples-ls-command-list-files-linux/">11 Examples of ls Command to List Files in Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Normally, the work of system administrators consists of an almost permanent use of the terminal; this is because servers with GNU/LINUX-based systems, for security reasons, do not have a graphical desktop environment. And this means that we have to use the terminal for basically everything from the simplest or most complex tasks. Today we will learn the <strong>ls</strong> command utility that allows us to list files and folders from the terminal. Here we will also describe different combinations and options that can be used with ls command to get different output.</p>
<h3><span style="color: #333399;"><strong>LIST FILES IN LINUX: &#8220;ls&#8221; COMMAND</strong></span><strong> </strong></h3>
<p>As it was said, the command <strong>ls</strong> allows you to list files and folders of a specific path, is easy to use and is very useful and used in the daily work. The command has several options to improve the listings. In a terminal, we can invoke the help of the command <strong>ls</strong> in this way.</p>
<pre><span style="color: #0000ff;"><strong>ls --help</strong><strong> </strong></span></pre>
<p>Above command will display all options available for ls command to list the files and folders. In this way we get the syntax of usage and options as output per terminal.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1959" src="http://techyaz.com/wp-content/uploads/2018/03/1-ls-cmd-min.png" alt="List all ls command options" width="758" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/03/1-ls-cmd-min.png 758w, https://techyaz.com/wp-content/uploads/2018/03/1-ls-cmd-min-300x291.png 300w" sizes="auto, (max-width: 758px) 100vw, 758px" /></p>
<p>As all options will not cover in one single screenshot so i have scrolled the above screen and taken another screenshots to cover all options in screenshots that has been displayed below.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1960" src="http://techyaz.com/wp-content/uploads/2018/03/2-ls-cmd-min.png" alt="Display all ls command options" width="764" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/03/2-ls-cmd-min.png 764w, https://techyaz.com/wp-content/uploads/2018/03/2-ls-cmd-min-300x289.png 300w" sizes="auto, (max-width: 764px) 100vw, 764px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1961" src="http://techyaz.com/wp-content/uploads/2018/03/3-ls-cmd-min.png" alt="Display all ls command options" width="750" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/03/3-ls-cmd-min.png 750w, https://techyaz.com/wp-content/uploads/2018/03/3-ls-cmd-min-300x294.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></p>
<p>As we can see the documentation is extensive, but don&#8217;t worry we will examine the most useful and used options. The basic syntax of the command is:</p>
<pre><span style="color: #0000ff;"><strong>ls [options] [file|dir]</strong></span></pre>
<p>Although it is possible to use ls from the most basic form only by typing:</p>
<pre><span style="color: #008000;"><strong>#List files from your given directory.</strong></span>
<span style="color: #0000ff;"><strong>ls</strong></span></pre>
<p>With this we only list the files that are in the directory where we are located in the terminal. For example, if we wanted to list everything in the root directory of our GNU/LINUX distribution it would be with the command:</p>
<pre><span style="color: #008000;"><strong>#List everything in the root directory</strong></span>
<span style="color: #0000ff;"><strong>ls /</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1962" src="http://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min-1024x150.png" alt="Run ls / to display all directories" width="1024" height="150" srcset="https://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min-1024x150.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min-300x44.png 300w, https://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min-768x112.png 768w, https://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>It was easy, wasn&#8217;t it?</p>
<h5><span style="color: #993300;">Most Important Options of the Command &#8220;ls&#8221;</span></h5>
<p><strong>ls</strong> as well as all GNU/LINUX commands have options that modify the basic command execution result. Here is a list of the most outstanding ones for this command.</p>
<table style="height: 441px;" width="784">
<tbody>
<tr>
<td width="198"><strong>Options</strong></td>
<td width="374"><strong>Description</strong></td>
</tr>
<tr>
<td width="198">-a</td>
<td width="374"> Do not ignore entries starting with .</td>
</tr>
<tr>
<td width="198">-A</td>
<td width="374"> Do not list implied . And ..</td>
</tr>
<tr>
<td width="198">-d</td>
<td width="374">List directories themselves, not their contents</td>
</tr>
<tr>
<td width="198">-i</td>
<td width="374">print the index number of each file</td>
</tr>
<tr>
<td width="198">-l</td>
<td width="374">Use a long listing format.  Displays information such as permissions and owner of the folder or file.</td>
</tr>
<tr>
<td width="198">-r</td>
<td width="374">reverse order while sorting</td>
</tr>
<tr>
<td width="198">-R</td>
<td width="374">List subdirectories recursively.  Displays the contents of the directory subfolders.</td>
</tr>
<tr>
<td width="198">-s</td>
<td width="374">print the allocated size of each file, in blocks</td>
</tr>
<tr>
<td width="198">-S</td>
<td width="374">sort by file size, largest first</td>
</tr>
<tr>
<td width="198">-t</td>
<td width="374">sort by modification time, newest first</td>
</tr>
<tr>
<td width="198">-U</td>
<td width="374">do not sort; list entries in directory order</td>
</tr>
<tr>
<td style="text-align: left;" width="198">-X</td>
<td style="text-align: left;" width="374">sort alphabetically by entry extension</td>
</tr>
</tbody>
</table>
<h3><span style="color: #333399;"> Examples of Command &#8220;ls&#8221;</span></h3>
<p>Here i have given different examples of command ls that you can use to fulfill different requirements.</p>
<h5><span style="color: #993300;">List Hidden Files </span></h5>
<p>We can use option -a if we want to list the hidden files of a specific folder, it would be enough to write:</p>
<pre><span style="color: #0000ff;"><strong>ls –a path</strong></span></pre>
<p>In my case it would be something like that:</p>
<pre><span style="color: #0000ff;"><strong>ls –a /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1963" src="http://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min-1024x217.png" alt="list hidden files in Linux" width="1024" height="217" srcset="https://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min-1024x217.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min-300x63.png 300w, https://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min-768x162.png 768w, https://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min.png 1182w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see all hidden files as well in above screenshot. We can identify hidden files by looking at the output as such files or folders start with dot (.).</p>
<h5><span style="color: #993300;">Display Files with their Index Number</span></h5>
<p>We can list files with their index number by running below command. To show files/folders with their index number we will use the option –i along with command ls. You can see i have used below command and output is showing in below image.</p>
<pre><span style="color: #0000ff;"><strong>ls -i /home/angelo/
</strong></span><strong><em> </em></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1964" src="http://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min-1024x195.png" alt="List folders with index number" width="1024" height="195" srcset="https://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min-1024x195.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min-300x57.png 300w, https://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min-768x147.png 768w, https://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min.png 1142w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">List Files with full Details (Permissions, Index no, Owner, Create Date etc.)</span></h5>
<p>We can use ls command to display information such as permissions and owner of the folder or file. We will be using option -I to show complete information about files and folders as shown in below screenshot.</p>
<pre><span style="color: #0000ff;"><strong>ls -l /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1965" src="http://techyaz.com/wp-content/uploads/2018/03/7-ls-cmd-min.png" alt="Display all details of folders and files" width="778" height="462" srcset="https://techyaz.com/wp-content/uploads/2018/03/7-ls-cmd-min.png 778w, https://techyaz.com/wp-content/uploads/2018/03/7-ls-cmd-min-300x178.png 300w, https://techyaz.com/wp-content/uploads/2018/03/7-ls-cmd-min-768x456.png 768w" sizes="auto, (max-width: 778px) 100vw, 778px" /></p>
<p>This output shows us more specific information about what we have in the folder: First it shows the permissions on the folder, its index number, the owner of the folder, who created the folder, its size in kb, the date it was modified and the folder name.</p>
<h5><span style="color: #993300;">List Files or Folders in a Reverse Order</span></h5>
<p>ls command also gives an option to sort files and folders in reverse order. We can use -r option to show files and folders in a reverse order as shown in below screenshot after running below command.</p>
<pre><span style="color: #0000ff;"><strong>ls –r  /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1966" src="http://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min-1024x139.png" alt="Display files and folders in reverse order" width="1024" height="139" srcset="https://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min-1024x139.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min-300x41.png 300w, https://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min-768x105.png 768w, https://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">List Subdirectories Recursively</span></h5>
<p>We can List subdirectories recursively by adding the -R option with ls command.  It will display the contents of the directory subfolders. Run below command to display the result.</p>
<pre><span style="color: #0000ff;"><strong>ls –R /home/angelo/</strong></span></pre>
<h5><strong><em> </em></strong><span style="color: #993300;">Display list of Directories Only</span></h5>
<p>We can use -d and an asterisk option to list and show only the directories. Have a look at below command that has displayed the list of directories under /home/angelo.</p>
<pre><span style="color: #0000ff;"><strong>ls –d */home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1967" src="http://techyaz.com/wp-content/uploads/2018/03/9-ls-cmd-min.png" alt="Show directories with astrick" width="980" height="184" srcset="https://techyaz.com/wp-content/uploads/2018/03/9-ls-cmd-min.png 980w, https://techyaz.com/wp-content/uploads/2018/03/9-ls-cmd-min-300x56.png 300w, https://techyaz.com/wp-content/uploads/2018/03/9-ls-cmd-min-768x144.png 768w" sizes="auto, (max-width: 980px) 100vw, 980px" /></p>
<h5><span style="color: #993300;">Display Files Sort by their File Size</span></h5>
<p>Run below command to display files sort by file size. It is possible with the option –S.</p>
<pre><span style="color: #0000ff;"><strong>ls -S /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1968" src="http://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min-1024x145.png" alt="Display files sort by file size" width="1024" height="145" srcset="https://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min-1024x145.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min-300x42.png 300w, https://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min-768x108.png 768w, https://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min.png 1260w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">Sort by Date/Time</span></h5>
<p>We can option -t to display files sort by date/time. Run below command to see the output that is also showing in below screenshot.</p>
<pre><span style="color: #0000ff;"><strong>ls –t /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1969" src="http://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min-1024x152.png" alt="Display files sort by date time" width="1024" height="152" srcset="https://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min-1024x152.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min-300x45.png 300w, https://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min-768x114.png 768w, https://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min.png 1252w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">Display Files as they were Created</span></h5>
<p>Use option -U to show folders and files in no order at all. It will display just as they are created.</p>
<pre><span style="color: #0000ff;"><strong>ls –U /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1970 size-large" src="http://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min-1024x132.png" alt="Display Files as they were created" width="1024" height="132" srcset="https://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min-1024x132.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min-300x39.png 300w, https://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min-768x99.png 768w, https://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">Sort by File Extension</span></h5>
<p>We can use option -X with ls command to sort files by their extension names. You can see this in below screenshot.</p>
<pre><span style="color: #0000ff;"><strong>ls –X /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1971" src="http://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min-1024x142.png" alt="Display files sort by file extension" width="1024" height="142" srcset="https://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min-1024x142.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min-300x42.png 300w, https://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min-768x107.png 768w, https://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">Sort by Modified Files</span></h5>
<p>We can use combination of options <strong>-ltr</strong> to show last modification file or directory date. Simply run below command to display the output.</p>
<pre><strong><span style="color: #0000ff;">ls -lrt</span></strong>

<strong><span style="color: #0000ff;">ls -lrt [path]</span></strong></pre>
<p>In conclusion we can say that the <strong>ls</strong> command, even when it is relatively easy to use, is one of the tools most used by system administrators.</p>
<p>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/rhel/red-hat-enterprise-linux-interview-questions-answers/" target="_blank" rel="noopener">RHEL Interview Questions &amp; Answers</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/linux-user-administration-add-delete-modify-user-accounts/" target="_blank" rel="noopener">Linux User Administration &#8211; Add, Delete &amp; Modify User Accounts</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/install-htop-monitor-linux-processes/" target="_blank" rel="noopener">Install HTop and Use it to Monitor Linux Processes</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 Host Name of RHEL system?</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 Account Passwords?</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/linux/11-examples-ls-command-list-files-linux/">11 Examples of ls Command to List Files in Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/linux/11-examples-ls-command-list-files-linux/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>How to Install Htop and Use it to Monitor Linux Processes?</title>
		<link>https://techyaz.com/linux/install-htop-monitor-linux-processes/</link>
					<comments>https://techyaz.com/linux/install-htop-monitor-linux-processes/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Tue, 20 Feb 2018 08:16:55 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tools]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Htop]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1880</guid>

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

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

					<description><![CDATA[<p>In last tip, I have explained about new features introduced in SQL Server 2017. SQL Server support on Linux based operating systems is one of the new feature introduced in SQL Server 2017. Here, I will describe all those missing&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/21-missing-features-in-sql-server-on-linux/">21 Missing Features in SQL Server on Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In last tip, I have explained about <a href="http://techyaz.com/sql-server/10-new-features-sql-server-2017-database-engine/" target="_blank" rel="noopener">new features introduced in SQL Server 2017</a>. SQL Server support on Linux based operating systems is one of the new feature introduced in SQL Server 2017. Here, I will describe all those missing features from Linux based SQL Server instances but these features can be used if you are deploying your SQL Server on Windows operating system. We are expecting Microsoft will include all these features in upcoming releases of SQL Servers.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1066" src="http://techyaz.com/wp-content/uploads/2017/10/21-missing-features.jpg" alt="21 missing features in sql server on linux" width="538" height="537" srcset="https://techyaz.com/wp-content/uploads/2017/10/21-missing-features.jpg 538w, https://techyaz.com/wp-content/uploads/2017/10/21-missing-features-150x150.jpg 150w, https://techyaz.com/wp-content/uploads/2017/10/21-missing-features-300x300.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/21-missing-features-160x160.jpg 160w, https://techyaz.com/wp-content/uploads/2017/10/21-missing-features-320x320.jpg 320w" sizes="auto, (max-width: 538px) 100vw, 538px" /></p>
<h5><span style="color: #000080;">Missing Features in SQL Server on Linux</span></h5>
<p>Below is the list of features that are not supported on Linux based SQL Server instances as of now in current GA release of SQL Server 2017.</p>
<p>1. Analysis Services<br />
2. Reporting Services<br />
3. R Services<br />
4. Master Data Services<br />
5. Data Quality Services<br />
6. SQL Server Browser Service<br />
7. Transactional &amp; Merge Replication<br />
8. FILESTREAM<br />
9. FileTables<br />
10. Stretch DB<br />
11. Polybase<br />
12. Third Party Extensions<br />
13. XPs<br />
14. VSS Snapshots<br />
15. Buffer Pool Extension<br />
16. Change Data Capture<br />
17. Alerts<br />
18. Distributed query with 3rd-party connections<br />
19. Database Mirroring<br />
20. AD Authentication for Linked Servers &amp; Availability Groups (AGs)<br />
21. SQL Server Integration Services (SSIS)</p>
<p>The mssql-server-is package (SSIS) is not supported on SUSE Linux in this release. It is currently supported on Ubuntu and on Red Hat Enterprise Linux (RHEL) only.</p>
<p>The following features are not supported in this release when you run SSIS packages on Linux:</p>
<p>o SSIS Catalog database<br />
o Scheduled package execution by SQL Agent<br />
o Windows Authentication<br />
o Third-party components<br />
o Change Data Capture (CDC)<br />
o SSIS Scale Out<br />
o Azure Feature Pack for SSIS<br />
o Hadoop and HDFS support<br />
o Microsoft Connector for SAP BW</p>
<p>For a list of built-in SSIS components that are not currently supported, or that are supported with limitations, see <a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-ssis-known-issues#components">Limitations and known issues for SSIS on Linux</a></p>
<p><span style="color: #800000;"><em><strong>Related Articles:</strong></em></span></p>
<ul>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">Install SQL Server on Ubuntu Server</a></li>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">How to Install SQL Server on RHEL</a></li>
<li><a href="http://techyaz.com/sql-server/10-new-features-sql-server-2017-database-engine/" target="_blank" rel="noopener">New features Introduced in SQL Server 2017</a></li>
<li><a 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">Install SQL Server on Ubuntu without Internet Access </a></li>
</ul>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/21-missing-features-in-sql-server-on-linux/">21 Missing Features in SQL Server on Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/21-missing-features-in-sql-server-on-linux/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Install SQL Server Agent on Ubuntu Server</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 04 Oct 2017 12:59:50 +0000</pubDate>
				<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[SQL Server Agent]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1028</guid>

					<description><![CDATA[<p>I have shown how to install SQL Server 2017 on Ubuntu server that have internet access in my last article. If your Ubuntu server doesn’t have internet access then you should read attached article to install SQL Server in offline&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/">Install SQL Server Agent on Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have shown <a href="https://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 server that have internet access</a> in my last article. If your Ubuntu server doesn’t have internet access then you should read attached article to <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">install SQL Server in offline mode.</a> Here I will show you how to install SQL Server Agent on Ubuntu server that are connected to internet.</p>
<h3><span style="color: #000080;">Install SQL Server Agent on Ubuntu Linux</span></h3>
<p>Let’s first check whether SQL Server Agent is installed or not on your existing server.  Before installing SQL Server Agent, you must install SQL Server 2017  on your ubuntu server. If you have already installed SQL Server 2017 then you can connect to SQL Server that you have installed on Ubuntu server in SSMS.</p>
<p><span style="color: #800000;"><em><strong>Related Articles:</strong></em></span></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server 2017 on Ubuntu Server that is not connected to Internet</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">SQL Server Agent Installation on Ubuntu Server that has no internet connection</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Tools on Ubuntu Server that does not have internet access.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">Install SQL Server on Red Hat Linux Server</a></strong></li>
</ul>
<p>As we can see, SQL Server Agent or SQL Agent is disabled and none of its options are showing as enabled in below image. This is because SQL Server Agent package is not installed on that Ubuntu server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1029" src="http://techyaz.com/wp-content/uploads/2017/10/1-sql-agent.jpg" alt="SQL Server Agent " width="498" height="374" srcset="https://techyaz.com/wp-content/uploads/2017/10/1-sql-agent.jpg 498w, https://techyaz.com/wp-content/uploads/2017/10/1-sql-agent-300x225.jpg 300w" sizes="auto, (max-width: 498px) 100vw, 498px" /><br />
SQL Agent Package comes with SQL Server 2017 package repository so if you have downloaded SQL Server 2017 repository, you can just run installation command to install SQL Server Agent. You can have a look at my last article where I have <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">installed SQL Server 2017</a> to understand how to download Microsoft Ubuntu repositories. As we have already installed SQL Server 2017 by downloading its repositories so we can directly install SQL Server Agent here. Run below command to install SQL Server Agent package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: green;">#Install SQL Server Agent
<span style="color: #0000ff;">sudo apt-get install mssql-server-agent
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1030" src="http://techyaz.com/wp-content/uploads/2017/10/2-install-agent-1024x341.jpg" alt="install sql agent" width="1024" height="341" srcset="https://techyaz.com/wp-content/uploads/2017/10/2-install-agent-1024x341.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/2-install-agent-300x100.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/2-install-agent-768x256.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/2-install-agent.jpg 1342w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see SQL Server Agent is installed on this machine in above screenshot and also this installation is suggesting us to restart the SQL Server service to enable SQL Server Agent. Now run below command to restart SQL Server service on this machine. You can see we have restarted SQL Server service in below image.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: green;">#Restart SQL Server Service
<span style="color: #0000ff;">systemctl restart mssql-server</span>

#Check SQL Server Service Status
<span style="color: #0000ff;">systemctl status mssql-server
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1031" src="http://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service.jpg" alt="Restart SQL Server Service" width="973" height="220" srcset="https://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service.jpg 973w, https://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service-300x68.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service-768x174.jpg 768w" sizes="auto, (max-width: 973px) 100vw, 973px" /></p>
<p>Now connect to SQL Server Instance in SSMS client. You can also connect to SQL Server using sqlcmd utility but we need to separately install this utility to make database connection that we will do in another article. If you are already connected to SQL Server instance in SSMS then just right click on Agent folder and click on refresh button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1032" src="http://techyaz.com/wp-content/uploads/2017/10/4-refresh-sql-service.jpg" alt="refresh sql agent folder" width="401" height="366" srcset="https://techyaz.com/wp-content/uploads/2017/10/4-refresh-sql-service.jpg 401w, https://techyaz.com/wp-content/uploads/2017/10/4-refresh-sql-service-300x274.jpg 300w" sizes="auto, (max-width: 401px) 100vw, 401px" /></p>
<p>You can see SQL Server Agent folder is enabled and all options are showing now in below image. Even now we can create any agent job to schedule any database tasks now.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1033" src="http://techyaz.com/wp-content/uploads/2017/10/5-sql-agent.jpg" alt="SQL Server Agent is installed" width="583" height="411" srcset="https://techyaz.com/wp-content/uploads/2017/10/5-sql-agent.jpg 583w, https://techyaz.com/wp-content/uploads/2017/10/5-sql-agent-300x211.jpg 300w" sizes="auto, (max-width: 583px) 100vw, 583px" /></p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/">Install SQL Server Agent on Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install SQL Server 2017 on Ubuntu with Internet Access</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 03 Oct 2017 10:24:51 +0000</pubDate>
				<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1012</guid>

					<description><![CDATA[<p>We can easily install SQL Server 2017 on Ubuntu server if we have internet access to the online repositories but little painful if we don’t have internet access to the server. You can read attached article to learn how to&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/">Install SQL Server 2017 on Ubuntu with Internet Access</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We can easily install SQL Server 2017 on Ubuntu server if we have internet access to the online repositories but little painful if we don’t have internet access to the server. You can read attached article to learn <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">how to install SQL Server on Ubuntu server where there is no internet connection</a>. Here i will explain how to perform online installation of SQL Server on Ubuntu 16.04 Server that are connected to internet.</p>
<p>Before going ahead, we need Ubuntu Linux 16.04 server. If you don’t have Ubuntu server then you can <a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">create a virtual machine</a> and <a href="https://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">install Ubuntu 16.04 Server</a> with the help of attached articles in the link.</p>
<h5><span style="color: #000080;">Install SQL Server on Ubuntu Server</span></h5>
<p>Below are the steps you should follow to install SQL Server 2017 on your Ubuntu 16.04 machine that are connected to internet.</p>
<p><strong>1-</strong> First step is to connect to Ubuntu Server locally or using PuTTY.</p>
<p><strong>2-</strong> Once you are connected to Ubuntu server, run below command to download the public repository GPG keys:</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Download GPG Keys</span>
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add –
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1013" src="http://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-1024x113.jpg" alt="Download GPG keys" width="1024" height="113" srcset="https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-1024x113.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-300x33.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-768x85.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl.jpg 1070w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
<strong>3-</strong> We can see curl package is not installed on this machine so first we should install curl here. Run below command to install CURL package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install CURL Package.</span>
Sudo apt install curl
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1014" src="http://techyaz.com/wp-content/uploads/2017/10/2-install-curl-1024x501.jpg" alt="Install CURL" width="770" height="330" /></p>
<p>Once curl will be installed, run curl command that are given in step 2 again to download the GPG keys.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1015" src="http://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl.jpg" alt="Run curl to download GPG keys" width="984" height="184" srcset="https://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl.jpg 984w, https://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl-300x56.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl-768x144.jpg 768w" sizes="auto, (max-width: 984px) 100vw, 984px" /></p>
<p><strong>4-</strong> Register the Microsoft Ubuntu Repository by running any of the below commands. First command is older one and for RC (Release Candidate) version. If you want to install SQL Server 2017 general availability version then run second command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Register Microsoft Ubuntu Repository for RC version</span>
sudo add-apt-repository "$(curl <a href="https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list">https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list</a>)"

<span style="color: #008000;">#Run this command if you are downloading GA (General Availability) Repository.</span>
sudo curl https://packages.microsoft.com/keys/microsoft.asc \| sudo apt-key add - &amp;&amp; sudo add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1016" src="http://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-1024x117.jpg" alt="add-apt-repository" width="1024" height="117" srcset="https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-1024x117.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-300x34.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-768x88.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository.jpg 1238w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>We can see add-apt-repository command is not found so we will first install the required package for this command on this server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install add-apt-repository package</span>
Sudo apt-get install software-properties-common
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1017" src="http://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-1024x364.jpg" alt="add-apt-repository" width="1024" height="364" srcset="https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-1024x364.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-300x107.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-768x273.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository.jpg 1219w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Type y to proceed in above image. Once installed, again run command given in this step initially. Run the one given for general availability.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1018" src="http://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-1024x136.jpg" alt="Download Microsoft Ubuntu Repository" width="1024" height="136" srcset="https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-1024x136.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-300x40.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-768x102.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository.jpg 1227w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p><strong>5-</strong> Update the repository by running below command. A series of executions will start during update process.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Update All Packages</span>
Sudo apt-get update
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1019" src="http://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-1024x84.jpg" alt="update packages in ubuntu" width="1024" height="84" srcset="https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-1024x84.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-300x25.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-768x63.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update.jpg 1146w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
<strong>6-</strong> Install SQL Server by running below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install SQL Server 2017</span>
Sudo apt-get install -y mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1020" src="http://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-1024x436.jpg" alt="Install SQL Server" width="1024" height="436" srcset="https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-1024x436.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-300x128.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-768x327.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install.jpg 1286w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
<strong>7-</strong> Install above suggested package mssql-conf to configure SQL Server 2017. This package will ask you to accept license terms and choose SQL Server edition as shown in below image.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;"> #Run below utility to configure SQL Server </span></strong>
<span style="color: #0000ff;"><strong>sudo /opt/mssql/bin/mssql-conf setup </strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1021" src="http://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-1024x580.jpg" alt="configure mssql-conf" width="1024" height="580" srcset="https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-1024x580.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-300x170.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-768x435.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf.jpg 1371w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p><strong>8-</strong> Now check the SQL Server service by running below command. We can see service is running now.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Check SQL Server service</span></strong>
<strong><span style="color: #0000ff;">systemctl status mssql-server</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1022" src="http://techyaz.com/wp-content/uploads/2017/10/10-check-service-1024x206.jpg" alt="Check SQL Server Service" width="1024" height="206" srcset="https://techyaz.com/wp-content/uploads/2017/10/10-check-service-1024x206.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/10-check-service-300x60.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/10-check-service-768x154.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/10-check-service.jpg 1050w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p><strong>9-</strong> Now, you can connect to this instance using SSMS client from your local host or from the server where you have installed SSMS. Make sure that there should be connectivity between both servers. SQL Agent is disabled because it is not installed yet.  Read this article to <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/" target="_blank" rel="noopener">install SQL Server Agent on Ubuntu Server</a> to get it enabled for Agent jobs and other agent related features.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1023" src="http://techyaz.com/wp-content/uploads/2017/10/11-connectusingSSMS.jpg" alt="Connect to SQL Server using SSMS" width="342" height="248" srcset="https://techyaz.com/wp-content/uploads/2017/10/11-connectusingSSMS.jpg 342w, https://techyaz.com/wp-content/uploads/2017/10/11-connectusingSSMS-300x218.jpg 300w" sizes="auto, (max-width: 342px) 100vw, 342px" /></p>
<p><strong>10-</strong> If you face any issue during connectivity, you can check SQL Server port no 1433. If it is not open, run below command to enable port no 1433 and then establish the connection.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Open port 1433
<span style="color: #0000ff;">sudo ufw allow 1433</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1024" src="http://techyaz.com/wp-content/uploads/2017/10/12-Port-enable.jpg" alt="Open port 1433 in ubuntu" width="511" height="88" srcset="https://techyaz.com/wp-content/uploads/2017/10/12-Port-enable.jpg 511w, https://techyaz.com/wp-content/uploads/2017/10/12-Port-enable-300x52.jpg 300w" sizes="auto, (max-width: 511px) 100vw, 511px" /></p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<pre class="brush: sql; title: ; notranslate" title=""></pre>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/">Install SQL Server 2017 on Ubuntu with Internet Access</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Find and Change IP Address, Subnet Mask &#038; Default Gateway of Linux Server</title>
		<link>https://techyaz.com/rhel/check-change-ip-address-subnet-mask-default-gateway-linux-server/</link>
					<comments>https://techyaz.com/rhel/check-change-ip-address-subnet-mask-default-gateway-linux-server/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 12 Sep 2017 12:45:46 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=870</guid>

					<description><![CDATA[<p>Sometimes we need to check the IP, Subnet mask and default gateway of our Linux machine and sometimes we need to change them as per our requirement. Here i will explain how to check and change these properties. If you&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/rhel/check-change-ip-address-subnet-mask-default-gateway-linux-server/">How to Find and Change IP Address, Subnet Mask &#038; Default Gateway of Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes we need to check the IP, Subnet mask and default gateway of our Linux machine and sometimes we need to change them as per our requirement. Here i will explain how to check and change these properties. If you want to <a href="https://techyaz.com/sql-server/sql-server-on-linux/change-hostname-red-hat-linux-server/" target="_blank" rel="noopener">change hostname of your Linux server</a>, i would suggest to read attached article.</p>
<h3><span style="color: #000080;"><strong>Check IP Address, Subnet Mask &amp; Default </strong></span><span style="color: #000080;">Gateway</span></h3>
<p><a href="https://techyaz.com/rhel/fix-putty-network-error-connection-timed/" target="_blank" rel="noopener">Launch PuTTY</a> and connect to Linux server. Run <strong>ifconfig</strong> command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Check IP address and Gateway Mask</span>
ifconfig
</span></strong></pre>
<p>You will see output of this command like below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-871" src="http://techyaz.com/wp-content/uploads/2017/09/1-1.jpg" alt="check ip address of linux machine" width="679" height="347" srcset="https://techyaz.com/wp-content/uploads/2017/09/1-1.jpg 679w, https://techyaz.com/wp-content/uploads/2017/09/1-1-300x153.jpg 300w" sizes="auto, (max-width: 679px) 100vw, 679px" /></p>
<p>Focus on the area which is highlighted in red colour. The <strong>IP address</strong> of this Linux server is 192.168.0.1 which is labeled as inet. You can see the <strong>subnet mask</strong> of this server which is showing 255.255.255.0 as netmask. We can also see the <strong>connection interface name</strong> of this machine that is <strong>ens33</strong>. The connection interface name will be used later in next section during changing IP addresses, subnet mask and gateway details.</p>
<p>Now we knew how to check the IP Address &amp; Subnet Mask of your Linux computer. Now next step is to check the default gateway of this server. Run below command <strong>route -n</strong> to get the details of default gateway.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Check Default Gateway</span>
route -n
</span></strong></pre>
<p>We can see the gateway IP is given in below screenshot for the same connection interface name ens33.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-872" src="http://techyaz.com/wp-content/uploads/2017/09/2-gateway-ip.jpg" alt="Check Gateway IP" width="760" height="129" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-gateway-ip.jpg 760w, https://techyaz.com/wp-content/uploads/2017/09/2-gateway-ip-300x51.jpg 300w" sizes="auto, (max-width: 760px) 100vw, 760px" /></p>
<h3><span style="color: #000080;"><strong>Change IP Address, Subnet Mask &amp; Default </strong></span><span style="color: #000080;">Gateway</span></h3>
<p>We knew how to get the IP address, subnet mask and gateway details of Linux server. Now i will explain how to change these addresses if needed. We will use same command <strong>ifconfig</strong> to change the IP address and subnet mask. Before proceeding, <strong>make sure you have interface name and new IPs</strong>. You can get interface name from ipconfig command. The connection interface name of my machine is <strong>ens33</strong> as shown in above screenshots. Run below command to change these two values.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: green;">#Replace ens33 to your connection interface name. You can get it from ifconfig command.</span><span class="kwrd" style="color: blue;">
sudo ifconfig ens33 192.168.209.10 netmask 255.255.255.0
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-873" src="http://techyaz.com/wp-content/uploads/2017/09/3-change-linux-ip.jpg" alt="change IP" width="760" height="72" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-change-linux-ip.jpg 760w, https://techyaz.com/wp-content/uploads/2017/09/3-change-linux-ip-300x28.jpg 300w" sizes="auto, (max-width: 760px) 100vw, 760px" /><br />
We can see command executed successfully. You can validate the new IP address by running <strong>ifconfig</strong> command again. I have not changed netmask and kept same. If you want to change it please pass your netmask address.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-874" src="http://techyaz.com/wp-content/uploads/2017/09/4-check-IP.jpg" alt="check ip post change" width="712" height="327" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-check-IP.jpg 712w, https://techyaz.com/wp-content/uploads/2017/09/4-check-IP-300x138.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/4-check-IP-980x450.jpg 980w" sizes="auto, (max-width: 712px) 100vw, 712px" /></p>
<p>Now we can see we have changed the IP address and netmask address for this Linux server. Next we can check the gateway address to validate what will be the impact on gateway post changing the IP address and netmask address. Run <strong>route -n</strong> again to get the details.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-875" src="http://techyaz.com/wp-content/uploads/2017/09/5-route-n.jpg" alt="route -n" width="806" height="152" srcset="https://techyaz.com/wp-content/uploads/2017/09/5-route-n.jpg 806w, https://techyaz.com/wp-content/uploads/2017/09/5-route-n-300x57.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/5-route-n-768x145.jpg 768w" sizes="auto, (max-width: 806px) 100vw, 806px" /></p>
<p>We can see gateway address is not set yet and the one showing on first section is not showing now. So let&#8217;s change the gateway address for this server. Run below command to change the gateway address.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: green;">#change the name of gateway address. Change the connection interface name from ens33 to your name.</span><span class="kwrd" style="color: blue;">
sudo route add default gw 192.168.209.250 ens33
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-876" src="http://techyaz.com/wp-content/uploads/2017/09/6-set-gw-ip.jpg" alt="" width="784" height="66" srcset="https://techyaz.com/wp-content/uploads/2017/09/6-set-gw-ip.jpg 784w, https://techyaz.com/wp-content/uploads/2017/09/6-set-gw-ip-300x25.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/6-set-gw-ip-768x65.jpg 768w" sizes="auto, (max-width: 784px) 100vw, 784px" /><br />
Once command will be executed successfully, you can validate this change by running <strong>route -n</strong> command again.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-877" src="http://techyaz.com/wp-content/uploads/2017/09/7-check.jpg" alt="validate the change post changing gateway IP Address" width="804" height="136" srcset="https://techyaz.com/wp-content/uploads/2017/09/7-check.jpg 804w, https://techyaz.com/wp-content/uploads/2017/09/7-check-300x51.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/7-check-768x130.jpg 768w" sizes="auto, (max-width: 804px) 100vw, 804px" /><br />
We can see the new gateway address in above screen. These are the commands that can be used to check and change the IP address, netmask address and gateway address.</p>
<p><span style="color: #800000;"><em><strong>Related Articles</strong></em></span></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/change-hostname-red-hat-linux-server/" target="_blank" rel="noopener">How to Change Hostname of RedHat Linux Server?</a></strong></li>
<li><strong><a href="https://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/" target="_blank" rel="noopener">Reset or Change Linux Passwords for users and root?</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/how-to-change-putty-background-color/" target="_blank" rel="noopener">How to Change PuTTY Background Color to White?</a></strong></li>
</ul>
<p>Please comment us if you have any question. Also i hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/rhel/check-change-ip-address-subnet-mask-default-gateway-linux-server/">How to Find and Change IP Address, Subnet Mask &#038; Default Gateway of Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/rhel/check-change-ip-address-subnet-mask-default-gateway-linux-server/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install SQL Server Agent on Red Hat Linux Server</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 04 Sep 2017 13:17:35 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SQL Server Agent]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=784</guid>

					<description><![CDATA[<p>SQL Server Agent is very useful in automating any database activities. By default, it is not installed along with SQL Server on Linux server. You need to manually install it after installing SQL Server. Here I will explain step by&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/">How to Install SQL Server Agent on Red Hat Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>SQL Server Agent is very useful in automating any database activities. By default, it is not installed along with SQL Server on Linux server. You need to manually install it after installing SQL Server. Here I will explain step by step process to install SQL Server Agent on RedHat Linux 7.3 server running with internet access.</p>
<p>Before going ahead, we need to have a RedHat Linux server. If you have no idea about installing Linux server or creating a virtual machine where you can install Linux and SQL Server then i would recommend you to read below articles first.</p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></strong></li>
<li><strong><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">Install RedHat Linux 7.3 on a virtual machine.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">How to Install SQL Server on RedHat Linux 7.3</a></strong></li>
</ul>
<p>If you have installed SQL Server on Red Hat Linux server, your next step should be to install SQL Server Agent on that server. Make sure you have internet access on the Linux server where we are going to install SQL Server Agent. If your server does not have internet connection then you should read attached article about <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-redhat-linux-server-without-internet-offline-installation/" target="_blank" rel="noopener">installing SQL Server Agent on RedHat Linux that are running without Internet</a>.</p>
<h3><span style="color: #000080;"><strong>Install SQL Server Agent on RHEL</strong></span></h3>
<p>As this Linux machine has internet connection so let&#8217;s go ahead with Installation on Red Hat Linux server. Installation process is quite similar to the installation of SQL Server on Redhat Linux.</p>
<p>You don&#8217;t need to download SQL Server Agent package separately the way we did for SQL Server and <a href="https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/" target="_blank" rel="noopener">SQL Tools installations</a>.The package required to install SQL Server Agent included into SQL Server package repository configuration file.</p>
<p>If you have already downloaded SQL Server package repository configuration file to install SQL Server, you can skip this step and go ahead to install Agent on your server. If you don&#8217;t have SQL Server package repository configuration file or you have deleted it then you can run below command to download the package repository configuration file.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #008000;">#Download Microsoft SQL Server Red Hat repository configuration file</span><span class="kwrd" style="color: blue;">
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server.repo
</span></strong></pre>
<p>This will download Microsoft SQL Server Package Repository Configuration File that are required to install SQL Server and SQL Server Agent.</p>
<p>As we have the Agent repository configuration file now, Let us first check the SQL Server in SSMS to see how SQL Server Agent working.  You can see we are not able to do anything in SQL Server Agent folder.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-785 size-full" src="http://techyaz.com/wp-content/uploads/2017/09/1.jpg" alt="SQL-Agent" width="480" height="642" srcset="https://techyaz.com/wp-content/uploads/2017/09/1.jpg 480w, https://techyaz.com/wp-content/uploads/2017/09/1-224x300.jpg 224w" sizes="auto, (max-width: 480px) 100vw, 480px" /></p>
<p>Now our next step is to install SQL Server Agent to enable its related features. Run below command to start the installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install SQL Server Agent</span>
sudo yum install mssql-server-agent</span></strong></pre>
<p>You cans see series of executions started to proceed with the installation in below image. It will also ask you to enter <strong>Y</strong> to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-786" src="http://techyaz.com/wp-content/uploads/2017/09/2-install-agent-1024x367.jpg" alt="install sql agent" width="1024" height="367" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-install-agent-1024x367.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/2-install-agent-300x107.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/2-install-agent-768x275.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/2-install-agent.jpg 1424w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Enter <strong>Y</strong> to proceed with the installation, once you press enter it will proceed to install. Now SQL Server Agent will install on your machine.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-787" src="http://techyaz.com/wp-content/uploads/2017/09/3-install-agent-1024x321.jpg" alt="install sql agent" width="1024" height="321" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-install-agent-1024x321.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/3-install-agent-300x94.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/3-install-agent-768x241.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/3-install-agent.jpg 1419w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>It will also suggest you to restart SQL Server service. If you will not restart SQL Server service, installation will not be completed so next step is to restart SQL Server service on this server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Restart SQL Server Service</span>
systemctl restart mssql-server</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-788" src="http://techyaz.com/wp-content/uploads/2017/09/4-restart-service-1024x209.jpg" alt="restart sql server service" width="1024" height="209" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-restart-service-1024x209.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/4-restart-service-300x61.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/4-restart-service-768x157.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/4-restart-service.jpg 1054w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see SQL Server is online now. Go ahead and connect to SQL Server in SSMS as per below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-789" src="http://techyaz.com/wp-content/uploads/2017/09/6-ssms.jpg" alt="" width="600" height="614" srcset="https://techyaz.com/wp-content/uploads/2017/09/6-ssms.jpg 600w, https://techyaz.com/wp-content/uploads/2017/09/6-ssms-293x300.jpg 293w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Now you can create Agent jobs to automate database activities on your SQL Server instance.<br />
I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/">How to Install SQL Server Agent on Red Hat Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-red-hat-linux-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Installing SQL Tools on Red Hat Linux</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 04 Sep 2017 13:08:56 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[SQL Tools]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=774</guid>

					<description><![CDATA[<p>I have shown you how to install SQL Server on Redhat Linux Server in my last article. Here I will explain step by step process to install SQL Tools on RedHat Linux 7.3 server. Installing SQL Tools will install sqlcmd&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/">Installing SQL Tools on Red Hat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have shown you <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">how to install SQL Server on Redhat Linux Server</a> in my last article. Here I will explain step by step process to install SQL Tools on RedHat Linux 7.3 server. Installing SQL Tools will install sqlcmd and bcp utilities on this RHEL server.</p>
<p>Before going ahead, we need to have a RedHat Linux server. If you have no idea about installing Linux server or creating a virtual machine where you can install Linux and SQL Server then i would recommend you to read below articles first.</p>
<ul>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></li>
<li><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">How to Install RedHat Linux 7.3 on a virtual machine.</a></li>
</ul>
<p>If you have installed SQL Server on Red Hat Linux server, you need to install SQL Tools to make database connection locally on the server. Make sure you have internet access on the Linux server where we are going to install SQL Tools. If your server does not have internet connection then you should read attached article about <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-tools-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">installing SQL Tools on RedHat Linux that are running without Internet</a>.</p>
<h3><span style="color: #000080;"><strong>Install SQL Tools on RHEL</strong></span></h3>
<p>As this Linux machine has internet connection so installing SQL Tools on this Linux machine will be quite easy. Let&#8217;s go ahead with the SQL Tools Installation on Red Hat Linux server that are connected to internet. Installation process is quite similar to the <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">installation of SQL Server on Redhat Linux</a>.</p>
<p>Let us first check the SQL Server service to make sure SQL Server is installed on this machine. Run below command to check the service.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Check SQL Server Services</span>
systemctl status mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-775" src="http://techyaz.com/wp-content/uploads/2017/09/1-check-service.jpg" alt="Check SQL Server Service" width="1006" height="197" srcset="https://techyaz.com/wp-content/uploads/2017/09/1-check-service.jpg 1006w, https://techyaz.com/wp-content/uploads/2017/09/1-check-service-300x59.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/1-check-service-768x150.jpg 768w" sizes="auto, (max-width: 1006px) 100vw, 1006px" /></p>
<p>We can see SQL Server is installed on this machine. Now check SQL Tools are installed on this machine or not by running <strong>sqlcmd</strong> utility. We can see this tool is not installed yet.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-776" src="http://techyaz.com/wp-content/uploads/2017/09/2-check-sqlcmd.jpg" alt="check sqlcmd" width="638" height="104" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-check-sqlcmd.jpg 638w, https://techyaz.com/wp-content/uploads/2017/09/2-check-sqlcmd-300x49.jpg 300w" sizes="auto, (max-width: 638px) 100vw, 638px" /></p>
<p>Now we will download the Microsoft SQL Tools Redhat repository configuration file by running below command to start the SQL Tools installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Download Microsoft Red Hat repository configuration file</span>
sudo curl -o /etc/yum.repos.d/msprod.repo https://packages.microsoft.com/config/rhel/7/prod.repo
</span></strong></pre>
<p>You can see file is downloaded to the given folder location. You can see this in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-777" src="http://techyaz.com/wp-content/uploads/2017/09/3-download-repository-1024x265.jpg" alt="download sql tools repository" width="1024" height="265" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-download-repository-1024x265.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/3-download-repository-300x78.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/3-download-repository-768x199.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/3-download-repository.jpg 1310w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Run below commands to install SQL Tools along with unixODBC package on this server. We need to install unixODBC because of dependency issue. First update all packages by running below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Run package update.</span>
sudo yum update
</span></strong></pre>
<p>Once package update will complete. Run below command to install SQL Tools. Once you execute below command, a series of execution will start and show you the details of package that are going to install.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Install SQL Tools.</span>
<span style="color: #0000ff;">sudo yum install -y mssql-tools unixODBC-devel
</span></strong></pre>
<p>After series of execution, setup will ask you to accept the license terms. Type YES to accept the license terms.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-778" src="http://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools-1024x551.jpg" alt="Install SQL Tools" width="1024" height="551" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools-1024x551.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools-300x161.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools-768x413.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-tools.jpg 1440w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>I pressed enter button post accepting the license terms, again a series of execution started and SQL tools installation was completed within minutes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-779" src="http://techyaz.com/wp-content/uploads/2017/09/5-sql-tool-installation.jpg" alt="install sqlcmd" width="670" height="442" srcset="https://techyaz.com/wp-content/uploads/2017/09/5-sql-tool-installation.jpg 670w, https://techyaz.com/wp-content/uploads/2017/09/5-sql-tool-installation-300x198.jpg 300w" sizes="auto, (max-width: 670px) 100vw, 670px" /></p>
<p>Once SQL Tools will install, you can go ahead and check sqlcmd utility. If your Linux server is not able to recognize SQL Server Tools utilities sqlcmd or bcp we need to set path environment variables. Although, it is optional step but you should run below commands to add /opt/mssql-tools/bin/ to your PATH environment variable.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Add /opt/mssql-tools/bin/ to your PATH environment variable.</span>
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bash_profile
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bashrc
source ~/.bashrc
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-780" src="http://techyaz.com/wp-content/uploads/2017/09/6-Path-variable.jpg" alt="Path variables" width="1002" height="86" srcset="https://techyaz.com/wp-content/uploads/2017/09/6-Path-variable.jpg 1002w, https://techyaz.com/wp-content/uploads/2017/09/6-Path-variable-300x26.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/6-Path-variable-768x66.jpg 768w" sizes="auto, (max-width: 1002px) 100vw, 1002px" /></p>
<p>Let us see whether Linux is able to recognize SQL Tool or not in below screenshot. We can see now sqlcmd is throwing output.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-781" src="http://techyaz.com/wp-content/uploads/2017/09/7-check-sqlcmd.jpg" alt="Check sqlcmd" width="695" height="132" srcset="https://techyaz.com/wp-content/uploads/2017/09/7-check-sqlcmd.jpg 695w, https://techyaz.com/wp-content/uploads/2017/09/7-check-sqlcmd-300x57.jpg 300w" sizes="auto, (max-width: 695px) 100vw, 695px" /></p>
<p>Now you can go ahead and connect to your SQL Server instance locally by using sqlcmd tool. You can see i have connected to SQL Server Instance using sqlcmd in below screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-782" src="http://techyaz.com/wp-content/uploads/2017/09/8-connect-using-sqlcmd.jpg" alt="connect using sqlcmd" width="984" height="369" srcset="https://techyaz.com/wp-content/uploads/2017/09/8-connect-using-sqlcmd.jpg 984w, https://techyaz.com/wp-content/uploads/2017/09/8-connect-using-sqlcmd-300x113.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/8-connect-using-sqlcmd-768x288.jpg 768w" sizes="auto, (max-width: 984px) 100vw, 984px" /></p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/">Installing SQL Tools on Red Hat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install SQL Server on Redhat Linux</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 04 Sep 2017 12:58:42 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=762</guid>

					<description><![CDATA[<p>Earlier SQL Server used to run only on Windows platform till SQL Server 2016 version. Now we can host our applications on Linux based SQL Server Instances. Here I will explain step by step process to install SQL Server on&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/">How to Install SQL Server on Redhat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Earlier SQL Server used to run only on Windows platform till SQL Server 2016 version. Now we can host our applications on Linux based SQL Server Instances. Here I will explain step by step process to install SQL Server on RedHat Linux 7.3 server.</p>
<h3><span style="color: #000080;"><strong>Prerequisites</strong></span></h3>
<p>Before going ahead, we need to have a RedHat Linux server. If you have no idea about installing Linux server or creating a virtual machine where you can install Linux and SQL Server then i would recommend you to read below articles first.</p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></strong></li>
<li><strong><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">How to Install RedHat Linux 7.3 on a virtual machine.</a></strong></li>
</ul>
<p>Below are the prerequisites that needs to have on your virtual machine in order to install SQL Server 2017.</p>
<ul>
<li>A <strong>Red Hat Linux Machine</strong> having <strong>Internet</strong> Connection</li>
<li><strong>RAM</strong> &#8211; 3.25GB</li>
<li><strong>Disk Space</strong> &#8211; 6GB</li>
<li><strong>Processor speed</strong> &#8211; 2 GHz</li>
<li><strong>Processor cores</strong> &#8211; 2 cores</li>
<li><strong>Processor type</strong> &#8211; x64</li>
</ul>
<h3><span style="color: #000080;"><strong>Install SQL Server 2017 on RHEL</strong></span></h3>
<p>Installing SQL Server 2017 on Redhat Linux is straight forward method if your server has internet connection and able to access online repositories. But if your Red Hat Linux machine does not have internet connection you can go with attached article <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Offline Installation of SQL Server 2017 on Red Hat Linux</a>. Let us go with the SQL Server Installation on Redhat Linux server that have internet connection.</p>
<p>Connect to RHEL server locally or through PuTTY. Check whether SQL Server is previously installed on this machine by someone else or not. You can see SQL Server is not installed, we can see it by checking the SQL Server service. Now download the Microsoft SQL Server Redhat repository configuration file by running below curl command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #008000;">#Download Microsoft SQL Server Redhat repository configuration file</span><span class="kwrd" style="color: blue;">
sudo curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server.repo
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-763" src="http://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository-1024x259.jpg" alt="Download Microsoft SQL Server Repository " width="1024" height="259" srcset="https://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository-1024x259.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository-300x76.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository-768x194.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/1-download-MSSQL-RHEL-repository.jpg 1409w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Next step is to install SQL Server on Linux machine. Run below command to update all package repository on Red Hat Linux server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Update Packages</span>
<span class="kwrd" style="color: blue;">sudo yum update
</span>
<span style="color: #008000;">#Install SQL Server</span>
<span style="color: blue;">sudo yum install -y mssql-server</span>
</strong></pre>
<p>I ran installation command which is showing in below image. A series of execution will start followed by checking the dependencies. If you will face any dependency issue, you should first resolve all missing dependencies then proceed with the installation. Setup will process and show you details of the packages which will be installing. You can see the details in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-764" src="http://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server-1024x433.jpg" alt="Install SQL Server on Linux" width="1024" height="433" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server-1024x433.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server-300x127.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server-768x325.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/2-install-sql-server.jpg 1440w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>SQL Server package is in downloading process. Once download will complete, installation process will start. This will take few minutes to install the package.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-765" src="http://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server-1024x291.jpg" alt="Install SQL Server on Linux" width="1024" height="291" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server-1024x291.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server-300x85.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server-768x219.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/3-install-sql-server.jpg 1427w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now you can see SQL Server database engine is installed on this Redhat Linux server. Installation is not completed yet because setup suggests us to run <strong>mssql-conf</strong> utility to complete the installation. So next step is to run this process.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-766" src="http://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server-1024x589.jpg" alt="" width="1024" height="589" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server-1024x589.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server-300x172.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server-768x441.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/4-install-sql-server.jpg 1423w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Setup is suggesting us to install a mssql-conf utility to accept the license terms and set the sa password. Run below command to configure SQL Server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;">sudo /opt/mssql/bin/mssql-conf setup
</span></strong></pre>
<p>This execution will ask us to <strong>accept the License terms, select the SQL Server edition</strong> and also tell us to <strong>set the sa password</strong>. Let us do that to complete this installation. Once you execute above command, it will ask as to enter <strong>YES</strong> to access the license terms. Type <strong>YES</strong> and press enter. Once you press enter post accepting license terms, setup will give you options to choose <strong>SQL Server edition</strong>. Select correct edition as per your requirement.</p>
<p>Once you choose SQL Server edition, it will ask you to <strong>set sa login password</strong>. The moment you set the sa password, SQL Server configuration will be completed and ready to use.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-767" src="http://techyaz.com/wp-content/uploads/2017/09/5-install-mssql-conf.jpg" alt="" width="934" height="714" srcset="https://techyaz.com/wp-content/uploads/2017/09/5-install-mssql-conf.jpg 934w, https://techyaz.com/wp-content/uploads/2017/09/5-install-mssql-conf-300x229.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/5-install-mssql-conf-768x587.jpg 768w" sizes="auto, (max-width: 934px) 100vw, 934px" /></p>
<p>Now SQL Server is installed, but sometimes you may face issue connecting to your SQL Server instance. You need to run below commands to open the SQL Server port on the firewall on the Linux server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Open Firewall for SQL Server</span>
sudo firewall-cmd --zone=public --add-port=1433/tcp --permanent
sudo firewall-cmd --reload
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-768" src="http://techyaz.com/wp-content/uploads/2017/09/7-open-firewall.jpg" alt="Open firewall" width="915" height="129" srcset="https://techyaz.com/wp-content/uploads/2017/09/7-open-firewall.jpg 915w, https://techyaz.com/wp-content/uploads/2017/09/7-open-firewall-300x42.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/7-open-firewall-768x108.jpg 768w" sizes="auto, (max-width: 915px) 100vw, 915px" /></p>
<p>You can see above commands executed successfully. Port 1433 is already enabled on my machine. If this port is not open on your server it will display as success. Now, you can check the SQL Server service to validate this installation. Run the same command which we have run to check the SQL Server service before starting the installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #008000;">#Check SQL Server Service
<span style="color: #0000ff;">systemctl status mssql-server
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-769" src="http://techyaz.com/wp-content/uploads/2017/09/8-check-service.jpg" alt="check sql server service" width="1006" height="197" srcset="https://techyaz.com/wp-content/uploads/2017/09/8-check-service.jpg 1006w, https://techyaz.com/wp-content/uploads/2017/09/8-check-service-300x59.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/8-check-service-768x150.jpg 768w" sizes="auto, (max-width: 1006px) 100vw, 1006px" /><br />
Now your SQL Server is ready to use. You can connect to this instance using SSMS client tool. You can see i have connected to this instance using SSMS from my local host computer.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-770" src="http://techyaz.com/wp-content/uploads/2017/09/9-connect-sql-server.jpg" alt="" width="360" height="350" srcset="https://techyaz.com/wp-content/uploads/2017/09/9-connect-sql-server.jpg 360w, https://techyaz.com/wp-content/uploads/2017/09/9-connect-sql-server-300x292.jpg 300w" sizes="auto, (max-width: 360px) 100vw, 360px" /></p>
<p>If you want to connect to SQL Server on this server only. You need to connect using <strong>sqlcmd</strong> utility. By default, sqlcmd tool does not install on Linux machine. We need to manually install it. Please visit this attached article to understand <a href="https://techyaz.com/sql-server/sql-server-on-linux/installing-sql-tools-red-hat-linux/" target="_blank" rel="noopener">step by step process of installing SQL Tools on a Red Hat Linux Server</a>. If you don&#8217;t have internet access you can follow another article to <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-tools-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">install SQL Tools on Redhat Linux server in Offline mode</a>.</p>
<p><span style="color: #800000;"><strong>If your Linux virtual machine doesn&#8217;t have Internet connection, you should read:</strong></span></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">How to Install SQL Server 2017 on RedHat Linux in Offline Mode.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-tools-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Installing SQL Tools on RedHat Linux in Offline Mode.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-redhat-linux-server-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server Agent on RHEL running without Internet.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">How to install SQL Server on Ubuntu in Offline Mode.</a></strong></li>
</ul>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/">How to Install SQL Server on Redhat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fixing Error &#8220;User is not in the sudoers file. This incident will be reported.&#8221;</title>
		<link>https://techyaz.com/rhel/fixing-error-user-not-sudoers-file-incident-will-reported-red-hat-linux-server/</link>
					<comments>https://techyaz.com/rhel/fixing-error-user-not-sudoers-file-incident-will-reported-red-hat-linux-server/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Thu, 31 Aug 2017 09:11:51 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[logins]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[sudoers file]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wheel group]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=712</guid>

					<description><![CDATA[<p>I got this error during one of the activity when i was not able to perform it because my user was not part of sudoers file.  The error details were given as &#8220;User is not in the sudoers file. This&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/rhel/fixing-error-user-not-sudoers-file-incident-will-reported-red-hat-linux-server/">Fixing Error &#8220;User is not in the sudoers file. This incident will be reported.&#8221;</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I got this error during one of the activity when i was not able to perform it because my user was not part of sudoers file.  The error details were given as &#8220;<em>User is not in the sudoers file. This incident will be reported.</em>&#8221; If a user is not part of sudoers file then that user cannot perform anything using sudo command. Here i will explain how to fix this error or in other words you can say how to add a Linux user into sudoers file.</p>
<h3><span style="color: #000080;"><strong>Linux Error: User is not in the sudoers file. This incident will be reported.</strong></span></h3>
<p>Sudoers file determines which users can run administrative tasks, those requiring superuser privileges. I was failed to perform certain tasks because my username was not part of this file and returned with below error.</p>
<p><span class="kwrd" style="color: red;"><em>Linux Error: User is not in the sudoers file. This incident will be reported.</em><br />
</span></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-713" src="http://techyaz.com/wp-content/uploads/2017/08/1-1.jpg" alt="user name not in sudoers file" width="739" height="67" srcset="https://techyaz.com/wp-content/uploads/2017/08/1-1.jpg 739w, https://techyaz.com/wp-content/uploads/2017/08/1-1-300x27.jpg 300w" sizes="auto, (max-width: 739px) 100vw, 739px" /></p>
<p>Someone who has super user (su) access can fix this issue by adding the impacted user to the <strong>Wheel group</strong>. The <strong>wheel group</strong> is a special user group used on Linux systems to control access to the sudo command, which allows a user to behave as super user. Once we will add our user into this group, we will be able to use sudo command.</p>
<h3><span style="color: #000080;"><strong>Adding a Linux User to Sudoers File</strong></span></h3>
<p>Connect to your Linux server using superuser account.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Connect using su</span>
su
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-714" src="http://techyaz.com/wp-content/uploads/2017/08/2-login-using-su.jpg" alt="login using su account" width="461" height="64" srcset="https://techyaz.com/wp-content/uploads/2017/08/2-login-using-su.jpg 461w, https://techyaz.com/wp-content/uploads/2017/08/2-login-using-su-300x42.jpg 300w" sizes="auto, (max-width: 461px) 100vw, 461px" /></p>
<p>We have now connected to Linux server using superuser account. Now we can add our username to the Wheel group.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Add your user to the Wheel group. 
#Change techyaz to your user name</span>.
usermod -G wheel techyaz
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-715" src="http://techyaz.com/wp-content/uploads/2017/08/3-add-wheel-group.jpg" alt="Add Username to wheel group" width="670" height="90" srcset="https://techyaz.com/wp-content/uploads/2017/08/3-add-wheel-group.jpg 670w, https://techyaz.com/wp-content/uploads/2017/08/3-add-wheel-group-300x40.jpg 300w" sizes="auto, (max-width: 670px) 100vw, 670px" /></p>
<p>Now we see that command executed successfully. If you attempt to execute the sudo command now, you might get the same error message unless you completely logout your user and re-login again. Next you can exit from superuser account by typing exit on the prompt.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Exit su account</span>
exit
</span></strong></pre>
<p>Your account or user added to sudoers file now by adding it to wheel group. You can now connect to Linux server from your PuTTY terminal or on the local server and try to run sudo command post completely logout your user and re-login on the server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><span class="kwrd" style="color: blue;"><strong><span style="color: #008000;">#Connect to Linux server using your user name that was added to wheel group.
#Run sudo su</span></strong>
<strong>sudo su
</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-716" src="http://techyaz.com/wp-content/uploads/2017/08/4-validate.jpg" alt="validate the change" width="840" height="198" srcset="https://techyaz.com/wp-content/uploads/2017/08/4-validate.jpg 840w, https://techyaz.com/wp-content/uploads/2017/08/4-validate-300x71.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/4-validate-768x181.jpg 768w" sizes="auto, (max-width: 840px) 100vw, 840px" /></p>
<p>You can see we have access to run anything using sudo command in above screenshot. Now your username is part of sudoers file so you can perform your activities using sudo command now.</p>
<p><em><span style="color: #800000;"><strong>Read more:</strong></span></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">How to Install Red Hat Linux 7.3 on Virtual Machine</a></strong></li>
<li><strong><a href="https://techyaz.com/rhel/fix-putty-network-error-connection-timed/" target="_blank" rel="noopener">Fixing PuTTY connection issue while connecting to Red Hat Linux Server</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Installing SQL Server 2017 on Red Hat Linux Server</a></strong></li>
</ul>
<p>Here, we have fixed Linux error &#8220;<em>User is not in the sudoers file. This incident will be reported</em>.&#8221; I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook</a> page and on <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/rhel/fixing-error-user-not-sudoers-file-incident-will-reported-red-hat-linux-server/">Fixing Error &#8220;User is not in the sudoers file. This incident will be reported.&#8221;</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/rhel/fixing-error-user-not-sudoers-file-incident-will-reported-red-hat-linux-server/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
