I'm SSHing into my RPi, with X forwarding enabled. I'm trying to run gparted, but it seems to fail for me.
$ gksudo gparted
======================
libparted : 2.3
======================
The program 'gksudo' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
(Details: serial 229 error_code 10 request_code 130 minor_code 5)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
or
pi@raspberrypi:~$ sudo gparted
X11 connection rejected because of wrong authentication.
(gpartedbin:21437): Gtk-WARNING **: cannot open display: localhost:10.0
If I run plain gparted
, I get Root privileges are required for running gparted.
in STDOUT, but I also get a dialogue box pop up. I've also run gksudo leafpad
, which seems to work fine. How can I run gparted over ssh?