Month: March 2009

Debian GNU/Linux device driver check

Debian GNU/Linux device driver check page http://kmuto.jp/debian/hcl/index.cgi Please paste your result of ‘lspci -n’ taken from GNU/Linux OS (such as Debian, Knoppix, RedHat, and so on) to below box. Then let’s push Check’ button. Nice results… You can use this nifty “lshw” tool today. lshw lists your hardware. Try it now: sudo lshw Find Hardware…


e – Extract Any Archive

With this little tool you can extract almost any archive in Linux so you do not need to remember which tool and what command lines are necessary. Usage: # Extract a zip file: e file.zip # Extract a rar file: e file.rar # Extract several archives, one after another: e a.tar.gz b.tar.bz2 c.cab d.deb e.rpm…


cleanbackups.sh

cleanbackups.sh chmod +x ./cleanbackups.sh


DNS

When you are new to web hosting or new to building websites in general, one of the first roadblocks you tend to encounter is domain name registration. Way back when, before I worked for Lunarpages, I saw a banner advertisement somewhere that said, “Get your domain name for $3/year!” Being the sucker that I was,…


Restart

restart spamd service exim restart spamd -d service spamassassin restart /etc/init.d/crond start /etc/init.d/crond stop /etc/init.d/crond restart /etc/init.d/exim restart /etc/init.d/cpanel restart /usr/local/cpanel/startup /etc/init.d/cpanel stop /etc/init.d/chkservd stop /etc/init.d/chkservd restart /etc/init.d/httpd stop /etc/init.d/mysql stop /etc/init.d/pure-ftpd stop /etc/init.d/exim stop /etc/init.d/named stop /etc/init.d/antirelayd stop /etc/init.d/mdmonitor stop /etc/init.d/portsentry stop /etc/init.d/apf stop /etc/init.d/syslog stop /etc/init.d/crond stop /etc/init.d/smartd stop /etc/init.d/rhnsd stop /etc/init.d/ipaliases stop…


Exitop

Exitop This is a perl-curses tool that parses the logs to show real time exim logfile usage. Emails sent from/to (host,user,domain), pretty handy. wget http://www.le.ac.uk/its/mcn4/exitop/exitop-0.04 Usage: tail -n 100000 -f /var/log/exim_mainlog | exitop


Linux Cheat Sheets

Cheat Sheets for all…. linuxcheatsheet-1 linuxcheatsheet-2 linuxcheatsheet-3 linuxcheatsheet-4 linuxcheatsheet-5 linuxcheatsheet-6 linuxcheatsheet-7 linuxcheatsheet-8 linux_command_line


Install APF Firewall

Login to your server through SSH and su to the root user. cd /root/downloads or another temporary folder where you store your files. wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz tar -xvzf apf-current.tar.gz cd apf-0.9.5-1/ or whatever the latest version is. Run the install file: ./install.sh You will receive a message saying it has been installed Installing APF 0.9.5-1: Completed….


Upgrade cpanel to mysql 5.1

You can upgrade from 5.0.x to 5.1.30 with cPanel scripts edit /var/cpanel/cpanel.config and set mysql-version=5.1 then execute /scripts/mysqlup then run /scripts/easyapache and then /scripts/perlinstaller –force Bundle::DBD::mysql to reset the new install ERROR! MySQL manager or server PID file could not be found! Solved: This error is caused by the my.cnf file that comes from mysql4…


DomainKeys Install

Here is a little script that will add domainkeys to all cpanel user accounts. #!/bin/bash for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done cd /var/named localdomains=$(cat /etc/localdomains | grep ‘^[^.]*\.[^.]*$’ | uniq -u) for i in $localdomains do echo “_domainkey IN TXT “t=y; o=~; n=Interim Sending Domain Policy; r=root@$HOSTNAME”” >> $i.db done wget http://layer3.liquidweb.com/updateserial.pl…