Install and configure ClamAV Antivirus on CentOS 6 Rumi, September 5, 2017 Enable EPEL repository CentOS 6.x 32-bit: # rpm –ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm CentOS 6.x 64-bit: # rpm –ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Check the repository list. # yum repolist Install required ClamAV packages # yum install clamav clamd Start the clamd service and set it to auto-start # /etc/init.d/clamd on # chkconfig clamd on # /etc/init.d/clamd start Update the virus definitions database using command: # /usr/bin/freshclam Note: ClamAV will update automatically, as part of /etc/cron.daily/freshclam.) Set the cron job on a daily / hour / weekly to perform scan . In below example , we are going to create a cronjob on daily to scan the folder /home/ # vi /etc/cron.daily/dailyscan #!/bin/bash SCAN_DIR="/home" LOG_FILE="/var/log/clamav/dailyscan.log" /usr/bin/clamscan -i -r $SCAN_DIR >> $LOG_FILE Set the executable permission # chmod +x /etc/cron.daily/dailyscan Related Administrations Configurations (Linux) CentOSCentOS6Clamav
Install Proxmox VE 6 on Debian 10 (Buster) October 25, 2019 Proxmox Virtual Environment (VE) is an enterprise-grade open-source server virtualization solution based on Debian Linux distribution with a modified Ubuntu LTS kernel. It allows you to deploy and manage both virtual machines and containers. This setup presumes you have a running Debian 10 Buster Linux server running. If you don’t… Read More
Email Alert for Host down using fping October 26, 2020 A simplified bash script for host status alert: #!/bin/bash email=h.t.emdad@gmail.com NBR_DOWN=0 LOGFILE=/tmp/pinglog.txt echo “Server Down Status” > $LOGFILE for i in $(cat ping.txt); do fping $i >/dev/null if [ $? -ne 0 ]; then echo “$i is down” >> $LOGFILE NBR_DOWN=$((NBR_DOWN+1)) fi done if [ $NBR_DOWN -gt 0 ]; then… Read More
Install phpIPAM on Ubuntu 20.04/18.04 December 25, 2021December 25, 2021 The objective of this guide is to help you Install and Configure phpIPAM on Ubuntu 20.04/18.04 Linux distribution. phpIPAM is an open-source php-based web IP address management application (IPAM). Its goal is to provide light, modern and useful IP address management. phpIPAM uses MySQL database backend and jQuery libraries, Ajax and HTML5/CSS3… Read More