Re: jessie: unable to run remote graphical program with sudo
On Tuesday 26 May 2015 23:01:41 D. R. Evans wrote:
> Lisi Reisz wrote on 05/26/2015 02:30 PM:
> > On Tuesday 26 May 2015 20:43:57 D. R. Evans wrote:
> >> What is wrong and how do I fix it so that I can run graphical programs
> >> across the network using sudo?
> >>
> >> I'm sure it's just a simple configuration issue, but my google-fu seems
> >> to be lacking today.
> >
> > By default one cannot log into a graphical root session in Debian.
>
> I'm not trying to "log into a graphical root session". I'm trying to run a
> graphical program that has to run as root.
And the difference is? By default it cannot be done. You need someone who
knows your exact set-up to tell you the workaraound. In KDE it is kdesu and
in Gnome it is gksu (I think). But from a GUI.
Here is my attempt to run a graphical program as root from a console on my
Wheezy desktop:
lisi@Tux-II:~$ su
Password:
root@Tux-II:/home/lisi# iceweasel
No protocol specified
No protocol specified
Error: cannot open display: :0
root@Tux-II:/home/lisi# su lisi
lisi@Tux-II:~$ iceweasel
And it launched.
By default root can't run a graphical program any more than it can run a GUI.
Lisi
Lisi
Reply to: