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 [ 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:


by running

/sbin/ifconfig lo
/sbin/route add -net netmask 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.