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

Date 2013-12-23 08:29 -0700
From Michael Torrie <torriem@gmail.com>
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>
Newsgroups comp.lang.python
Message-ID <mailman.4562.1387812576.18130.python-list@python.org> (permalink)

Show all headers | 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