[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to start X during bootup as user



  About starting X from init.
  ---------------------------

This works:

  # tail -1 /etc/inittab
  t0:2:respawn:/root/bin/runx
  # cat /root/bin/runx
  #!/bin/sh

  /usr/bin/X11/X :1 vt10 &
  pid=$!
  sleep 2
  export DISPLAY=:1
  set > /tmp/set.log
  /usr/bin/X11/xterm >& /tmp/x.log # or your X application
  kill $!  # or wait $!
  # grep PATH /tmp/set.log 
  PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
  # pstree
  init-+-atd
...
       |-runx-+-XF86_SVGA
       |      `-xterm---bash
...

And init restarts X when your application finishes.
You have probably missed setting PATH to the right thing.

Regards,
/Karl

-----------------------------------------------------------------------
Karl Hammar                    Aspö Data           karl@kalle.csb.ki.se
Lilla Aspö 2340             +46  173 140 57                    Networks
S-742 94 Östhammar         +46  70 511 97 84                  Computers
Sweden                                                       Consulting
-----------------------------------------------------------------------


From: Joshua Shagam <joshagam@cs.nmsu.edu>
Subject: Re: How to start X during bootup as user
Date: Fri, 8 Dec 2000 09:07:04 -0700

> On Fri, Dec 08, 2000 at 09:51:07AM +0100, Cajus Pollmeier wrote:
> > Am Friday 08 December 2000 09:33 schrieb Joshua Shagam:
> > > Ah, okay, that makes more sense.  The shellscript is probably the easiest
> > > way in that case.  Try starting up a getty using your shellscript instead
> > > of /bin/login; I believe you'd want to add '-l /path/to/the/shellscript' to
> > > the end of one of your getty lines in your /etc/inittab.
> > 
> > Currently I'm trying it this way:
> > X:2:respawn:/etc/init.d/kiosk 
> > 
> > But it doesn't work the way as expected - same error than before. What do you 
> > mean with "-l ...."? I can't find any options starting with "-l" for getty.
> 
> At least in the version of getty I have installed (in util-linux 2.10q-1),
> -l specifies an alternate to /bin/login:
> 
>        getty  [-ihLmnw]  [-f  issue_file]  [-l login_program] [-I
>        init] [-t  timeout]  [-H  login_host]  port  baud_rate,...
>        [term]
> 
> 	...
> 
>        -l login_program
>               Invoke   the  specified  login_program  instead  of
>               /bin/login.  This allows the use of a  non-standard
>               login  program  (for  example,  one that asks for a
>               dial-up password or that uses a different  password
>               file).
> 
> 
> -- 
> Joshua Shagam                  /"\ ASCII Ribbon Campaign
> joshagam@cs.nmsu.edu           \ / No HTML/RTF in email
> www.cs.nmsu.edu/~joshagam       X  No Word docs in email
> mp3.com/fluffyporcupine        / \ Respect for open standards
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-x-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: