Installation of Linux Operating System (Red Hat 8) in VMWare Workstation

You can follow below steps and can install Linux Operating System in VMWare Workstation. We are installing Red Hat 8.Step1: Go to your desktop icon of VMware Workstation and open it. It will prompt you with below screen for Create, Open and Connect to Virtual Machine. We will go ahead and create a new virtual […]

Sample Kickstart file for CentOS7

Below is sample Kickstart file for CentOS7 installation via network: #CentOS install via network # System language lang en_US # Keyboard layouts keyboard us # System timezone timezone Asia/Kolkata –isUtc # Root password rootpw –iscrypted encrypted-password #platform x86_64 reboot url –url=http://repos.example.com/repos/centos78/ bootloader –append=”rhgb quiet crashkernel=auto” zerombr # Partition clearing information clearpart –all –initlabel #autopart # […]

Bash Script to append “host and ip entries” in remote server “/etc/hosts” file

We can use below script to add host and ip entries in /etc/hosts file. $ cat append.sh #!/bin/bash ## Append hostname and IP in /etc/hosts file hostname=$1 ip=$2 /usr/bin/sshpass -p ‘password’ ssh user@$1 "echo password | sudo -S sh -c ‘echo "$2 $1 $1.example.com" >> /etc/hosts’" $ sh append.sh test-server 192.168.1.100 It will make entry […]

Pulp Commands – Open Source Repository

Pulp is basically a open source repository management from where you can create a repository for your environment. You can copy a remote repository or can hosts your rpms.There are lot of commands which can help you managing your pulp repository. Start, Stop and Restart pulp services: # systemctl start pulp_celerybeat # systemctl start pulp_resource_manager […]

How to synchronize time on Linux Server via NTP server?

Step 1: On your client machine, Login via root. Step 2: Run below command to sync via NTP server. # ntpdate -u server-ntp.example.com (Where server-ntp.example.com is your NTP server) Step 3: Now go and add your ntp server to “ntp.conf” file. # vi /etc/ntp.conf server server-ntp.example.com Step 4: Start ntp service. # systemctl start ntpd […]

AWS CloudTrail

AWS CloudTrail is a service that enables governance, compliance, operational auditing, and risk auditing of your AWS account.With CloudTrail, you can log, continuously monitor, and retain account activity related to actions across your AWS infrastructure.CloudTrail provides event history of your AWS account activity, including actions taken through the AWS Management Console, AWS SDKs, command line […]