Simply adjust / sync your server’s clock in case you get the following error message while using aws-cli – “AWS was not able to validate the provided access credentials”
Category Archives: HowTo
CentOS: Clear cached memory
gem install rmagick – Can’t find Magick-config (CentOS 6)
In case you receive the mentioned error while trying to install rmagick then simply issue the following:
# yum install ImageMagick-devel
Once ImageMagick-devel is installed then you can retry installing rmagick using:
# gem install rmagick
Fix: send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
Here’s how to fix the following Postfix issue:
send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
send-mail: warning: inet_protocols: configuring for IPv4 support only
postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
postdrop: warning: inet_protocols: configuring for IPv4 support only
# /usr/sbin/postconf | grep inet_protocols
inet_protocols = all
# vi /etc/postfix/main.cf
Search for: inet_protocols and change it from “inet_protocols = all” to “inet_protocols = ipv4”
Save /etc/postfix/main.cf and and restart Postfix service:
# /etc/init.d/postfix restart
HOWTO INSTALL RKHUNTER (QUICK GUIDE)
HOWTO INSTALL RKHUNTER (QUICK GUIDE)
1. Download the later rkhunger version from sf.net: http://sourceforge.net/projects/rkhunter/
2. shell# tar -zxvf tar -zxvf rkhunter-1.4.0.tar.gz
3. shell# cd rkhunter-1.4.0
4. shell# ./installer.sh –layout default –install
5. shell# /usr/local/bin/rkhunter –update
6. shell# /usr/local/bin/rkhunter –propupd
7. shell# vi /etc/cron.daily/rkhunter.sh
8: Add the following configuration to rkhunter.sh cron script:
-=-=- cut -=-=-
#!/bin/sh
(
/usr/local/bin/rkhunter –versioncheck
/usr/local/bin/rkhunter –update
/usr/local/bin/rkhunter –cronjob –report-warnings-only
) | /bin/mail -s ‘rkhunter Daily Run (PutYourServerNameHere)’ your@email.here
-=-=- end -=-=-
9. chmod 700 /etc/cron.daily/rkhunter.sh
10. You’re good to go 🙂