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
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
Uncategorized

Install OCS Inventory Agent on CentOS 7

Install EPEL Repo on CentOS 7 cd /tmp wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install -y epel-release-latest-7.noarch.rpm yum --disablerepo="*" --enablerepo="epel" install ocsinventory-agent -y Install Basic packages for agent yum install perl-XML-Simple perl-Net-IP Download latest agent rpm package wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/o/ocsinventory-agent-2.6.0-3.2.el7.x86_64.rpm Install package yum install ocsinventory-agent-2.6.0-3.2.el7.x86_64.rpm Open the configuration file. vi /etc/ocsinventory/ocsinventory-agent.cfg Uncomment the following lines. Set a tag for the current server and the address of your OCS server. server = http://your.ocs.server/ocsinventory tag = your_tag Restart agent ...

Read More
Uncategorized

Samba: Linux Iptables Firewall Configuration – Allow Samba ports in CentOS 6

Add below rules in iptables rule file vi /etc/sysconfig/iptables Rules:- -A INPUT -s 0.0.0.0/0 -m state –state NEW -p udp –dport 137 -j ACCEPT -A INPUT -s 0.0.0.0/0 -m state –state NEW -p udp –dport 138 -j ACCEPT -A INPUT -s 0.0.0.0/0 -m state –state NEW -p tcp –dport 139 -j ACCEPT -A INPUT -s 0.0.0.0/0 -m state –state NEW -p tcp –dport 445 -j ACCEPT Now restart iptables service service iptables restart  

Read More
Uncategorized

Bad bots list – few more in 2019

AhrefsBot/6.1; evc-batch/2.0)" spider/4.0 Qwantify/2.4w; DomainSigmaCrawler/0.1; Mappy/1.0; SemrushBot/6~bl; Nimbostratus-Bot/v1.3.2; SemrushBot-SI/0.97; coccocbot-image/1.0; SemrushBot/1.0~bm; SEOkicks; houzzbot; GrapeshotCrawler/2.0; MegaIndex.ru/2.0; YandexImageResizer/2.0; coccocbot-web/1.0; TinEye-bot/1.31; YandexImages/3.0; Pinterestbot/1.0; MJ12bot/v1.4.8; SeznamBot/3.2; DotBot/1.1; bingbot/2.0; YandexBot/3.0; BLEXBot/1.0;

Read More
Uncategorized

[Solved] Connection to Redis failed after x failures Client.php Credis_Client->connect

Issue:-   [[email protected] ~]# cd /home/the-d2/public_html/var/report/ [[email protected] report]# cat 118233337366 a:4:{i:0;s:44:"Connection to Redis failed after 2 failures.";i:1;s:1529:"#0 /home/the-d2/public_html/lib/Credis/Client.php(362): Credis_Client->connect() #1 /home/the-d2/public_html/lib/Credis/Client.php(447): Credis_Client->connect() #2 /home/the-d2/public_html/lib/Credis/Client.php(440): Credis_Client->__call('select', Array) #3 /home/the-d2/public_html/lib/Cm/Cache/Backend/Redis.php(117): Credis_Client->select(0) #4 /home/the-d2/public_html/lib/Zend/Cache.php(153): Cm_Cache_Backend_Redis->__construct(Array) #5 /home/the-d2/public_html/lib/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #6 /home/the-d2/public_html

Read More
Uncategorized

Basic Packages for a fresh installed Ubuntu 16 / 18 / 19

sudo apt-get update sudo apt-get install shutter vlc vim screen wget -y 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 wget https://linux.palemoon.org/datastore/release/pminstaller-0.2.4.tar.bz2 bunzip2 pminstaller-0.2.4.tar.bz2 tar xvf pminstaller-0.2.4.tar bash pminstaller.sh rm -fr README pminstaller* google-chrome-stable_current_amd64.deb  

Read More
Uncategorized

List of Processes consuming most of the RAM/Memory with ps command – Linux

This command will list the processes which are consuming most of the RAM. I am using 'head -n 10' to list only top 10 memory intense process. You may remove it from the last. Command:- ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | head -n 10   5312.29 Mb /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/lib/mysql/server.the-d2.com.pid --socket=/var/lib/mysql/mysql.sock 1060.39 Mb /usr/bin/node /home/the-d2/public_html/main.js 426.16 Mb /usr/bin/clamscan - 363.12 Mb memcached -d -p 11211 -u memcached -m 1024 -c 1024 -P /var/run/memcached/memcached.pid -l 127.0.0.1 22

Read More