[email protected]:/home$ sudo gedit
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
(gedit:24385): Gtk-WARNING **: cannot open display: :0
[email protected]:/home$ xhost +
access control disabled, clients can connect from any host
[email protected]:/home$ sudo gedit