Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62635

Re: [OT] vnc-problem with idle running as sudo on raspberry pi

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!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 <torriem+gmail@torriefamily.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:: [': 0.04; 'root': 0.05; 'ide': 0.09; 'python': 0.11; '_after_': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'googling': 0.16; 'sudo': 0.16; 'wrote:': 0.18; 'work,': 0.20; 'subject:] ': 0.20; 'command': 0.22; 'putting': 0.22; 'header :User-Agent:1': 0.23; 'necessary.': 0.24; 'subject:problem': 0.24; 'suggested': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'am,': 0.29; "doesn't": 0.30; 'work.': 0.31; 'jean': 0.31; 'lies': 0.31; 'with,': 0.31; 'running': 0.33; 'subject:with': 0.35; 'something': 0.35; 'but': 0.35; 'idle': 0.36; 'skip:~ 10': 0.36; "didn't": 0.36; 'thanks': 0.36; 'sometimes': 0.38; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'is.': 0.60; 'most': 0.60; 'mentioned': 0.61; 'kind': 0.63; 'close': 0.67
X-Virus-Scanned amavisd-new at torriefamily.org
Date Mon, 23 Dec 2013 08:29:09 -0700
From Michael Torrie <torriem@gmail.com>
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 <b0b2ea81-0051-4e59-9b91-67cd9decbcab@googlegroups.com> <6fc90651-e42f-444d-a6de-2ca030cc9110@googlegroups.com> <mailman.4493.1387732035.18130.python-list@python.org> <f5a0c02d-2cbd-47e8-820c-77dd67e28a0e@googlegroups.com>
In-Reply-To <f5a0c02d-2cbd-47e8-820c-77dd67e28a0e@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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4562.1387812576.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1387812576 news.xs4all.nl 2895 [2001:888:2000:d::a6]:47755
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62635

Show key headers only | View raw


On 12/23/2013 07:06 AM, Jean Dubois wrote:
> I thought this would be something python-people are familiar with, after
> all idle is a Python IDE and running it as a root sometimes is necessary.

On most desktop distros like Fedora, sudo idle would indeed work.

The fact that it's not working on your pi, means it must be specific to
the distro that your pi is running.  And by the way you never mentioned
what distro this is.

> Anyway,
> I tried out your suggestion but it didn't work, however googling the line
> you suggested brought me close to a solution:

The solution likely lies in understanding how MIT-Cookie's work with X11
and how to use xauth.

> the following command does the trick:
> xhost +local:root 
> 
> unfortunately putting it in ~/.bash_profile doesn't make it work
> automatically
> after booting, neither does putting it in ~/.xsession, in ~/.xinitrc nor
> in an autostart-file in ~/.config/openbox/ 
> putting it in .bashrc does work _after_ opening a terminal which isn't
> very nice.
> 
> thanks and kind regards,
> jean

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

vnc-problem with idle running as sudo on raspberry pi Jean Dubois <jeandubois314@gmail.com> - 2013-12-22 05:02 -0800
  Re: vnc-problem with idle running as sudo on raspberry pi Jean Dubois <jeandubois314@gmail.com> - 2013-12-22 05:27 -0800
    Re: [OT] vnc-problem with idle running as sudo on raspberry pi Michael Torrie <torriem@gmail.com> - 2013-12-22 10:06 -0700
      Re: [OT] vnc-problem with idle running as sudo on raspberry pi Jean Dubois <jeandubois314@gmail.com> - 2013-12-23 06:06 -0800
        Re: [OT] vnc-problem with idle running as sudo on raspberry pi Michael Torrie <torriem@gmail.com> - 2013-12-23 08:29 -0700
          Re: [OT] vnc-problem with idle running as sudo on raspberry pi Jean Dubois <jeandubois314@gmail.com> - 2013-12-23 09:02 -0800

csiph-web