Error opening terminal with root privilege in suse

Hi,
Recently I switched over from Ubuntu to open suse 11. Everything is setup perfectly except for the fact that any command i run with root privileges, I get this error:

**(gedit:9295): Gtk-WARNING : cannot open display:

Can anyone please tell me the solution for this? A quick search in google did not help me much.

Cheers

How exactly you try to run the commands as root, within a terminal, with su? Did you try sudo?

Hi,
I tried the methods mentioned below:
sudo gedit
su–> passwd for root–> gedit
All within a terminal

You should use this variant in openSUSE: gnomesu gedit

Thank you very much for the help. The problem is solved

And a big thanks from me, am an Ubuntu user but have just installed SUSE for a try and have been trolling the 'net all day looking for an answer to this. Solved.

It’s a tricky one. Imagine how frustrated I felt in Ubuntu typing gnomesu gedit and nothing happened. lol! At least Ubuntui said the package wasn’t installed which gave me a clue about sudo after a few minutes.

And for the Kubuntu expats, “kdesu kwrite” is a big tip.