Some people blame that their server hard disk failure or bad sector. Actually can prevent this happen. You must understand the S.M.A.R.T that provide some informations in your hard disk. If any Raw Read Error Rate data is not 0 or more than 0, I suggest you change the hard disk now to prevent the Continue reading “Check Linux HDD before Failure”
Category Archives: Linux
Generate Shorewall blacklist from Spamhaus and DShield
vi /etc/shorewall/makeblacklist Paste the code below, and save it. #!/bin/sh echo “#ADDRESS/SUBNET PROTOCOL PORT” > /tmp/blacklist wget -q -O – http://feeds.dshield.org/block.txt | awk –posix ‘/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.0\t/ { print $1 “/24”;}’ >> /tmp/blacklist wget -q -O – http://www.spamhaus.org/drop/drop.lasso | awk –posix ‘/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\// { print $1;}’ >> /tmp/blacklist echo “#LAST LINE — ADD YOUR ENTRIES BEFORE THIS ONE Continue reading “Generate Shorewall blacklist from Spamhaus and DShield”
How to install Canon imageCLASS MF4380dn/MF4370dn/MF4350d/MF4320d in Ubuntu 10.04
Requirement: Printer must be connected via USB cable. Printer must be power on. Visit the website.
[Solved]Package adobe-flashplugin is virtual on 64bit Ubuntu 10.04
I’m setting up 64bit Ubuntu 10.04 LTS today and received this error “adobe-flashplugin is virtual”, which is listed here: https://bugs.launchpad.net/ubuntu/+source/apturl/+bug/554449. The fix was simple. Following the directions found here: https://help.ubuntu.com/community/RestrictedFormats/Flash You just need to install the 64 bit version from the PPA by executing the following:
Update server with custombuild in DirectAdmin 1.36.0
Update server with custombuild in DirectAdmin from 1.35.1 to 1.36.0 cd /usr/local/directadmin/customebuild ./build clean ./build options ./build versions ./build update_versions
[solved] /usr/local/mrtg-2/bin/rateup: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/local/lib/libgd.so.2)
/usr/local/mrtg-2/bin/rateup: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/lib/libgd.so.2) /usr/local/mrtg-2/bin/rateup: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/lib/libgd.so.2) /usr/local/mrtg-2/bin/rateup: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/local/lib/libgd.so.2) /usr/local/mrtg-2/bin/rateup: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/local/lib/libgd.so.2) vi /etc/crontab and edit the mrtg line by appending the >/dev/null 2>&1 at the end of line: */5 * Continue reading “[solved] /usr/local/mrtg-2/bin/rateup: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/local/lib/libgd.so.2)”
Update server with custombuild in DirectAdmin
Update server with Custombuild in DirectAdmin cd /usr/local/directadmin/ ./build clean ./build options ./build versions ./build update_versions [root@server custombuild]# ./build versions Latest version of DirectAdmin: 1.35.1 Installed version of DirectAdmin: 1.35.1 Latest version of Apache: 2.2.15 Installed version of Apache: 2.2.15 Latest version of ProFTPD: 1.3.2 Installed version of ProFTPD: 1.3.2 Latest version of autoconf: 2.65 Continue reading “Update server with custombuild in DirectAdmin”
MYSQL PERFORMANCE TUNING PRIMER and MySQLTuner 1.1.1
[root@server src]# ./tuning-primer.sh — MYSQL PERFORMANCE TUNING PRIMER — – By: Matthew Montgomery – MySQL Version 5.0.88-community-log i686 Uptime = 22 days 18 hrs 12 min 36 sec Avg. qps = 14 Total Questions = 28279137 Threads Connected = 4
[Solved] [error] (28) No space left on device: mod_python: Failed to create global mutex 2 of 8 (/tmp/mpmtx142352).
[Mon Mar 22 20:28:47 2010] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Mon Mar 22 20:28:47 2010] [notice] mod_python: using mutex_directory /tmp [Mon Mar 22 20:28:47 2010] [error] (28)No space left on device: mod_python: Failed to create global mutex 2 of 8 (/tmp/mpmtx142352). [Mon Mar 22 20:28:47 Continue reading “[Solved] [error] (28) No space left on device: mod_python: Failed to create global mutex 2 of 8 (/tmp/mpmtx142352).”
