I was trying to run my web browser (Iceweasel) on my netbook as root through the Konsole but came across the following:

Invalid MIT-MAGIC-COOKIE-1 KeyError: error cannot open display: 0:0

The fix is simple, just follow the steps below.

Go into the konsole as normal user and run:

xhost +

Then go into root:

su -

And type:

export DISPLAY=:0.0

Then the browser should run with root privileges without any issues:

iceweasel