WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Boot sequence - what starts xvesa xserver?  (Read 4226 times)

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Boot sequence - what starts xvesa xserver?
« on: June 11, 2009, 03:53:14 PM »
I've been digging in a little deeper into tc trying to understand the boot sequence. 

inittab -> init.d/rcS -> tc-config -> desktop.sh -> wbar.sh & jwm_restart ... etc

and can't quite see how the Xvesa Server starts up.

I see /tmp/xsetup_requested &  /etc/sysconfig/Xserver get set in tc-config but what actually uses these variables?
big pc man

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Boot sequence - what starts xvesa xserver?
« Reply #1 on: June 11, 2009, 04:02:38 PM »
~/.xsession is what starts Xvesa.

xsetup_requested is a marker to show the resolution/mouse wizard when requested with the boot code.
/etc/sysconfig/Xserver is an automatic way to use another X server in Micro Core.
The only barriers that can stop you are the ones you create yourself.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: Boot sequence - what starts xvesa xserver?
« Reply #2 on: June 11, 2009, 04:05:31 PM »
~/.xsession is what starts Xvesa.

xsetup_requested is a marker to show the resolution/mouse wizard when requested with the boot code.
/etc/sysconfig/Xserver is an automatic way to use another X server in Micro Core.
Thanks, that moves me along a bit. But what calls ~/.xsession? Can you take me from tc-config to ~/.xsession?
big pc man

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Boot sequence - what starts xvesa xserver?
« Reply #3 on: June 11, 2009, 04:15:18 PM »
Sure :)

tc-config doesn't call anything, after that the ball is back to init.
Init then launches what it is told to do after-boot; it autologins as root.
Root immediately logs in as user tc, using exec to not leave a root shell behind.
As user tc logs in, his login profile is executed. This checks for the bootcode "text", and if not present, starts X by starting .xsession.

Or, file by file:
init -> tc-config -> init -> /root/.profile -> /home/tc/.profile -> /home/tc/.xsession
The only barriers that can stop you are the ones you create yourself.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: Boot sequence - what starts xvesa xserver?
« Reply #4 on: June 11, 2009, 04:25:14 PM »
Thank you!  :D That's what I was looking for. Now I get it.
big pc man