Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: mbertrand on July 18, 2012, 08:58:12 AM

Title: Auto login
Post by: mbertrand on July 18, 2012, 08:58:12 AM
We have a control program built in QT to run on x. I need this program to automatically start as the main program instead of tiny cores desktop.

What would be the best way to auto login and achieve this?
Title: Re: Auto login
Post by: roberts on July 18, 2012, 10:16:12 AM
Edit .xsession and replace the "$DESKTOP" line with your replacement.
Title: Re: Auto login
Post by: mbertrand on July 18, 2012, 10:36:22 AM
Thanks I'll try that but what about auto login. I'm new to Linux!.
Thanks.
Title: Re: Auto login
Post by: roberts on July 18, 2012, 10:48:44 AM
autologin is the default.
Title: Re: Auto login
Post by: mbertrand on July 18, 2012, 11:06:32 AM
That's right I forgot, thanks. I'm trying it now. I'm almost finished configuring my system!!!
Title: Re: Auto login
Post by: mbertrand on July 18, 2012, 11:09:30 AM
Problem, I replaced the $DESKTOP with name of my program with full path and now I have a black screen with blinking caret
Title: Re: Auto login
Post by: mbertrand on July 18, 2012, 11:11:16 AM
Oops sorry my mystake!!
Title: Re: Auto login
Post by: mbertrand on July 18, 2012, 11:17:28 AM
Xvesa -br -screen 1024x768x32 -shadow -2button -mouse /dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
I know I'm becomming a pain!
This is my .xsession.
I replaced $DESKTOP with my program but touch no longer working

"/home/tc/PT455.sh" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x ./.setbackground ] && ./.setbackground
[ -x ./.mouse_config ] && ./.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d ".X.d" ] && find ".X.d" -type f -print | while read F; do . "$F"; done
killall xvtouch
#xvtouch /dev/input/event1 &
xvtouch /dev/input/by-id/usb-Hampshire_Company_TSHARC_Analog_Resistive-event-if00 &
x11vnc -gui tray &
Title: Re: Auto login
Post by: mbertrand on July 18, 2012, 11:50:55 AM
OK, I moved my touch screen lines back up and after waitforx

So now my application is running on boot with touch screen enabled. But I just realized that when I close my application I'm at the Tiny Core desktop I was expecting to be at a prompt. I'm I running my application over the desktop?
Title: Re: Auto login
Post by: lverns on July 20, 2012, 10:55:06 PM
[Am] I running my application over the desktop?
Yes, you are running your application over the desktop. (I'm assuming that ~/.xsession looks about like Reply #7 on your machine.)


This:
Quote
Xvesa -br -screen 1024x768x32 -shadow -2button -mouse /dev/input/mice,5 -nolisten tcp -I >/dev/null 2>&1 &
starts Xvesa.

This:
Quote
[ -x ./.setbackground ] && ./.setbackground
configures the root pane.

This:
Quote
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
starts wbar if it is installed. 
Title: Re: Auto login
Post by: mbertrand on July 25, 2012, 10:02:50 AM
Thanks for the detailed explanation.