Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Graphic session on console
@ 2002-05-27 14:16 Fabrice Rafart
  2002-05-28  5:54 ` bastion_diode
  0 siblings, 1 reply; 6+ messages in thread
From: Fabrice Rafart @ 2002-05-27 14:16 UTC (permalink / raw)


Hello,

How can I launch a graphic session on the console in Tru64 4.0F. It's
work with graphic login but I want just launch a session time by time
then, I disable graphic login but I don't know how launch a "stand
alone" session ?

Best regards,


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Graphic session on console
  2002-05-27 14:16 Graphic session on console Fabrice Rafart
@ 2002-05-28  5:54 ` bastion_diode
  2002-05-28 13:15   ` Fabrice Rafart
  0 siblings, 1 reply; 6+ messages in thread
From: bastion_diode @ 2002-05-28  5:54 UTC (permalink / raw)


cd /sbin/init.d/ and fire up the xlogin startup script.

On 27 May 2002 07:16:29 -0700, frafart@chez.com (Fabrice Rafart)
wrote:

>Hello,
>
>How can I launch a graphic session on the console in Tru64 4.0F. It's
>work with graphic login but I want just launch a session time by time
>then, I disable graphic login but I don't know how launch a "stand
>alone" session ?
>
>Best regards,



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Graphic session on console
  2002-05-28  5:54 ` bastion_diode
@ 2002-05-28 13:15   ` Fabrice Rafart
  2002-05-28 17:12     ` Timo Felbinger
  0 siblings, 1 reply; 6+ messages in thread
From: Fabrice Rafart @ 2002-05-28 13:15 UTC (permalink / raw)


bastion_diode@yahoo.com wrote in message news:<ts66fus9m2pv8qvk5b4kv81gvnbje54676@4ax.com>...
> cd /sbin/init.d/ and fire up the xlogin startup script.

I don't really understand the meanning of "fire up" but this script
serve to launch a graphical login session, I just want a graphical
session, like I launch startx on linux.

Yet, I do :
/sbin/init.d/xlogin start, works ... then exit for CDE and
/sbin/ini.d/xlogin/stop but I found it isn't very clean.

> On 27 May 2002 07:16:29 -0700, frafart@chez.com (Fabrice Rafart)
> wrote:
> 
> >Hello,
> >
> >How can I launch a graphic session on the console in Tru64 4.0F. It's
> >work with graphic login but I want just launch a session time by time
> >then, I disable graphic login but I don't know how launch a "stand
> >alone" session ?
> >
> >Best regards,


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Graphic session on console
  2002-05-28 13:15   ` Fabrice Rafart
@ 2002-05-28 17:12     ` Timo Felbinger
  2002-05-29 14:16       ` Fabrice Rafart
  0 siblings, 1 reply; 6+ messages in thread
From: Timo Felbinger @ 2002-05-28 17:12 UTC (permalink / raw)




On 28 May 2002, Fabrice Rafart wrote:

> bastion_diode@yahoo.com wrote in message news:<ts66fus9m2pv8qvk5b4kv81gvnbje54676@4ax.com>...
> > cd /sbin/init.d/ and fire up the xlogin startup script.
>
> I don't really understand the meanning of "fire up" but this script
> serve to launch a graphical login session, I just want a graphical
> session, like I launch startx on linux.
>
> Yet, I do :
> /sbin/init.d/xlogin start, works ... then exit for CDE and
> /sbin/ini.d/xlogin/stop but I found it isn't very clean.

Well, if you want to do it in a _very_ basic way, you must, at a
minimum, achieve two things:
  - start the X server
  - start (at least) one first client
You could start experimenting with a script like like this:

  #!/bin/sh

  DISPLAY=:0.0
  export DISPLAY
  Xdec &
  xpid=$!
  sleep 5
  dxterm
  kill $xpid

This is about the minimum you need to get a graphical session
running (and get out of it again). However:
 - Xdec needs root privileges, so you must either be root, or use
   some wrapper (like, sudo), or make Xdec SUID root (which may not
   be a good idea).
 - The script above may open up a gaping security hole unless you add
   some access control; this part is explained in
     man Xsecurity
 - In order for the session to be actually usable, you will also need
   to start some window manager: mwm comes with Tru64 (I think).
   fvwm2 (common on Linux) compiles smoothly on Tru64.
   You can start it manually from the dxterm for testing; if it works,
   you can start the window manager _instead_ of the dxterm as your
   first client.

Regards,

Timo Felbinger


-- 
Timo Felbinger           <Timo.Felbinger@quantum.physik.uni-potsdam.de>
Quantum Physics Group    http://www.quantum.physik.uni-potsdam.de
Institut fuer Physik     Tel: +49 331 977 1793      Fax: -1767
Universitaet Potsdam, Germany



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Graphic session on console
  2002-05-28 17:12     ` Timo Felbinger
@ 2002-05-29 14:16       ` Fabrice Rafart
  2002-05-29 16:14         ` Adam Price
  0 siblings, 1 reply; 6+ messages in thread
From: Fabrice Rafart @ 2002-05-29 14:16 UTC (permalink / raw)


Timo Felbinger <Timo.Felbinger@quantum.physik.uni-potsdam.de> wrote in message news:<Pine.LNX.4.33.0205281804010.480-100000@uranos.quantum.physik.uni-potsdam.de>...
> On 28 May 2002, Fabrice Rafart wrote:
> 
> > bastion_diode@yahoo.com wrote in message news:<ts66fus9m2pv8qvk5b4kv81gvnbje54676@4ax.com>...
> > > cd /sbin/init.d/ and fire up the xlogin startup script.
> >
> > I don't really understand the meanning of "fire up" but this script
> > serve to launch a graphical login session, I just want a graphical
> > session, like I launch startx on linux.
> >
> > Yet, I do :
> > /sbin/init.d/xlogin start, works ... then exit for CDE and
> > /sbin/ini.d/xlogin/stop but I found it isn't very clean.
> 
> Well, if you want to do it in a _very_ basic way, you must, at a
> minimum, achieve two things:
>   - start the X server
>   - start (at least) one first client
> You could start experimenting with a script like like this:
> 
>   #!/bin/sh
> 
>   DISPLAY=:0.0
>   export DISPLAY
>   Xdec &
>   xpid=$!
>   sleep 5
>   dxterm
>   kill $xpid

Ok, it's work but it isn't really usable. I try with mwm but there do
nothing and dtwm, it's work but I can't launch dxterm (via the icon).
I think I will use /sbin/init.d/xlogin start|stop for the very few
time I need graphical session.

Thnaks.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Graphic session on console
  2002-05-29 14:16       ` Fabrice Rafart
@ 2002-05-29 16:14         ` Adam Price
  0 siblings, 0 replies; 6+ messages in thread
From: Adam Price @ 2002-05-29 16:14 UTC (permalink / raw)



"Fabrice Rafart" <frafart@chez.com> wrote in message news:d85f7b1b.0205290616.57f117e8@posting.google.com...
> Timo Felbinger <Timo.Felbinger@quantum.physik.uni-potsdam.de> wrote in message
news:<Pine.LNX.4.33.0205281804010.480-100000@uranos.quantum.physik.uni-potsdam.de>...
> > On 28 May 2002, Fabrice Rafart wrote:
> >
> > > bastion_diode@yahoo.com wrote in message news:<ts66fus9m2pv8qvk5b4kv81gvnbje54676@4ax.com>...
> > > > cd /sbin/init.d/ and fire up the xlogin startup script.
> > >
> > > I don't really understand the meanning of "fire up" but this script
> > > serve to launch a graphical login session, I just want a graphical
> > > session, like I launch startx on linux.
> > >
> > > Yet, I do :
> > > /sbin/init.d/xlogin start, works ... then exit for CDE and
> > > /sbin/ini.d/xlogin/stop but I found it isn't very clean.
> >
> > Well, if you want to do it in a _very_ basic way, you must, at a
> > minimum, achieve two things:
> >   - start the X server
> >   - start (at least) one first client
> > You could start experimenting with a script like like this:
> >
> >   #!/bin/sh
> >
> >   DISPLAY=:0.0
> >   export DISPLAY
> >   Xdec &
> >   xpid=$!
> >   sleep 5
> >   dxterm
> >   kill $xpid
>
> Ok, it's work but it isn't really usable. I try with mwm but there do
> nothing and dtwm, it's work but I can't launch dxterm (via the icon).
> I think I will use /sbin/init.d/xlogin start|stop for the very few
> time I need graphical session.
>
> Thnaks.

Try reading the man pages for dtsession and dxsession and see if they
do what you want...
Try something like this as your startx script...

#!/bin/ksh
export DISPLAY=:0.0
Xdec &
sleep 5
dtsession
kill %%

Hope this gets a bit closer to what you want.
Adam




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-05-29 16:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-27 14:16 Graphic session on console Fabrice Rafart
2002-05-28  5:54 ` bastion_diode
2002-05-28 13:15   ` Fabrice Rafart
2002-05-28 17:12     ` Timo Felbinger
2002-05-29 14:16       ` Fabrice Rafart
2002-05-29 16:14         ` Adam Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox