ho provato anche:

sudo gedit /etc/X11/xorg.conf

ma di scrive: (gedit:5334): Gtk-WARNING **: cannot open display: