Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.056 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'subject:: [': 0.04; 'defaults': 0.07; 'rejected': 0.09; 'python': 0.11; 'expected,': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'folks': 0.16; 'wrote:': 0.18; 'work,': 0.20; 'subject:] ': 0.20; 'header:User-Agent:1': 0.23; 'subject:problem': 0.24; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'specified': 0.30; 'lines': 0.31; 'jean': 0.31; 'file': 0.32; 'linux': 0.33; 'worked': 0.33; 'running': 0.33; 'subject:with': 0.35; 'connection': 0.35; 'add': 0.35; 'really': 0.36; 'set.': 0.36; 'method': 0.36; 'wrong': 0.37; 'list.': 0.37; 'starting': 0.37; 'sometimes': 0.38; 'message-id:@gmail.com': 0.38; 'server': 0.38; 'to:addr:python-list': 0.38; 'short': 0.38; 'anything': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'forum': 0.61; 'new': 0.61; 'matter': 0.61; "you'll": 0.62; 'fact,': 0.69; 'future,': 0.83; '(probably': 0.84; 'answer:': 0.84; 'skip:/ 30': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Sun, 22 Dec 2013 10:06:39 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: [OT] vnc-problem with idle running as sudo on raspberry pi References: <6fc90651-e42f-444d-a6de-2ca030cc9110@googlegroups.com> In-Reply-To: <6fc90651-e42f-444d-a6de-2ca030cc9110@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387732036 news.xs4all.nl 2867 [2001:888:2000:d::a6]:49948 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62533 On 12/22/2013 06:27 AM, Jean Dubois wrote: > I was wrong writing idle_as_root worked this way. As a matter of fact, > this method also does not work as expected, as can be seen from this > message: > > X11 connection rejected because of wrong authentication. > > New 'X' desktop is raspberrypi:1 > > Starting applications specified in /home/pi/.vnc/xstartup > Log file is /home/pi/.vnc/raspberrypi:1.log > > Starting TightVNC server for pi In future, I suspect you'll need to take questions like this that don't really have anything to do with Python to a Raspberry Pi forum or e-mail list. Or a general Linux list. Short answer: Edit /etc/sudoers and add this line somewhere in it (probably near other lines that look similar): Defaults env_keep += "DISPLAY XAUTHORITY" If that doesn't work, then you'll have to talk to folks running the Rasbian on their Pi. Sometimes XAUTHORITY isn't set.