<?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 &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/ubuntu/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.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Ubuntu &#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>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>How Can I Install Cockpit Web Server on Ubuntu 20.04</title>
		<link>https://help.hostry.com/knowledge-base/how-can-i-install-cockpit-web-server-on-ubuntu-20-04/</link>
					<comments>https://help.hostry.com/knowledge-base/how-can-i-install-cockpit-web-server-on-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 07:23:57 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4315</guid>

					<description><![CDATA[Cockpit is a web server GUI designed for everyone. Thanks to Cockpit&#8217;s deliberate use of system APIs and commands, a whole team of administrators can manage the system the way they prefer, including the command line and utilities along with Cockpit. It is important to note that before you start [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://cockpit-project.org/">Cockpit</a></strong> is a web server GUI designed for everyone. Thanks to <strong>Cockpit&#8217;s</strong> deliberate use of system APIs and commands, a whole team of administrators can manage the system the way they prefer, including the command line and utilities along with <strong>Cockpit</strong>. It is important to note that before you start installing the web server, it is important and necessary to create a sudo non-root user.</p>



<h2 id="installing-cockpit" >Installing Cockpit</h2>



<p>For installing this web server please ise the following command</p>



<pre class="wp-block-code"><code>apt install cockpit -y</code></pre>



<p>Start the Cockpit service using the <strong>systemctl</strong> utility. To run the service <strong>Cockpit</strong> you can use the systemctl utility</p>



<pre class="wp-block-code"><code>systemctl start cockpit</code></pre>



<p>For checking the Cockpit servise work you can use the following commang</p>



<pre class="wp-block-code"><code>systemctl status cockpit</code></pre>



<h2 id="further-configuration-working-with-the-firewall" >Further configuration: working with the Firewall</h2>



<p>The next important step is to configure the UFW to enable the <strong>Cockpit</strong> web interface <strong>(TCP port is designated 9090).</strong> This can be done with the following command:</p>



<pre class="wp-block-code"><code>ufw allow 9090/tcp</code></pre>



<p>Then you need to open access to the <strong>Cockpit</strong> web console. To do this, you need to open the web console in your browser and then make changes to <strong>example_IP</strong> to your IP address of the virtual server</p>



<pre class="wp-block-code"><code>http:&#47;&#47;example.com:9090</code></pre>



<p>This completes the <strong>Cockpit</strong> setup and installation.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-can-i-install-cockpit-web-server-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How Can I Upgrade Ubuntu 18.04 to 20.04</title>
		<link>https://help.hostry.com/knowledge-base/how-can-i-upgrade-ubuntu-18-04-to-20-04/</link>
					<comments>https://help.hostry.com/knowledge-base/how-can-i-upgrade-ubuntu-18-04-to-20-04/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 29 Jul 2021 07:08:34 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4067</guid>

					<description><![CDATA[This guide is focused on Linux servers running Ubuntu distribution. Before proceeding with the procedure for updating your Ubuntu, it is recommended to make backups, otherwise there is a high risk of losing all data. First stage before updating First, update your Ubuntu Then restart your server Next, do the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This guide is focused on <strong>Linux</strong> servers running <strong>Ubuntu</strong> distribution. Before proceeding with the procedure for updating your <strong>Ubuntu</strong>, it is recommended to make backups, otherwise there is a high risk of losing all data.</p>



<h2 id="first-stage-before-updating" >First stage before updating</h2>



<p>First, update your Ubuntu</p>



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



<p>Then restart your server</p>



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



<p>Next, do the following:</p>



<pre class="wp-block-code"><code>apt update &amp;&amp; sudo apt upgrade -y</code></pre>



<p>After that, you need to remove unused packages and kernels to free up space in your <strong>/boot</strong> partition</p>



<pre class="wp-block-code"><code>apt --purge autoremove</code></pre>



<p>Then you need to edit the update manager configuration file. This can be done as follows:</p>



<pre class="wp-block-code"><code>nano /etc/update-manager/release-upgrades</code></pre>



<p>Find the line starting with <strong>Prompt =</strong>. Make sure it is not commented out and the lts value matches the one shown:</p>



<pre class="wp-block-code"><code>Prompt=lts</code></pre>



<h2 id="running-updates" >Running Updates</h2>



<p>First, we recommend checking the backups again. Then run the update tool on your Ubuntu, then enter <strong><span style="text-decoration: underline;"><em>Y</em></span></strong></p>



<pre class="wp-block-code"><code>do-release-upgrade</code></pre>



<p>Then follow the instructions that you see in your terminal and click carefully. This will be followed by the removal of packages, with which you must agree by clicking on <strong><span style="text-decoration: underline;"><em>Y</em></span></strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-can-i-upgrade-ubuntu-18-04-to-20-04/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 To Backup, Restore or Transfer MySQL/MariaDB Databases on Ubuntu</title>
		<link>https://help.hostry.com/knowledge-base/how-to-backup-restore-or-transfer-mysql-mariadb-databases-on-ubuntu/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-backup-restore-or-transfer-mysql-mariadb-databases-on-ubuntu/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 18 Oct 2019 06:27:04 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=816</guid>

					<description><![CDATA[Today, Backup is a significant procedure and a very important part of working with databases. Regardless of whether you use a corporate website or just host WordPress, it is important to back up your databases. The backup storage is necessary in order to be able to restore information in a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Today, <strong><em><a href="https://hostry.com/blog/the-crucial-importance-of-backup/">Backup</a></em></strong> is a significant procedure and a very important part of working with databases. Regardless of whether you use a corporate website or just host WordPress, it is important to back up your databases. The backup storage is necessary in order to be able to restore information in a very quick and convenient way, in the event that a working copy of the information may be lost for any reason: restoration of documents, settings, certain programs and other things.</p>



<h2 id="backup-process" >Backup process</h2>



<p>We recommend a way to back up a MySQL or MariaDB database using the <strong>mysqldump </strong>dump command. </p>



<pre class="wp-block-code"><code>echo "SHOW DATABASES;" | sudo mysql</code></pre>



<p>This command displays a list of your databases. Make sure you know which .sql file you need, and then simply run the following command to backup to the file.</p>



<pre class="wp-block-code"><code>sudo mysqldump example_database > $(date +"%F").sql</code></pre>



<p>The command described above will back up the example_database to a file with a date ending in .sql. It is also possible to change the name of this file to any other, although saving the file name as a date will be useful if you accidentally delete an important row or column. Use date &#8211;help to learn about other ways to style your date.</p>



<h2 id="recovery" >Recovery</h2>



<p>Here you need to find the .sql file that you created and run the following:</p>



<pre class="wp-block-code"><code>sudo mysql example_database &lt; filename.sql</code></pre>



<h2 id="migrating-to-mariadb-from-mysql" >Migrating to MariaDB from MySQL</h2>



<p>The first thing to do is back up each of your databases:</p>



<pre class="wp-block-code"><code>sudo mysqldump example_database > example_database.sql</code></pre>



<p>After that, you will need to install MariaDB, which will replace MySQL, and restore your databases by following these steps for each database.</p>



<pre class="wp-block-code"><code>sudo mysql example_database &lt; example_database.sql</code></pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-backup-restore-or-transfer-mysql-mariadb-databases-on-ubuntu/feed/</wfw:commentRss>
			<slash:comments>1</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 Ajenti on Ubuntu 18.04</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-ajenti-on-ubuntu-18-04/</link>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 05 Dec 2019 07:16:01 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=963</guid>

					<description><![CDATA[Ajenti is an open source control panel for managing your vps server.The great advantage of this panel is that it is free. To install you will need: VPS, with the installed operating system Ubuntu 18.04; The static IP address of your vps (primary IP); Root access user Download and Install [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Ajenti is an open source control panel for managing your <strong><em><a href="https://hostry.com/products/vps/">vps</a></em></strong> server.The great advantage of this panel is that it is <strong>free</strong>. To install you will need:</p>



<ul><li><strong>VPS, with the installed operating system Ubuntu 18.04; </strong></li><li><strong>The static IP address of your vps (primary IP); </strong></li><li><strong>Root access user</strong></li></ul>



<h2 id="download-and-install-ajenti" >Download and Install Ajenti</h2>



<p>First you need to add the repo key, it will serve to check the packages that you will install later</p>



<pre class="wp-block-code"><code>wget http://repo.ajenti.org/debian/key -O- | sudo apt-key add -</code></pre>



<p>Then add the real repo to your list of sources.</p>



<pre class="wp-block-code"><code>echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" | sudo tee -a /etc/apt/sources.list</code></pre>



<p>Now update your packages and start the installation</p>



<pre class="wp-block-code"><code>sudo apt-get update &amp;&amp; sudo apt-get install ajenti</code></pre>



<p>After the installation is complete, need to start the Ajenti server</p>



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



<p>If you followed the steps above correctly, your console will contain <strong><em>* started</em></strong></p>



<h2 id="ajenti-opening" >Ajenti Opening</h2>



<p>Open Ajenti in your browser by going to https://192.0.2.0:8000. If the browser shows privacy error using this link, then this is completely normal and safe, go to your site.</p>



<p>Next, log in by entering your personal user data</p>



<pre class="wp-block-code"><code>Username: root
Password: admin</code></pre>



<h2 id="customizing-and-configuring-ajenti" >Customizing and Configuring Ajenti</h2>



<p>Then please Click the<strong> Password</strong> button in the sidebar. Then enter admin under the old password and select a new, secure password. In the console, restart Ajenti, then log in with the new password</p>



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



<p>Agenti Home &#8211; Ajenti Dashboard. It can be configured to display information about your server and uptime. You can further add more widgets by clicking Add Widget at the top</p>



<p></p>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to install and configure PHP 7.2 on Ubuntu 18.04</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-and-configure-php-7-2-on-ubuntu-18-04/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-and-configure-php-7-2-on-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 06 Dec 2019 15:28:20 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=993</guid>

					<description><![CDATA[PHP and all related packages are very important and most commonly used components when deploying a web server. This article will describe how to configure PHP version 7.2 for an operating system such as Ubuntu, version 18.04. Ubuntu update First you need to update the list of available Ubuntu packages [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>PHP and all related packages are very important and most commonly used components when deploying a web server. This article will describe how to configure PHP version 7.2 for an operating system such as Ubuntu, version 18.04.</p>



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



<p>First you need to update the list of available Ubuntu packages</p>



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



<p>Next, you need to install updates</p>



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



<h2 id="create-your-user-sudo" >Create your user sudo</h2>



<p>You can add a user by executing the following command:</p>



<pre class="wp-block-code"><code>adduser &lt;username></code></pre>



<p>Further, after the user is successfully added, it will be proposed to install the necessary information about this user</p>



<pre class="wp-block-code"><code>Enter the new value, or press ENTER for the default
Full Name []: Test User
Room Number []: 01
Work Phone []: 5555555
Home Phone []: 5555555
Other []:</code></pre>



<p>After successfully adding all the information and data, you need to add a new user to the sudo group</p>



<pre class="wp-block-code"><code>usermod -aG sudo &lt;username></code></pre>



<p>To verify this, run the following command</p>



<pre class="wp-block-code"><code>ls -la /root</code></pre>



<h2 id="web-server-setup" >Web server setup</h2>



<p>You can install either Apache, either Nginx. </p>



<p>To install Apache, use the following command:</p>



<pre class="wp-block-code"><code>sudo apt-get install apache2 -y
sudo systemctl start apache2.service</code></pre>



<p>For Nginx, use the following command:</p>



<pre class="wp-block-code"><code>sudo apt-get install nginx -y
sudo systemctl start nginx.service</code></pre>



<h2 id="install-php-7-2" >Install PHP 7.2</h2>



<p>PHP 7.2 is included in the default Ubuntu repository for 18.04. You can list each of the available PHP 7.2 packages with the following command:</p>



<pre class="wp-block-code"><code>apt-cache pkgnames | grep php7.2</code></pre>



<p>Next, to install the packages necessary for your application, enter the command:</p>



<pre class="wp-block-code"><code>sudo apt-get install php -y
sudo apt-get install php-{bcmath,bz2,intl,gd,mbstring,mysql,zip,fpm} -y</code></pre>



<p>After that, restart your web server. This will allow PHP to get to work. For Apache, use the following command: </p>



<pre class="wp-block-code"><code>systemctl restart apache2.service</code></pre>



<p>For Nginx, use the following command:</p>



<pre class="wp-block-code"><code>systemctl restart nginx.service</code></pre>



<p>Confirm the PHP version:</p>



<pre class="wp-block-code"><code>php -v</code></pre>



<p>If the correct steps have been taken before, then the conclusion should be as follows:</p>



<pre class="wp-block-code"><code>PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies</code></pre>



<p>The main PHP 7.2 configuration file will be saved as <strong>/etc/php/7.2/fpm/php.ini. </strong>You can use the vi text editor to change the corresponding settings in this file:</p>



<pre class="wp-block-code"><code>sudo vi /etc/php/7.2/fpm/php.ini</code></pre>



<p><strong>IMPORTANT!!</strong><br>If you are making any updates to this file, then you will definitely need to restart your web server (Apache or Nginx).</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-and-configure-php-7-2-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install Apache Maven on Ubuntu 20.04</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-apache-maven-on-ubuntu-20-04/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-apache-maven-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 05 Feb 2021 10:41:12 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=3132</guid>

					<description><![CDATA[Apache Maven is a framework for automating the assembly of projects based on the description of their structure in files in the POM language, which is a subset of XML. The Maven project is published by the Apache Software Foundation community, where it is formally part of the Jakarta Project. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://maven.apache.org/">Apache Maven</a></strong> is a framework for automating the assembly of projects based on the description of their structure in files in the POM language, which is a subset of XML. The Maven project is published by the Apache Software Foundation community, where it is formally part of the Jakarta Project. Apache Maven is a dedicated open-source project management tool that is used for Java projects. You can easily manage project builds, reporting, and documentation from a central piece of information using Apache Maven. </p>



<h2 id="recommended-updates-of-your-server" >Recommended Updates of Your Server</h2>



<p>The first step to complete the installation is to update your system to the latest stable version:</p>



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



<h2 id="java-installation" >Java Installation</h2>



<p><strong>Maven 3.6.3</strong> or higher requires JDK 1.7 or higher installed. We will install OpenJDK, which is the default Java development and runtime environment on Ubuntu 20.04. First, install OpenJDK:</p>



<pre class="wp-block-code"><code>sudo apt-get install -y default-jdk</code></pre>



<p>After that, you should check the <strong>Java </strong>version</p>



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



<p>The output will be similar to the following:</p>



<pre class="wp-block-code"><code>openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-Oubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-Oubuntu0.20.04, mixed mode, sharing)</code></pre>



<h2 id="apache-maven-installation" >Apache Maven Installation</h2>



<p>The next step will be followed by the actual installation of Apache Maven. The first step is to change your working directory to <strong>/opt/</strong> directory:</p>



<pre class="wp-block-code"><code>cd /opt/</code></pre>



<p>Install <strong>Apache Maven </strong>can be installed from the official website. Installation is described in the command below:</p>



<pre class="wp-block-code"><code>sudo wget https://www-us.apache.org/list/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz</code></pre>



<p>After successful completion of the download, you can unpack the downloaded archive using the command below:</p>



<pre class="wp-block-code"><code>sudo tar -xvzf apache-maven-3.6.3-bin.tar.gz</code></pre>



<p>Then <em>rename</em> the extracted directory:</p>



<pre class="wp-block-code"><code>sudo mv apache-maven-3.6.3 maven</code></pre>



<h2 id="installation-environment-variables" >Installation environment variables</h2>



<p>After the given resource has been successfully installed, you need to set up environment variables such as<strong> PATH, M2_HOME, JAVA_HOME</strong>. You can do this by creating a <strong>mavenenv.sh </strong>file inside the <strong>/etc/profile.d/ </strong>directory:</p>



<pre class="wp-block-code"><code>sudo vi /etc/profile.d/mavenenv.sh</code></pre>



<p>Then, you should add what is described below:</p>



<pre class="wp-block-code"><code>export JAVA_HOME = / usr / lib / jvm / default-java
export M2_HOME = / opt / maven
export PATH = $ {M2_HOME} / bin: $ {PATH}</code></pre>



<p>Then you need to save and close the file and make it executable:</p>



<pre class="wp-block-code"><code>sudo chmod + x /etc/profile.d/mavenenv.sh</code></pre>



<p>Now you can load the environment variables:</p>



<pre class="wp-block-code"><code>source /etc/profile.d/mavenenv.sh</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-apache-maven-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
