Skip to main content

How to move (copy) Files and Folder to Another Location using Rsync

Submitted by nidheesh on Fri, 11/25/2022 - 22:20

Install Rsync CLI Tools

[root@testsvr01 ~]# yum install rsync -y

Move Files and Folder to Another Location using Rsync

[root@testsvr01 ~]# rsync -avzi  --delete --progress /opt/soruce_dir/ /opt/destination_dir/

Copy Files and Folder to Another Location using Rsync

[root@testsvr01 ~]# rsync -avzu --progress /opt/soruce_dir/ /opt/destination_dir/

How to Set SSH Banner in Redhat Linux

Submitted by nidheesh on Mon, 11/21/2022 - 22:12

[root@testsvr01 ~]# cat << EOF > /etc/ssh/sshd-banner #############################################################################

 

         ACCESS WARNING: THIS IS Learns to Win NETWORK
         *********************************************************

  Unauthorized access to this device or the attached networks is prohibited
  without express written permission. Violators will be prosecuted to the
  fullest extend of both civil and criminal law.

Show Saved WIFI Password in Windows

Submitted by nidheesh on Sat, 11/19/2022 - 23:25

C:\Users\User> netsh wlan show profiles

Profiles on interface Wi-Fi:

Group policy profiles (read only)
---------------------------------
    <None>

User profiles
-------------
     All User Profile     : BSNL_FTTH
     All User Profile     : CISCO
     All User Profile     : Belkin


C:\Users\User>netsh wlan show profile name=BSNL_FTTH key=clear

Profile BSNL_FTTH on interface Wi-Fi:
=======================================================================

How to Configure PHP 7.4 in RHEL 8.4 Server

Submitted by nidheesh on Fri, 11/19/2021 - 23:03

This step should have been completed upon the installation of RHEL 8.4, but if you haven’t, you can complete it with:

Update

 

# yum update

 

Now you are ready to install PHP 7.4 :

 

Check Available PHP Versions

# dnf module list php

 

Enable PHP 7.4 Module

# dnf module switch-to php:7.4

 

Install PHP and Dependancy Modules

# yum install php php-cli php-common

 

 

How to include PHPMailer Library in Drupal 8

Submitted by nidheesh on Sat, 06/19/2021 - 20:33

 

This step should have been completed upon the installation of Drupal 8 for getting PHPMailer function


Install Composer

# curl -sS https://getcomposer.org/installer | php

 

Move Composer binary to usr bin path

# mv composer.phar /usr/bin/composer

 

Check Composer Version

# composer --version

 

Go to Drupal root Directory and execute

Change default SSH Port in Centos 7

Submitted by nidheesh on Mon, 12/21/2020 - 20:48

 

To change the port for the SSH server, follow these steps:

  • Log in to the server as root 
  • Open the /etc/ssh/sshd_config file in your preferred text editor 
  • Locate the following line: Port 22 and changed to New Port 2233
  • Restart SSHD Service.

 

Use the following command for enabling additional SSH Port

sed -i 's/#Port 22/Port 22\nPort 2233/g' /etc/ssh/sshd_config

 

Firewall Configuration

How to install MySQL 5.7 in Centos 7 Server

Submitted by nidheesh on Sun, 12/06/2020 - 01:11

 

This step should have been completed upon the installation of MySQL 5.7, but if you haven’t, you can complete it with:

System Updates

yum update

 

Install Repository

yum -y install yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

 

Now you are ready to install MySQL 5.7 with:

yum -y install mysql-community-server

 

Firewall Configuration