Install ClamAV on CentOS 6 Rumi, May 23, 2020 Step 1. First add yum repository your system. The EPEL repo is enabled by simply installing an RPM. Please use the command below to install the EPEL repository on your CentOS server. #CentOS 6 – 32-bit rpm -Uvh http://mirror.overthewire.com.au/pub/epel/6/i386/epel-release-6-8.noarch.rpm #CentOS 6 – 64-bit rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Step 2. Install required ClamAV packages. yum install clamav clamd Step 3. Start the clamd service on system boot. chkconfig clamd on service clamd start Update ClamAV’s signatures: freshclam Step 4. Configuring daily scan. In this example, I will configure a cronjob to scan the /home/ directory every day: nano /etc/cron.daily/clamav_scan Add following piece of code into clamav_scan file. #!/bin/bash SCAN_DIR="/home" LOG_FILE="/var/log/clamav/manual_clamscan.log" /usr/bin/clamscan -i -r $SCAN_DIR >> $LOG_FILE Give our cron script executable permissions: chmod +x /etc/cron.daily/clamav_scan Congratulation’s! You have successfully installed ClamAV. Thanks for using this tutorial for installing ClamAV in CentOS 6 system. Related Administrations Configurations (Linux) CentOSCentOS 6Clamv
Configuring SpamAssassin for Postfix on CentOS May 23, 2020 In the process of receiving email, spamassassin will stand between the outside world and the email services running on your server itself. If it finds, according to its definition rules and configuration, that an incoming message is spam, it will rewrite the subject line to clearly identify it as such…. Read More
Ubuntu old repository add November 21, 2018 If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive.ubuntu.com and security.ubuntu.com to old-releases.ubuntu.com. You can do this with sed: sudo sed -i -re ‘s/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list then update with: sudo apt-get update && sudo apt-get dist-upgrade Sometimes, it might be faster to create backups of your system and reinstall using supported release instead…. Read More
Importing Big mysqldump with Progress Bar PV June 6, 2014 I am using CentOS 6.4 box, so it requires me to install EPEL repo at the first place: $ rpm -Uhv http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Install pv using yum: $ yum install -y pv Installation done. Let the importing begin! $ pv /home/user/my_big_dump.sql | mysql -uroot -p For Ubuntu/Debian distribution intall PV… Read More