Audo login.
Terri Fischer
[email protected]
Wed, 10 Oct 2001 09:41:17 -0400
David Aitken writes on Wed, 10 Oct 2001 10:14:36 +1000:
DA> Is it possible to make PeeWeeLinux boot into a XWindows without having to
DA> make the user login? All I need is the user to be able to interact with my
DA> graphical XWindows based program on a touch screen computer.
DA> Thank You,
DA> David Aitken.
On mine, I created a shell script file:
/etc/rcS.d/95local
to be the last thing run at boot time (so, the '95' is higher than any
other file in rcS.d), containing as the final entry:
#!/bin/bash
echo starting X as root
su - root -c /root/my.autostart &
Then, in the file /root/my.autostart:
#! /bin/bash
# Source /etc/profile since don't seem to automatically be getting the PATH
source /etc/profile
# /etc/X11/xinit/xinitrc has the startup for X and my program
startx
Where /etc/X11/xinit/xinitrc launches the program I want to take over
the screen as well as the window manager.
I wouldn't be surprised if there's an easier way (like just running
'startx' on the su line). I did this a year or so ago and haven't
changed it since. I do mine as root, but you may not have to.
Good luck,
Terri
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Terri L. Fischer [email protected]
New England Research, Inc.
White River Jct., VT
---------------------------------------------------
See the list archives at http://adis.on.ca/archives/
See the PWL homepage at http://peeweelinux.com
---------------------------------------------------