From: Timo Felbinger <Timo.Felbinger@quantum.physik.uni-potsdam.de>
Subject: Re: Graphic session on console
Date: Tue, 28 May 2002 19:12:24 +0200 [thread overview]
Message-ID: <Pine.LNX.4.33.0205281804010.480-100000@uranos.quantum.physik.uni-potsdam.de> (raw)
In-Reply-To: <d85f7b1b.0205280515.428ccb26@posting.google.com>
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
next prev parent reply other threads:[~2002-05-28 17:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2002-05-29 14:16 ` Fabrice Rafart
2002-05-29 16:14 ` Adam Price
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox