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

<channel>
	<title>Debian &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/debian/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>Tue, 30 Nov 2021 17:44:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Debian &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<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>How Do I Add and Configure Additional IP Address(es) to my VPS on Debian&#038;Ubuntu</title>
		<link>https://help.hostry.com/knowledge-base/how-do-i-add-and-configure-additional-ip-addresses-to-my-vps-on-debianubuntu/</link>
					<comments>https://help.hostry.com/knowledge-base/how-do-i-add-and-configure-additional-ip-addresses-to-my-vps-on-debianubuntu/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 11 May 2021 06:59:36 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=3715</guid>

					<description><![CDATA[In order to add additional IPv4 for your virtual server, you need to go to your orders page, select the required VPS and then select the &#8220;Add.IPs&#8221; section.In this section, you will have an EDIT, by clicking on this you can add a new IPv4 address. Additional IP price is [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In order to add additional <strong>IPv4</strong> for your virtual server, you need to go to your orders page, select the required <strong>VPS</strong> and then select the <strong>&#8220;Add.IPs&#8221;</strong> section.<br>In this section, you will have an <strong>EDIT</strong>, by clicking on this you can add a new IPv4 address.</p>



<blockquote class="wp-block-quote"><p><strong>Additional IP price is $ 3</strong></p></blockquote>



<figure class="wp-block-image size-large"><img width="1024" height="457" src="https://help.hostry.com/wp-content/uploads/2021/05/1-1-1024x457.png" alt="" class="wp-image-3721" srcset="https://help.hostry.com/wp-content/uploads/2021/05/1-1-1024x457.png 1024w, https://help.hostry.com/wp-content/uploads/2021/05/1-1-300x134.png 300w, https://help.hostry.com/wp-content/uploads/2021/05/1-1-768x343.png 768w, https://help.hostry.com/wp-content/uploads/2021/05/1-1-50x22.png 50w, https://help.hostry.com/wp-content/uploads/2021/05/1-1-1536x686.png 1536w, https://help.hostry.com/wp-content/uploads/2021/05/1-1-920x411.png 920w, https://help.hostry.com/wp-content/uploads/2021/05/1-1-600x268.png 600w, https://help.hostry.com/wp-content/uploads/2021/05/1-1-320x143.png 320w, https://help.hostry.com/wp-content/uploads/2021/05/1-1.png 1585w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="358" src="https://help.hostry.com/wp-content/uploads/2021/05/2-1-1024x358.png" alt="" class="wp-image-3722" srcset="https://help.hostry.com/wp-content/uploads/2021/05/2-1-1024x358.png 1024w, https://help.hostry.com/wp-content/uploads/2021/05/2-1-300x105.png 300w, https://help.hostry.com/wp-content/uploads/2021/05/2-1-768x268.png 768w, https://help.hostry.com/wp-content/uploads/2021/05/2-1-50x17.png 50w, https://help.hostry.com/wp-content/uploads/2021/05/2-1-1536x537.png 1536w, https://help.hostry.com/wp-content/uploads/2021/05/2-1-920x322.png 920w, https://help.hostry.com/wp-content/uploads/2021/05/2-1-600x210.png 600w, https://help.hostry.com/wp-content/uploads/2021/05/2-1-320x112.png 320w, https://help.hostry.com/wp-content/uploads/2021/05/2-1.png 1665w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Next, to set up an alternate IP address in Debian and Ubuntu, follow these steps:</p>



<p>Log into your VPS using SSH. As the root user, open the <strong>/etc/network/interfaces</strong> file in your preferred text editor. Then add the following text to the file:</p>



<pre class="wp-block-code"><code># The primary network interface
auto eth0:0
iface eth0:0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0</code></pre>



<p>Next, replace xxx.xxx.xxx.xxx with the new IP address that you want to add to your VPS. Then save the changes in the same <strong>/etc/network/interfaces</strong> file and then exit your text editor. To restart the network interfaces on your server, you need to run the command:</p>



<pre class="wp-block-code"><code>ifdown -a --exclude = lo; ifup -a --exclude = lo</code></pre>



<p>To verify that the procedure completed successfully, enter the following command:</p>



<pre class="wp-block-code"><code>ifconfig</code></pre>



<blockquote class="wp-block-quote"><p><strong>The new IP address must be associated with interface eth0.</strong></p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-do-i-add-and-configure-additional-ip-addresses-to-my-vps-on-debianubuntu/feed/</wfw:commentRss>
			<slash:comments>449</slash:comments>
		
		
			</item>
		<item>
		<title>How Do I Upgrade my Python on Debian</title>
		<link>https://help.hostry.com/knowledge-base/how-do-i-upgrade-my-python-on-debian/</link>
					<comments>https://help.hostry.com/knowledge-base/how-do-i-upgrade-my-python-on-debian/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 17 Aug 2021 07:08:17 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4161</guid>

					<description><![CDATA[In order for you to perform this operation to update your&#160;Python&#160;version, you need to update your CentOS 8 and have root rights for your VPS Checking Your Python Version In order to go to upgrade your python, you need to check its version. This can be done using the following [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In order for you to perform this operation to update your&nbsp;<strong>Python</strong>&nbsp;version, you need to update your CentOS 8 and have root rights for your VPS</p>



<h2 id="checking-your-python-version" id="checking-your-python-version" >Checking Your Python Version</h2>



<p>In order to go to upgrade your python, you need to check its version. This can be done using the following command:</p>



<pre class="wp-block-code"><code>python3 -V</code></pre>



<p>If python is successfully installed on your server, then you should get something like this:</p>



<pre class="wp-block-code"><code>Python 3.6.7</code></pre>



<h2 id="updating-your-python-version" >Updating your Python Version</h2>



<p>First, you need to install the required dependencies to compile the Python source code. This can be done using a special command, which is presented below:</p>



<pre class="wp-block-code"><code># apt-get install wget build-essential libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev liblzma-dev -y</code></pre>



<p>After that, we recommend going to the <strong><a href="https://www.python.org/downloads/source/">Python</a></strong> source download page to find the latest gzip version of the source code. Replace the urls and filenames in this tutorial with the latest version. Then download your <strong>python</strong></p>



<pre class="wp-block-code"><code>wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz</code></pre>



<p>After that, you need to unpack the archive that you just downloaded. You can do it like this:</p>



<pre class="wp-block-code"><code>tar xzf Python-3.9.6.tgz</code></pre>



<p>Next, compile the&nbsp;<strong>Python</strong>&nbsp;source</p>



<pre class="wp-block-code"><code>cd Python-3.9.6 &amp;&amp; ./configure --enable-optimizations</code></pre>



<p>This is followed by the installation of your Python. Use the following command:</p>



<pre class="wp-block-code"><code>make altinstall</code></pre>



<p>After that, a mandatory step for execution will be to check the name of your new Python executable file</p>



<pre class="wp-block-code"><code>ls /usr/local/bin/python*</code></pre>



<p>Then Install the new default Python executable. Replace the two instances of <strong>/python3.9</strong> in the following command with the name of your new Python executable</p>



<pre class="wp-block-code"><code>update-alternatives --install /usr/bin/python python /usr/local/bin/python3.9 1</code></pre>



<h2 id="update-your-pip" id="update-your-pip" >Update your PIP</h2>



<p>An important step for this update is to update your&nbsp;<strong>pip</strong>.</p>



<pre class="wp-block-code"><code>/usr/local/bin/python3.9 -m pip install --upgrade pip</code></pre>



<p>Then you should check the name of your new&nbsp;<strong>pip</strong>&nbsp;executable</p>



<pre class="wp-block-code"><code>ls /usr/local/bin/pip*</code></pre>



<p>Set the new item as default. Use the name of your new pip executable in the following command:</p>



<pre class="wp-block-code"><code>update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.9 1</code></pre>



<p>After that, you need to check the current version of your installed Python. You can make sure like this:</p>



<pre class="wp-block-code"><code>python -V &amp;&amp; pip -V</code></pre>



<p>After that, you will be able to see the following:</p>



<pre class="wp-block-code"><code>Python-3.9.6
pip 21.2.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-do-i-upgrade-my-python-on-debian/feed/</wfw:commentRss>
			<slash:comments>538</slash:comments>
		
		
			</item>
		<item>
		<title>How To Configure Chroot on Debian</title>
		<link>https://help.hostry.com/knowledge-base/how-to-configure-chroot-on-debian/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-configure-chroot-on-debian/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 09 Oct 2019 11:15:07 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=781</guid>

					<description><![CDATA[Chroot is the operation of changing the root directory on Unix-like operating systems. A program launched with a modified root directory will only have access to the files contained in this directory. Dependency Installation The first thing to do is run the following installation commands, which will be explained later [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><em><a href="https://ru.wikipedia.org/wiki/Chroot">Chroot</a></em></strong> is the operation of changing the root directory on Unix-like operating systems. A program launched with a modified root directory will only have access to the files contained in this directory. </p>



<h2 id="dependency-installation" >Dependency Installation</h2>



<p>The first thing to do is run the following installation commands, which will be explained later</p>



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



<p>Then you should choose a place to configure chroot. We recommend using will use <strong><em>/var/chroot</em></strong> directory</p>



<h3 id="Step_2__Creating_the_required_directories" id="create-the-necessary-directories" >Create the necessary directories</h3>



<p>You need a create <strong><em>chroot</em></strong> folder</p>



<pre class="wp-block-code"><code>mkdir -p /var/chroot</code></pre>



<p>This completes the setup of the preliminary steps. Next, you need to copy all the commands and their dependencies. This requires a command interpreter, so let&#8217;s copy bash.</p>



<pre class="wp-block-code"><code>mkdir -p /var/chroot/bin
cp /bin/bash /var/chroot/bin</code></pre>



<p>Having looked at all the dependencies, you can run the following program</p>



<pre class="wp-block-code"><code>ldd /bin/bash</code></pre>



<p>If you are using (for example) a 32-bit version, it will look just like this:</p>



<pre class="wp-block-code"><code>linux-gate.so.1 =>  (0xb773e000)
libtinfo.so.5 => /lib/i386-linux-gnu/libtinfo.so.5 (0xb7718000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7714000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb75c3000)
/lib/ld-linux.so.2 (0xb773f000)</code></pre>



<p>The following is the copying of files:</p>



<pre class="wp-block-code"><code>mkdir -p /var/chroot/lib 
mkdir -p /var/chroot/lib/i386-linux-gnu
cp /lib/i386-linux-gnu/libtinfo.so.5 /var/chroot/lib/i386-linux-gnu
cp /lib/i386-linux-gnu/libdl.so.2 /var/chroot/lib/i386-linux-gnu
cp /lib/i386-linux-gnu/libc.so.6 /var/chroot/lib/i386-linux-gnu</code></pre>



<h2 id="testing-the-environment" >Testing the environment</h2>



<p>Checking the bash setting</p>



<pre class="wp-block-code"><code>chroot /var/chroot</code></pre>



<p>If you need to connect to the network in chroot, you will need to run the following commands:</p>



<pre class="wp-block-code"><code>mkdir -p /var/chroot/etc
cp /etc/resolv.conf /var/chroot/etc
cp /etc/gai.conf /var/chroot/etc</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-configure-chroot-on-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Configure OpenVPN on Debian &#038; Ubuntu</title>
		<link>https://help.hostry.com/knowledge-base/how-to-configure-openvpn-on-debian-ubuntu/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-configure-openvpn-on-debian-ubuntu/#comments</comments>
		
		<dc:creator><![CDATA[Paul Harris]]></dc:creator>
		<pubDate>Tue, 20 Aug 2019 14:07:22 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=532</guid>

					<description><![CDATA[Install OpenPNV and easy-rsa packages user@localhost:~$ sudo apt updateuser@localhost:~$ sudo apt install openvpn easyrsa Basic configuration Configuration file Copy the example from the documentation folder user@localhost:~$ sudo cp /usr/share/doc/openvpn-*/sample/sample-config-files/server.conf /etc/openvpn Go to the program settings folder user@localhost:~$ cd /etc/openvpn Open the main configuration file in a text editor user@localhost:~$ sudo [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 id="install-openpnv-and-easy-rsa-packages" >Install OpenPNV and easy-rsa packages</h2>



<p><code>user@localhost:~$ sudo apt update<br>user@localhost:~$ sudo apt install openvpn easyrsa</code></p>



<h2 id="basic-configuration" ><strong>Basic configuration </strong></h2>



<ul><li>Configuration file</li></ul>



<p>Copy the example from the documentation folder</p>



<p><code>user@localhost:~$ sudo cp /usr/share/doc/openvpn-*/sample/sample-config-files/server.conf /etc/openvpn</code></p>



<p>Go to the program settings folder</p>



<p><code>user@localhost:~$ cd /etc/openvpn</code></p>



<p>Open the main configuration file in a text editor</p>



<p><code>user@localhost:~$ sudo nano server.conf</code></p>



<p>Set the dh parameter pointing to the file<strong> &#8216;/etc/openvpn/dh.pem&#8217;</strong></p>



<p><code>dh /etc/openvpn/dh.pem </code></p>



<p>After, you need to find the line:</p>



<p><code>;push redirect-gateway def1 bypass-dhcp "</code></p>



<p>Then uncomment it</p>



<p><code>push redirect-gateway def1 bypass-dhcp</code></p>



<p>Find the <strong>user</strong> parameter and set its value to<strong> nobody</strong>:</p>



<p><code><strong>user</strong> nobody</code></p>



<p>The same thing with the group:</p>



<p><code><strong>group</strong> nobody</code></p>



<p>The paths to keys and certificates:</p>



<p><code><strong>ca        /etc/openvpn/ca.crt<br>cert      /etc/openvpn/server.crt<br>key       /etc/openvpn/server.key <br>tls-auth  /etc/openvpn/ta.key 0 </strong></code></p>



<ul><li>Generation of keys and certificates</li></ul>



<p><code>user@localhost:~$ mkdir -p ~/easy-rsa<br>user@localhost:~$ cp cp -rf /usr/share/easy-rsa/3.0.3/* ~/easy-rsa<br>user@localhost:~$ cd ~/easy-rsa</code></p>



<p><code>user@localhost:~$ ./easyrsa init-pki</code></p>



<p>A <strong>pki</strong> folder will be created with utility files in subdirectories</p>



<p><code>user@localhost:~$ ./easyrsa gen-dh</code></p>



<p>It will take some time and the file will be generated in the <strong>easy-rsa / pki / dh.pem folder</strong></p>



<p><code>user@localhost:~$ ./easyrsa build-ca</code></p>



<p>You will be asked for a new password for the private key of your root certificate. </p>



<p>Plese, enter the password and write it down in a safe place, this password will be requested every time that everyone else signs this certificate.</p>



<p><code>user@localhost:~$ ./easyrsa build-server-full server nopass<br>user@localhost:~$ ./easyrsa build-client-full client nopass</code></p>



<p><code>user@localhost:~$ sudo cp pki/ca.crt pki/dh.pem pki/private/server.key pki/issued/server.crt /etc/openvpn/<br>user@localhost:~$ sudo chown root /etc/openvpn/*</code></p>



<p><strong>Check the operability of the configuration</strong></p>



<p><code>user@localhost:~$ sudo openvpn /etc/openvpn/server.conf</code></p>



<p>We get something like this<strong> &#8220;exhaust&#8221;</strong></p>



<blockquote class="wp-block-quote"><p>Tue Aug 13 09:31:11 2019 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 20 2019<br>Tue Aug 13 09:31:11 2019 Diffie-Hellman initialized with 2048 bit key<br>Tue Aug 13 09:31:11 2019 Outgoing Control Channel Authentication: Using 160 bit message hash &#8216;SHA1&#8217; for HMAC authentication<br>Tue Aug 13 09:31:11 2019 Incoming Control Channel Authentication: Using 160 bit message hash &#8216;SHA1&#8217; for HMAC authentication<br>Tue Aug 13 09:31:11 2019 ROUTE_GATEWAY 172.16.2.1/255.255.255.0 IFACE=eth0 HWADDR=52:54:00:10:3b:15<br>Tue Aug 13 09:31:11 2019 TUN/TAP device tun0 opened<br>Tue Aug 13 09:31:11 2019 TUN/TAP TX queue length set to 100<br>Tue Aug 13 09:31:11 2019 /sbin/ip link set dev tun0 up mtu 1500<br>Tue Aug 13 09:31:11 2019 /sbin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2<br>Tue Aug 13 09:31:11 2019 /sbin/ip route add 10.8.0.0/24 via 10.8.0.2<br>Tue Aug 13 09:31:11 2019 Could not determine IPv4/IPv6 protocol. Using AF_INET<br>Tue Aug 13 09:31:11 2019 Socket Buffers: R=[212992-&gt;212992] S=[212992-&gt;212992]<br>Tue Aug 13 09:31:11 2019 UDPv4 link local (bound): [AF_INET][undef]:1194<br>Tue Aug 13 09:31:11 2019 UDPv4 link remote: [AF_UNSPEC]<br>Tue Aug 13 09:31:11 2019 MULTI: multi_init called, r=256 v=256<br>Tue Aug 13 09:31:11 2019 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0<br>Tue Aug 13 09:31:11 2019 IFCONFIG POOL LIST<br>Tue Aug 13 09:31:11 2019 Initialization Sequence Completed</p></blockquote>



<p>Press <strong>Ctrl + C </strong>and interrupt the process</p>



<blockquote class="wp-block-quote"><p>Tue Aug 13 09:31:12 2019 event_wait : Interrupted system call (code=4)</p><p>Tue Aug 13 09:31:14 2019 /sbin/ip route del 10.8.0.0/24</p><p>Tue Aug 13 09:31:14 2019 Closing TUN/TAP interface</p><p>Tue Aug 13 09:31:14 2019 /sbin/ip addr del dev tun0 local 10.8.0.1 peer 10.8.0.2</p><p>Tue Aug 13 09:31:14 2019 SIGINT[hard,] received, process exiting</p></blockquote>



<p></p>



<p></p>



<p>We start <strong>OpenVPN</strong> as a service, systemd allows you to run individual configurations by entering a name through <strong>&#8216;@&#8217;</strong></p>



<p><code>user@localhost:~$ sudo systemctl start openvpn@server<br>user@localhost:~$ systemctl status openvpn@server</code></p>



<h2 id="open-port-1194-in-the-firewall" >Open port 1194 in the firewall</h2>



<p>If firewalld is active, we execute the commands</p>



<p><code>user@localhost:~$ sudo firewall-cmd --zone public --add-service=openvpn<br>user@localhost:~$ sudo firewall-cmd --runtime-to-permanent</code></p>



<p>For those who prefer iptables + netfilter-persistent before prohibiting rules, insert something like this</p>



<p>(It depends heavily on the current settings and before adding see what rules are already in <strong>iptables -nvL &#8211;line </strong>command)</p>



<p><code>user@localhost:~$ sudo iptables -I INPUT 4 -p tcp --dport 1194 -j ACCEPT user@localhost:~$ sudo service netfilter-persistent save</code></p>



<p>For those who chose nftables, we add the line in the<strong> /etc/nftables.conf</strong> file in the (chain) input chain before the prohibition rules</p>



<p><code>ip tcp dport 1194 accept</code></p>



<p>Reload the rules</p>



<p> On this, the basic setup on the server side can be considered complete</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-configure-openvpn-on-debian-ubuntu/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install 4.19 Kernel on Debian 8</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-4-19-kernel-on-debian-8/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-4-19-kernel-on-debian-8/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 04 Feb 2020 09:23:38 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1346</guid>

					<description><![CDATA[To begin upgrading the kernel to 4.19 on Debian 8, you must have an active instance of HOSTRY VPS. To install, you need to insert the following lines in the SSH or PuTTY client window, or use a VNC connection. Log in and press Enter. This will automatically install all [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p></p>



<p>To begin upgrading the kernel to 4.19 on Debian 8, you must have an active instance of <strong><em><a href="https://hostry.com/products/vps/">HOSTRY VPS</a></em></strong>. To install, you need to insert the following lines in the SSH or PuTTY client window, or use a <em><strong><a href="https://hostry.com/faq/how-connect-via-vnc-vps/">VNC</a></strong></em> connection. Log in and press Enter. This will automatically install all the necessary packages that are needed for this update, as well as the gpg,  kernel key and headers. Then the old core will be removed from your virtual server. After that, use the program to reboot the server and you will switch to a new kernel.</p>



<pre class="wp-block-code"><code>echo '
#!/bin/bash

# Add GPG Key
wget -O - -q https://debian.choopalabs.com/debian.choopalabs.com.gpg.key | apt-key add - 

# Add Vultr Kernel Repo
echo deb http://debian.choopalabs.com/repo/ jessie main >> /etc/apt/sources.list

# Install Vultr 4.19 Kernel
apt-get install -t jessie linux-image
apt-get install -t jessie linux-headers

# Remove old kernel
apt-get autoremove -y
rm -f /root/install-kernel.sh
' > /root/install-kernel.sh
chmod +x /root/install-kernel.sh
/root/install-kernel.sh</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-4-19-kernel-on-debian-8/feed/</wfw:commentRss>
			<slash:comments>487</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install And Configure R on Debian 9</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-and-configure-r-on-debian-9/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-and-configure-r-on-debian-9/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 29 Aug 2019 08:52:15 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=588</guid>

					<description><![CDATA[R is open source programming language. It is very actively used as a development of statistical software and visualized. R offers many custom packages for various areas of study, making it applicable to many areas. Install Dependencies One thing to understand is that an external repository supported by CRAN should [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>R is open source programming language. It is very actively used as a development of statistical software and visualized. R offers many custom packages for various areas of study, making it applicable to many areas. </p>



<h2 id="install-dependencies" >Install Dependencies</h2>



<p> One thing to understand is that an external repository supported by CRAN should be added. For this, it is mandatory to install some dependencies, for Debian 9. First, install <strong>dirmngr</strong> in order to add an external repository</p>



<p><code>sudo apt install dirmngr --install-recommends</code></p>



<p>Then you need to add a link to P<strong>PA</strong> in Debian, we need to use the <strong>add-apt-repository</strong> command For installations where this command may not be available, you can add this utility to your system by installing<strong> software-properties-common</strong>:</p>



<p><code>sudo apt install software-properties-common</code></p>



<p>To support <strong>HTTPS</strong> (443 protocols), you must install the following </p>



<p><code>sudo apt install apt-transport-https</code></p>



<h2 id="step-2-—-installing-r" id="r-installing" >R Installing</h2>



<p>First you need to add the corresponding GPG key</p>



<p><code>sudo apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F87128899B192B1A2C2AD5F960A256A04AF' </code></p>



<p>After the command is run, the following will appear</p>



<pre class="wp-block-code"><code>Output
Executing: /tmp/apt-key-gpghome.k3UoM7WQGq/gpg.1.sh --keyserver keys.gnupg.net --recv-key E19F5F87128899B192B1A2C2AD5F960A256A04AF
gpg: key AD5F960A256A04AF: public key "Johannes Ranke (Wissenschaftlicher Berater) &lt;johannes.ranke@jrwb.de>" imported
gpg: Total number processed: 1
gpg:               imported: 1</code></pre>



<p>After the key has been received, add the repository. Note that if you are not using Debian 9 (Stretch), you can see the supported Debian R Project branches named for each release. You can find and familiarize yourself here: <a href="https://cran.r-project.org/bin/linux/debian/#supported-branches"><strong>https://cran.r-project.org/bin/linux/debian/#supported-branches</strong></a></p>



<p><code>sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/debian stretch-cran35/'</code></p>



<p>Next, run <strong>update</strong>. This is necessary to enable package manifests</p>



<p><code>sudo apt update</code></p>



<p>Next, approximately the following lines will be displayed:</p>



<p><code>Output… </code></p>



<p><code>Get:6 https://cloud.r-project.org/bin/linux/debian stretch-cran35/ InRelease [4,371 B] Get:7 https://cloud.r-project.org/bin/linux/debian stretch-cran35/ Packages [50.1 kB] … </code></p>



<p>Now you are ready to install R using the following command</p>



<p><code>sudo apt install r-base</code></p>



<h2 id="install-r-packages-from-cran" >Install R packages from CRAN</h2>



<p>You need to install <strong>txtplot</strong> the library. It displays ASCII plots including scatter plot, line plot, density plot, acf plot and histograms:</p>



<blockquote class="wp-block-quote"><p><code>install.packages('txtplot')</code></p></blockquote>



<p>Here is the conclusion where exactly the package will be installed</p>



<pre class="wp-block-code"><code>Output…
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
. . .</code></pre>



<p>After installation, we need to download <strong>txtplot</strong>:</p>



<blockquote class="wp-block-quote"><p>library(&#8216;txtplot&#8217;)</p></blockquote>



<p>Then look, if there are no error messages, the library was loaded successfully!</p>



<p>So that you can get out of R, you can type <strong>q ()</strong>. If you do not want to save the image of the workspace, you can press <strong>n</strong>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-and-configure-r-on-debian-9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install FFmpeg on Debian</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-ffmpeg-on-debian/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-ffmpeg-on-debian/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 10 Sep 2020 09:33:16 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2012</guid>

					<description><![CDATA[This guide is described how to install FFmpeg for the following Debian versions: 8, 9, 10. FFmpeg is a free utility for decoding and encoding video or audio. Converting audio and video becomes very easy with this FFmpeg utility. It also provides a cross-platform solution for recording, converting and streaming [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This guide is described how to install <strong><em><a href="https://ffmpeg.org/">FFmpeg</a></em></strong> for the following <strong>Debian versions: 8, 9, 10.</strong> FFmpeg is a free utility for decoding and encoding video or audio. Converting audio and video becomes very easy with this FFmpeg utility. It also provides a cross-platform solution for recording, converting and streaming audio and video. Before starting the installation, we recommend that you update Debian to the latest packages and connect to the server</p>



<h2 id="using-with-debian-9-and-10" >Using with Debian 9 and 10</h2>



<p>Install FFmpeg</p>



<pre class="wp-block-code"><code>$ sudo apt-get install ffmpeg</code></pre>



<p>Check your installation</p>



<pre class="wp-block-code"><code>ffmpeg -version</code></pre>



<p>After entering this code, you should see information about installing FFmpeg. This completes your setup correctly.</p>



<h2 id="using-debian-8" >Using Debian 8</h2>



<p>Editing the original list</p>



<pre class="wp-block-code"><code>$ sudo nano /etc/apt/sources.list</code></pre>



<p>Then you need to add to the end of the file</p>



<pre class="wp-block-code"><code># deb-multimedia
deb http://www.deb-multimedia.org jessie main non-free
deb-src http://www.deb-multimedia.org jessie main non-free

# jessie-backports
deb http://httpredir.debian.org/debian/ jessie-backports main</code></pre>



<p>After that, you need to save and close the file. Next, update the package list and install the <strong>deb-multimedia</strong> keychain</p>



<pre class="wp-block-code"><code>$ sudo apt-get update
$ sudo apt-get install deb-multimedia-keyring
$ sudo apt-get update</code></pre>



<p>Install FFmpeg</p>



<pre class="wp-block-code"><code>$ sudo apt-get install ffmpeg</code></pre>



<p>You can finally check the installation using the following command:</p>



<pre class="wp-block-code"><code>ffmpeg -version</code></pre>



<p>If everything is completed correctly, then you should be able to see information about the successful installation of FFmpeg. At this stage, the configuration is complete.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-ffmpeg-on-debian/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install GruntJS on Debian 9</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-gruntjs-on-debian-9/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-gruntjs-on-debian-9/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 22 Dec 2020 10:34:36 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2802</guid>

					<description><![CDATA[GruntJS is a JavaScript task runner written on top of NodeJS. It can be used to automate repetitive tasks for your application, such as minifying, compiling, unit testing, linting, and more; from with minimal effort. Why use a task launcher? In a word: automation. The less work you have to [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://gruntjs.com/">GruntJS</a></strong> is a JavaScript task runner written on top of NodeJS. It can be used to automate repetitive tasks for your application, such as minifying, compiling, unit testing, linting, and more; from<br> with minimal effort.</p>



<p>Why use a task launcher?<br> In a word: automation. The less work you have to do when doing repetitive tasks like minification, compilation, unit testing, linting, etc., the easier your work becomes. Once you&#8217;ve configured it with the Gruntfile, the task executor can do most of this chore for you &#8211; and your team &#8211; with little or no effort. The Grunt ecosystem is huge and growing every day. With literally hundreds of plugins to choose from, you can use Grunt to automate almost anything with minimal effort. If someone else hasn&#8217;t created what you need, creating and publishing your own Grunt plugin in npm is a breeze.</p>



<h2 id="how-to-install" >How To Install</h2>



<p>Before proceeding with the installation, you need to update the local package index. This can be done with the following command:</p>



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



<p>Then install <strong>curl</strong> with:</p>



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



<p>Next, add the <strong>NodeJS 8.x </strong>package repository:</p>



<pre class="wp-block-code"><code>curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -</code></pre>



<p>Then we need to install <strong>NodeJS</strong> and <strong>NPM </strong>along with development tools:</p>



<pre class="wp-block-code"><code>sudo apt-get install build-essential nodejs</code></pre>



<p>Now check if <strong>NodeJS </strong>and <strong>NPM </strong>are really working on your <strong><a href="https://hostry.com/products/vps/">server</a></strong>:</p>



<pre class="wp-block-code"><code>node --version &amp;&amp; npm --version
#5.x.x
#v8.x.x</code></pre>



<p>Then you need to Install <strong>Grunt</strong>:</p>



<pre class="wp-block-code"><code>sudo npm install -g grunt-cli</code></pre>



<p>Then Ryou can run the command (described below) to check the version installed</p>



<pre class="wp-block-code"><code>grunt --version
#grunt-cli v1.2.0</code></pre>



<h2 id="install-grunt-into-a-new-project" >Install Grunt into a new project </h2>



<p>To install grunt you need to add two files. It need to be added to your project directory: <strong><em>package.json</em></strong> and <strong><em>Gruntfile.js</em></strong>.</p>



<ul><li><strong><em>package.json</em></strong>: This file is used by NPM to store meta-data for projects published as NPM modules.</li><li><strong><em>Gruntfile.js</em></strong>: This file is named<strong> Gruntfile.js</strong> or <strong>Gruntfile.coffee`</strong>and is used to configure or define tasks, as well as to load Grunt plugins.</li></ul>



<p>Change to the root directory of your package:</p>



<pre class="wp-block-code"><code>cd /path/to/project</code></pre>



<p>Then you need to run the special command to create <strong>package.json </strong>file:</p>



<pre class="wp-block-code"><code>sudo npm init</code></pre>



<p>Next, you will be asked to answer some questions, you need to answer them in the command line questionnaire. After creating the package.json file, install Grunt as a development dependency:</p>



<pre class="wp-block-code"><code>sudo npm install grunt --save-dev</code></pre>



<p>Then you need to create the&nbsp;<strong>Gruntfile.js&nbsp;</strong>file:</p>



<pre class="wp-block-code"><code>nano Gruntfile.js</code></pre>



<p>Then remains two things. First, you need to register a simple default task:</p>



<pre class="wp-block-code"><code>var grunt = require('grunt');
grunt.registerTask('default', 'default task description', function(){
  console.log('hello world');
});</code></pre>



<p>Second, run the default task:</p>



<pre class="wp-block-code"><code>grunt</code></pre>



<p>That&#8217;s all. The procedure to install GruntJS is finished. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-gruntjs-on-debian-9/feed/</wfw:commentRss>
			<slash:comments>424</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Newer Version of MongoDB on Debian 8</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-newer-version-of-mongodb-on-debian-8/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-newer-version-of-mongodb-on-debian-8/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 10 Jan 2020 09:05:14 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1206</guid>

					<description><![CDATA[MongoDB is a document-based, general-purpose distributed database designed for modern application developers and for the cloud computing era. No database makes you more productive. In this article, we will look at how to install the latest version of MongoDB Add MongoDB Public Key This command adds the GPG MongoDB public [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><em><a href="https://www.mongodb.com/">MongoDB</a></em></strong> is a document-based, general-purpose distributed database designed for modern application developers and for the cloud computing era. No database makes you more productive. In this article, we will look at how to install the latest version of MongoDB</p>



<h2 id="add-mongodb-public-key" >Add MongoDB Public Key</h2>



<p>This command adds the GPG MongoDB public key to the system key list:</p>



<pre class="wp-block-code"><code>apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10</code></pre>



<p>This key is necessary in order to ensure the consistency and authenticity of all packages.</p>



<h2 id="add-mongodb-storage" >Add MongoDB Storage</h2>



<p>First you need to create the <strong>mongodb.list</strong> file to add the MongoDB repository to the system. You can do this with the following command:</p>



<pre class="wp-block-code"><code>echo "deb http://repo.mongodb.org/apt/debian "$(lsb_release -sc)"/mongodb-org/3.0 main" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list</code></pre>



<h2 id="package-updates" >Package Updates</h2>



<p>To get information about the latest packages, please nter the command:</p>



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



<h2 id="install-mongodb-packages" >Install MongoDB packages</h2>



<p>To install the latest stable version of MongoDB, use the following command:</p>



<pre class="wp-block-code"><code>apt-get install -y mongodb-org</code></pre>



<ul><li><strong>mongodb-org-server</strong></li><li><strong>mongodb-org-mongos</strong></li><li><strong>mongodb-org-shell</strong></li><li><strong>mongodb-org-tools</strong></li></ul>



<p><em>*Here are 4</em><strong><em> packages</em></strong><em> that </em><strong><span style="text-decoration: underline;"><em>mongodb-org</em></span></strong><em> automatically install</em></p>



<h2 id="launch-mongodb" >Launch MongoDB</h2>



<p>After installation is complete, MongoDB starts automatically. If you need to manually start the MongoDB server, use the following command:</p>



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



<p>To <strong>stop</strong> and <strong>restart</strong> mongodb processes, use this commands:</p>



<pre class="wp-block-code"><code>service mongod stop</code></pre>



<pre class="wp-block-code"><code>service mongod restart</code></pre>



<p>You can access the MongoDB shell by running the following command: (<strong>this allows you to connect to the MongoDB server)</strong></p>



<pre class="wp-block-code"><code>mongo</code></pre>



<p>When the shell starts, you will see the output in the following format:</p>



<pre class="wp-block-code"><code>MongoDB shell version: 3.0.0
connecting to: test
></code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-newer-version-of-mongodb-on-debian-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
