Solved

[Solved] Unable to locate package python-pip

Error:- [email protected]:~# sudo apt install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python-pip Solution:- [email protected]:~# sudo apt-get update && sudo apt-get install python-pip Get:1 http://ftp.harukasan.org/kali kali-rolling InRelease [30.5 kB] Get:2 http://ftp.harukasan.org/kali kali-rolling/main amd64 Packages [16.5 MB] Get:3 http://ftp.harukasan.org/kali kali-rolling/non-free amd64 Packages [195 kB] Get:4 http://ftp.harukasan.org/kali kali-rolling/contrib amd64 Packages [99.6 kB] Fetched 6,860 kB in 44s (155 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: lib

Read More
Uncategorized

How to install CDP/R1soft on a CentOS 6/7 server

Continuous data protection (CDP), also called continuous backup or real-time backup, refers to backup of computer data by automatically saving a copy of every change made to that data, essentially capturing every version of the data that the user saves. It is extremely essential to install a CDP agent to safeguard all your important data from being lost.   vi /etc/yum.repos.d/r1soft.repo [r1soft] name=R1Soft Repository Server baseurl=http://repo.r1soft.com/yum/stable/$basearch/ enabled=1 gpgcheck=0 yum install r1soft-cdp-enterprise-agent -y r1soft-setup --get-module on CentOS 6: sudo iptables -I INPUT -p tcp -m tcp --dport 1167 -j ACCEPT sudo service iptables save On CentOS 7: sudo firewall-cmd --zone=public --add-port=1167/tcp --permanent sudo firewall-cmd --

Read More
Bash Scripts

Comparing one file’s 3rd column to other file’s column and print – Linux/Unix

This script is created for my brother as he wanted to print the only values which are different from each other in both files but only in 3rd Column. In this, the first column contains a unique id.   #!/bin/bash awk -F "," '{print $1}' yash > yashids for n in `cat yashids` do ID=`grep $n net | awk -F "," '{print $3}'` ID2=`grep $n yash | awk -F "," '{print $3}'` if [ "$ID" != "$ID2" ] then grep $n net yash fi done   Tags:- Gagandeep Gagan Gagandeep920d...

Read More
Solved

[Solved] Virtualbox dependencies libqt5opengl5 libqt5printsupport5 libsdl1.2debian libvpx5 not Found

Error:- Packages not found OR have dependencies libqt5opengl5 libqt5printsupport5 libsdl1.2debian libvpx5 Solution:- Copy-paste all these commands, the order of the packages installation will sort out the dependencies issue sudo apt-get install libqt5opengl5 sudo apt-get install libsdl1.2debian sudo apt --fix-broken install sudo apt-get install libqt5opengl5 sudo apt-get install libsdl1.2debian sudo apt-get install libqt5opengl5 libqt5printsupport5 libsdl1.2debian libvpx5 sudo apt-get install libqt5printsupport5 sudo apt-get install libqt5opengl5 libqt5printsupport5 libsdl1.2debian libvpx5 sudo apt-get install libsdl1.2debian sudo apt-get install libqt5opengl5 libqt5printsupport5 libsdl1.2debian sudo apt-get install libvpx5 sudo apt --fix-broken install

Read More
Migration

DigitalOcean to KVM Migration

This is for CentOS 7 Only 1. BMR (Bare Metal Restore) Steps:- Create KVM machine with the same config as DO has and perform BMR, after BMR, Reboot the server. 2. Post-BMR steps:- After booting the machine if you see Grub issue then fix it by following the below guide.          a.How to Fix the Grub Issue OR watch video - Mount CentOS 7 ISO and Boot the machine - At the boot screen, Select the Troubleshooting > Rescue a CentOS Linux system > choose Continue (1) - Run these commands :- chroot /mnt/sysimage grub2-install /dev/vda # may be sda OR xvda - Remove ISO, Reboot server. 3. Change the IP Address:- Take Console and edit file /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 IPADDR=221.145.x.x NETMASK=255.255.x.x BOOTPRO

Read More
Solved

[Solved] adobe-flashplugin is not available – Ubuntu 16/18/19

Error:- adobe-flashplugin is not available Solution:- sudo apt install browser-plugin-freshplayer-pepperflash sudo apt install adobe-flashplugin sudo apt install ubuntu-restricted-extras sudo apt install flashplugin-installer sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" sudo apt update sudo apt install adobe-flashplugin browser-plugin-freshplayer-pepperflash Comment:- I was struggling with the same then in the process of troubleshooting, i ran above commands and it was installed, Basically for me it was the only archive.canonical.com repo which had the package.

Read More
Solved

[Solved] certbot: error: unrecognized arguments –webroot

Error:- [email protected]:~# certbot-auto certonly -d the-d2.com -d www.the-d2.com --webroot "/home/the-d2/public_html" usage: certbot-auto [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ... Certbot can obtain and install HTTPS/TLS/SSL certificates. By default, it will attempt to use a webserver both for obtaining and installing the certificate. certbot: error: unrecognized arguments: /home/the-d2/public_html Solution:- certbot-auto certonly -d the-d2.com -d www.the-d2.com --webroot --webroot-path "/home/the-d2/public_html"  The issue was, i was missing the flag --webroot-path , but if you will run certbot-auto --help, you will not find any reference to that flag.  

Read More
Uncategorized

Ubuntu Post installation script

#!/bin/bash sudo apt-get update -y sudo apt-get install shutter vlc wget screen atop iftop mlocate iotop htop vim telnet zip net-tools unzip smartmontools bind-utils filezilla gconf2 gconf-service libappindicator1 sshpass -y sudo apt --fix-broken install wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb sudo apt-get install -f rm -f google-chrome-stable_current_amd64.deb sudo apt-get install -y; sudo apt-get update -y sudo apt-get install deluge -y sudo apt-get install ubuntu-restricted-extras -y sudo apt-get install flashplugin-installer -y sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update -y sudo apt-get install freshplayerplugin -y sudo apt-get...

Read More
Uncategorized

COVID-19 Situation RedHat provides free courses for 30 Days duration

Because of COVID-19 Situation RedHat provides free courses for 30Days durations. Get the benifits as much as you can. These all are worth more than ₹10-₹15k at RedHat. Here, I'm attaching all the links of free courses. Complimentary Technical Overviews: Red Hat Enterprise Linux Technical Overview (RH024) - https://www.redhat.com/en/services/training/rh024-red-hat-linux-technical-overview Red Hat Agile Integration Technical Overview (DO040) - https://www.redhat.com/en/services/training/do040-red-hat-agile-integration-technical-overview Ansible Essentials: Simplicity in Automation Technical Overview (DO007) - https://www.redhat.com/en/services/training/do007-ansible-essentials-simplicity-automation-technical-overview Deploying Containerized Applications Tech Overview (DO080) - https:/

Read More
Uncategorized

Install ARBT packages on RHEL/CentOS 7

You can download below packages from this mirror and install them via yum OR rpm command http://mirror.centos.org/altarch/7/os/aarch64/Packages/ Command for e.g:- wget http://mirror.centos.org/altarch/7/os/aarch64/Packages/abrt-2.1.11-55.el7.centos.aarch64.rpm yum install abrt-2.1.11-55.el7.centos.aarch64.rpm OR rpm -ivh abrt-2.1.11-55.el7.centos.aarch64.rpm abrt-2.1.11-55.el7.centos.aarch64.rpm abrt-addon-ccpp-2.1.11-55.el7.centos.aarch64.rpm abrt-addon-kerneloops-2.1.11-55.el7.centos.aarch64.rpm abrt-addon-pstoreoops-2.1.11-55.el7.centos.aarch64.rpm abrt-addon-python-2.1.11-55.el7.centos.aarch64.rpm abrt-addon-upload-watch-2.1.11-55.el7.centos.aarch64.rpm abrt-addon-vmcore-2.1.11-55.el7.centos.aarch64.rpm abrt-addon-xorg-2.1.11-55.el7.centos.aarch64.rpm abrt-cl

Read More