<?xml version="1.0"?>
<rss version="2.0"><channel><title>Linux Applications Latest Topics</title><link>https://www.lcwhost.org/forum/16-linux-applications/</link><description>Linux Applications Latest Topics</description><language>en</language><item><title>How To Install Apache, MySQL, PHP (LAMP) Stack in Ubuntu/Debian</title><link>https://www.lcwhost.org/topic/14777-how-to-install-apache-mysql-php-lamp-stack-in-ubuntudebian/</link><description><![CDATA[<p>
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Introduction</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a MySQL database, and dynamic content is processed by PHP.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">In this quick and easy guide, you will learn how to install and download LAMP on an Ubuntu 14.04 LTS server.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Step 1: Install Apache</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">The Apache web server is currently the most popular web server in the world, which makes it a great default choice for hosting a website.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">We can install Apache easily using Ubuntu's package manager, apt. A package manager allows us to install most software pain-free from a repository maintained by Ubuntu. You can learn more about how to use apt here.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For our purposes, we can get started by typing these commands:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get update</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install apache2 -y</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Afterwards, your web server is installed.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">You can do a spot check right away to verify that everything went as planned by visiting your server's public IP address in your web browser:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<a href="/" rel="" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">http://your_server_IP_address</a><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">You will see the default Ubuntu 14.04 Apache web page, which is there for informational and testing purposes.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Step 2: Install MySQL</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Now that we have our web server up and running, it is time to install MySQL. MySQL is a database management system. Basically, it will organize and provide access to databases where our site can store information.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Again, we can use apt to acquire and install our software. This time, we'll also install some other "helper" packages that will assist us in getting our components to communicate with each other:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install mysql-server php5-mysql -y</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">During the installation, your server will ask you to select and confirm a password for the MySQL "root" user. This is an administrative account in MySQL that has increased privileges.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">When the installation is complete, we need to run some additional commands to get our MySQL environment set up securely.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">First, we need to tell MySQL to create its database directory structure where it will store its information. You can do this by typing:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo mysql_install_db</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Afterwards, we want to run a simple security script that will remove some dangerous defaults and lock down access to our database system a little bit. Start the interactive script by running:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo mysql_secure_installation</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">You will be asked to enter the password you set for the MySQL root account. Next, it will ask you if you want to change that password. If you are happy with your current password, type "n" for "no" at the prompt.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For the rest of the questions, you should simply hit the "ENTER" key through each prompt to accept the default values. This will remove some sample users and databases, disable remote root logins, and load these new rules so that MySQL immediately respects the changes we have made.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">At this point, your database system is now set up and we can move on.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Step 3: Install PHP</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">PHP is the component of our setup that will process code to display dynamic content. It can run scripts, connect to our MySQL databases to get information, and hand the processed content over to our web server to display.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">We can once again leverage the apt system to install our components. We’re going to include some helper packages as well:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install php5 php5-mysql php-pear php5-gd php5-mcrypt php5-curl -y</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">This should install PHP without any problems. We’ll test this in a moment.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Step 4: Testing PHP5</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">In order to test PHP script you need to create simple PHP script in directory /var/www/html. in this case I’ll create phpinfo.php:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo touch /var/www/html/phpinfo.php</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install nano</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo nano /var/www/html/phpinfo.php</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Add the following line:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">&lt;?php phpinfo(); ?&gt;</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Save and exit ( Ctrl + O, Ctrl + X).</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Test the php script you have made from web browser by typing in address bar:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<a href="/phpinfo.php" rel="" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">http://ip_address/phpinfo.php</a><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">This page basically gives you information about your server from the perspective of PHP. It is useful for debugging and to ensure that your settings are being applied correctly.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">At this point you are pretty much finished with the installation, you can begin testing out some webpages, scripts etc.</span>
</p>
]]></description><guid isPermaLink="false">14777</guid><pubDate>Thu, 23 May 2024 09:37:21 +0000</pubDate></item><item><title>How to install GitLab</title><link>https://www.lcwhost.org/topic/36-how-to-install-gitlab/</link><description><![CDATA[<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">GitLab is git repository management with extensive features like code reviews, issue tracking, activity feeds, wikis, protected branches. This article will provide you the information on how to install GitLab on LCwHost Ltd servers.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">First, let us mention, that GitLab is officially available with CentOS 6/7, Ubuntu 14.04/16.04, Debian 7/8/9, OpenSUSE 42.2/42.3 versions. Here we will be covering only CentOS, Debian and Ubuntu, since these are the most common OS used among our VPS. It is recommended at least 4 GB of free memory (RAM + swap) to run GitLab.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Also, let us clarify, that our OS templates comes with pre-installed web service (Apache) and has a default configuration. So before GitLab installation, we would recommend removing the Apache from your server:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For Debian/Ubuntu:</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">apt-get remove apache2 apache2-bin apache2-data apache2-doc apache2-mpm-prefork apache2-utils</pre>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For CentOS:</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">yum remove httpd httpd-tools</pre>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Once you removed all the Apache related packages, you can actually proceed with GitLab. First you will need to install some repositories, which will be used to download and install GitLab.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For Debian/Ubuntu:</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">curl <a href="https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:13px;padding:0px;vertical-align:baseline;">https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh</a> | sudo bash</pre>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For CentOS:</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">curl <a href="https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:13px;padding:0px;vertical-align:baseline;">https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh</a> | sudo bash</pre>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">After you add the required repositories, you can proceed with installation:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For Debian/Ubuntu:</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">sudo EXTERNAL_URL="<a href="http://your.subdomain.com/" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:13px;padding:0px;vertical-align:baseline;">http://your.subdomain.com</a>" apt-get install gitlab-ee</pre>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For CentOS:</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">sudo EXTERNAL_URL="<a href="http://your.subdomain.com/" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:13px;padding:0px;vertical-align:baseline;">http://your.subdomain.com</a>" yum -y install gitlab-ee</pre>

<p>
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Note.</b><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>Change "</span><i style="background-color:#ffffff;color:#333333;font-size:14px;"><a href="http://your.subdomain.com/" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">http://your.subdomain.com</a></i><span style="background-color:#ffffff;color:#333333;font-size:14px;">" with your domain/subdomain, which will be used to open GitLab.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">The installation may take up to 5-7 minutes, but once it is done, you will be present with some huge image on your terminal about completion. After that you will have to go to your chosen URL (for example:<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;"><a href="http://your.subdomain.com/" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">http://your.subdomain.com</a></i><span style="background-color:#ffffff;color:#333333;font-size:14px;">) and change the password.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">The default username will be<span> </span></span><b style="background-color:#ffffff;color:#333333;font-size:14px;"><i>root</i></b><span style="background-color:#ffffff;color:#333333;font-size:14px;">, so you can log in to GitLab with this username and your newly changed password.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Note.</b><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>If you install the GitLab, without removing Apache first, you may need to configure virtual host, as you will most likely be displayed with default Apache webpage, when trying to connect to your chosen URL.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">More information on official site:<span> </span></span><a href="https://about.gitlab.com/" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">https://about.gitlab.com/</a>
</p>
]]></description><guid isPermaLink="false">36</guid><pubDate>Sat, 04 Feb 2023 12:18:32 +0000</pubDate></item><item><title>Kubernetes Guide for Master and Nodes installation on your Ubuntu Machine</title><link>https://www.lcwhost.org/topic/35-kubernetes-guide-for-master-and-nodes-installation-on-your-ubuntu-machine/</link><description><![CDATA[<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	In this guide we will be installing Kubernetes Master server, together with installing Kubernetes Node servers and connecting them to the Master server. Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications from a Master server instance.
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	 
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<h3 style="border:none;color:#555a62;font-size:24px;padding:0px;vertical-align:baseline;">
		0. Requirements:
	</h3>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<ul style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
		<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
			KVM Linux server running on Ubuntu 16.04 OS.
		</li>
	</ul>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	 
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<h3 style="border:none;color:#555a62;font-size:24px;padding:0px;vertical-align:baseline;">
		1. Preparing Your VPS For Installation Of Kubernetes:
	</h3>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	Both, Master server and Node servers has to be prepared with required packages. Firstly, update your package list (commands will be initiated as root. If done by other user, use "sudo"):
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">apt-get update</pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	Afterwards, when the packages list are updates, proceed with installation of apt-transport-https package:
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">apt-get install -y apt-transport-https</pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	Afterwards, install Docker that will be the container system for Kubernetes:
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">apt install docker.io -y</pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	When the installation will be completed, start and enable Docker service:
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">systemctl start docker &amp;&amp; systemctl enable docker</pre>
</div>

<h3 style="background-color:#ffffff;border:none;color:#555a62;font-size:24px;padding:0px;vertical-align:baseline;">
	2. Installation Of Kubernetes:
</h3>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	Since the required packages and other instances have been installed, we can now proceed with installation of Kubernetes server. Firstly let's download and add the key for Kubernetes Installation:
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">curl -s <a href="https://packages.cloud.google.com/apt/doc/apt-key.gpg" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:13px;padding:0px;vertical-align:baseline;">https://packages.cloud.google.com/apt/doc/apt-key.gpg</a> | apt-key add </pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	Now let's create a file with your text editor (We will be using "nano" for this one, however you can use any other):
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">nano /etc/apt/sources.list.d/kubernetes.list</pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	In the file enter the following line, save and close it:
</div>

<blockquote style="border-left-color:rgba(0,0,0,0.1);border-left-style:solid;border-width:0px 0px 0px 4px;color:#333333;font-size:17.5px;padding:1ex 10px;vertical-align:baseline;">
	deb<span> </span><a href="https://apt.kubernetes.io/" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:17.5px;padding:0px;vertical-align:baseline;">http://apt.kubernetes.io/</a><span> </span>kubernetes-xenial main
</blockquote>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	Now, let's install the Kubernetes with required packets:
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">apt-get update &amp;&amp; apt-get install -y kubelet kubeadm kubectl kubernetes-cni</pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<h3 style="border:none;color:#555a62;font-size:24px;padding:0px;vertical-align:baseline;">
		3. Setting Up Kubernetes Master Server:
	</h3>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	The following command will setup the configuration files and boot up the whole Master server.
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">sudo kubeadm init</pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<b>!!!Important!!!</b>, do not close terminal after this command is completed, since you will receive your unique token key, which is required for Node server to connect. The setup will take about couple of minutes. Following command should be used as additional user with sudo rights:

	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config</pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	The formed token with connection command should look like this:
</div>

<blockquote style="border-left-color:rgba(0,0,0,0.1);border-left-style:solid;border-width:0px 0px 0px 4px;color:#333333;font-size:17.5px;padding:1ex 10px;vertical-align:baseline;">
	kubeadm join &lt;<i>master node IP&gt;</i>:6443 --token i5s534.38o26swycl0gd0gr --discovery-token-ca-cert-hash sha256:4b4c8d9652e925dffe0f28c73984c27d821cd998f63525dd45378a762517dea3<br />
	 
</blockquote>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	The token should be valid only for 24 hours. If you would like to add other nodes to your cluster after some time, new token can be generated with using
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">kubeadm token generate</pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<h3 style="border:none;color:#555a62;font-size:24px;padding:0px;vertical-align:baseline;">
		4. Connecting Node Server To Master:
	</h3>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	This is the easiest part. When you will have your Master server running, for your Node servers, repeat the<span> </span><b>"1. Preparing your VPS for installation of Kubernetes"</b><span> </span>and<span> </span><b>"2. Installation of Kubernetes"<span> </span></b>parts of this guide<b><span> </span></b>for general installation of Kubernetes. When the Node server will have Kubernetes installed, use the command that was generated for you at the end of Master node configuration:

	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">kubeadm join &lt;<i>master node IP&gt;</i>:6443 --token 
i5s534.38o26swycl0gd0gr --discovery-token-ca-cert-hash 
sha256:4b4c8d9652e925dffe0f28c73984c27d821cd998f63525dd45378a762517dea3</pre>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	Instead of<span> </span><i>master node IP<span> </span></i>server will have generated your Master server's IP address so no additional adjustments will be required. If you will use your separately generated token, you should adjust the --token code to the one that will be generated for you.
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<h3 style="border:none;color:#555a62;font-size:24px;padding:0px;vertical-align:baseline;">
		5. Finishing Up The Setup:
	</h3>
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	To check if everything was correct, from the Master node initiate the command
</div>

<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;">kubectl get nodes</pre>
</div>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Command results should look similar to:</span>
</p>

<blockquote style="border-left-color:rgba(0,0,0,0.1);border-left-style:solid;border-width:0px 0px 0px 4px;color:#333333;font-size:17.5px;padding:1ex 10px;vertical-align:baseline;">
	NAME                     STATUS    ROLES     AGE       VERSION<br />
	<i>Node.hostname</i><span> </span>  Ready     &lt;none&gt;    1d        v1.11.2<br />
	<i>Master.hostname</i><span> </span>  Ready     master    1d        v1.11.2<br />
	...
</blockquote>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">You can now set services for you cluster or scale it's size by adding additional servers to the cluster in the same way as you have added the first node. For more information on cluster management, loads of useful information is provided in the<span> </span></span><a href="https://kubernetes.io/docs/tasks/" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">Kubernetes Documentation.<span> </span></a><span style="background-color:#ffffff;color:#333333;font-size:14px;">Good luck with your cluster!</span>
</p>
]]></description><guid isPermaLink="false">35</guid><pubDate>Sat, 04 Feb 2023 12:17:35 +0000</pubDate></item><item><title>How to move Apache's Root Direcotry to a new location</title><link>https://www.lcwhost.org/topic/34-how-to-move-apaches-root-direcotry-to-a-new-location/</link><description><![CDATA[<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;text-align:center;vertical-align:baseline;">
	<span><a href="https://www.lcwhost.org/topic/34-how-to-move-apaches-root-direcotry-to-a-new-location/" rel=""><img alt="lvbp3idbu7e3.png" style="border:0px;font-size:14px;padding-top:0px;padding-right:0px;padding-left:0px;vertical-align:middle;height:auto;" title="Image: https://community.time4vps.com/uploads/editor/n9/lvbp3idbu7e3.png" width="750" src="https://community.time4vps.com/uploads/editor/n9/lvbp3idbu7e3.png" loading="lazy" height="225"></a></span>
</div>

<p>
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Introduction</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">By default on Ubuntu the Apache2 web server stores its files in "</span><i style="background-color:#ffffff;color:#333333;font-size:14px;">/var/www/html</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">" folder. Sometimes it’s helpful to move it to another location, such as a separate mounted file system and so on.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">In this tutorial you will learn how to move the default directory to a new location. We are using Ubuntu 16.04 for this tutorial, however you should be able to follow this guide using any of our offered Ubuntu or Debian distributions.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Copying Files</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">We are using "</span><i style="background-color:#ffffff;color:#333333;font-size:14px;">rsync</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">" for coping files to a new location:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">rsync -av /var/www/html /new/location</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Where "-a" flag preserves the permissions and other directory properties and "-v" flag provides comprehensive output.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Note:</b><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>If you are using "Tab" completion be sure to delete trailing slash "/" on the the directory.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Updating The Configuration File</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Now we need to update "</span><i style="background-color:#ffffff;color:#333333;font-size:14px;">000-default.conf</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">" file:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">nano /etc/apache2/sites-enabled/000-default.conf</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Now we will find the line that begins with "</span><i style="background-color:#ffffff;color:#333333;font-size:14px;">DocumentRoot</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">" and update it with the new location. It should look something like this:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<i style="background-color:#ffffff;color:#333333;font-size:14px;"><br>
	# The ServerName directive sets the request scheme, hostname and port that<br>
	# the server uses to identify itself. This is used when creating<br>
	# redirection URLs. In the context of virtual hosts, the ServerName<br>
	# specifies what hostname must appear in the request's Host: header to<br>
	# match this virtual host. For the default virtual host (this file) this<br>
	# value is not decisive as it is used as a last resort host regardless.<br>
	# However, you must set it for any further virtual host explicitly.<br>
	<a rel="" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">#ServerName</a><span> </span>www.example.com<br>
	<br>
	ServerAdmin<span> </span>webmaster@localhost<br>
	DocumentRoot<span> </span><b>/nauja/direktorija</b><br>
	<br>
	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,<br>
	# error, crit, alert, emerg.<br>
	# It is also possible to configure the loglevel for particular<br>
	# modules, e.g.<br>
	<a rel="" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">#LogLevel</a><span> </span>info ssl:warn<br>
	<br>
	ErrorLog ${APACHE_LOG_DIR}/error.log<br>
	CustomLog ${APACHE_LOG_DIR}/access.log combined<br>
	<br>
	# For most configuration files from conf-available/, which are<br>
	# enabled or disabled at a global level, it is possible to<br>
	# include a line for only one particular virtual host. For example the<br>
	# following line enables the CGI configuration for this host only<br>
	# after it has been globally disabled with "a2disconf".<br>
	<a rel="" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">#Include</a><span> </span>conf-available/serve-cgi-bin.conf<br>
	<br>
	<br>
	# vim: syntax=apache ts=4 sw=4 sts=4 sr noet</i><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Restarting Apache</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Once you’ve finished the configuration changes, you can make sure the syntax is right with "</span><i style="background-color:#ffffff;color:#333333;font-size:14px;">configtest</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">":</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">apachectl configtest</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">If everything is right you should get result:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<i style="background-color:#ffffff;color:#333333;font-size:14px;"><br>
	Syntax OK</i><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">As long as you get Syntax OK, restart the web server. Otherwise, track down and fix the problems it reported. Use the following command to restart Apache:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">systemctl reload apache2</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Conclusion</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">That's it! You changed Apache's default folder and from know all your affected sites will be loaded from new location.</span>
</p>
]]></description><guid isPermaLink="false">34</guid><pubDate>Sat, 04 Feb 2023 12:15:16 +0000</pubDate></item><item><title>How to Install Memcached</title><link>https://www.lcwhost.org/topic/33-how-to-install-memcached/</link><description><![CDATA[<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;text-align:center;vertical-align:baseline;">
	<img alt="2vfj3rm9dwle.png" style="border:0px;font-size:14px;padding:0px;vertical-align:middle;" title="Image: https://community.time4vps.com/uploads/editor/1o/2vfj3rm9dwle.png" width="650" src="https://community.time4vps.com/uploads/editor/1o/2vfj3rm9dwle.png" loading="lazy" height="156">
</div>

<p>
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Introduction</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<i style="background-color:#ffffff;color:#333333;font-size:14px;">Memcached</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Nearly every popular CMS has a plugin or module to take advantage of<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">memcached</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">, and many programming languages have a<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">memcached</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>library, including PHP, Perl, Ruby, and Python.<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">Memcached</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>runs in memory and is thus quite speedy, since it does not need to write data to disk.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Installation</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">We can install<span> </span></span><b style="background-color:#ffffff;color:#333333;font-size:14px;">Memcached</b><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>by running this command:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">apt-get install memcached -y</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Configuration</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Use the following command to edit the default configuration file /etc/memcached.conf:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">nano /etc/memcached.conf</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">You will see default configurations of<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">memcached</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">, such as default port (11211), cap of memory for<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">memcached</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>in megabytes (64) and so on.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Most common variables to edit:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">p</b><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>- port in which<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">memcached</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>is running</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">m</b><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>- cap of memory for<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">memcached</i><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">c</b><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>- value of maximum connections</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">An example how should look configuration file if we want<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">memcached</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>to run on port 12345, to use 2 GB of RAM and have 1024 allowed maximum connections:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<i style="background-color:#ffffff;color:#333333;font-size:14px;"><br>
	# memcached default config file<br>
	# 2003 - Jay Bonci<br>
	# This configuration file is read by the start-memcached script provided as<br>
	# part of the Debian GNU/Linux distribution.<br>
	<br>
	# Run memcached as a daemon. This command is implied, and is not needed for the<br>
	# daemon to run. See the README.Debian that comes with this package for more<br>
	# information.<br>
	-d<br>
	<br>
	# Log memcached's output to /var/log/memcached<br>
	logfile /var/log/memcached.log<br>
	<br>
	# Be verbose<br>
	# -v<br>
	<br>
	# Be even more verbose (print client commands as well)<br>
	# -vv<br>
	<br>
	# Start with a cap of 64 megs of memory. It's reasonable, and the daemon default<br>
	# Note that the daemon will grow to this size, but does not start out holding this much<br>
	# memory<br>
	<b>-m 2048</b><br>
	<br>
	# Default connection port is 11211<br>
	<b>-p 11211</b><br>
	<br>
	# Run the daemon as root. The start-memcached will default to running as root if no<br>
	# -u command is present in this config file<br>
	-u memcache<br>
	<br>
	# Specify which IP address to listen on. The default is to listen on all IP addresses<br>
	# This parameter is one of the only security measures that memcached has, so make sure<br>
	# it's listening on a firewalled interface.<br>
	-l 127.0.0.1<br>
	<br>
	# Limit the number of simultaneous incoming connections. The daemon default is 1024<br>
	<b>-c 1024</b><br>
	<br>
	# Lock down all paged memory. Consult with the README and homepage before you do this<br>
	# -k<br>
	<br>
	# Return error when memory is exhausted (rather than removing items)<br>
	# -M<br>
	<br>
	# Maximize core file limit<br>
	# -r</i><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Finalizing</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">After we had configured mamached to work with parameters we want we can start it:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">service memcached start</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">We can test is it working with commands</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">service memcached status</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">or</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;"><code style="border:none;color:inherit;font-size:inherit;padding:0px;vertical-align:baseline;">pgrep memcached
netstat -tulpn | grep :11211</code></pre>

<p>
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Conclusion</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">That's it! You had installed and configured basics of<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">memcached</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">. So, now you have very useful program which can do a lot to increase the server efficiency.</span>
</p>
]]></description><guid isPermaLink="false">33</guid><pubDate>Sat, 04 Feb 2023 12:13:21 +0000</pubDate></item><item><title>How to Upgrade CentOS 7 to AlmaLinux OS on your KVM</title><link>https://www.lcwhost.org/topic/32-how-to-upgrade-centos-7-to-almalinux-os-on-your-kvm/</link><description><![CDATA[<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	In this tutorial, you will learn on how to upgrade your operating system from CentOS 7 to AlmaLinux OS manually.
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	As always, before making any changes to your VPS, you should make a backup of your VPS - save all the essential data. It will be a wise option if anything goes wrong.
</p>

<h1 style="background-color:#ffffff;border:0px;color:#555a62;font-size:36px;padding:0px;vertical-align:baseline;">
	Steps:
</h1>

<ol style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
		First of all, you need to update all the system packages and repositories:
	</li>
</ol>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo yum update -y</code>
</p>

<ol start="2" style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
		Then you need to reboot your VPS:
	</li>
</ol>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo reboot</code>
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	You might be disconnected from your VPS, so you will need to connect to your VPS again.
</p>

<ol start="3" style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
		After that, you need to install the elevate-release package with this command:
	</li>
</ol>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo yum install -y <a href="http://repo.almalinux.org/elevate/elevate-release-latest-el7.noarch.rpm" rel="external nofollow">http://repo.almalinux.org/elevate/elevate-release-latest-el7.noarch.rpm</a></code>
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	After the installation is completed, the output should look something like this:<br>
	<br>
	<img alt="q0x1w795vyl0.webp.538f5821d790ac1603be91c83ce70084.webp" class="ipsImage ipsImage_thumbnailed" data-fileid="19" style="height:auto;" width="453" src="https://www.lcwhost.org/uploads/monthly_2025_02/q0x1w795vyl0.webp.538f5821d790ac1603be91c83ce70084.webp" loading="lazy" height="99.66">
</p>

<ol start="4" style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
		The next step is to install leapp-data-almalinux package:
	</li>
</ol>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo yum install -y leapp-upgrade leapp-data-almalinux</code>
</p>

<ol start="5" style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
		Then, you need to initiate a pre-upgrade check. Down below provided command runs the checks to see if the upgrade will be successful or not and provides a report of possible remediations:
	</li>
</ol>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo leapp preupgrade</code>
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	If due to some reason the test fails, all the reasons will be saved in a file that path is /var/log/leapp/answerfile.
</p>

<ol start="6" style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
		If pre-upgrade is successful, you will need to run these commands:
	</li>
</ol>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo rmmod pata_acpi</code>
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">echo PermitRootLogin yes | sudo tee -a /etc/ssh/sshd_config</code>
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True</code>
</p>

<ol start="7" style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<li style="border:0px;font-size:14px;padding:0px;vertical-align:baseline;">
		Now, you can run the following command to migrate your OS from CentOS 7 to AlmaLinux:
	</li>
</ol>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo leapp upgrade</code>
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	It might take up some time, so be patient.
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	Then reboot your VPS again:
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo reboot</code>
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	It might take up to 20-30 minutes; meanwhile, the server will not be accessible via SSH. Do not worry, you can try to access your VPS via Emergency Console and watch how the files are installing.
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	When the installation is completed, you will be asked to log in. So then you can try to connect to your VPS as root.
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	Once you log in to your VPS, you can run this command to check your OS version:
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">cat /etc/redhat-release</code>
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	If AlmaLiux was installed, you should see a similar output:<br>
	<img alt="ysyjlnoe9wpd.webp.99a7eb162a9442a9fc96f373f5aa1d00.webp" class="ipsImage ipsImage_thumbnailed" data-fileid="20" style="height:auto;" width="547" src="https://www.lcwhost.org/uploads/monthly_2025_02/ysyjlnoe9wpd.webp.99a7eb162a9442a9fc96f373f5aa1d00.webp" loading="lazy" height="49.23">
</p>

<p style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;vertical-align:baseline;">
	And that's it, you have upgraded your OS successfully to AlmaLinux!
</p>
]]></description><guid isPermaLink="false">32</guid><pubDate>Sat, 04 Feb 2023 12:11:57 +0000</pubDate></item><item><title>How To Install Node.js in Ubuntu/Debian</title><link>https://www.lcwhost.org/topic/31-how-to-install-nodejs-in-ubuntudebian/</link><description><![CDATA[<div style="background-color:#ffffff;border:0px;color:#333333;font-size:14px;padding:0px;text-align:center;vertical-align:baseline;">
	<img alt="8lfxd1tbrcae.png" style="border:0px;font-size:14px;padding:0px;vertical-align:middle;" title="Image: https://community.time4vps.com/uploads/editor/nz/8lfxd1tbrcae.png" width="650" src="https://community.time4vps.com/uploads/editor/nz/8lfxd1tbrcae.png" loading="lazy" height="169">
</div>

<p>
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Introduction</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Node.js is a Javascript platform for server-side programming that allows users to build network applications quickly. By leveraging Javascript on both the front-end and the back-end, development can be more consistent and be designed within the same system.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For as popular as this JavaScript run-time has become, you might be surprised to find out that it actually still isn't very easy to install Node.js on Ubuntu and other Linux distributions. It's still more of a manual process than it should be.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">In this guide, we'll show you 3 ways how to get started with Node.js on an Ubuntu/Debian server.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Note:</b><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>Tutorial on how to set up a Node.js application for production is on the way and will be released in few weeks.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">1. Distro-Stable Version</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Ubuntu/Debian contains a version of Node.js in its default repositories that can be used to easily provide a consistent experience across multiple servers. Usually it will not be the latest version, but it should be quite stable.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">In order to get this version, we just have to use the<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">apt</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>package manager:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install nodejs</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">If the package in the repositories suits your needs, this is all that you need to do to get set up with Node.js. In most cases, you'll also want to also install npm, which is the Node.js package manager. You can do this by typing:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install npm</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">This will allow you to easily install modules and packages to use with Node.js.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">2. PPA (Personal Package Archive)</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">An alternative that can get you a more recent version of Node.js is to add a PPA maintained by NodeSource. This will probably have more up-to-date versions of Node.js than the official Ubuntu repositories.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">First, you need to install the PPA in order to get access to its contents.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">curl -sL <a href="https://deb.nodesource.com/setup" rel="external nofollow">https://deb.nodesource.com/setup</a> | sudo bash -</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Note:</b><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>If you got error "</span><i style="background-color:#ffffff;color:#333333;font-size:14px;">-bash: curl: command not found</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">" it means you do not have<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">curl</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>installed on your server. You can install it with command:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install curl -y</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">The PPA will be added to your configuration and your local package cache will be updated automatically. After running the setup script from nodesource, you can install the Node.js package in the same way that you did above:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install nodejs</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">3. NVM (Node.js Version Manager)</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Using NVM, you can install multiple, self-contained versions of Node.js which will allow you to control your environment easier. It will give you on-demand access to the newest versions of Node.js, but will also allow you to target previous releases that your app may depend on.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">First of all we need to get the software packaged from Ubuntu/Debian repositories:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install build-essential libssl-dev</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Once the prerequisite packages are installed, you can pull down the<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">NVM</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>installation script from the project's GitHub page:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<a href="https://github.com/creationix/nvm" rel="external nofollow" style="border:0px;color:#ed1c24;font-size:14px;padding:0px;vertical-align:baseline;">https://github.com/creationix/nvm</a><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Execute command:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">curl -o- <a href="https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh" rel="external nofollow">https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh</a> | bash</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">This will download the script and run it. It will install the software into a subdirectory of your home directory at<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">/.nvm</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">. It will also add the necessary lines to your<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">/.profile</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>file to use the file.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">To gain access to the nvm functionality, you'll need to log out and log back in again, or you can source the<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">/.profile</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>file so that your current session knows about the changes:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">source ~/.profile</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Now that you have nvm installed, you can install isolated Node.js versions.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">To find out the versions of Node.js that are available for installation, you can type:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">nvm ls-remote</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">As you can see, the newest version at the time of this writing is v6.2.0. You can install that by typing:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">nvm install 6.2.0</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Usually, nvm will switch to use the most recently installed version. You can explicitly tell nvm to use the version we just downloaded by typing:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">nvm use 6.2.0</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">When you install Node.js using nvm, the executable is called node. You can see the version currently being used by the shell by typing:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">node -v</code><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Conclusion</b><br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<br style="background-color:#ffffff;color:#333333;font-size:14px;">
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">And that's it, you're done! Regardless of whatever installation method you used, you should run<span> </span></span><i style="background-color:#ffffff;color:#333333;font-size:14px;">node -v</i><span style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>to verify the build/install worked correctly.</span>
</p>
]]></description><guid isPermaLink="false">31</guid><pubDate>Sat, 04 Feb 2023 12:09:19 +0000</pubDate></item><item><title>How to Install ClamAV Antivirus</title><link>https://www.lcwhost.org/topic/30-how-to-install-clamav-antivirus/</link><description><![CDATA[<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Install EPEL repo:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For CentOS 6 32-bit execute command:</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;"><code style="border:none;color:inherit;font-size:inherit;padding:0px;vertical-align:baseline;">rpm -Uvh http://mirror.overthewire.com.au/pub/epel/6/i386/epel-release-6-8.noarch.rpm</code></pre>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For CentOS 6 64-bit execute command:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">rpm -Uvh <a href="http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm" rel="external nofollow">http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm</a></code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Install required packages:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">yum install clamav clamd</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Start the clamd service and set it to auto-start</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;"><code style="border:none;color:inherit;font-size:inherit;padding:0px;vertical-align:baseline;">/etc/init.d/clamd on
chkconfig clamd on
/etc/init.d/clamd start</code></pre>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Update ClamAV's signatures:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">/usr/bin/freshclam</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Note: ClamAV will update automatically, as part of /etc/cron.daily/freshclam.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Configure daily scan</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">In this example, we will configure a cronjob to scan the /var/www directory every day. Create cron file:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">nano /etc/cron.daily/man_clamscan</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Add the following to the file above. Be sure to change SCAN_DIR to the directory that you want to scan:</span>
</p>

<pre style="border:1px solid #cccccc;color:#333333;font-size:13px;padding:9.5px;vertical-align:baseline;"><code style="border:none;color:inherit;font-size:inherit;padding:0px;vertical-align:baseline;">#!/bin/bash
SCAN_DIR="/var/www"
LOG_FILE="/var/log/clamav/man_clamscan.log"
/usr/bin/clamscan -i -r $SCAN_DIR &gt;&gt; $LOG_FILE</code></pre>

<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Give our cron script executable permissions:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">chmod +x /etc/cron.daily/man_clamscan</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">That's it.</span>
</p>
]]></description><guid isPermaLink="false">30</guid><pubDate>Sat, 04 Feb 2023 12:08:07 +0000</pubDate></item><item><title>How to Install MongoDB in Ubuntu/Debian</title><link>https://www.lcwhost.org/topic/29-how-to-install-mongodb-in-ubuntudebian/</link><description><![CDATA[<p>
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Introduction</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">MongoDB is a free and open-source NoSQL document database used commonly in modern web applications. This tutorial will help you set up MongoDB on your server for a production application environment.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">To follow this tutorial, you will need</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">A</span><i style="background-color:#ffffff;color:#333333;font-size:14px;"><span> </span>sudo non-root user</i><span style="background-color:#ffffff;color:#333333;font-size:14px;">, which you can set up by following this:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Create new user:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">adduser name_of_new_user</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">To add "sudo" privileges to our new user, we need to add the new user to the "sudo" group. By default, on Ubuntu/Debian, users who belong to the "sudo" group are allowed to use the sudo command. Run this command to add your new user to the sudo group:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">gpasswd -a name_of_new_user sudo</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Then login as new user, just execute:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">su name_of_new_user</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Importing the Public Key</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">In this step, we will import the MongoDB GPG public key.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">MongoDB is already included in Ubuntu package repositories, but the official MongoDB repository provides most up-to-date version and is the recommended way of installing the software. Ubuntu ensures the authenticity of software packages by verifying that they are signed with GPG keys, so we first have to import they key for the official MongoDB repository.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">To do so, execute:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Creating a List File</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Next, we have to add the MongoDB repository details so APT will know where to download the packages from.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Issue the following command to create a list file for MongoDB:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">echo "deb <a href="http://repo.mongodb.org/apt/ubuntu" rel="external nofollow">http://repo.mongodb.org/apt/ubuntu</a> "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">After adding the repository details, we need to update the packages list.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get update</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Installing and Verifying MongoDB</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Now we can install the MongoDB package itself.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo apt-get install -y mongodb-org</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">This command will install several packages containing latest stable version of MongoDB along with helpful management tools for the MongoDB server.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">After package installation MongoDB will be automatically started. You can check this by running the following command.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">sudo service mongod status</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">If MongoDB is running, you'll see an output like this (with a different process ID).</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Output</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">mongod start/running, process 16791</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">You can also stop, start, and restart MongoDB using the service command (e.g. service mongod stop, service mongod start).</span>
</p>
]]></description><guid isPermaLink="false">29</guid><pubDate>Sat, 04 Feb 2023 12:04:00 +0000</pubDate></item><item><title>How to install OpenVPN AS</title><link>https://www.lcwhost.org/topic/28-how-to-install-openvpn-as/</link><description><![CDATA[<p>
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">To install OpenVPN AS software in CentOS / Debian operating systems, perform the steps below.</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Update your VPS</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Before any new software installation, ensure that VPS operating system has latest software packages. Use this command in SSH:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For CentOS:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">yum update -y</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For Debian:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">apt-get update</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<b style="background-color:#ffffff;color:#333333;font-size:14px;">Setup OpenVPN software</b><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">The process is very simple and straightforward:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">CentOS 6:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">wget <a href="http://swupdate.openvpn.org/as/openvpn-as-2.0.10-CentOS6.x86_64.rpm" rel="external nofollow">http://swupdate.openvpn.org/as/openvpn-as-2.0.10-CentOS6.x86_64.rpm</a></code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">CentOS 7:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">wget <a href="http://swupdate.openvpn.org/as/openvpn-as-2.0.10-CentOS7.x86_64.rpm" rel="external nofollow">http://swupdate.openvpn.org/as/openvpn-as-2.0.10-CentOS7.x86_64.rpm</a></code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Debian 6:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">wget <a href="http://swupdate.openvpn.org/as/openvpn-as-2.0.10-Debian6.amd_64.deb" rel="external nofollow">http://swupdate.openvpn.org/as/openvpn-as-2.0.10-Debian6.amd_64.deb</a></code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Debian 7:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">wget <a href="http://swupdate.openvpn.org/as/openvpn-as-2.0.10-Debian7.amd_64.deb" rel="external nofollow">http://swupdate.openvpn.org/as/openvpn-as-2.0.10-Debian7.amd_64.deb</a></code>
</p>

<p>
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">Install OpenVPN:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For CentOS:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">rpm -ivh openvpn-[details].rpm</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">For Debian:</span><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<code style="border:1px solid #eeeecc;color:#c7254e;font-size:12.6px;padding:2px 4px;vertical-align:baseline;">dpkg -i DEB_PACKAGE</code><br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<br style="background-color:#ffffff;color:#333333;font-size:14px;" />
	<span style="background-color:#ffffff;color:#333333;font-size:14px;">That's it! Read post install message in SSH for login details / instructions.</span>
</p>
]]></description><guid isPermaLink="false">28</guid><pubDate>Sat, 04 Feb 2023 12:01:49 +0000</pubDate></item><item><title>How to Connect to your Server with SSH</title><link>https://www.lcwhost.org/topic/8-how-to-connect-to-your-server-with-ssh/</link><description><![CDATA[<p style="background-color:#f5f5f5;color:#2c2227;font-size:16px;text-align:left;">
	In this tutorial, we’re going to be using PuTTY to connect to your managed VPS, Cloud or dedicated server via SSH. For Windows users without an SSH client, we recommend you download PuTTY or enable OpenSSH.
</p>

<h2 style="background-color:#f5f5f5;color:#961b1e;font-size:2.6em;text-align:left;">
	Requirements for using SSH to login to your VPS or Dedicated Server
</h2>

<p style="background-color:#f5f5f5;color:#2c2227;font-size:16px;text-align:left;">
	There are a few requirements for using SSH with your VPS or Dedicated Server. These include making sure that your account has been granted SSH access and that your IP address has been added to the firewall. Both of these requirements can be fulfilled through the WHM interface. The following articles will help you meet these prerequisites:
</p>

<ol style="background-color:#f5f5f5;border:1px solid #cccccc;color:#2c2227;font-size:16px;padding:20px 20px 20px 78px;text-align:left;">
	<li style="padding:5px 10px;">
		<span>Configure SSH access</span>
	</li>
	<li style="padding:5px 10px;">
		<span>Whitelist your IP address in your server firewall</span>
	</li>
	<li style="padding:5px 10px;">
		Windows users, install an SSH Client or OpenSSH
	</li>
</ol>

<h2 style="background-color:#f5f5f5;color:#961b1e;font-size:2.6em;text-align:left;">
	Terminal on Linux/macOS/BSD
</h2>

<p style="background-color:#d1ecf1;border:1px solid #bee5eb;color:#0c5460;font-size:16px;padding:0.75rem 1.25rem;text-align:left;">
	This applies to Windows users with OpenSSH: Open the<span> </span><strong>Start</strong><span> </span>menu,select<span> </span><strong>Powershell</strong>, and then<span> </span><strong>Run as Administrator</strong>.
</p>

<p style="background-color:#f5f5f5;color:#2c2227;font-size:16px;text-align:left;">
	If you are trying to directly connect from a Linux or Mac terminal via SSH, please note the format of the command would need to be in this format:18If you are trying to directly connect from a Linux or Mac terminal via SSH, please note the format of the command would need to be in this format:
</p>

<p>
	<span style="background-color:#f5f5f5;color:#2c2227;font-size:16px;text-align:left;">[Bob ~]$ ssh<span> </span></span><span style="background-color:#f5f5f5;color:#2c2227;font-size:16px;text-align:left;">username@example.com</span><span style="background-color:#f5f5f5;color:#2c2227;font-size:16px;text-align:left;"><span> </span>-p 22</span>
</p>

<p style="background-color:#f5f5f5;color:#2c2227;font-size:16px;text-align:left;">
	If you do not specify the full username such as<span> </span><strong>username@example</strong>, the server would instead try to login as your local user, in this case<span> </span><strong>Bob@example.com</strong>, and because that user doesn’t exist on the server you’d get a login error.
</p>
]]></description><guid isPermaLink="false">8</guid><pubDate>Sat, 04 Feb 2023 07:17:49 +0000</pubDate></item></channel></rss>
