Sudo in Linux

Sudoers file is a file which plays a very important role in managing user and group access which can be performed on system. You can assign privileges to users and groups as per requirement. Root is super user and have all access. You can also provide root level access to normal user. Root user has […]

Configure Static IP Address in Ubuntu 20.04.6 LTS

For configuring static IP Address in Ubuntu Server you need to make netplan configuration changes in /etc/netplan/ directory. # cd /etc/netplan/ Now go and edit the configuration file there named “00-installer-config.yaml” and add below configuration for static IP address: (Bold are added lines) # vi 00-installer-config.yaml # This is the network config written by ‘subiquity’ […]

How to install Ansible and enable passwordless SSH authentication with nodes on Linux

Step1: Install Ansible: # yum install ansible Step2: Generate an SSH key pair on the control node: # ssh-keygen Go for default options for key name and location and leave passphrase blank. Step3: Copy the public key to the remote nodes from control node. # ssh-copy-id username@remote_host (Put username and hostname of remote machines) Step4: […]

User and Group Management

Any User can be assigned to any physical user or accounts that exists for specific application to use. Each user is assigned with a unique numerical identification number called UID. User ID (UID) 0-999 reserved for system purpose and we can create other user with 1000+.Groups are logical expression of organization where multiple users can […]

Useful openssl Command Examples

Check version of openssl: # openssl version Print available commands for openssl: # openssl list -standard-commands or # openssl help Check SSL certificate of mentioned URL: # openssl s_client -connect varelite.com:443 -showcerts To generate rsa key: # openssl genrsa -out testing.key 2048 Generate CSR and RSA key: # openssl req -out testing.csr -newkey rsa:2048 -nodes […]

QA on DevOps

Q.1: What are the most common DevOps tools we use and let us know benefits of them. The most DevOps tools are Ansible, Puppet, Chef, Git, Jenkins, Bamboo, Docker, Docker Swarm, Kubernetes, Openshift, Nagios etc. Few details are as: Ansible, Puppet are configuration Management tool. Git is versioning tool. Docker is used for container services. […]

How to delete and unmount a zfs filesystem from a Solaris Zone

Run below commands to delete filesystem (fs) from zone named zone01: # zonecfg -z zone01 zonecfg:zone01> remove fs dir=/data01 zonecfg:zone01> remove fs dir=/data02 zonecfg:zone01> commit zonecfg:zone01> exit # Now destroy the zfs filesystem from the hosts: # zfs destroy data_pool/data01/zone01 # zfs destroy data_pool/data02/zone01

How To Find Default Gateway IP Address in Linux

A gateway is a network node used in telecommunications that connects two networks with different transmission protocols together. Gateways serve as an entry and exit point for a network as all data must pass through or communicate with the gateway prior to being routed. All the possible ways to find default gateway in Linux The most commonly used tools […]

Installation of SAR on Ubuntu/Debian

We can simply install and configure the SAR on Linux servers. In debian based server we can use the command “apt” to install the SAR utility.  First install sysstat package on the server with the help of apt command root@Ubuntu:~# apt install sysstat After install When we try to run sar  command to get below […]

Docker Commands

# systemctl start docker (Starting Docker service) # systemctl enable docker (Enabling Docker at boot level) # docker –version (Checking Docker version) # docker info (Gives all information about host and containers) # docker run/pull image (images can be downloaded from Docker Hub) # docker run hello-world (Just download and start a test container) # […]