I´ve recently encountered 2 issues, that I can solve at least temporarily, but I´m looking for a permanent solution. The problems are:

-Azureus starting VERY slowly. (3 mins). On starting I see the following message ¨There appears to be another program process already listening on socket [127.0.0.1: 6880]

-Gedit starting and running VERY slowly when run with gksudo. Otherwise running normally.

I found a solution that worked for the Azureus issue here:

http://ubuntuforums.org/archive/index.php/t-216971.html

by running


/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

And much to my suprise, the gedit issue was resolved as well.

But can anyone tell me how to modify my settings to apply this solution permanently? I an Ubuntu novice, so forgive me if this is obvious.

Martin