If you get problems like "cannot connect to display" or something similar try executing:
> xhost +
This normally occurs if you try to sudo (or su) to another user and try to run a X-app.
This will allow all applications running as any user to connect to the display.
You might need to export the Display again: export DISPLAY=:0.0