Archive for December, 2006
How to disable DNS recursion on linux
By disabling recursive lookups on your server, you will help in the never ending battle against SPAM…
1. SSH Into your Server
2. Do a nano -w /etc/named.conf
3. Search for // query-source address * port 53;
4. Type Recursion no;
5. Save and Restart Bind
Posted: December 31st, 2006 under Linux, Firewalls and Security, WHM/cPanel.
Comments: none
emacs commands…who can remember them all?
This is a long…long…long list of comands for emacs.Emacs Commands List
C = Control
M = Meta = Alt|Esc
Basics
C-x C-f “find” file i.e. open/create a file in buffer
C-x C-s save the file
C-x C-w write the text to an alternate name
C-x C-v find alternate file
C-x i insert file at cursor position
C-x b create/switch buffers
C-x C-b show buffer list
C-x […]
Posted: December 30th, 2006 under Linux.
Comments: none
monload2
there is a great utility that will help to monitor and control processes on a linux box called monload2. It can be found at http://www.dei.isep.ipp.pt/~andre/extern/monload2.html
from the site…
The monitor program - how it works
We first address the high load mad process problem, that was easy, from time to time we run the ps command to check […]
Posted: December 30th, 2006 under Linux, Firewalls and Security.
Comments: none
changing a host name in WHM
while WHM gives you a fun menu item to change the hostname, be warned, it does not always work right… After putting in your new host name you might geta message about adding a A record and once you hit ok you might then get a BAD LICENSE FILE or similar massage…. do not fear, […]
Posted: December 4th, 2006 under Linux, Exim, WHM/cPanel.
Comments: none
looking for space hogs?
Here are a few commands strung together to find all the files that are more than 1000000c in size.
What is 1000000c? That would be character (unbuffered) special
find /var -size +1000000c -exec ls -l {} \;
a variation on this is to find large files that have been accessed in the last day
find /var -type f -size +2048b -mtime […]
Posted: December 2nd, 2006 under Linux, Firewalls and Security.
Comments: none
Too many tables
If you have a database with thousands of tables, mysql can be a pain when changing to use the database. Try starting it up with the mysql -A option instead.
Posted: December 2nd, 2006 under Linux, MYSQL.
Comments: none
backups in WHM
in case you ever want to manually kick off a backup immediately instead of letting the cron do it for you, just type in /scripts/cpbackup to start a backup from a command line
Posted: December 2nd, 2006 under WHM/cPanel.
Comments: none
AT&T aka att.net abuse address
AT&T once had a server of mine incorrectly listed in their spam filter. It took hours to find, but finally I found an address to get removed from the list. In case you ever need it here it is
abuse_rbl@att.net
Posted: December 2nd, 2006 under Exim, Firewalls and Security.
Comments: none