Re: sudo in X-environment
On 01/05/14 18:51, Johann Spies wrote:
> For years I have used sudo both in server administration and on the
> desktop.
>
> Lately I get the following error message and I do not really know what
> to do about it other than logging into the xserver as root - which I do
> not want to do:
>
> $ sudo system-config-printer
>
> No protocol specified
> error: XDG_RUNTIME_DIR not set in the environment.
> Unable to init server: Could not connect: Connection refused
> No protocol specified
>
> ** (system-config-printer.py:5632): WARNING **: Could not open X display
> No protocol specified
> error: XDG_RUNTIME_DIR not set in the environment.
> Unable to init server: Could not connect: Connection refused
> No protocol specified
> error: XDG_RUNTIME_DIR not set in the environment.
> Unable to init server: Could not connect: Connection refused
>
> Why is it now a problem while previously I had no hassles?
>
> How do I solve it?
Usually you would use the graphical su from your de, unless you have no
de...
Use sux
apt-get install sux
x wrapper for su.
>
> 3.10-2-amd64 #1 SMP Debian 3.10.7-1 (2013-08-17) x86_64 GNU/Linux
>
> Regards
> Johann
>
Kind regards
Reply to: