On Thu, May 1, 2014 at 12:30 PM, Артур Истомин <[email protected]> wrote: > On Thu, May 01, 2014 at 10:51:21AM +0200, 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 > > xhost + > sudo system-config-printer > xhost - # don't forget to do it after you're done with system-config-printer
If you're going to use xhost, use "xhost +SI:localuser:root" not "xhost +". -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: https://lists.debian.org/CAOdo=szg-z+d0ujj_-zc2qjv4wbaeb_5r6gagoy8l_hslde...@mail.gmail.com

