[Nottingham] Log in to X11 at boot

Paul reclusivegeek at yahoo.co.uk
Mon May 26 12:13:02 UTC 2014


Mike 

If you want to mail me directly reclusivegeek at yahoo.co.uk Would be happy
to give you my phone no and discuss the issues your having and can
probably better explain.

Paul 
 



On Mon, 2014-05-26 at 12:31 +0100, Mike Cardwell wrote:
> Hmm. Are you sure this has something to do with run levels? Just to be
> clear, if I ssh in and run "startx" it all works fine. I just want this
> to happen automatically at boot... Normally when I want things to happen
> automatically at boot, I run them from /etc/rc.local or cron, but this
> doesn't work for startx. I don't want to start up gnome or kde or get a
> graphical login prompt or anything like that, I just want this simple
> single x11 app to run as a particular user, automatically at boot.
> 
> Mike
> 
> * on the Mon, May 26, 2014 at 10:44:31AM +0100, Paul wrote:
> > 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
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > _______________________________________________
> > Nottingham mailing list
> > Nottingham at mailman.lug.org.uk
> > https://mailman.lug.org.uk/mailman/listinfo/nottingham
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham





More information about the Nottingham mailing list