From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,9d5d0637a34772d6 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-05-28 10:20:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-ber1.dfn.de!news.uni-potsdam.de!uranos.quantum.physik.uni-potsdam.de!timof From: Timo Felbinger Newsgroups: comp.unix.tru64 Subject: Re: Graphic session on console Date: Tue, 28 May 2002 19:12:24 +0200 Organization: University of Potsdam Message-ID: References: Reply-To: NNTP-Posting-Host: uranos.quantum.physik.uni-potsdam.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: zeppelin.rz.uni-potsdam.de 1022606059 27525 141.89.72.92 (28 May 2002 17:14:19 GMT) X-Complaints-To: usenet@zeppelin.rz.uni-potsdam.de NNTP-Posting-Date: 28 May 2002 17:14:19 GMT X-X-Sender: In-Reply-To: Xref: archiver1.google.com comp.unix.tru64:7820 On 28 May 2002, Fabrice Rafart wrote: > bastion_diode@yahoo.com wrote in message news:... > > 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 Quantum Physics Group http://www.quantum.physik.uni-potsdam.de Institut fuer Physik Tel: +49 331 977 1793 Fax: -1767 Universitaet Potsdam, Germany