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 […]
# 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) # […]
Below is the simple program to install a package named “vsftpd” in linux OS. You need to import “os” module for that. #!/usr/bin/python3.6 import os try: os.system(‘dnf install vsftpd’) except: exit("Failed to install package")
RPM vs dpkg Function rpm command dpkg command List installed packages rpm -qa dpkg -l List content of installed package rpm -ql “pkgname” dpkg -L “pkgname” List content of package file rpm -qlp “pkgname”.rpm dpkg –contents “pkgname”.deb Install package rpm -i “pkgname”.rpm dpkg -i “pkgname”.deb Show to which package a file belongs rpm -qf /path/to/file […]
Issue: Between 06:00 UTC on 30 Aug 2022 and 16:00 UTC on 31 Aug 2022, customers running Ubuntu 18.04 (bionic) Virtual Machines (VMs) who have Ubuntu unattended-upgrades enabled would have received systemd version 237-3ubuntu10.54 which would have resulted in Domain Name System (DNS) resolution errors. This issue was confined to this single Ubuntu version and […]
In RHEL8, Network is managed by NetworkManager daemon. We can use it to configure and manage networks in system.NetworkManager package is preinstalled in RHEL8.nmcli tool can be used to configure networks using command line. nmtui is text-based user interface for NetworkManager.You can still use ifcfg files to configure network configurations. Service “NetworkManager” is used for starting/stopping […]
# ansible all -i hosts –list-hosts (To see all hosts in inventory file named hosts) # ansible rl6 -i hosts –list-hosts (To see hosts of host group named rl6 created in inventory) # ansible ungrouped -i hosts –list-hosts (To see ungrouped hosts) # ansible rhel -i hosts –list-hosts (To see group parent to contains children […]
To register your system to RedHat Customer Portal Subscription management. Use below commands and use your RedHat login credential: # subscription-manager register #it will ask Username/Password. To get List of available subscriptions: # subscription-manager list –available –all To active a subscription, you need to subscribe it through Pool ID (which can be get from above […]
# dnf –version (Check version of dnf) # dnf repolist (List enabled repositories) # dnf repolist all (List enabled and disabled repositories) # dnf install httpd (Install a package named httpd) # dnf install httpd (It will install directly install will not ask for yes or no) # dnf remove httpd (It will remove package) […]
System ServicesSystemd is a system and service manager for Linux Operating System.Systemd is designed to work with SysV init scripts, and have some features like start up of services on boot, on demand etc.You can easily stop, start and check any service status of Linux Operating System.Systemd has replaced init from Redhat 7. The SysV […]
Recent Blog