WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Auto login  (Read 2280 times)

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Auto login
« 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?

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Auto login
« Reply #1 on: July 18, 2012, 10:16:12 AM »
Edit .xsession and replace the "$DESKTOP" line with your replacement.
10+ Years Contributing to Linux Open Source Projects.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Auto login
« Reply #2 on: July 18, 2012, 10:36:22 AM »
Thanks I'll try that but what about auto login. I'm new to Linux!.
Thanks.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Auto login
« Reply #3 on: July 18, 2012, 10:48:44 AM »
autologin is the default.
10+ Years Contributing to Linux Open Source Projects.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Auto login
« Reply #4 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!!!

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Auto login
« Reply #5 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

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Auto login
« Reply #6 on: July 18, 2012, 11:11:16 AM »
Oops sorry my mystake!!

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Auto login
« Reply #7 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 &

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Auto login
« Reply #8 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?

Offline lverns

  • Newbie
  • *
  • Posts: 29
Re: Auto login
« Reply #9 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. 

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Auto login
« Reply #10 on: July 25, 2012, 10:02:50 AM »
Thanks for the detailed explanation.