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

<channel>
	<title>ubuntu - Techyaz.com</title>
	<atom:link href="https://techyaz.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Fri, 01 Jun 2018 12:00:10 +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>ubuntu - 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>Linux User Administration &#8211; Add, Delete &#038; Modify User Accounts</title>
		<link>https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/</link>
					<comments>https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Mon, 12 Mar 2018 10:41:35 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[user]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1906</guid>

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

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

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

					<description><![CDATA[<p>Last week we had received some requests to rename or change hostname of RedHat Linux systems. We got these requests because the hostname of these linux servers were not as per the server naming convention standard. Here, I will explain&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/rhel/change-hostname-red-hat-linux-server/">How to Change Hostname of RedHat Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Last week we had received some requests to rename or change hostname of RedHat Linux systems. We got these requests because the hostname of these linux servers were not as per the server naming convention standard. Here, I will explain how to rename hostname of any redhat linux server. I changed hostname of RHEL servers that are hosted in my lab to show you step by step method.</p>
<p><em><span style="color: #800000;"><strong>Related Articles:</strong></span></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/check-change-ip-address-subnet-mask-default-gateway-linux-server/" target="_blank" rel="noopener">How to Change IP Address, Subnet Mask &amp; Default Gateway of Linux Server</a></strong></li>
<li><strong><a href="https://techyaz.com/rhel/fixing-error-user-not-sudoers-file-incident-will-reported-red-hat-linux-server/" target="_blank" rel="noopener">Fix Error &#8220;User is not in sudoers file.</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">Installing SQL Server 2017 on Red Hat Linux Server</a></strong></li>
</ul>
<p>There are three methods that i will explain here to rename or change hostname of any Redhat Linux server. These three methods that we will use in this article are given below.</p>
<ol>
<li>Edit etc/hostname.</li>
<li>nmcli utility.</li>
<li>hostnamectl utility.</li>
</ol>
<h3><span style="color: #333399;">Change Hostname of RedHat Linux Server by editing etc/hostname</span></h3>
<p>Connect to your Redhat Linux server and check the hostname by running below command.</p>
<pre><strong><span style="color: #008000;">#Check hostname using any command.</span>
<span style="color: #0000ff;">hostname</span>

<span style="color: #008000;">#You can run below command as well to check the hostname.</span>
<span style="color: #0000ff;">cat /etc/hostname
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1331" src="http://techyaz.com/wp-content/uploads/2017/12/1-check-existing-host-name-min.jpg" alt="Check linux hostname" width="605" height="200" srcset="https://techyaz.com/wp-content/uploads/2017/12/1-check-existing-host-name-min.jpg 605w, https://techyaz.com/wp-content/uploads/2017/12/1-check-existing-host-name-min-300x99.jpg 300w" sizes="auto, (max-width: 605px) 100vw, 605px" /></p>
<p>We can see the hostname of this RedHat Linux server is SQLServerRHEL.localdomain. Now we will change this name to TechyazRHEL. If you want to change hostname with fully qualified name then you can write fully qualified name in below command.</p>
<pre><strong><span style="color: #008000;">#Connect to RHEL as root.</span>
<span style="color: #0000ff;">Sudo su</span>
<span style="color: #008000;">
#Change Hostname using /etc/hostname. Make sure to write your new hostname in double quote.</span>
<span style="color: #0000ff;">echo "TechyazRHEL" &gt; /etc/hostname
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1332" src="http://techyaz.com/wp-content/uploads/2017/12/3-change-host-name-min.jpg" alt="change hostname by editing etc/hostname" width="664" height="205" srcset="https://techyaz.com/wp-content/uploads/2017/12/3-change-host-name-min.jpg 664w, https://techyaz.com/wp-content/uploads/2017/12/3-change-host-name-min-300x93.jpg 300w" sizes="auto, (max-width: 664px) 100vw, 664px" /></p>
<p>You can see when we check hostname of this linux server using <em><strong>hostname</strong></em> command, it is still showing older name SQLServerRHEL.localdomain whereas when we check using <strong><em>cat /etc/hostname</em></strong> it is showing newly changed hostname.</p>
<p>To reflect new host name, we need to restart service <strong>systemd-hostnamed</strong>. Once you will restart this service, the output of <em><strong>hostname</strong></em> command will also be same as new hostname as shown in above image.</p>
<pre><strong><span style="color: #008000;">#Restart service systemd-hostnamed</span>
<span style="color: #0000ff;">service systemd-hostnamed restart
</span> <span style="color: #008000;">or</span>
<span style="color: #0000ff;">systemctl restart systemd-hostnamed</span> 
</strong></pre>
<p>You can see new hostname after restarting above service in above screenshot. One thing you might notice that command prompt is still showing as older hostname i.e. root@SQLServerRHEL. This will disappear if you close this session and connect to new session. Let&#8217;s try this by launching new session, you can see new session is showing new hostname in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1333" src="http://techyaz.com/wp-content/uploads/2017/12/4-New-Session-min.jpg" alt="new session post renaming hostname" width="639" height="134" srcset="https://techyaz.com/wp-content/uploads/2017/12/4-New-Session-min.jpg 639w, https://techyaz.com/wp-content/uploads/2017/12/4-New-Session-min-300x63.jpg 300w" sizes="auto, (max-width: 639px) 100vw, 639px" /></p>
<h3><span style="color: #333399;">Rename Hostname of RedHat Linux Server using nmcli</span></h3>
<p>The nmcli (NetworkManager Command Line Interface) command-line utility is used for controlling Network Manager and reporting network status. nmcli is used to create, display, edit, delete, activate, and deactivate network connections, as well as control and display network device status. Here, we will use nmcli utility to change the hostname of redhat linux server.</p>
<p>Connect to your RedHat Linux server for which you want to change hostname. Run below commands to change hostname of your linux server.</p>
<pre><strong><span style="color: #008000;">#Connect to RedHat Linux server using root access.</span>
<span style="color: #0000ff;">sudo su</span>

<span style="color: #008000;">#Check existing hostname of RHEL server</span>
<span style="color: #0000ff;">hostname</span>

<span style="color: #008000;">#Change hostname of Redhat Linux server to techyazRHEL-nmCLI. </span></strong>
<strong><span style="color: #008000;">#Change your new hostname in place of techyazRHEL-nmCLI.</span>
<span style="color: #0000ff;">nmcli general hostname techyazRHEL-nmCLI</span>

<span style="color: #008000;">#You can also check the hostname of Redhat linux server using nmcli utility.</span>
<span style="color: #0000ff;">nmcli general hostname
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1334" src="http://techyaz.com/wp-content/uploads/2017/12/5-nmcli-min.jpg" alt="CHange hostname using nmcli utility" width="732" height="137" srcset="https://techyaz.com/wp-content/uploads/2017/12/5-nmcli-min.jpg 732w, https://techyaz.com/wp-content/uploads/2017/12/5-nmcli-min-300x56.jpg 300w" sizes="auto, (max-width: 732px) 100vw, 732px" /></p>
<p>You can see hostname of RHEL server has been changed to techyazRHEL-nmCLI in above screenshot. Your PuTTY terminal will display new hostname once you open new session.</p>
<p>If new hostname is not showing after running above command then you should restart service <strong>systemd-hostnamed</strong> to reflect changes as we did in first section. You can see new hostname while launching new session in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1335" src="http://techyaz.com/wp-content/uploads/2017/12/6-nmcli-min.jpg" alt="new session post renaming hostname using nmcli" width="599" height="129" srcset="https://techyaz.com/wp-content/uploads/2017/12/6-nmcli-min.jpg 599w, https://techyaz.com/wp-content/uploads/2017/12/6-nmcli-min-300x65.jpg 300w" sizes="auto, (max-width: 599px) 100vw, 599px" /></p>
<h3><span style="color: #333399;">Rename Hostname of RedHat Linux Server using hostnamectl</span></h3>
<p>The hostnamectl tool is provided for administering the host names in use on a given system. First we will check the existing hostname of this server by running <em><strong>hostname</strong></em> command. We can also check the hostname using hostnamectl utility.</p>
<p>Connect to your Redhat Linux server using root and check the existing hostname.</p>
<pre><strong><span style="color: #008000;">#Connect to Linux server using root.</span>
<span style="color: #0000ff;">sudo su</span>

<span style="color: #008000;">#Check existing hostname.</span>
<span style="color: #0000ff;">hostname</span>
<span style="color: #008000;">or</span> 
<span style="color: #0000ff;">hostnamectl status</span>

<span style="color: #008000;">#Change hostname to techyazRHEL.</span>
<span style="color: #0000ff;">hostnamectl set-name techyazRHEL
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1336" src="http://techyaz.com/wp-content/uploads/2017/12/7-hostnamectl-min.jpg" alt="change hostname using hostnamectl" width="744" height="281" srcset="https://techyaz.com/wp-content/uploads/2017/12/7-hostnamectl-min.jpg 744w, https://techyaz.com/wp-content/uploads/2017/12/7-hostnamectl-min-300x113.jpg 300w, https://techyaz.com/wp-content/uploads/2017/12/7-hostnamectl-min-1320x500.jpg 1320w" sizes="auto, (max-width: 744px) 100vw, 744px" /></p>
<p>You can check the hostname post renaming it. You can see new hostname in above image. Putty terminal will display new hostname once you open new session as shown in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1337" src="http://techyaz.com/wp-content/uploads/2017/12/8-hostnamectl-min.jpg" alt="New session to reflect new hostname" width="604" height="132" srcset="https://techyaz.com/wp-content/uploads/2017/12/8-hostnamectl-min.jpg 604w, https://techyaz.com/wp-content/uploads/2017/12/8-hostnamectl-min-300x66.jpg 300w" sizes="auto, (max-width: 604px) 100vw, 604px" /></p>
<p>We can set all three kind of hostnames (Static, Pretty and Transient) using hostnamectl utility. Static name is mandatory whereas remaining two is optional. If you will not pass any hostname type in above command, same name will be set for all three hostnames. I haven&#8217;t used any hostname option in above command so all hostname options will have same name. Let&#8217;s check this in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1338" src="http://techyaz.com/wp-content/uploads/2017/12/9-hostnamectl-min.jpg" alt="check hostname using hostnamectl utility" width="695" height="279" srcset="https://techyaz.com/wp-content/uploads/2017/12/9-hostnamectl-min.jpg 695w, https://techyaz.com/wp-content/uploads/2017/12/9-hostnamectl-min-300x120.jpg 300w" sizes="auto, (max-width: 695px) 100vw, 695px" /></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>The post <a href="https://techyaz.com/rhel/change-hostname-red-hat-linux-server/">How to Change Hostname of RedHat Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/rhel/change-hostname-red-hat-linux-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install sqlcmd &#038; bcp (SQL Tools ) on Ubuntu Server</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sqlcmd-bcp-sql-tools-ubuntu-server/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sqlcmd-bcp-sql-tools-ubuntu-server/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 31 Oct 2017 11:15:52 +0000</pubDate>
				<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bcp]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[SQL Tools]]></category>
		<category><![CDATA[sqlcmd]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1071</guid>

					<description><![CDATA[<p>I have described step by step process to install SQL Server 2017 on Ubuntu server in my last articles. Here I will explain how to install sqlcmd and bcp utilities that comes under SQL tools on Ubuntu server that is&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sqlcmd-bcp-sql-tools-ubuntu-server/">Install sqlcmd &#038; bcp (SQL Tools ) on Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have described step by step process to <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 2017 on Ubuntu server</a> in my last articles. Here I will explain how to install sqlcmd and bcp utilities that comes under SQL tools on Ubuntu server that is already running with SQL Server 2017. This article will describe the online method to install SQL tools.</p>
<p>SQL tools will be installed using mssql-tools package. The <strong>mssql-tools</strong> package contains two utilities:</p>
<ul>
<li><strong>sqlcmd:</strong> Command-line query utility.</li>
<li><strong>bcp:</strong> Bulk import-export utility.</li>
</ul>
<p>Before going ahead, we need Ubuntu server and SQL Server 2017 running on that instance. If you have no idea about installing Ubuntu server or SQL Server 2017 or creating a virtual machine where you can install Ubuntu and SQL Server then i would recommend you to read below articles.</p>
<ul>
<li><a href="http://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="http://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">How to Install Ubuntu on a virtual machine.</a></li>
</ul>
<h4><span style="color: #000080;"><strong>SQL Tools Installation on Ubuntu &#8211; ONLINE Method/Using Internet</strong></span></h4>
<p>Installing any package on Ubuntu Linux is straight forward method if our server has internet connection and able to access online repositories. But it becomes painful if your Ubuntu server has no access of internet. Below is the list of articles that you can use to learn offline method of SQL Server Installations on Ubuntu and RHEL.</p>
<ul>
<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 &#8211; Offline Method/Without Internet</a></li>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">How to install SQL Server Agent on Ubuntu &#8211; Offline Method</a></li>
<li><a href="http://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">Installing SQL Tools on Ubuntu Server using Offline Method/Without Internet</a></li>
<li><a href="http://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 on Redhat linux &#8211; Offline Method</a></li>
</ul>
<p>Before moving ahead let&#8217;s check whether SQL Server is installed or not on this machine. Run below command to check the SQL Server service.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #0000ff;"><span class="kwrd"><span style="color: #008000;">#Check SQL Tools</span>
sqlcmd

<span style="color: #008000;">#Check SQL Server Service</span></span><span class="kwrd">
systemctl status mssql-server
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1073" src="http://techyaz.com/wp-content/uploads/2017/10/1check-sqlcmd.jpg" alt="check sqlcmd" width="975" height="237" srcset="https://techyaz.com/wp-content/uploads/2017/10/1check-sqlcmd.jpg 975w, https://techyaz.com/wp-content/uploads/2017/10/1check-sqlcmd-300x73.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/1check-sqlcmd-768x187.jpg 768w" sizes="auto, (max-width: 975px) 100vw, 975px" /></p>
<p>We can see SQL Server is installed and running fine on this server but SQL tools are not installed because sqlcmd is not throwing any output.</p>
<p>Let&#8217;s start with importing public repository GPG keys to install sqlcmd and bcp. Run below curl command to import the keys.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #0000ff;">curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1074" src="http://techyaz.com/wp-content/uploads/2017/10/2-download-repository.jpg" alt="download repository" width="979" height="134" srcset="https://techyaz.com/wp-content/uploads/2017/10/2-download-repository.jpg 979w, https://techyaz.com/wp-content/uploads/2017/10/2-download-repository-300x41.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/2-download-repository-768x105.jpg 768w" sizes="auto, (max-width: 979px) 100vw, 979px" /></p>
<p>Now we will register Microsoft Ubuntu repository by running below commands.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #0000ff;">curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
</span></strong></pre>
<p>Next step is to update the source list by running given command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: black;"><span style="color: #0000ff;">sudo apt-get update</span> 
</span></strong></pre>
<p>Once you execute above command, a series of execution will start and update all source packages.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1075" src="http://techyaz.com/wp-content/uploads/2017/10/4-update-repository.jpg" alt="update ubuntu source list" width="869" height="142" srcset="https://techyaz.com/wp-content/uploads/2017/10/4-update-repository.jpg 869w, https://techyaz.com/wp-content/uploads/2017/10/4-update-repository-300x49.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/4-update-repository-768x125.jpg 768w" sizes="auto, (max-width: 869px) 100vw, 869px" /></p>
<p>Once above command will be executed, we will run below command to install SQL tools with required unix package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #0000ff;">sudo apt-get install mssql-tools unixodbc-dev
</span></strong></pre>
<p>You can see mssql-tools package is installed in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1076" src="http://techyaz.com/wp-content/uploads/2017/10/5-install-1024x288.jpg" alt="install sqlcmd" width="1024" height="288" srcset="https://techyaz.com/wp-content/uploads/2017/10/5-install-1024x288.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/5-install-300x84.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/5-install-768x216.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/5-install.jpg 1422w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now you can go ahead and use sql tools. If you are facing any issue during accessing sqlcmd utility then you need to set path environment variable using below steps. Run below command to set the path environment variables. Ubuntu will not be able to recognize sqlcmd utility unless you set the path environment variable. Ubuntu is able to recognize sqlcmd utility once we set the path environment variables.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#To make sqlcmd/bcp accessible from the bash shell for login sessions, modify your PATH in the ~/.bash_profile file</span>
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bash_profile

<span style="color: #008000;">#To make sqlcmd/bcp accessible from the bash shell for interactive/non-login sessions, modify the PATH in the ~/.bashrc file</span>
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bashrc
source ~/.bashrc
</span></strong></pre>
<p>You can see, sqlcmd is recognized by ubuntu after setting path environment variable in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1077" src="http://techyaz.com/wp-content/uploads/2017/10/6-set-path-env-1024x162.jpg" alt="set path environment variable" width="1024" height="162" srcset="https://techyaz.com/wp-content/uploads/2017/10/6-set-path-env-1024x162.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/6-set-path-env-300x47.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/6-set-path-env-768x121.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/6-set-path-env.jpg 1039w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now connect to SQL Server instance using sqlcmd and run a command to validate this installation. I have checked the SQL Server version installed on ubuntu server. You can see the details in below image that SQL Server 2017 is installed on this Ubuntu server. Now we have done with SQL Tools installation on Ubuntu server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1078" src="http://techyaz.com/wp-content/uploads/2017/10/7-validate.jpg" alt="validate sqlcmd" width="723" height="368" srcset="https://techyaz.com/wp-content/uploads/2017/10/7-validate.jpg 723w, https://techyaz.com/wp-content/uploads/2017/10/7-validate-300x153.jpg 300w" sizes="auto, (max-width: 723px) 100vw, 723px" /></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-sqlcmd-bcp-sql-tools-ubuntu-server/">Install sqlcmd &#038; bcp (SQL Tools ) 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-sqlcmd-bcp-sql-tools-ubuntu-server/feed/</wfw:commentRss>
			<slash:comments>1</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>Fix PuTTY Network Error: Connection Refused while Connecting to Ubuntu Server</title>
		<link>https://techyaz.com/ubuntu/fix-putty-network-error-connection-refused-connecting-ubuntu-server/</link>
					<comments>https://techyaz.com/ubuntu/fix-putty-network-error-connection-refused-connecting-ubuntu-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 18 Sep 2017 07:02:02 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[PuTTY fatal error]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=912</guid>

					<description><![CDATA[<p>I installed SQL Server 2017 on Ubuntu server and tried to connect to this server using PuTTY from my local host. I failed to connect and received PuTTY fatal error ubuntu ssh connection refused. Read this tip to fix this PuTTY&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/ubuntu/fix-putty-network-error-connection-refused-connecting-ubuntu-server/">Fix PuTTY Network Error: Connection Refused while Connecting to Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I <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">installed SQL Server 2017 on Ubuntu server</a> and tried to connect to this server using PuTTY from my local host. I failed to connect and received PuTTY fatal error ubuntu ssh connection refused. Read this tip to fix this PuTTY <em>Network Error : Connection Refused.</em></p>
<h3><span style="color: #000080;"><strong>Network error: Ubuntu ssh Connection Refused</strong></span></h3>
<p>I faced ubuntu connection refused error while establishing a connection to Ubuntu Linux virtual machine from host computer. I installed PuTTY on my host and tried to connect to Ubuntu Linux machine. Let&#8217;s <a href="https://techyaz.com/sql-server/sql-server-on-linux/check-change-ip-address-subnet-mask-default-gateway-linux-server/" target="_blank" rel="noopener">check the IP of Ubuntu server</a> that we had used to make connection from PuTTY terminal. Run <em>ipconfig</em> command to get these details.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Check IP of Ubuntu Server</span>
ipconfig
</span></strong></pre>
<p>We can see the IP details of the Ubuntu server that is showing 192.168.209.134. We have used this IP to establish server connection and end up with this PuTTY fatal error.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-913" src="http://techyaz.com/wp-content/uploads/2017/09/1-get-ip.jpg" alt="Check IP of Ubuntu Server" width="495" height="286" srcset="https://techyaz.com/wp-content/uploads/2017/09/1-get-ip.jpg 495w, https://techyaz.com/wp-content/uploads/2017/09/1-get-ip-300x173.jpg 300w" sizes="auto, (max-width: 495px) 100vw, 495px" /></p>
<p>I tried to connect to Ubuntu server post getting IP from above command but I got ubuntu ssh connection refused error during this operation. The details of PuTTY Fatal Error that caused ubuntu connection refused is given below.</p>
<div class="codediv"><span class="kwrd" style="color: red;"><strong><em>PuTTY Fatal Error</em></strong><br />
<strong><em> Network error: Connection Refused</em></strong><br />
</span></div>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-914" src="http://techyaz.com/wp-content/uploads/2017/09/2-error.jpg" alt="Network Error Connection Refused Error" width="457" height="279" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-error.jpg 457w, https://techyaz.com/wp-content/uploads/2017/09/2-error-300x183.jpg 300w" sizes="auto, (max-width: 457px) 100vw, 457px" /></p>
<h3><span style="color: #000080;"><strong>Solution</strong></span></h3>
<p>We faced ubuntu ssh connection refused error and failed to connect to Ubuntu Server remotely using PuTTY terminal because <strong>SSH, or Secure Shell</strong> is not installed on the Ubuntu server. <strong>SSH, or Secure Shell</strong>, is a protocol used to securely log onto remote systems. Our next step is to install SSH on the Ubuntu server. Run below command to start this installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install SSH on Ubuntu Server</span>
sudo apt-get install openssh-server
</span></strong></pre>
<p>It will check the dependencies and ask you to type y to proceed with the installation as shown in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-915" src="http://techyaz.com/wp-content/uploads/2017/09/3-install-ssh.jpg" alt="install ssh" width="978" height="465" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-install-ssh.jpg 978w, https://techyaz.com/wp-content/uploads/2017/09/3-install-ssh-300x143.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/3-install-ssh-768x365.jpg 768w" sizes="auto, (max-width: 978px) 100vw, 978px" /></p>
<p>A series of all required packages will download and set up to install SSH. Once SSH will be installed on your Ubuntu server it will look like below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-916" src="http://techyaz.com/wp-content/uploads/2017/09/4-install-ssh.jpg" alt="install ssh" width="767" height="285" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-install-ssh.jpg 767w, https://techyaz.com/wp-content/uploads/2017/09/4-install-ssh-300x111.jpg 300w" sizes="auto, (max-width: 767px) 100vw, 767px" /></p>
<p>You can also reconfirm the installation by executing same command which you ran to install it. You can say, it is saying newest version is already installed on this server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-917" src="http://techyaz.com/wp-content/uploads/2017/09/5-recheck-ssh.jpg" alt="validate ssh installation" width="639" height="148" srcset="https://techyaz.com/wp-content/uploads/2017/09/5-recheck-ssh.jpg 639w, https://techyaz.com/wp-content/uploads/2017/09/5-recheck-ssh-300x69.jpg 300w" sizes="auto, (max-width: 639px) 100vw, 639px" /></p>
<p>Now launch PuTTY terminal on your host computer or a computer from where you want to connect to the Ubuntu server and enter IP address of Ubuntu server to establish connection. Once you click on connect button, you will get a window for the very first time only. Click on Yes button of that window to proceed. Once you will click on Yes button you will be connected to your Ubuntu server remotely.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-918" src="http://techyaz.com/wp-content/uploads/2017/09/7-connect-ssh.jpg" alt="Connected to ubuntu using Putty" width="842" height="269" srcset="https://techyaz.com/wp-content/uploads/2017/09/7-connect-ssh.jpg 842w, https://techyaz.com/wp-content/uploads/2017/09/7-connect-ssh-300x96.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/7-connect-ssh-768x245.jpg 768w" sizes="auto, (max-width: 842px) 100vw, 842px" /></p>
<p>Now we can see putty connection refused error is fixed and we can connect to Ubuntu server remotely using PuTTY terminal. If you want to <a href="https://help.ubuntu.com/community/SSH/OpenSSH/Configuring" target="_blank" rel="noopener">change configurations of SSH</a> you can refer to attached document. This way you can fix ubuntu ssh connection refused error.</p>
<p>Here, we have fixed ubuntu putty connection refused error. 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/ubuntu/fix-putty-network-error-connection-refused-connecting-ubuntu-server/">Fix PuTTY Network Error: Connection Refused while Connecting to Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/ubuntu/fix-putty-network-error-connection-refused-connecting-ubuntu-server/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>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>
		<item>
		<title>How to Install SQL Server Agent on Ubuntu Server without Internet &#8211; Offline Installation</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 23 Aug 2017 11:18:40 +0000</pubDate>
				<category><![CDATA[SQL Server Administration]]></category>
		<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[SQL Server Agent]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=641</guid>

					<description><![CDATA[<p>SQL Server Agent runs scheduled SQL Server jobs and is very useful to automate database tasks. Here i will show you how to install SQL Server Agent on Ubuntu Linux server. We will use offline method to install SQL Server&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/">How to Install SQL Server Agent on Ubuntu Server without Internet &#8211; Offline Installation</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>SQL Server Agent runs scheduled SQL Server jobs and is very useful to automate database tasks. Here i will show you how to install SQL Server Agent on Ubuntu Linux server. We will use offline method to install SQL Server Agent because our Ubuntu server is running without an internet connection. <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/" target="_blank" rel="noopener">Installing SQL Server Agent on Ubuntu server that has internet connection</a> is quite easy method. Have a look at the attached article to understand the steps.</p>
<p>Before going ahead, we need a SQL Server Instance running on Ubuntu Linux Server. If you have no idea about installing Ubuntu server or SQL Server 2017 or creating a virtual machine where you can install Ubuntu/RHEL and SQL Server then i would recommend you to read below articles.</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 Ubuntu Linux 16.04 on a virtual machine.</a></li>
<li><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">Installing SQL Server 2017 on Ubuntu Server &#8211; Offline Installation.</a></li>
<li><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 &#8211; Offline Installation.</a></li>
<li><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 &#8211; Online Method</a></li>
</ul>
<h4><span style="color: #000080;"><strong>Offline Installation of SQL Server Agent on Ubuntu</strong></span></h4>
<p>It is time consuming to install anything if your Ubuntu server has no access of internet. We generally call such installations as offline installation. Microsoft suggests below steps for offline installation of SQL Server Agent on Ubuntu server.</p>
<ul>
<li><a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-release-notes#RC2" target="_blank" rel="noopener">Download SQL Server Agent packages.</a></li>
<li>Move this downloaded package to your Ubuntu Linux Machine.</li>
<li>Install the copied debian package on the server.</li>
<li>Resolve Missing Dependencies, if you get any.</li>
</ul>
<p>Now we will go step by step process with the screenshots that will help readers to understand whole process.</p>
<h5><span style="color: #000080;"><strong>SQL Server Agent Offline Installation &#8211; Step by Step</strong></span></h5>
<p>Before moving ahead let&#8217;s check whether SQL Server Agent is installed or not on this machine. You can connect to SQL Server instance using SSMS on your local host. You can see we are able to see SQL Server Agent folder but it is grayed out and not accessible. We need to install SQL Server Agent on Ubuntu server to enable it.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-642" src="http://techyaz.com/wp-content/uploads/2017/08/1-check-Agent.jpg" alt="Check SQL Server Agent in SSMS" width="442" height="604" srcset="https://techyaz.com/wp-content/uploads/2017/08/1-check-Agent.jpg 442w, https://techyaz.com/wp-content/uploads/2017/08/1-check-Agent-220x300.jpg 220w" sizes="auto, (max-width: 442px) 100vw, 442px" /></p>
<p>You can check and verify SQL Server service by executing below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Check SQL Server Service.</span>
systemctl status mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-643" src="http://techyaz.com/wp-content/uploads/2017/08/2-check-mssql.jpg" alt="Check SQL Server Service" width="1019" height="191" srcset="https://techyaz.com/wp-content/uploads/2017/08/2-check-mssql.jpg 1019w, https://techyaz.com/wp-content/uploads/2017/08/2-check-mssql-300x56.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/2-check-mssql-768x144.jpg 768w" sizes="auto, (max-width: 1019px) 100vw, 1019px" /></p>
<p>You should proceed if SQL Server service is running fine. Next step is to start the package download and proceed with installation. Below is the image of <a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-release-notes#RC2" target="_blank" rel="noopener">SQL Server Agent Package</a> which we will download to install SQL Server Agent.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-644" src="http://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package-1024x206.jpg" alt="Download SQL Server Agent Package" width="1024" height="206" srcset="https://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package-1024x206.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package-300x60.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package-768x154.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/3-download-agent-package.jpg 1223w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Download the highlighted debian package for SQL Server Agent. You can download this package on machine or PC which is connected to the internet. Once package will be downloaded to your local PC, next step is to copy this packages to the Ubuntu Linux server that are running without internet connection. I used <strong>WinSCP</strong> tool to copy this file from machine where i have downloaded it to the Linux server. Make sure that there should be connectivity between both machine.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-645" src="http://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp-1024x578.jpg" alt="Connect to WinSCP" width="1024" height="578" srcset="https://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp-1024x578.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp-300x169.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp-768x433.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/4-connect-winscp.jpg 1179w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>If you have not installed WinSCP, download it and install on your PC. Launch WinSCP tool and make a connection to Ubuntu server. There are two panes in WinSCp window. The files shows in left side pane is your local system and right side pane is your target Ubuntu server. Now we just need to drag the downloaded debian package from left side pane and drop it to right side pane to copy it to Ubuntu server. Agent file is copied now and we can see that files in both side panes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-646" src="http://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package-1024x244.jpg" alt="Copy Agent Package" width="1024" height="244" srcset="https://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package-1024x244.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package-300x71.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package-768x183.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/5-copy-agent-package.jpg 1311w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now we can connect to Ubuntu server and validate whether this file is copied there or not. Connect to Ubuntu server and check the files. We can see downloaded file is very much there on Ubuntu server. Now next step is to install this package. We will use the <strong>dpkg package</strong> to install it as we do for other applications on Ubuntu. Let&#8217;s install it 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 Agent on Ubuntu</span>
sudo dpkg -i mssql-server-agent_14.0.900.75-1_amd64.deb
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-647" src="http://techyaz.com/wp-content/uploads/2017/08/6-install-Agent.jpg" alt="Install SQL Server Agent on Ubuntu" width="972" height="422" srcset="https://techyaz.com/wp-content/uploads/2017/08/6-install-Agent.jpg 972w, https://techyaz.com/wp-content/uploads/2017/08/6-install-Agent-300x130.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/6-install-Agent-768x333.jpg 768w" sizes="auto, (max-width: 972px) 100vw, 972px" /></p>
<p>This installation has suggested us to restart SQL Server service to complete this installation so go ahead and restart the service by executing below command.</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-full wp-image-648" src="http://techyaz.com/wp-content/uploads/2017/08/7-restart-sqlserver.jpg" alt="restart SQL Server Service" width="939" height="226" srcset="https://techyaz.com/wp-content/uploads/2017/08/7-restart-sqlserver.jpg 939w, https://techyaz.com/wp-content/uploads/2017/08/7-restart-sqlserver-300x72.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/7-restart-sqlserver-768x185.jpg 768w" sizes="auto, (max-width: 939px) 100vw, 939px" /></p>
<p>Now <strong>SQL Server Agent is installed</strong> on this server. Go ahead connect to this SQL Server Instance using SSMS from local host. This time you would be able to see SQL Server Agent folder enabled.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-649" src="http://techyaz.com/wp-content/uploads/2017/08/8-check-Agent.jpg" alt="Check SQL Server Agent post Installation" width="364" height="608" srcset="https://techyaz.com/wp-content/uploads/2017/08/8-check-Agent.jpg 364w, https://techyaz.com/wp-content/uploads/2017/08/8-check-Agent-180x300.jpg 180w" sizes="auto, (max-width: 364px) 100vw, 364px" /></p>
<p>You can see SQL Server Agent is showing there. Now you can create any jobs on SQL Server to automate database activities.</p>
<p><span style="color: #008080;"><strong>Read more about SQL Server on RedHat Linux:</strong></span></p>
<ul>
<li><strong><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">Installing 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-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server 2017 on RedHat Linux – Offline Installation.</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">How to Install SQL Tools on RedHat Linux – Offline Installation.</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">SQL Server Agent Installation on RedHat Linux – Offline Installation.</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-agent-ubuntu-server-without-internet-offline-installation/">How to Install SQL Server Agent on Ubuntu Server without Internet &#8211; Offline Installation</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-without-internet-offline-installation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Step by Step Process to Install SQL Tools on Ubuntu Server running without Internet &#8211; Offline Installation</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 23 Aug 2017 10:58:15 +0000</pubDate>
				<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[SQL Tools]]></category>
		<category><![CDATA[sqlcmd]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=622</guid>

					<description><![CDATA[<p>I have described step by step process to install Ubuntu 16.04 Server and Offline installation of SQL Server 2017 on Ubuntu server in my last articles. Here I will explain step by step process to install SQL Server tools (sqlcmd&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/">Step by Step Process to Install SQL Tools on Ubuntu Server running without Internet &#8211; Offline Installation</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have described <a href="https://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">step by step process to install Ubuntu 16.04 Server</a> and <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">Offline installation of SQL Server 2017 on Ubuntu server</a> in my last articles. Here I will explain step by step process to install SQL Server tools (sqlcmd and bcp) on Ubuntu server where you had already installed SQL Server 2017. This article will describe the offline method to install SQL tools. The <strong>mssql-tools package</strong> which we will install contains two utilities:</p>
<ul>
<li><strong>sqlcmd:</strong> Command-line query utility.</li>
<li><strong>bcp:</strong> Bulk import-export utility.</li>
</ul>
<p>Before going ahead, we need a Ubuntu server and SQL Server 2017 running on that instance. If you have no idea about installing Ubuntu server or SQL Server 2017 or creating a virtual machine where you can install Ubuntu and SQL Server then i would recommend you to read below articles.</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/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">How to Install Ubuntu Linux Server on a virtual machine</a></li>
<li><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">Installing SQL Server 2017 on Ubuntu Server &#8211; Offline Installation</a></li>
</ul>
<h4><span style="color: #000080;"><strong>SQL Tools Installation on Ubuntu &#8211; Offline/Without Internet</strong></span></h4>
<p>Installing any package on Ubuntu Linux is straight forward method if your server has internet connection and able to access online repositories. But it becomes painful if your Ubuntu server has no access of internet. We generally call such installations as offline installation. Microsoft suggests below steps for offline installation of SQL Server Tools on Ubuntu server.</p>
<ul>
<li>Download all sql tools related packages. i.e msodbc &amp; mssql-tools</li>
<li>Move these downloaded packages to your Ubuntu Server.</li>
<li>Install the copied debian packages on the server.</li>
<li>Resolve Missing Dependencies, if you get any.</li>
<li>Set the Path environment Variables for this package.</li>
</ul>
<p>Now we will follow step by step process with the screenshots that will help readers to understand this process.</p>
<h5><span style="color: #000080;"><strong>Download &amp; Copy SQL Tools Packages to Ubuntu Server</strong></span></h5>
<p>Before moving ahead let&#8217;s check whether SQL Server is installed or not on this machine. Run below command to check the SQL Server service.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #008000;">#Check SQL Server Service</span><span class="kwrd" style="color: blue;">
systemctl status mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-623" src="http://techyaz.com/wp-content/uploads/2017/08/1-check-services.jpg" alt="check SQL Server Service on Ubuntu" width="860" height="380" srcset="https://techyaz.com/wp-content/uploads/2017/08/1-check-services.jpg 860w, https://techyaz.com/wp-content/uploads/2017/08/1-check-services-300x133.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/1-check-services-768x339.jpg 768w" sizes="auto, (max-width: 860px) 100vw, 860px" /></p>
<p>We can see SQL Server is installed and running fine on this server. Now you can just type <strong>sqlcmd</strong> to check sql tool is installed or not. We can see it is not installed yet. As we can see SQL Tools are not installed so next step will package download and installation of that package.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-624" src="http://techyaz.com/wp-content/uploads/2017/08/2-check-sqlcmd.jpg" alt="Check sqlcmd" width="388" height="146" srcset="https://techyaz.com/wp-content/uploads/2017/08/2-check-sqlcmd.jpg 388w, https://techyaz.com/wp-content/uploads/2017/08/2-check-sqlcmd-300x113.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/2-check-sqlcmd-1320x500.jpg 1320w" sizes="auto, (max-width: 388px) 100vw, 388px" /></p>
<p>Let&#8217;s start with downloading the debian package for SQL Tools. You can <a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools" target="_blank" rel="noopener">download the required SQL Tools debian packages for Ubuntu</a> from the attached link or from <a href="https://packages.microsoft.com/rhel/7.3/prod/" target="_blank" rel="noopener">Microsoft Repositories</a>. You can download these packages on a machine or PC that is connected to the internet. Below are the list of debian packages which needs to be downloaded to install sql tools.</p>
<ul>
<li><strong>msodbcsql_13.1.6.0-1_amd64.deb</strong></li>
<li><strong>mssql-tools_14.0.5.0-1_amd64.deb</strong></li>
</ul>
<p>SQL Tools package installation depends on <strong>msodbcsql package</strong> that must be installed first to avoid any dependency issue. Once package will be downloaded on your local PC, next step is to copy above downloaded packages to the Ubuntu server that are running without internet connection.</p>
<p>You can use any tool, application or method to copy this file from localhost to Ubuntu Linux server. I used <strong>WinSCP</strong> tool to copy this file from machine where i have downloaded the package to the Ubuntu Linux server. Make sure that there should be connectivity between both machine.</p>
<p>If you have not installed WinSCP yet, download and install it on your PC. Launch <strong>WinSCP tool</strong> and make a connection to Ubuntu server. I have explained about WinSCP in my <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">last articles</a>, you can follow it to get more details. Once you established the connection, WinSCP will look like below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-625" src="http://techyaz.com/wp-content/uploads/2017/08/3-download-package-1024x273.jpg" alt="Download SQL Tools Package" width="1024" height="273" srcset="https://techyaz.com/wp-content/uploads/2017/08/3-download-package-1024x273.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/3-download-package-300x80.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/3-download-package-768x205.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/3-download-package.jpg 1370w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now we just need to drag the downloaded debian packages from left side pane and drop it to right side pane to copy it to Ubuntu Linux server. Files are copied now and we can see them in both side panes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-626" src="http://techyaz.com/wp-content/uploads/2017/08/4-download-package-1024x205.jpg" alt="move sql tool package to Ubuntu" width="1024" height="205" srcset="https://techyaz.com/wp-content/uploads/2017/08/4-download-package-1024x205.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/4-download-package-300x60.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/4-download-package-768x153.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/4-download-package.jpg 1356w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see SQL Tools packages are copied to location \home\techyaz\ in above screenshot. Now we can connect to Ubuntu server and validate whether files are copied there or not.</p>
<p>Connect to Ubuntu server and check the files. You can run <strong>ls -lrt</strong> to check the files. Once packages will be copied to ubuntu server, next step is to first install msodbcsql package. 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 msodbcsql package</span>
sudo dpkg -i msodbcsql_13.1.6.0-1_amd64.deb
</span></strong></pre>
<p>Here we will use <strong>dpkg package management</strong> system for installation because SQL Tools are debian packages for Ubuntu servers. We can see below dependencies error while executing msodbc package. Now our next step is to fix these dependency issues and then kick off the installation again.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-627" src="http://techyaz.com/wp-content/uploads/2017/08/5-install-msodbc.jpg" alt="install msodbc" width="770" height="288" srcset="https://techyaz.com/wp-content/uploads/2017/08/5-install-msodbc.jpg 770w, https://techyaz.com/wp-content/uploads/2017/08/5-install-msodbc-300x112.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/5-install-msodbc-768x287.jpg 768w" sizes="auto, (max-width: 770px) 100vw, 770px" /></p>
<h5><span style="color: #000080;"><strong>Resolve Dependencies</strong></span></h5>
<p>We can see msodbcsql package depends on <strong>unixODBC package</strong> so first we need to download, move and install unixODBC package on Ubuntu server.</p>
<p>Resolving dependencies are painful job because every package has some dependencies and you need to download and install all such packages manually if you don&#8217;t have internet connection on Ubuntu server. If your Ubuntu server has internet connection, all dependencies will be installed using online repository.</p>
<p>Now let&#8217;s download and move <strong>unixODBC package</strong> to Ubuntu server. We can <a href="https://packages.ubuntu.com/" target="_blank" rel="noopener">download all required debian packages</a> from attached link.  We can see unixODBC package has been copied to the server now in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-628" src="http://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc-1024x219.jpg" alt="Copy UnixODBC" width="1024" height="219" srcset="https://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc-1024x219.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc-300x64.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc-768x164.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/6-copy-unixodbc.jpg 1358w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Install this package now.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install unixODBC Package.</span>
sudo dpkg -i unixodbc_2.3.1-4.1_amd64.deb
</span></strong></pre>
<p>We can see this package has another dependency error. That means UnixODBC package is dependent on given packages i.e. libodbc1 &amp; odbcinst1debian2.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-629" src="http://techyaz.com/wp-content/uploads/2017/08/7-unixodbc-install-error.jpg" alt="unixodbc install error" width="726" height="327" srcset="https://techyaz.com/wp-content/uploads/2017/08/7-unixodbc-install-error.jpg 726w, https://techyaz.com/wp-content/uploads/2017/08/7-unixodbc-install-error-300x135.jpg 300w" sizes="auto, (max-width: 726px) 100vw, 726px" /></p>
<p>When i downloaded <strong>libodbc1</strong> and tried to install it, this package failed because of another dependency.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-630" src="http://techyaz.com/wp-content/uploads/2017/08/8-libodbc1-1024x318.jpg" alt="Libodbc1" width="1024" height="318" srcset="https://techyaz.com/wp-content/uploads/2017/08/8-libodbc1-1024x318.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/8-libodbc1-300x93.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/8-libodbc1-768x239.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/8-libodbc1.jpg 1436w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>We can see the dependent package in above image. I <a href="https://packages.ubuntu.com/xenial/libltdl7" target="_blank" rel="noopener">downloaded package <strong>libltdl7</strong></a> and installed on Ubuntu server. <strong>libltdl7</strong> package got installed successfully without any dependency error.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-631" src="http://techyaz.com/wp-content/uploads/2017/08/9-lbltdl7.jpg" alt="lbltdl7 installation" width="907" height="386" srcset="https://techyaz.com/wp-content/uploads/2017/08/9-lbltdl7.jpg 907w, https://techyaz.com/wp-content/uploads/2017/08/9-lbltdl7-300x128.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/9-lbltdl7-768x327.jpg 768w" sizes="auto, (max-width: 907px) 100vw, 907px" /></p>
<p>Once <strong>libltdl7 package</strong> will be installed, next step is to install all dependencies in reverse order. Here we will install <strong>libodbc1</strong> then <strong>unixodbc</strong> followed by <strong>msodbcsql</strong> package.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-632" src="http://techyaz.com/wp-content/uploads/2017/08/10-libodbc1-install.jpg" alt="libodbc1 install" width="765" height="159" srcset="https://techyaz.com/wp-content/uploads/2017/08/10-libodbc1-install.jpg 765w, https://techyaz.com/wp-content/uploads/2017/08/10-libodbc1-install-300x62.jpg 300w" sizes="auto, (max-width: 765px) 100vw, 765px" /></p>
<p>We have seen, there were two dependencies to install <strong>unixODBC</strong> package. One <strong>libodbc1</strong> has been installed. Please perform similar exercise to install another dependency <strong>odbcinst1debian2</strong>. Once both packages will be installed, go ahead and install unixodbc in order to install msodbcsql package.</p>
<p>If you want to check all dependencies for these packages, you can get it by running below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;"><span style="color: #008000;">#Check dependencies of both packages.</span></span><span style="color: #0000ff;">
dpkg -I msodbcsql_13.1.6.0-1_amd64.deb | grep "Depends:"
dpkg -I mssql-tools_14.0.5.0-1_amd64.deb | grep "Depends:"
</span></span></strong></pre>
<p><strong>If you have internet connection on your Ubuntu server</strong> then this task will be very easy to perform. You just need to execute below command to install unixodbc package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install unixodbc on Ubuntu if server is connected to Internet.</span>
sudo apt-get -f install unixodbc
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-633" src="http://techyaz.com/wp-content/uploads/2017/08/11-unixodbc-internet.jpg" alt="unixodbc installation using internet" width="681" height="295" srcset="https://techyaz.com/wp-content/uploads/2017/08/11-unixodbc-internet.jpg 681w, https://techyaz.com/wp-content/uploads/2017/08/11-unixodbc-internet-300x130.jpg 300w" sizes="auto, (max-width: 681px) 100vw, 681px" /></p>
<h5><span style="color: #000080;"><strong>SQL Tools Installation</strong></span></h5>
<p>We have resolved all dependencies errors in above section. Now we will install SQL Tools to establish database connection to SQL Server instance from ubuntu server. Run below command to install the msodbcsql package again post resolving dependencies.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install msodbcsql Package</span>
sudo dpkg -i msodbcsql_13.1.6.0-1_amd64.deb
</span></strong></pre>
<p>Once you will execute above command, you will get below screen to <strong>accept the license terms</strong>. Choose <strong>Yes</strong> and press enter button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-634" src="http://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install-1024x425.jpg" alt="msodbc installation" width="1024" height="425" srcset="https://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install-1024x425.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install-300x125.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install-768x319.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/12-msodbc-install.jpg 1423w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Once you press enter, package execution will start. You can see <strong>msodbcsql package is installed successfully</strong> now.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-635" src="http://techyaz.com/wp-content/uploads/2017/08/13-msodbc-install.jpg" alt="msodbc installation" width="941" height="158" srcset="https://techyaz.com/wp-content/uploads/2017/08/13-msodbc-install.jpg 941w, https://techyaz.com/wp-content/uploads/2017/08/13-msodbc-install-300x50.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/13-msodbc-install-768x129.jpg 768w" sizes="auto, (max-width: 941px) 100vw, 941px" /></p>
<p>Next we will install another package <strong>mssql-tools</strong> now. 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 mssql-tools Package</span>
sudo dpkg -i mssql-tools_14.0.5.0-1_amd64.deb
</span></strong></pre>
<p>Again this package will ask you to <strong>accept the license terms</strong> just like msodbcsql package. Choose <strong>yes</strong> and press enter to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-636" src="http://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools-1024x441.jpg" alt="Install mssql tools" width="1024" height="441" srcset="https://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools-1024x441.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools-300x129.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools-768x331.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/14-mssql-tools.jpg 1413w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You cans see <strong>mssql-tools package is installed</strong> in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-637" src="http://techyaz.com/wp-content/uploads/2017/08/15-mssql-tools.jpg" alt="install mssql tools" width="735" height="154" srcset="https://techyaz.com/wp-content/uploads/2017/08/15-mssql-tools.jpg 735w, https://techyaz.com/wp-content/uploads/2017/08/15-mssql-tools-300x63.jpg 300w" sizes="auto, (max-width: 735px) 100vw, 735px" /></p>
<p><strong>Final step</strong> is to set the <strong>path environment variables</strong>. Run below command to set the path environment variables. Ubuntu will not be able to recognize <strong>sqlcmd utility</strong> unless you set the path environment variable. You can see that in below screenshot. Ubuntu is able to recognize sqlcmd utility once we set the path environment variables.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#To make sqlcmd/bcp accessible from the bash shell for login sessions, modify your PATH in the ~/.bash_profile file</span>
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bash_profile

<span style="color: #008000;">#To make sqlcmd/bcp accessible from the bash shell for interactive/non-login sessions, modify the PATH in the ~/.bashrc file
</span>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-638" src="http://techyaz.com/wp-content/uploads/2017/08/16-path-variable.jpg" alt="Patch variables" width="974" height="249" srcset="https://techyaz.com/wp-content/uploads/2017/08/16-path-variable.jpg 974w, https://techyaz.com/wp-content/uploads/2017/08/16-path-variable-300x77.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/16-path-variable-768x196.jpg 768w" sizes="auto, (max-width: 974px) 100vw, 974px" /></p>
<p>Now connect to SQL Server instance using sqlcmd and run a command to validate this installation. I have checked the SQL Server version installed on ubuntu server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-639" src="http://techyaz.com/wp-content/uploads/2017/08/17-select-version.jpg" alt="" width="737" height="367" srcset="https://techyaz.com/wp-content/uploads/2017/08/17-select-version.jpg 737w, https://techyaz.com/wp-content/uploads/2017/08/17-select-version-300x149.jpg 300w" sizes="auto, (max-width: 737px) 100vw, 737px" /></p>
<p>We get above details that SQL Server 2017 is installed on this Ubuntu server by executing sqlcmd utility. Now we have done with SQL Tools installation on Ubuntu server. Go ahead and connect to your Ubuntu server using SQL Tools.</p>
<p><span style="color: #800000;"><strong>Read more about SQL Server on RedHat Linux:</strong></span></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">Installing 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-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server 2017 on RedHat Linux – Offline Installation.</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">How to Install SQL Tools on RedHat Linux – Offline Installation.</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">SQL Server Agent Installation on RedHat Linux – Offline Installation.</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/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/">Step by Step Process to Install SQL Tools on Ubuntu Server running without Internet &#8211; Offline Installation</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/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install SQL Server 2017 on Ubuntu Server without Internet &#8211; Offline Installation</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 23 Aug 2017 10:07:48 +0000</pubDate>
				<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=604</guid>

					<description><![CDATA[<p>Starting with SQL Server 2017, we can run &#38; deploy our applications on Linux based SQL Server Instances. I have already explained step by step method to install SQL Server on Redhat Linux without any internet connection in my last&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/">How to Install SQL Server 2017 on Ubuntu Server without Internet &#8211; Offline Installation</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Starting with SQL Server 2017, we can run &amp; deploy our applications on Linux based SQL Server Instances. I have already explained step by step method to <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">install SQL Server on Redhat Linux without any internet connection</a> in my last article. Here I will explain step by step process to install SQL Server on Ubuntu 16.04 server that is also running without an internet connection.</p>
<p>We can easily <a href="https://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 if we have internet access to the online repositories</a> but what if we don&#8217;t have internet access to the server. Here i will explain how to perform offline installation of SQL Server on Ubuntu 16.04 Server.</p>
<p>Before going ahead, we need Ubuntu Linux 16.04 server. If you don&#8217;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>
<h4><span style="color: #000080;"><strong>Offline Installation of SQL Server 2017 on Ubuntu Server</strong></span></h4>
<p><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">Installing SQL Server 2017 on Ubuntu Linux</a> is straight forward method if your server has internet connection and able to access online repositories. But it becomes painful if your Ubuntu server has no access of internet. We generally call it offline installation. Microsoft suggests below steps for offline installation of SQL Server on Ubuntu Linux server.</p>
<ul>
<li>Download the database engine package which you need to install.</li>
<li>Move this downloaded packages to your Ubuntu Machine.</li>
<li>Install the copied Debian package on the server.</li>
<li>Resolve Missing Dependencies, if you get any. This is most painful step in Offline Installation.</li>
<li>Complete the SQL Server Setup by running mssql-conf.</li>
</ul>
<p>Now we will go step by step process with the screenshots that will help readers to understand this process.</p>
<h5><span style="color: #000080;"><strong>Download &amp; Move SQL Server Debian Package on the Server</strong></span></h5>
<p>Let&#8217;s start with downloading the debian package for SQL Server database engine. You can <a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-release-notes" target="_blank" rel="noopener">download the required debian packages</a> from release notes or from <a href="https://packages.microsoft.com/rhel/7.3/prod/" target="_blank" rel="noopener">Microsoft repositories.</a> I downloaded database engine package from <a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-release-notes">SQL Server 2017 Release Notes</a>. You can download this package on a machine or PC which is connected to the internet. Below is the image of debian packages that can be downloaded.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-605" src="http://techyaz.com/wp-content/uploads/2017/08/1-download-package-1-1024x214.jpg" alt="download sql server package" width="1024" height="214" srcset="https://techyaz.com/wp-content/uploads/2017/08/1-download-package-1-1024x214.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/1-download-package-1-300x63.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/1-download-package-1-768x160.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/1-download-package-1.jpg 1232w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Next, we need to copy above downloaded package to our Ubuntu server that doesn&#8217;t have internet connection. You can use any tool, application or method to copy this file from local host to Ubuntu server. I used <strong>WinSCP</strong> tool to copy this file from machine where i have downloaded the packge to the Ubuntu server. Make sure that there should be connectivity between both machine.</p>
<p>If you have not installed WinSCP, download it and install on your PC. Launch WinSCP tool and make a connection to Ubuntu server. You can see i entered all details and credentials in below image to make connection. Once you save the details, login button will enable. Click on Login button to establish connection.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-606" src="http://techyaz.com/wp-content/uploads/2017/08/2-connect-winscp-1024x586.jpg" alt="connect to winscp" width="1024" height="586" srcset="https://techyaz.com/wp-content/uploads/2017/08/2-connect-winscp-1024x586.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/2-connect-winscp-300x172.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/2-connect-winscp-768x440.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/2-connect-winscp.jpg 1113w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>It will again ask you to enter password, type the password and press enter to make connection to the Ubuntu Server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-607" src="http://techyaz.com/wp-content/uploads/2017/08/3-connect-winscp-1.jpg" alt="connect to Winscp" width="641" height="591" srcset="https://techyaz.com/wp-content/uploads/2017/08/3-connect-winscp-1.jpg 641w, https://techyaz.com/wp-content/uploads/2017/08/3-connect-winscp-1-300x277.jpg 300w" sizes="auto, (max-width: 641px) 100vw, 641px" /></p>
<p>There are two panes in WinSCp window. The files shows in left side pane is your local system and right side pane is your target Ubuntu server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-608" src="http://techyaz.com/wp-content/uploads/2017/08/4-winscp-1024x265.jpg" alt="WinSCP" width="1024" height="265" srcset="https://techyaz.com/wp-content/uploads/2017/08/4-winscp-1024x265.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/4-winscp-300x78.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/4-winscp-768x199.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/4-winscp.jpg 1361w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now we just need to drag the downloaded debian package from left side pane and drop it to right side pane to copy it to Ubuntu server. You can see the copy process in below screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-609" src="http://techyaz.com/wp-content/uploads/2017/08/5-copy-1024x547.jpg" alt="copy files to ubuntu server" width="1024" height="547" srcset="https://techyaz.com/wp-content/uploads/2017/08/5-copy-1024x547.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/5-copy-300x160.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/5-copy-768x411.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/5-copy.jpg 1156w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see debian package is copied to location \home\techyaz\ in below image. So, we can connect to Ubuntu server and validate whether file is copied there or not.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-610" src="http://techyaz.com/wp-content/uploads/2017/08/6-winscp-post-copy-1024x187.jpg" alt="WinSCP post copy the package" width="1024" height="187" srcset="https://techyaz.com/wp-content/uploads/2017/08/6-winscp-post-copy-1024x187.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/6-winscp-post-copy-300x55.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/6-winscp-post-copy-768x140.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/6-winscp-post-copy.jpg 1348w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Connect to Ubuntu server. Check the package in location \home\techyaz\. We can see downloaded file is very much there on Ubuntu server. I have also validated whether SQL Server is installed on this machine previously by someone else or not by checking its service in below image. We can see SQL Server is not installed on this machine yet.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-611" src="http://techyaz.com/wp-content/uploads/2017/08/7-connect-ubuntu-1024x365.jpg" alt="connect to Ubuntu" width="1024" height="365" srcset="https://techyaz.com/wp-content/uploads/2017/08/7-connect-ubuntu-1024x365.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/7-connect-ubuntu-300x107.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/7-connect-ubuntu-768x273.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/7-connect-ubuntu.jpg 1031w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">
#Check the copied package.</span>
ls -lrt

<span style="color: #008000;">#Check SQL Server Service.</span>
systemctl status mssql-service
</span></strong></pre>
<p>Now our next step is to install this package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install SQL Server debian package.</span>
sudo dpkg -i mssql-server_versionnumber_amd64.deb
</span></strong></pre>
<p><strong>dpkg</strong> is a package manager for Debian-based systems. It can install, remove, and build packages. I ran installation command using <strong>dpkg</strong> 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. Best way to fix missing dependencies is to download the required package, copy them to the Ubuntu server and install them if you don&#8217;t have internet connection on Ubuntu server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-612" src="http://techyaz.com/wp-content/uploads/2017/08/8-install-failed.jpg" alt="SQL Server Install failed" width="889" height="619" srcset="https://techyaz.com/wp-content/uploads/2017/08/8-install-failed.jpg 889w, https://techyaz.com/wp-content/uploads/2017/08/8-install-failed-300x209.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/8-install-failed-768x535.jpg 768w" sizes="auto, (max-width: 889px) 100vw, 889px" /></p>
<h5><span style="color: #000080;"><strong>Resolve Dependencies</strong></span></h5>
<p>I faced few dependency issues while installing above debian package. I ran below command to check all dependencies for this SQL Server debian package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Check Package Dependency for below package</span>
dpkg -I mssql-server_versionnumber_amd64.deb
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-613" src="http://techyaz.com/wp-content/uploads/2017/08/9-check-dependencies-1024x360.jpg" alt="Check SQL package dependencies" width="1024" height="360" srcset="https://techyaz.com/wp-content/uploads/2017/08/9-check-dependencies-1024x360.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/9-check-dependencies-300x105.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/9-check-dependencies-768x270.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/9-check-dependencies.jpg 1417w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see the list of dependencies showing into highlighted area which needs to be installed before installing SQL Server package. It&#8217;s very easy to install all such packages into one go by executing below command if your server is connected to Internet. This will download and install all required packages from online repository.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install all dependencies</span>
sudo apt-get -f install libunwind8 libnuma1 libc6 adduser libjemalloc1 libc++1 gdb debconf libcurl3 hostname openssl openssl python libgssapi-krb5-2 libsss-nss-idmap0 gawk sed
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-614" src="http://techyaz.com/wp-content/uploads/2017/08/10-install-dependencies-1024x469.jpg" alt="Install Dependencies" width="1024" height="469" srcset="https://techyaz.com/wp-content/uploads/2017/08/10-install-dependencies-1024x469.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/10-install-dependencies-300x137.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/10-install-dependencies-768x352.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/10-install-dependencies-980x450.jpg 980w, https://techyaz.com/wp-content/uploads/2017/08/10-install-dependencies.jpg 1420w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>It will ask you to enter <span style="color: #008000;"><strong>Y</strong></span> to proceed with the installation for all given packages in the command. You can see all such packages have been installed using online repository.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-615" src="http://techyaz.com/wp-content/uploads/2017/08/11-install-dependecies-1024x138.jpg" alt="Install Dependencies" width="1024" height="138" srcset="https://techyaz.com/wp-content/uploads/2017/08/11-install-dependecies-1024x138.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/11-install-dependecies-300x40.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/11-install-dependecies-768x104.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/11-install-dependecies.jpg 1438w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>But here, we are installing SQL Server on ubuntu server into offline mode that means we don&#8217;t have access to internet on the server. In that case, we need to <strong>manually download</strong> each and every package, move them to Ubuntu server the way we moved SQL Server package and then install all of them there. This is time consuming task because every package has some other dependencies. I downloaded and installed all these packages on Ubuntu Server to proceed. There are lot of packages i installed to fix dependencies. It was not possible for me to take all screenshots so i did not attach them here.</p>
<h5><span style="color: #000080;"><strong>Offline Installation</strong></span></h5>
<p>Once all dependencies have been resolved, move ahead to install SQL Server on this server. Run below command to execute the installation.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install SQL Server on Ubuntu</span>
sudo dpkg -i mssql-server_versionnumber_amd64.deb
</span></strong></pre>
<p>We can see <span style="color: #000000;"><strong>SQL Server has been successfully installed</strong></span> on this Ubuntu server. You can see this in below image. Setup also suggests us to run another command to complete this installation. We will execute this command in next step.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-616" src="http://techyaz.com/wp-content/uploads/2017/08/12-sql-install.jpg" alt="SQL Server Installation on Ubuntu" width="793" height="377" srcset="https://techyaz.com/wp-content/uploads/2017/08/12-sql-install.jpg 793w, https://techyaz.com/wp-content/uploads/2017/08/12-sql-install-300x143.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/12-sql-install-768x365.jpg 768w" sizes="auto, (max-width: 793px) 100vw, 793px" /></p>
<p>Now we will run below command to <strong>set the sa password</strong> and <strong>accept the license terms</strong> for SQL Server using <strong>mssql-conf utility</strong>. mssql-conf is a Microsoft SQL Server Configuration utility that are used to configure such parameters.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Run SQL Server Configuration</span>
sudo /opt/mssql/bin/mssql-conf setup
</span></strong></pre>
<p>This execution will ask us to <strong>accept the License terms</strong>, select the <strong>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 us to enter YES to access the license terms. Type <strong>YES</strong> and press enter.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-617" src="http://techyaz.com/wp-content/uploads/2017/08/13-mssql-conf.jpg" alt="mssql-conf" width="734" height="226" srcset="https://techyaz.com/wp-content/uploads/2017/08/13-mssql-conf.jpg 734w, https://techyaz.com/wp-content/uploads/2017/08/13-mssql-conf-300x92.jpg 300w" sizes="auto, (max-width: 734px) 100vw, 734px" /></p>
<p>Once you press enter post <strong>accepting license terms</strong>, setup will give you options to <strong>choose SQL Server edition</strong>. Select correct edition as per your requirement. You can see only first three editions are free and rest of all are paid. I selected option 2 to proceed. Once you choose SQL Server edition, it will ask you to <strong>set sa login password</strong>. Make sure to enter complex password for sa and do not share it to anybody. The moment you set the sa password, SQL Server configuration will proceed to complete the configuration and will be ready to use.</p>
<p><img loading="lazy" decoding="async" class="aligncenter  wp-image-618" src="http://techyaz.com/wp-content/uploads/2017/08/14-mssql-conf-1024x546.jpg" alt="mssql-conf" width="701" height="374" srcset="https://techyaz.com/wp-content/uploads/2017/08/14-mssql-conf-1024x546.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/14-mssql-conf-300x160.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/14-mssql-conf-768x410.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/14-mssql-conf.jpg 1357w" sizes="auto, (max-width: 701px) 100vw, 701px" /></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 Ubuntu server if you are facing issue during remote connections.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Enable port 1433 for remote connection</span>
sudo ufw allow 1433
</span></strong></pre>
<p>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>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-619" src="http://techyaz.com/wp-content/uploads/2017/08/15-service.jpg" alt="SQL Server Service" width="951" height="227" srcset="https://techyaz.com/wp-content/uploads/2017/08/15-service.jpg 951w, https://techyaz.com/wp-content/uploads/2017/08/15-service-300x72.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/15-service-768x183.jpg 768w" sizes="auto, (max-width: 951px) 100vw, 951px" /></p>
<p>Now your <strong>SQL Server is ready to use</strong>. You can connect to this instance using SSMS client tool. Next step is to install SQL Tools  (sqlcmd &amp; bcp utilities) and SQL Server Agent on this server.  Read below articles if you want to <strong>install SQL Tools</strong> and <strong>SQL Server Agent</strong> on Ubuntu Server.</p>
<ul>
<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">How to Install SQL Tools on Ubuntu Server &#8211; Offline Installation</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">Step by Step method to install SQL Server Agent on Ubuntu Server &#8211; Offline Installation</a></strong></li>
<li><strong><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 that has been connected to internet</a></strong></li>
</ul>
<p>I have connected to SQL Server installed on Ubuntu server from SSMS client. We can see SQL Server Agent is grayed out that is because SQL Server Agent is not installed yet. Read above attached articles to install SQL Server Agent on this Ubuntu Server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-620" src="http://techyaz.com/wp-content/uploads/2017/08/16-ssms.jpg" alt="Connect to SQL Server using SSMS" width="446" height="604" srcset="https://techyaz.com/wp-content/uploads/2017/08/16-ssms.jpg 446w, https://techyaz.com/wp-content/uploads/2017/08/16-ssms-222x300.jpg 222w" sizes="auto, (max-width: 446px) 100vw, 446px" /></p>
<p><strong><span style="color: #800000;">Read more about SQL Server on RedHat Linux:</span></strong></p>
<ul>
<li><strong><a href="https://techyaz.com/linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">Installing 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-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server 2017 on RedHat Linux &#8211; Offline Installation.</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">How to Install SQL Tools on RedHat Linux &#8211; Offline Installation.</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">SQL Server Agent Installation on RedHat Linux &#8211; Offline Installation.</a></strong></li>
</ul>
<p>I hope you like this article. Comment us if you have any question. 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-2017-on-ubuntu-server-without-internet-offline-installation/">How to Install SQL Server 2017 on Ubuntu Server without Internet &#8211; Offline Installation</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-on-ubuntu-server-without-internet-offline-installation/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
