<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: NeutronCloud</title>
    <description>The latest articles on DEV Community by NeutronCloud (@inneutroncloud).</description>
    <link>https://dev.to/inneutroncloud</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F578657%2F051fc274-aa2e-4533-8445-1b9caa2e3e70.jpg</url>
      <title>DEV Community: NeutronCloud</title>
      <link>https://dev.to/inneutroncloud</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/inneutroncloud"/>
    <language>en</language>
    <item>
      <title>How to Install Caddy on Rocky Linux 8</title>
      <dc:creator>NeutronCloud</dc:creator>
      <pubDate>Sun, 12 Sep 2021 09:27:56 +0000</pubDate>
      <link>https://dev.to/inneutroncloud/how-to-install-caddy-on-rocky-linux-8-1mpi</link>
      <guid>https://dev.to/inneutroncloud/how-to-install-caddy-on-rocky-linux-8-1mpi</guid>
      <description>&lt;p&gt;In this article, we'll explain you how to install Caddy on Rocky Linux 8.  Host your website on Caddy web server.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://caddyserver.com/" rel="noreferrer noopener"&gt;Caddy web server&lt;/a&gt; is an open-source web server written in Go. It is designed around simplicity and security that comes with a number of features that are useful for hosting websites. Caddy is both a flexible, efficient static file server and a powerful, scalable reverse proxy.&lt;/p&gt;

&lt;h4&gt;Prerequisites&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;A Rocky Linux 8 installed &lt;a href="https://neutroncloud.in/pricing.html"&gt;cloud instance&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;A root user access or normal user with administrative privileges.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://neutroncloud.in/docs/how-to-install-caddy-on-rocky-linux-8/"&gt;Install Caddy on Rocky Linux 8&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;1. Keep the server up to date&lt;/h4&gt;

&lt;blockquote&gt;&lt;p&gt;# dnf update -y&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;2. Install Caddy&lt;/h4&gt;

&lt;p&gt;Following command will install and automatically starts and runs Caddy for you as a systemd service named &lt;em&gt;caddy&lt;/em&gt; using our official &lt;em&gt;caddy.service&lt;/em&gt; unit file.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;# dnf install 'dnf-command(copr)'&lt;/p&gt;
&lt;p&gt;# dnf copr enable @caddy/caddy&lt;/p&gt;
&lt;p&gt;# dnf install caddy -y&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Next, start and enable &lt;em&gt;caddy.service&lt;/em&gt; using following command:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# systemctl start caddy &amp;amp;&amp;amp; systemctl enable caddy&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Configure Firewall&lt;/p&gt;

&lt;p&gt;Assuming that you are using &lt;em&gt;firewalld&lt;/em&gt; as your server's firewall, run following command to add the HTTP and HTTPS port in the firewall.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;# firewall-cmd --add-port=80/tcp --permanent&lt;/p&gt;
&lt;p&gt;# firewall-cmd --add-port=443/tcp --permanent&lt;/p&gt;
&lt;p&gt;# firewall-cmd --reload&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now, navigate to your browser and enter your server IP or domain name:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;http://Server-IP&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;http://example.com&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1jh8XsLg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.hostnextra.com/kb/wp-content/uploads/2021/03/install-caddy-on-ubuntu-20-04-1024x759.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1jh8XsLg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.hostnextra.com/kb/wp-content/uploads/2021/03/install-caddy-on-ubuntu-20-04-1024x759.png" alt="Install Caddy on Rocky Linux 8"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;3. Configure Domain with Caddy&lt;/h4&gt;

&lt;p&gt;Before moving following, first set up domain's A/AAAA  DNS record at your registrar or control panel.&lt;/p&gt;

&lt;p&gt;Note: Replace neutroncloud.in with your domain name&lt;/p&gt;

&lt;p&gt;Create a directory for your website files&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# mkdir /usr/share/neutroncloud.in/&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Now, open Caddy's configuration file and add your domain name and change website's root directory.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# vi /etc/caddy/Caddyfile&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Replace &lt;em&gt;:80&lt;/em&gt; with your domain name and change the site root to &lt;em&gt;/usr/share/neutroncloud.in/&lt;/em&gt; as&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nFAtL4_f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.hostnextra.com/kb/wp-content/uploads/2021/03/install-caddy-webserver.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nFAtL4_f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.hostnextra.com/kb/wp-content/uploads/2021/03/install-caddy-webserver.png" alt="install caddy webserver"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you done with the changes reload the &lt;em&gt;caddy.service&lt;/em&gt; to reflect the changes.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# systemctl reload caddy&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Now, create a index.html file in &lt;em&gt;/var/www/html/neutroncloud.in&lt;/em&gt; using following command:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# echo '&amp;lt;!doctype html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Hello from Caddy!&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1 style="font-family: sans-serif"&amp;gt;This page is being served via Caddy&amp;lt;/h1&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;' | sudo tee /usr/share/neutroncloud.in/index.html&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Finally, refresh the page in your browser and you will see our newly created &lt;em&gt;index.html&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;In this article, we have seen how to install Caddy on Rocky Linux 8.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://neutroncloud.in/pricing.html"&gt;Deploy cloud servers in India&lt;/a&gt;&lt;/p&gt;

</description>
      <category>neutroncloud</category>
      <category>rockylinux</category>
      <category>caddy</category>
      <category>linux</category>
    </item>
    <item>
      <title>Install OpenSSL 1.1.1k on AlmaLinux 8</title>
      <dc:creator>NeutronCloud</dc:creator>
      <pubDate>Fri, 27 Aug 2021 05:25:41 +0000</pubDate>
      <link>https://dev.to/inneutroncloud/install-openssl-1-1-1k-on-almalinux-8-3bb1</link>
      <guid>https://dev.to/inneutroncloud/install-openssl-1-1-1k-on-almalinux-8-3bb1</guid>
      <description>&lt;p&gt;In this article, we'll explain how to install OpenSSL 1.1.1k on AlmaLinux 8.&lt;/p&gt;

&lt;p&gt;OpenSSL is a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. OpenSSL is a software library for applications that secure communications over computer networks against eavesdropping or need to identify the party at the other end.&lt;/p&gt;

&lt;p&gt;OpenSSL is licensed under an Apache-style license, which means that you are free to get and use it for commercial and non-commercial purposes subject to some simple license conditions. For a list of vulnerabilities, and the releases in which they were found and fixes, see our &lt;a href="https://www.openssl.org/news/vulnerabilities.html" rel="noreferrer noopener"&gt;Vulnerabilities&lt;/a&gt; page.&lt;/p&gt;

&lt;h4&gt;Prerequisites&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;A AlmaLinux 8 installed &lt;a href="https://neutroncloud.in/pricing" rel="noreferrer noopener"&gt;cloud instance&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;A root user access or normal user with administrative privileges.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://neutroncloud.in/docs/install-openssl-1-1-1k-on-almalinux-8/"&gt;Install OpenSSL 1.1.1k on AlmaLinux 8&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;1. Keep the server up to date&lt;/h4&gt;

&lt;p&gt;Always keep the server up to date the security purpose.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# dnf update -y&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;2. Install development tool&lt;/h4&gt;

&lt;p&gt;We need to install a development tool and few dependencies to install OpenSSL&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# dnf group install 'Development Tools'&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;3. Install dependencies&lt;/h4&gt;

&lt;blockquote&gt;&lt;p&gt;# dnf install perl-core zlib-devel  wget -y&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;4. Download OpenSSL 1.1.1k&lt;/h4&gt;

&lt;p&gt;We will download the latest stable version is the 1.1.1 series. This is also our Long Term Support (LTS) version, supported until 11th September 2023.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;# cd /usr/local/src/&lt;/p&gt;
&lt;p&gt;# wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now, extract the tar file&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# tar -xzvf openssl-1.1.1k.tar.gz&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;5. Configure and build&lt;/h4&gt;

&lt;p&gt;Navigate to the extracted directory and configure, build, test and install OpenSSL in the default location /usr/local/ssl.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# cd openssl-1.1.1k&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Configure it with PATH&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hSjdVD7J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://neutroncloud.in/docs/wp-content/uploads/2021/08/install-OpenSSL.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hSjdVD7J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://neutroncloud.in/docs/wp-content/uploads/2021/08/install-OpenSSL.png" alt="install OpenSSL 1.1.1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, build&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;# make&lt;/p&gt;
&lt;p&gt;# make test&lt;/p&gt;
&lt;p&gt;# make install&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4&gt;6. Configure it shared libraries.&lt;/h4&gt;

&lt;p&gt;Once we have successfully installed OpenSSL, configure it shared libraries.&lt;/p&gt;

&lt;p&gt;Naviagate to the /etc/ld.so.conf.d directory and create a configuration file.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;# cd /etc/ld.so.conf.d/&lt;/p&gt;
&lt;p&gt;# vi openssl-1.1.1k.conf&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Add the following path in the config file&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;p&gt;/usr/local/ssl/lib&lt;/p&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save and exit&lt;/p&gt;

&lt;p&gt;Reload the dynamic link&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# ldconfig -v&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;7. Configure OpenSSL Binary&lt;/h4&gt;

&lt;p&gt;Now, we are going to insert the binary of our new version of OpenSSL /usr/local/ssl/bin/openssl and replace the default openssl file.&lt;/p&gt;

&lt;p&gt;First, take a backup of existed openssl file.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# mv /bin/openssl /bin/openssl.backup&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Create new environment files for OpenSSL&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# vi /etc/profile.d/openssl.sh&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;and add the following lines&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;p&gt;OPENSSL_PATH="/usr/local/ssl/bin"
export OPENSSL_PATH
PATH=$PATH:$OPENSSL_PATH
export PATH&lt;/p&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save &amp;amp; exit&lt;/p&gt;

&lt;p&gt;Make the newly created file executable&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# chmod +x /etc/profile.d/openssl.sh&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Reload the new OpenSSL environment file and check the default PATH&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# source /etc/profile.d/openssl.sh&lt;br&gt;# echo $PATH&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Now, let's verify the installation and version of the OpenSSL&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# which openssl&lt;br&gt;# openssl version -a&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Output will be similar like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;OpenSSL 1.1.1k  25 Mar 2021
built on: Thu Aug 19 06:33:43 2021 UTC
platform: linux-x86_64
options:  bn(64,64) rc4(16x,int) des(int) idea(int) blowfish(ptr) 
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DZLIB -DNDEBUG
OPENSSLDIR: "/usr/local/ssl"
ENGINESDIR: "/usr/local/ssl/lib/engines-1.1"
Seeding source: os-specific&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;That's it, the installation has been completed successfully.&lt;/p&gt;

&lt;p&gt;In this article, we’ve learned how to install OpenSSL 1.1.1k on AlmaLinux 8.&lt;/p&gt;

</description>
      <category>openssl</category>
      <category>almalinux</category>
      <category>linux</category>
      <category>neutroncloud</category>
    </item>
    <item>
      <title>Install and Configure Git Server on AlmaLinux 8</title>
      <dc:creator>NeutronCloud</dc:creator>
      <pubDate>Fri, 27 Aug 2021 05:22:22 +0000</pubDate>
      <link>https://dev.to/inneutroncloud/install-and-configure-git-server-on-almalinux-8-3gap</link>
      <guid>https://dev.to/inneutroncloud/install-and-configure-git-server-on-almalinux-8-3gap</guid>
      <description>&lt;p&gt;In this tutorial, we'll explain how to install and configure git server on AlmaLinux 8&lt;/p&gt;

&lt;p&gt;Git is a distributed version-control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non-linear workflows.&lt;/p&gt;

&lt;p&gt;Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://neutroncloud.in/docs/install-and-configure-git-server-on-almalinux-8/"&gt;Install and Configure Git Server on AlmaLinux 8&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are two options to install Git.&lt;/p&gt;

&lt;h4&gt;Option 1 is install Git using dnf&lt;/h4&gt;

&lt;h5&gt;1. Keep the server up-to-date&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# dnf update -y&lt;/p&gt;&lt;/blockquote&gt;

&lt;h5&gt;2. Install Git&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# dnf install git -y&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;Option 2 is install git from source&lt;/h4&gt;

&lt;p&gt;You can download latest version of Git from &lt;a href="https://github.com/git/git/releases" rel="noreferrer noopener"&gt;&lt;em&gt;&lt;strong&gt;release page&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;. It make take longer time and will not be updated and maintained through the dnf package manager. But it will allow you to download a newer version, and will give you some control over the options that you can include.&lt;/p&gt;

&lt;p&gt;First, install dependencies&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# dnf groupinstall "Development Tools"&lt;br&gt;# dnf install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel wget -y&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;After the installation complete, go to release page and copy the download link. You can find tar.gz, right click on it and copy the link.&lt;/p&gt;

&lt;p&gt;Now, download it in the server using wget command and rename it:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# wget https://github.com/git/git/archive/refs/tags/v2.33.0.tar.gz -O git.tar.gz&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Once the download is complete, we can extract the tar file&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# tar -zxf git.tar.gz&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Now, go to that directory to begin configuring our build.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# cd git-*&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;We can check for everything that we need with the configure script that is generated by make configure. This script will also use a --prefix to declare /usr/local (the default program folder for Linux platforms) as the appropriate destination for the new binary, and will create a Makefile to be used in the following step.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# make configure&lt;br&gt;# ./configure --prefix=/usr/local&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Makefiles are scriptable configuration files that are processed by the make utility. Our Makefile will tell make how to compile a program and link it to our CentOS installation so that we can execute the program properly.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# make install&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;We have built and installed Git successfully. To verify it check the version using following command:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# git --version&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;Set Up Git&lt;/h4&gt;

&lt;h5&gt;Add user to handle the repositories:&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# useradd git&lt;/p&gt;&lt;/blockquote&gt;

&lt;h5&gt;Then give your Git user a password:&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# passwd git&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;Log in as a git user&lt;/h4&gt;

&lt;blockquote&gt;&lt;p&gt;# su - git&lt;/p&gt;&lt;/blockquote&gt;

&lt;h5&gt;Initiate a new empty repository using following command:&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# git init --bare ~/hostnextra.git&lt;/p&gt;&lt;/blockquote&gt;

&lt;h5&gt;Enable post-update hook by copying the sample file as follows:&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# cd hooks/&lt;br&gt;# cp post-update.sample post-update&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;That's it for server side.&lt;/p&gt;

&lt;h4&gt;Now let's go to client side:&lt;/h4&gt;

&lt;h5&gt;Install Git&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# dnf install git -y&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The installation is completed&lt;/p&gt;

&lt;h4&gt;Set up git&lt;/h4&gt;

&lt;p&gt;Submit inflammation about yourself so that commit messages will be generated with correct information attached:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# git config --global user.name "git"&lt;br&gt;# git config --global user.email "git@git-client.lab.com"&lt;/p&gt;&lt;/blockquote&gt;

&lt;h5&gt;Create a directory where you can keep all your projects&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# mkdir ~/dev&lt;br&gt;# cd ~/dev&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Now, create a clone the hostnextra.git repository that we have created earlier in the server&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# git clone git@git-server.lab.com:~/hostnextra.git hostnextra.git&lt;br&gt;Cloning into 'hostnextra.git'...&lt;br&gt;warning: You appear to have cloned an empty repository.&lt;/p&gt;&lt;/blockquote&gt;

&lt;h5&gt;Go to respository&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# cd hostnextra.git&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;You can see the repository is empty, so lets create some files&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# echo "my test file" &amp;gt; file1.txt&lt;/p&gt;&lt;/blockquote&gt;

&lt;h5&gt;Add these file to our git repository&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# git add .&lt;/p&gt;&lt;/blockquote&gt;

&lt;h4&gt;Commit the changes&lt;/h4&gt;

&lt;blockquote&gt;&lt;p&gt;# git commit -am "My First Commit"&lt;br&gt;[master 45fc94c] added test file&lt;br&gt;1 file changed, 1 insertion(+)&lt;br&gt;create mode 100644 file1.txt&lt;/p&gt;&lt;/blockquote&gt;

&lt;h5&gt;Push these changes to the remote git repository at git-server.lab.com&lt;/h5&gt;

&lt;blockquote&gt;&lt;p&gt;# git push origin master&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;you will be asked for password, enter git user password&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;git@git-server.lab.com's password:&lt;br&gt;Counting objects: 2, done.&lt;br&gt;Delta compression using up to 4 threads.&lt;br&gt;Compressing objects: 100% (2/2), done.&lt;br&gt;Writing objects: 100% (2/2), 235 bytes | 235.00 KiB/s, done.&lt;br&gt;Total 2 (delta 0), reused 0 (delta 0)&lt;br&gt;To git-server.lab.com:~/hostnextra.git&lt;br&gt;bc172aa..45fc94c master -&amp;gt; master&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Verify the changes, access the git server and run following command to check the logs&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;# git log&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;We have successfully install and configure Git server on AlmaLinux 8&lt;/p&gt;

</description>
      <category>github</category>
      <category>gitserver</category>
      <category>almalinux</category>
      <category>linux</category>
    </item>
    <item>
      <title>How to Install Redis on AlmaLinux 8</title>
      <dc:creator>NeutronCloud</dc:creator>
      <pubDate>Sun, 04 Apr 2021 09:17:21 +0000</pubDate>
      <link>https://dev.to/inneutroncloud/how-to-install-redis-on-almalinux-8-52k</link>
      <guid>https://dev.to/inneutroncloud/how-to-install-redis-on-almalinux-8-52k</guid>
      <description>&lt;p&gt;In this article, we have covered how to install Redis on AlmaLinux 8 and configure it. We will install redis-cli 5.0.3.&lt;/p&gt;

&lt;p&gt;Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams.&lt;/p&gt;

&lt;p&gt;Redis was designed for use by trusted clients in a trusted environment, and has no robust security features of its own. Redis does, however, have a few security features like a basic unencrypted password as well as command renaming and disabling.&lt;/p&gt;

&lt;p&gt;We have covered installation and configuration of Redis.&lt;/p&gt;

&lt;h4&gt;
  
  
  Prerequisites
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://neutroncloud.in/pricing.html"&gt;Cloud instance&lt;/a&gt; running AlmaLinux 8.&lt;br&gt;
Root access or normal user with administrative privileges.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://neutroncloud.in/docs/how-to-install-redis-on-almalinux/"&gt;Install Redis on AlmaLinux 8&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 1 - Keep the server up to date&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dnf update -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 2 - Install Redis
&lt;/h4&gt;

&lt;p&gt;Run following DNF package manager command to install Redis.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dnf install redis -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 3 - Change supervised directive from no to systemd
&lt;/h4&gt;

&lt;p&gt;This is important configuration change to make in the Redis configuration file. supervised directive allows you to delivery an init system to manage Redis as a service.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# vi /etc/redis.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Find supervised and change it from no to systemd which will looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# If you run Redis from upstart or systemd, Redis can interact with your
# supervision tree. Options:
# supervised no - no supervision interaction
# supervised upstart - signal upstart by putting Redis into SIGSTOP mode
# supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET
# supervised auto - detect upstart or systemd method based on
# UPSTART_JOB or NOTIFY_SOCKET environment variables
# Note: these supervision methods only signal "process is ready."
# They do not enable continuous liveness pings back to your supervisor.
supervised systemd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save and exit the Redis configuration file.&lt;/p&gt;

&lt;p&gt;After editing the file, start and enable the Redis service:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# systemctl start redis

# systemctl enable redis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To verify that Redis has installed successfully, we can run following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# redis-cli ping
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PONG
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If this is the case, it means we now have Redis running on our server and we can begin configuring it to enhance its security.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 4 - Configure a Redit password
&lt;/h4&gt;

&lt;p&gt;Configuring a Redis password enables one of its built-in security features — the auth command — which requires clients to authenticate before being allowed access to the database. Like the bind setting, the password is configured directly in Redis’s configuration file, /etc/redis.conf. Reopen that file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# vi /etc/redis.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Find requirepass&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# requirepass foobared
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Uncomment it by removing the #, and change foobared to a very strong password of your choosing.&lt;/p&gt;

&lt;p&gt;After setting the password, save and close the file then restart Redis:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# systemctl restart redis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To test that the password works, open the Redis client:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# redis-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A sequence of commands used to verify whether the Redis password is working is as follows. Before authenticating, the first command tries to set a key to a value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;127.0.0.1:6379&amp;gt; set key1 23
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That won’t work as you have not yet authenticated, so Redis returns an error:&lt;/p&gt;

&lt;p&gt;Output&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(error) NOAUTH Authentication required.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The following command authenticates with the password specified in the Redis configuration file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;127.0.0.1:6379&amp;gt; auth your_redis_password
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Redis will acknowledge that you have been authenticated:&lt;/p&gt;

&lt;p&gt;Output&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;OK
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that, running the previous command again should be successful:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;127.0.0.1:6379&amp;gt; set key1 23
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;OK
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The get key1 command queries Redis for the value of the new key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;127.0.0.1:6379&amp;gt; get key1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"23"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This last command exits redis-cli. You may also use exit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;127.0.0.1:6379&amp;gt; quit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We have successfully seen how to install Redis on AlmaLinux 8 and configure it.&lt;/p&gt;

</description>
      <category>almalinux</category>
      <category>redit</category>
      <category>technology</category>
      <category>database</category>
    </item>
  </channel>
</rss>
