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

<channel>
	<title>Linux OS &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-categories/linux-os/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Thu, 27 May 2021 08:55:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Linux OS &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Basic Configuration of Firewall on Linux</title>
		<link>https://help.hostry.com/knowledge-base/firewall/</link>
					<comments>https://help.hostry.com/knowledge-base/firewall/#comments</comments>
		
		<dc:creator><![CDATA[Paul Harris]]></dc:creator>
		<pubDate>Mon, 29 Jul 2019 07:34:24 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=432</guid>

					<description><![CDATA[Basic commands firewalld Look status: # systemctl status firewall # firewall-cmd --state running View zones: # firewall-cmd &#8211;list-all public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client ssh ports: 8081/tcp 53/udp 53/tcp protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: It is seen that the open service: ssh [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 id="basic-commands-firewalld" >Basic commands firewalld</h2>



<p>Look status:</p>



<p><code># systemctl status firewall  </code></p>



<p><code># firewall-cmd --state</code></p>



<p>running</p>



<p>View
zones:</p>



<p>#
firewall-cmd &#8211;list-all 
</p>



<p>public
(active)</p>



<p>target:
default</p>



<p>icmp-block-inversion:
no</p>



<p>interfaces:
eth0</p>



<p>sources:
</p>



<p>services:
dhcpv6-client ssh</p>



<p>ports:
8081/tcp 53/udp 53/tcp</p>



<p>protocols:
</p>



<p>masquerade:
no</p>



<p>forward-ports:
</p>



<p>source-ports:
</p>



<p>icmp-blocks:
</p>



<p>rich rules:  </p>



<p>It is seen that the open service: ssh (22/TCP),dhcpv6-client and ports 8081/tcp 53/udp 53/tcp, a Protocol is required without this the command will not be accepted</p>



<p><strong>Allow connection to a specific port (for example 1732 ) is very simple:</strong></p>



<p><code># firewall-cmd --add-port=1732/tcp</code></p>



<p><code># firewall-cmd --runtime-to-permanent</code></p>



<p>The second command will overwrite the Active settings to the saved and agreeme at boot</p>



<p><strong>To remove a port from the rules, use the &#8211;remove-port parameter:</strong></p>



<p><code># firewall-cmd --remove-port=1732/tcp</code></p>



<p><code># firewall-cmd --runtime-to-permanent</code></p>



<p>In General, many &#8211;add-* commands have values for checking the status of &#8211;query-*, &#8211;list-* — list, changing &#8211;change -*, or deleting &#8211;remove the corresponding value. For brevity, we will not continue to focus on this. After reload rules check:</p>



<p><code># firewall-cmd --list-ports</code></p>



<p><strong>Firewalld provides a mode that allows you to block all connections with a single command:</strong></p>



<p><code># firewall-cmd --panic-on</code></p>



<p><strong>To check which mode the firewall is in, there is a special key:</strong></p>



<p><code># firewall-cmd --query-panic  </code></p>



<p><strong>Panic mode is disabled:</strong></p>



<p><code># firewall-cmd --panic-off</code></p>



<p>It is not necessary to know which port is associated with the service in firewalld, just specify the name of the service. The utility will take care of the rest. After installing firewall knows the settings of more than 50 services, we get a list of them.</p>



<p><code># firewall-cmd --get-services</code></p>



<p><strong>Allow http connection:</strong></p>



<p><code># firewall-cmd --add-service=http</code></p>



<p>Using braces, you can specify multiple services at once. Information on the settings of the services available through</p>



<p><code># firewall-cmd --info-ser</code></p>



<p></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/firewall/feed/</wfw:commentRss>
			<slash:comments>454</slash:comments>
		
		
			</item>
		<item>
		<title>Choosing an Operating System on Linux</title>
		<link>https://help.hostry.com/knowledge-base/choosing-an-operating-system-on-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/choosing-an-operating-system-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 26 Aug 2019 07:49:13 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=576</guid>

					<description><![CDATA[There are actually a lot of operating systems and distributions based on Linux OS. In this article we will only talk about some of them that are inherent in our virtual servers, namely this: CentOS, Debian, FreeBSD, Ubuntu. We will give a short description about each operating system, its advantages [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>There are actually a lot of operating systems and distributions based on Linux OS. In this article we will only talk about some of them that are inherent in <a href="https://hostry.com/products/vps/">our virtual servers,</a> namely this: <strong>CentOS</strong>, <strong>Debian</strong>, <strong>FreeBSD</strong>, <strong>Ubuntu</strong>. We will give a short description about each operating system, its advantages and hackeristics. We hope this will help you decide which one will be more convenient and practical for you to use..</p>



<p></p>



<h2 id="debian" >Debian</h2>



<p>One of the most universally compatible Linux distributions. it is long-term in support and the very first distribution. It has a graphical shell GHOME. From its advantages can be distinguished</p>



<ul><li><strong>The presence of a modern Linux kernel</strong></li><li><strong>Extra large package storage</strong></li><li><strong>Big Tracking System</strong></li><li><strong>Great support for architectures (x86, x64, ARM)</strong></li></ul>



<h2 id="centos" >CentOS</h2>



<p></p>



<p>Every third user of Linux will select this operating system. Absolutely all software products designed for work and support of the Linux environment will work in CentOS.</p>



<ul><li><strong>Ensuring installation in UEFI Secure Boot mode on supported hardware</strong></li><li><strong>Very easy transition to systemd, firewalld and GRUB2 </strong></li><li><strong>Very reliable server solution</strong></li></ul>



<h2 id="ubuntu" >Ubuntu</h2>



<p>This operating system is the best solution for openStack public clouds. Today, many users for their personal computers use this particular operating system. The main advantages can be distinguished</p>



<p></p>



<ul><li><strong>This operating system can always be easily downloaded, use is very simple, and configurations are easy</strong></li><li><strong>It is one of the safest operating systems due to the fact that it has a built-in firewall and anti-virus software</strong></li><li><strong>It is interesting that Ubuntu has been translated into more than 50 languages ​​of the world, and is available to many users</strong></li><li><strong>In support of servers, Ubuntu is one of the most popular systems, because of its simplicity, reliability and security systems</strong></li></ul>



<h2 id="firstHeading" id="freebsd" >FreeBSD</h2>



<p>This distribution includes a security group that controls all of this software. A wide selection of additional applications and programs is installed by pkg packages or by compiling code. The main advantages can be distinguished</p>



<ul><li><strong>Due to licensing, much of FreeBSD, the coded has become an integral part of other operating systems, such as Apple, and the Sony’s PlayStation software system</strong></li><li><strong>FreeBSD has a large set of server software in the base system and a set of ports. This allows you to configure FreeBSD and use it as a mail server, web server, firewall, FTP server, DNS server and router, as well as other applications</strong></li></ul>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/choosing-an-operating-system-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Configuring Automatic Kernel Updates on Linux</title>
		<link>https://help.hostry.com/knowledge-base/configuring-automatic-kernel-updates-on-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/configuring-automatic-kernel-updates-on-linux/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 17 Sep 2020 08:59:51 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2174</guid>

					<description><![CDATA[Applying security updates to the Linux kernel is a process that can be done using tools like apt, yum, or kexec. In case of a large number of servers, this process can be difficult and time-consuming. A system reboot is required to manually update the kernel. For organizations with more [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Applying security updates to the Linux kernel is a process that can be done using tools like apt, yum, or kexec. In case of a large number of servers, this process can be difficult and time-consuming. A system reboot is required to manually update the kernel. For organizations with more than a few servers, live patching is the best option. It is an automatic way to fix the Linux kernel while the server is running, making it more efficient and safer than manual methods. </p>



<h2 id="kernelcare" >KernelCare</h2>



<p><strong><a href="https://www.kernelcare.com/"><em>KernelCare</em></a></strong> &#8211; the great option for hosting provaiders and businesses. <strong>KernelCare</strong> runs on Ubuntu, CentOS, Debian, and other popular flavors of Linux. It checks for updates every 4 hours and installs them automatically. Patches can be rolled back. KernelCare is free for nonprofits. To install KernelCare, run the installation script:</p>



<pre class="wp-block-code"><code>wget -qq -O - https://kernelcare.com/installer | bash</code></pre>



<p>If you are using an IP based license, nothing else is required. Otherwise, if you are using a key based license, run the following command to register the service:</p>



<pre class="wp-block-code"><code>/usr/bin/kcarectl --register &lt;your-key></code></pre>



<p>Where is the registration code string<strong> &lt;your-key&gt;</strong>provided when signing up for a trial or purchasing a product. You can get it on this page. Below are some useful KernelCare commands. To check if a running KernelCare kernel is supported:</p>



<pre class="wp-block-code"><code>curl -s -L https://kernelcare.com/checker | python</code></pre>



<p>To unregister a server:</p>



<pre class="wp-block-code"><code>sudo kcarectl --unregister</code></pre>



<p>To check the status of the service:</p>



<pre class="wp-block-code"><code>sudo kcarectl --info</code></pre>



<p>The software will automatically check for new patches every 4 hours. To update manually, run:</p>



<pre class="wp-block-code"><code>/usr/bin/kcarectl --update</code></pre>



<h2 id="canonical-livepatch" >Canonical Livepatch</h2>



<p><strong><em><a href="https://ubuntu.com/security/livepatch">Canonical Livepatch</a></em></strong> is a service that fixes a running kernel without rebooting your Ubuntu system. Livepatch is free to use on three Ubuntu systems. To use this service on more than three computers, you need to subscribe to the <strong><a href="https://ubuntu.com/legal/ubuntu-advantage#:~:text=The%20Ubuntu%20Advantage%20Assurance%20Programme,of%20all%20Canonical%20support%20contracts.">Ubuntu Advantage program.</a></strong> Before installing the service, you need to get a livepatch token from the Livepatch service website. After installing the token and enabling the service by running the following two commands:</p>



<pre class="wp-block-code"><code>sudo snap install canonical-livepatch
sudo canonical-livepatch enable &lt;your-key></code></pre>



<p>To check the status of the service, run:</p>



<pre class="wp-block-code"><code>sudo canonical-livepatch status --verbose</code></pre>



<p>Later, if you want to unregister the machine, use this command:</p>



<pre class="wp-block-code"><code>sudo canonical-livepatch disable &lt;your-key></code></pre>



<blockquote class="wp-block-quote"><p> The same instructions apply for Ubuntu 20.04 and Ubuntu 18.04. </p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/configuring-automatic-kernel-updates-on-linux/feed/</wfw:commentRss>
			<slash:comments>453</slash:comments>
		
		
			</item>
		<item>
		<title>Configuring OpenSSH VPS Server on Linux OS</title>
		<link>https://help.hostry.com/knowledge-base/configuring-openssh-vps-server-on-linux-os/</link>
					<comments>https://help.hostry.com/knowledge-base/configuring-openssh-vps-server-on-linux-os/#respond</comments>
		
		<dc:creator><![CDATA[Paul Harris]]></dc:creator>
		<pubDate>Thu, 08 Aug 2019 11:14:28 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=511</guid>

					<description><![CDATA[OpenSSH server on VPS is the first and main method of access to Linux and FreeBSD server; by default, it is configured quite securely and allows all users to connect to the this system. In the Debian distribution, the root user can only connect using the keys and cannot connect [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>OpenSSH</strong> server on <strong>VPS</strong> is the first and main method of access to Linux and FreeBSD server; by default, it is configured quite securely and allows all users to connect to the this system. </p>



<p>In the Debian distribution, the root user can only connect using the keys and cannot connect using the password. The configuration file itself may contain settings that may be useful to you depending on the situation. Keys DennyUsers and AllowUsers &#8211; Allows you to restrict users and IP from which they can connect. For example, these lines:</p>



<p><code>DennyUsers login<br> AllowUsers "root@15.45.78.5,johnn,anny@78.65.55.0/24"</code></p>



<p>Only root, johnn, anny users can connect. In addition, the root user can only connect with IP<strong> 15.45.78.5 </strong>and anyy from the<strong> 78.65.55.0/24</strong> subnet.</p>



<p>Key Match &#8211; Let&#8217;s redefine some settings and global restrictions for connections that fall under the filter. </p>



<p>For example:</p>



<p><code>PasswordAuthentication no<br> PermitRootLogin no<br> Match Address <strong>1.2.3.4,9.8.7.6 </strong>Host <strong>vps12.hostry.com</strong><br>     PasswordAuthentication <strong>Yes</strong><br>     PermitRootLogin<strong> yes</strong></code></p>



<p>For connections from addresses <strong>1.2.3.4,9.8.7.6</strong> and from the node <strong>vps12.hostry.com</strong> will allow you to use a password</p>



<p><code>X11Forwarding no<br> Match User John Address <strong>172.16.1</strong>.* <br>     X11Forwarding <strong>yes</strong></code></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/configuring-openssh-vps-server-on-linux-os/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Configuring vsFTPd on Debian and Ubuntu</title>
		<link>https://help.hostry.com/knowledge-base/configuring-vsftpd-on-debian-and-ubuntu/</link>
					<comments>https://help.hostry.com/knowledge-base/configuring-vsftpd-on-debian-and-ubuntu/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 31 Jan 2020 07:52:08 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1278</guid>

					<description><![CDATA[vsftpd means &#8220;Very Secure&#8221; FTP Daemon. This is a kind of lightweight FTP server. Commands to help you install and configure require superuser privileges. Installation To install vsftpd, you must enter the following command: Configuration First you need to open the configuration file using your text editor. This example uses [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>vsftpd means &#8220;Very Secure&#8221; FTP Daemon. This is a kind of lightweight FTP server. Commands to help you install and configure require superuser privileges.</p>



<p></p>



<h2 id="installation" >Installation</h2>



<p>To install vsftpd, you must enter the following command:</p>



<pre class="wp-block-code"><code>apt-get install vsftpd</code></pre>



<h2 id="configuration" >Configuration</h2>



<p>First you need to open the configuration file using your text editor. This example uses <strong><em>vim</em></strong></p>



<pre class="wp-block-code"><code>vim /etc/vsftpd.conf</code></pre>



<p>vsftpd allows anonymous users to access the server by default. This feature is considered a serious security vulnerability. To disable, you must enter an anonymous login by changing the following line:</p>



<pre class="wp-block-code"><code>anonymous_enable=NO</code></pre>



<p>To enable local login, uncomment the following:</p>



<pre class="wp-block-code"><code>local_enable=YES</code></pre>



<p>The following command enables the download:</p>



<pre class="wp-block-code"><code>write_enable=YES</code></pre>



<p>Next, you need to save the file and close the text editor. Then run vsftpd as a daemon:</p>



<pre class="wp-block-code"><code>service vsftpd start</code></pre>



<p>This step is final in order to enter the FTP server from your local computer.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/configuring-vsftpd-on-debian-and-ubuntu/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Converting from MySQL to MariaDB on Ubuntu</title>
		<link>https://help.hostry.com/knowledge-base/converting-from-mysql-to-mariadb-to-ubuntu/</link>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 13 Feb 2020 10:27:18 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1405</guid>

					<description><![CDATA[This guide will describe the steps for converting a MySQL server to a MariaDB server and resolving unsatisfied dependencies that may arise during the conversion process. This manual is intended only for virtual servers on which the Ubuntu operating system is installed. Uninstall MySQL server To get started, run these [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This guide will describe the steps for converting a MySQL server to a MariaDB server and resolving unsatisfied dependencies that may arise during the conversion process. This manual is intended only for virtual servers on which the Ubuntu operating system is installed. </p>



<h2 id="uninstall-mysql-server" >Uninstall MySQL server </h2>



<p>To get started, run these commands as root or use sudo</p>



<pre class="wp-block-code"><code>
service mysql stop
apt-get remove mysql-server mysql-common libmysqlclient18</code></pre>



<h2 id="install-mariadb" >Install MariaDB </h2>



<p>Run the following command </p>



<pre class="wp-block-code"><code>apt-get install software-properties-common</code></pre>



<p>Add MariaDB Store Key </p>



<pre class="wp-block-code"><code>sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db</code></pre>



<p>Add MariaDB Repository </p>



<pre class="wp-block-code"><code>sudo add-apt-repository 'deb http://ftp.utexas.edu/mariadb/repo/10.0/ubuntu trusty main'</code></pre>



<p>Install MariaDB </p>



<pre class="wp-block-code"><code>apt-get install mariadb-server libmariadbclient18</code></pre>



<p>Handling Unsatisfied Dependencies </p>



<p>The MariaDB installer may fail (which often happens) with an error, such as this one: </p>



<pre class="wp-block-code"><code>mariadb-server : Depends: mariadb-server-10.0 (specific version) but it is not going to be installed.</code></pre>



<p>This can be frustrating and may not look right. Next, you need to install all the adjacent dependencies. Add g ++ repository to server to resolve libstdc ++ 6 dependency. </p>



<h2 id="add-g" >Add g ++ </h2>



<pre class="wp-block-code"><code>add-apt-repository ppa:ubuntu-toolchain-r/test
apt-get update
apt-get install g++-4.9</code></pre>



<p>Pin the MariaDB repository</p>



<p>This is done by creating a file with <strong>MariaDB.pref</strong> in <strong>/etc/apt/preferences.d/</strong> with the contents shown below:</p>



<p></p>



<pre class="wp-block-code"><code>Package: *
Pin: origin &lt;mirror-domain>
Pin-Priority: 1000</code></pre>



<p>Replace the <strong><em>&lt;mirror-domain&gt; </em></strong>that is displayed when accessing the MarizDB repository selection page</p>



<p>In my case, I chose the <strong>&#8220;University of Dallas&#8221;</strong>. After updating, the file now has the following contents:</p>



<pre class="wp-block-code"><code>Package: *
Pin: origin http://ftp.udallas.edu/mariadb/repo/10.0/ubuntu
Pin-Priority: 1000</code></pre>



<p>Save the file, upgrade your system.</p>



<pre class="wp-block-code"><code>apt-get update</code></pre>



<p>Now, dependency problems have been resolved. If you use 12.04, then pay attention to the fact (it is important) that there were reports that g ++ was excluded from this version.</p>



<p>Install MariaDB again</p>



<pre class="wp-block-code"><code>apt-get install mariadb-server</code></pre>



<p>Check your installation of MariaDB</p>



<pre class="wp-block-code"><code>service mysql start
mysql -u root -p</code></pre>



<p>Now, you can see the following (or the same) output</p>



<pre class="wp-block-code"><code>Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is XXXX
Server version: 10.0.X


Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]></code></pre>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Correcting network configuration after Snapshot recovery</title>
		<link>https://help.hostry.com/knowledge-base/correcting-network-configuration-after-snapshot-recovery/</link>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 28 Oct 2020 09:02:18 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2480</guid>

					<description><![CDATA[Snapshot is a copy of files and directories of the file system at a specific point in time. File systems at this point can later be mounted read-only. So, after the snapshot recovery period has passed on the new VPS, problems may arise caused by changing the MAC address of [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-pale-pink-background-color has-background"><a href="https://en.wikipedia.org/wiki/Snapshot_(computer_storage)"><strong>Snapshot</strong></a> is a copy of files and directories of the file system at a specific point in time. File systems at this point can later be mounted read-only. </p>



<p>So, after the snapshot recovery period has passed on the new VPS, problems may arise caused by changing the MAC address of the network adapter. Typically, when you change a network adapter, the operating system creates a new network adapter for it. Typically you will see the network adapter on “eth1” (or eth2 if you have a private network enabled).</p>



<h2 id="centos" >CentOS</h2>



<p>This operating system describes the following steps to correct network configuration after snapshot recovery:</p>



<ol><li>First you need to log into your server, this can be done as a consequence of <a href="https://help.hostry.com/knowledge-base/how-do-i-connect-to-my-server-via-ssh/"><strong>this</strong></a>;</li><li>Delete the contents of <strong>/etc/udev/rules.d/70-persistent-net.rules</strong></li><li>Open <strong>/etc/sysconfig/network-scripts/ifcfg-eth0</strong> and change the content to the following:</li></ol>



<pre class="wp-block-code"><code>DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
DNS1=8.8.8.8
NAME="System eth0"</code></pre>



<p class="has-pale-pink-background-color has-background">After this three steps, you need to restart VPS</p>



<h2 id="debian-ubuntu" >Debian &amp; Ubuntu</h2>



<p>This operating system describes the following steps to correct network configuration after snapshot recovery:</p>



<ol><li>First you need to log into your server, this can be done as a consequence of <a href="https://help.hostry.com/knowledge-base/how-do-i-connect-to-my-server-via-ssh/"><strong>this</strong></a>;</li><li>Delete the contents of <strong>/etc/udev/rules.d/70-persistent-net.rules</strong></li><li>Review the contents of <strong>/etc/network/interfaces</strong> and update all IP addresses to match the current server.</li></ol>



<p class="has-pale-pink-background-color has-background">After this three steps, you need to restart VPS</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Create a Sudo User on Ubuntu</title>
		<link>https://help.hostry.com/knowledge-base/create-a-sudo-user-on-ubuntu/</link>
					<comments>https://help.hostry.com/knowledge-base/create-a-sudo-user-on-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 07 Sep 2020 08:27:57 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1981</guid>

					<description><![CDATA[One of the best ways to ensure security while doing administrative work on your server is to run as a non-root user. After successfully purchasing a VPS from Hostry, the first task as root should be to set up a non-root user with a valid sudo. This guide is applicable [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>One of the best ways to ensure security while doing administrative work on your server is to run as a non-root user. After successfully purchasing a <strong><em><a href="https://hostry.com/">VPS</a></em></strong> from Hostry, the first task as root should be to set up a non-root user with a valid sudo.<br> This guide is applicable for Ubuntu distribution, for versions: 20.04 LTS, 18.04 LTS, 16.04 LTS.</p>



<h2 id="add-a-new-user-account" >Add a New User Account</h2>



<p>To create a <strong>user</strong> account, you need to use the <strong><em>adduser</em></strong> command. We recommend using a strong password for the user! An example of a strong password is <strong>aoQ7w52!OKvA$Pfz</strong>. Next, you can enter values ​​for user information, or press ENTER to leave these fields blank.</p>



<pre class="wp-block-code"><code># adduser example_user
Adding user `example_user' ...
Adding new group `example_user' (1001) ...
Adding new user `example_user' (1001) with group `example_user' ...
Creating home directory `/home/example_user' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for example_user
Enter the new value, or press ENTER for the default
        Full Name []: Example User
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y</code></pre>



<h2 id="add-user-to-sudo-group" >Add User to Sudo Group</h2>



<p>You can add a new user to the sudo group using the <strong><em>usermod</em></strong> command</p>



<pre class="wp-block-code"><code># usermod -aG sudo example_user</code></pre>



<h2 id="test" >Test</h2>



<p>Switch to a <strong>New</strong> user</p>



<pre class="wp-block-code"><code># su - example_user</code></pre>



<p>Make sure you are the new <strong><em>whoami</em></strong> user, then test<strong><em> sudo</em></strong> access with<strong> sudo whoami</strong> which should return root</p>



<pre class="wp-block-code"><code>$ whoami
example_user
$ sudo whoami
[sudo] password for example_user:
root</code></pre>



<p>Done!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/create-a-sudo-user-on-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Features and benefits of working with Linux</title>
		<link>https://help.hostry.com/knowledge-base/features-and-benefits-of-working-with-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/features-and-benefits-of-working-with-linux/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 04 Sep 2019 09:24:23 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=638</guid>

					<description><![CDATA[The main advantage of this Linux network operating system is its compatibility with the X Window System graphics engine. This, as well as many other positive qualities, make it very popular among users. Linux has support for many platforms. For example, Motorola 680&#215;0 (Amiga and Atari computers, old Macs), PowerPC, [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>The main advantage of this Linux network operating system is its compatibility with the X Window System graphics engine. This, as well as many other positive qualities, make it very popular among users. Linux has support for many platforms. For example, Motorola 680&#215;0 (Amiga and Atari computers, old Macs), PowerPC, DEC Alpha, Sun SPARC. Today, MIPS and ARM processors are being developed, and the core for embedded systems that work on Intel 8086.</p>



<p>Linux presents opportunities to work on this platform. They are very numerous, and many of them have been added since their initial release. </p>



<p>Some <strong><a href="https://www.quora.com/What-are-the-some-features-of-linux">features</a></strong> will be presented below: </p>



<ul><li><strong>CAP_KILL</strong>: Bypassing permission checks for sending signals to processes </li><li><strong>CAP_SYS_NICE</strong>: Enhance the nobility of processes (an explanation of the nobility can be found here)</li><li><strong>CAP_DAC_OVERRIDE</strong>: Override discretionary access control, For example, vto bypass the read / write / execute permissions check.</li></ul>



<p>If you enter in the terminal &#8220;man 7 capabilities&#8221; then more additions and entries will appear</p>



<figure class="wp-block-image"><img width="815" height="983" src="https://help.hostry.com/wp-content/uploads/2019/09/Linux.png" alt="" class="wp-image-639" srcset="https://help.hostry.com/wp-content/uploads/2019/09/Linux.png 815w, https://help.hostry.com/wp-content/uploads/2019/09/Linux-249x300.png 249w, https://help.hostry.com/wp-content/uploads/2019/09/Linux-768x926.png 768w, https://help.hostry.com/wp-content/uploads/2019/09/Linux-41x50.png 41w, https://help.hostry.com/wp-content/uploads/2019/09/Linux-600x724.png 600w, https://help.hostry.com/wp-content/uploads/2019/09/Linux-320x386.png 320w" sizes="(max-width: 815px) 100vw, 815px" /></figure>



<p></p>



<p>We also want to introduce a list of supported hardware called &#8220;Linux Hardware Howto&#8221; <a href="http://www.ibiblio.org/mdw/%20HOWTO%20/%20Hardware-HOWTO.html">http://www.ibiblio.org/mdw/%20HOWTO%20/%20Hardware-HOWTO.html</a></p>



<p>Regarding graphic of programs in this system, there are a lot of them! From simple to powerful editors. We provide the 42 best programs, but in fact, there are many more! <a href="http://www.linuxlinks.com/GraphicsSoftware/">http://www.linuxlinks.com/GraphicsSoftware/</a> </p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/features-and-benefits-of-working-with-linux/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Features of using the Less command on Linux</title>
		<link>https://help.hostry.com/knowledge-base/features-of-using-the-less-command-on-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/features-of-using-the-less-command-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 19 Sep 2019 09:27:23 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=691</guid>

					<description><![CDATA[On Linux systems, this command displays the contents of files and displays the command on one page at a time in the terminal. less is very useful and is mainly used to view the contents of large files. This navigation comes into operation through a keyboard shortcut. To view the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>On Linux systems, this command displays the contents of files and displays the command on one page at a time in the terminal. <strong><span style="text-decoration: underline;">less</span></strong> is very useful and is mainly used to view the contents of large files. This navigation comes into operation through a keyboard shortcut.</p>



<p>To view the contents in your file, you must enter:</p>



<pre class="wp-block-preformatted">less your-file-name</pre>



<p>To see line numbers in each line, use the<strong> &#8211;<span style="text-decoration: underline;">N</span></strong> option:</p>



<pre class="wp-block-code"><code>less -N your-file-name</code></pre>



<h2 id="less-keyboard-navigation" >Less Keyboard Navigation</h2>



<figure class="wp-block-image"><img loading="lazy" width="787" height="884" src="https://help.hostry.com/wp-content/uploads/2019/09/Снимок-экрана-от-2019-09-19-12-06-04.png" alt="" class="wp-image-699" srcset="https://help.hostry.com/wp-content/uploads/2019/09/Снимок-экрана-от-2019-09-19-12-06-04.png 787w, https://help.hostry.com/wp-content/uploads/2019/09/Снимок-экрана-от-2019-09-19-12-06-04-267x300.png 267w, https://help.hostry.com/wp-content/uploads/2019/09/Снимок-экрана-от-2019-09-19-12-06-04-768x863.png 768w, https://help.hostry.com/wp-content/uploads/2019/09/Снимок-экрана-от-2019-09-19-12-06-04-45x50.png 45w, https://help.hostry.com/wp-content/uploads/2019/09/Снимок-экрана-от-2019-09-19-12-06-04-600x674.png 600w, https://help.hostry.com/wp-content/uploads/2019/09/Снимок-экрана-от-2019-09-19-12-06-04-320x359.png 320w" sizes="(max-width: 787px) 100vw, 787px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/features-of-using-the-less-command-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
