Hey all, today i decided to install AW Cli version 2 in my Linux mint and therefore would like to share how to do that in simple steps. So let’s start: Prerequisites:Curlunzip Downloading:curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip Unzipunzip awscliv2.zip Install:sudo ./aws/install Confirmation:# aws –version **Note: If aws command is not in your path, you can add it by issuing the following command: [root@ip-192-168-200-84 ~]# export PATH=/usr/local/bin/:$PATH Done. Thanks,Salman Francishttps://www.youtube.com/linuxking
Renewing AWS EC-2 Key-Pair
In this post i will explain how easy it is to renew / add new AWS EC-2 instance key pair. So let’s start Requirements: You must be able to login to EC-2 instance from your PC terminal. This article is not for you in case you have lost your existing key-pair Step No. 1 Creating new Key-pair Login to your Amazon Console and Click on EC-2 Once clicked, Scroll down and you will find Key-pairs under Network & Security Section as shown below Click on Key Pairs and you will see a window similar to below. Give Name to your Key Pair and Click “Create Key Pair” Once you click the Create Key Pair, it will Download to your system. Change the permission of the key pair salman@Red-Dragon:~/Pictures/AWS$ chmod 400 tekco-key-omen.pem Now retrieve the public part from your Key-pair and copy it as shown below. Now Connect with your EC-2 instance with your old key Now edit the authorized_keys file as show below: Paste the public key which you retrieved earlier in authorized_keys file as show below Save and exit and Now from your PC connect the EC2 instance with your new Key-Pair Perfect. We have successfully entered our EC-2 instance with our New Key-Pair. Once you are satisfied, you can delete the old key from authorized_keys and start using the new one. Thank you. Salman A. Francishttps://www.youtube.com/linuxking
Rainloop Webmail Server Connect Issue
So today i had problem when my Rainloop webmail gave me the below error Solution: The Solution was simple but it took me sometime to figure out. It was related to SSL So a quick fix was to go to Admin panel of your Rainloop server e.g https://<yourdomain>/?Admin After logging in Click on Domains as show below Once you click the domain you will see window as show below Now click on your domain and you will see window as show below Now change SSL/TLS under IMAP to None for the time being and click update. Your should be able to login now. I think the issue is with SSL Certificate , it should be updated , after update you must revert the changes from None to SSL/TLS. Thanks, Salman A. Francishttps://www.youtube.com/linuxking
Setup PHP 7.4 in CentOS 8
In this post we will see, how to easily install php 7.4 in CentOS 8 Install php 7.4 on Centos 8 [root@sal-test ~]# yum-y update Install extra packages repository for enterprise Linux [root@sal-test ~]# yum -y install epel-release Install remi repository for CentOs 8 [root@sal-test ~]# yum -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm Enable remi repository for php 7.4 [root@sal-test ~]# yum module enable php:remi-7.4Remi’s Modular repository for Enterprise Linux 8 – x86_64 506 kB/s | 577 kB 00:01Safe Remi’s RPM repository for Enterprise Linux 8 – x86_64 1.1 MB/s | 1.5 MB 00:01 Dependencies resolved. Package Architecture Version Repository Size Enabling module streams:php remi-7.4 Transaction Summary Is this ok [y/N]: yComplete! [root@sal-test ~]# yum install php php-cli php-commonLast metadata expiration check: 0:01:42 ago on Mon Sep 7 15:19:00 2020. Dependencies resolved. Package Architecture Version Repository Size Installing:php x86_64 7.4.10-1.el8.remi remi-modular 3.0 Mphp-cli x86_64 7.4.10-1.el8.remi remi-modular 4.6 Mphp-common x86_64 7.4.10-1.el8.remi remi-modular 1.2 M [root@sal-test ~]# php -vPHP 7.4.10 (cli) (built: Sep 1 2020 13:58:08) ( NTS )Copyright (c) The PHP GroupZend Engine v3.4.0, Copyright (c) Zend Technologieswith Zend OPcache v7.4.10, Copyright (c), by Zend Technologies Done.
Setup Nginx Reverse Proxy for Docker
In this post we will take a look at how to setup Nginx as a reverse proxy for Docker in CentOS 8. You can also find my Youtube video on the same at the end of this post. So Let’s Start: First question , why do we need reverse proxy ? The answer is simple, if we need to run many applications or webserver servicing different pages on the same server machine, we would need a reverse proxy.Reverse proxy will run on port 80 (Default port of a non secure web server) and forward the request to webserver / application running on different ports (Other than port 80 since the default port is already being used by Nginx reverse proxy). Installing Nginx: Install Docker: Install Apache pod: Setting up and Configuring Nginx for Reverse Proxy.