Archive for the ‘ Linux ’ Category

Limit the amount of connections to any port with iptables

This morning we had a DDOS attack on our mail server. Some @$$ trying to swamp our postfix service with hundreds of connections. SO, I did something I did not want to do, but, oh well.

This following bit below will explain a few things and will allow you to limit the amount of active connections to any port on your server with iptables.

Read more

Change Background Picture and Theme on GDM Login Manager

If you’re looking to customize your GDM login on Ubuntu 10.04, 10.10 and I’m sure in the near future 11.04, it’s pretty straight forward and easy to do. There are some important notes at the end of this. So read through or, I warned you.

Read more

Xorg Memory Leak Fix for Lucid 10.04 and Maverick 10.10 ATI Proprietary fglrx

As much as this should be fixed by now, it is not. A real and true memory leak fix does not exist and probably won’t for quite some time. However, the bash script below will free memory in X every 60 seconds when using the proprietary fglrx driver. I am not sure if the memory leak is in fglrx or X. The leaks do not exist on the open source drivers, but, who knows.
Read more

ATI Catalyst 9.9 / fglrx 8.650 Installation

When upgrading the fglrx driver, don’t get lazy about removing the previous version. Besides the old configuration possibly still in use after a reboot, you get serious memory leaks in Xorg caused by the ATI Catalyst driver that resemble the same leak you get when using the driver provided by envyng.

Removal and installation is really straight forward and there is only a few extra steps. I keep my drivers in separate folders for each version. All commands are displayed as if you were in the working folder for that driver and ONLY that driver version.
Read more

Postfix catch-all. The proper way…

An issue I recently encountered with some mail servers was poor MTA reputation. Even though the servers were only used for corporate email, somehow their MTA is poor at senderbase, even though none of the IP’s are on a single RBL/SBL. This is partly due to Slicehost having bad IP blocks and the method they use for assigning IP’s to new slices. But I believe the issue can be resolved with good history.
Read more

Evolution Mail 2.26.1 – Not deleting trash

After switching from windoz to Linux, I immediately started using Evolution Mail after being an Outlook user for many years. Evolution in many ways is better than Outlook besides being free, but there is a small issue.

Sometimes, somehow and someway the client loses sync with folders and this little bash script will fix the problem. I originally found this on the Ubuntu forums a few months ago.


#!/bin/bash
# see http://ubuntuforums.org/showthread.php?t=974536
cd $HOME/.evolution/mail
echo "Deleting .index(s)";
find -name "*.index" -exec rm {} \;
echo "Deleting .ev-summary(s)";
find -name "*.ev-summary" -exec rm {} \;
echo "Deleting .cmeta(s)";
find -name "*.cmeta" -exec rm {} \;
echo "Done.";

Adjusting Contrast, Brightness and Gamma on fglrx 9.5+

ATI has made a change in their fglrx catalyst drivers (9.5+) where setting the gamma in xorg.conf no longer works and is ignored when starting.

In my previous post I went over setting and making these adjustments. The previous methods for Contrast and Brightness remain. However for gamma, the only way and previously existing method is now using fglrx_xgamma.

In terminal;

fglrx_xgamma -c 0 -gamma .85

This setting will be immediately applied and also after restarting.