[Nottingham] Log in to X11 at boot
Paul
reclusivegeek at yahoo.co.uk
Mon May 26 09:45:10 UTC 2014
Hi
Sorry a bit late in replying but the problem is to do with Kernel run
levels. To start X windows you need runlevel 5 where for text login with
network you only need runlevel 4. This might help you and explains
kernel run levels.
http://www.debian-administration.org/articles/212
Paul
On Sat, 2014-05-24 at 16:50 +0100, Martin wrote:
> On 24/05/14 09:02, Mike Cardwell wrote:
> > I purchased a small 2.8" touchscreen for one of my Raspberry Pi's. I
> > wrote a small X11 app and then added the path to it to my "pi" users
> > ~/.xinitrc. If I ssh in and run startx, the app begins and displays
> > on screen. I can't figure out how to get this to happen automatically
> > at boot though. I've tried adding it to /etc/rc.local, and as a
> > "@reboot" cron job. I even replicated the act of ssh'ing and and
> > running "startx" by setting up ssh keys and running "ssh localhost
> > startx" to cron, to no avail.
> >
> > I'm sure I'm missing something fundemental about how this is
> > supposed to work. Any ideas?
>
> Mmmm... Never needed to do that!
>
> You'll need to have some non-root user with the appropriate groups set
> (video?) to run the startx... su "non-root" needed?
>
>
> Or might you just need the access to the X11 display screen enabling to
> allow other processes?
>
> For whichever shell has run the startx, issue the command:
>
> xhost +si:localuser:other_user_for_access
>
> to allow "other_user_for_access" to do things to the display screen.
>
>
> Take a look at what the various login display managers do?
>
> And trying to use ssh is going to be awfully confusing for whether
> things are getting X-forwarded back over ssh!...
>
>
> Good luck?!
> Others??
>
>
> > Here's the touchscreen in case you're interested:
> >
> > https://www.adafruit.com/products/1601
>
> Great fun but also...
>
> Is that better than rooting a cheapie graphics pad for similarly swish
> fun for similar price and effort?
>
> :-)
>
>
> Cheers,
> Martin
>
>
>
More information about the Nottingham
mailing list