Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: peter@abbnm.com (Peter da Silva)
Subject: Re: Tru64 5.1b and X server
Date: Wed, 4 Aug 2004 00:39:15 +0000 (UTC)	[thread overview]
Message-ID: <cepb7j$21k3$1@jeeves.eng.abbnm.com> (raw)
In-Reply-To: 2naggnFuqi26U1@uni-berlin.de

In article <2naggnFuqi26U1@uni-berlin.de>,
Loic Domaigne  <loic-dev@gmx.net> wrote:
> I am still interested to know how do you boot the kernel, so that you 
> get a plain tty text, and not the X-stuff started by default. This can 
> be really handy sometimes...

Let's take a quick look through the System V startup process, which is what
Tru64 uses.

The "init" process handles the startup, using the "inittab" file to drive
what gets started at each 'run level'. One of the things it runs on entering
a level is /sbin/rc$level, which then proceeds to run everything in
/sbin/rc$level.d/S*:

s2:23:wait:/sbin/rc2 < /dev/console > /dev/console 2>&1
s3:3:wait:/sbin/rc3 < /dev/console > /dev/console 2>&1

In /sbin/rc3.d you'll see:

S95xlogin

In fact, this is a symlink:

lrwxr-xr-x   1 root     bin           16 Jan 21  2000 S95xlogin -> ../init.d/xlogin

To prevent it from starting, you have two options. If you just want to stop
the whole X thing completely, temporarily, rename that link.

mv /sbin/rc3.d/S95xlogin /sbin/rc3.d/X95xlogin

This works because it only looks at files starting with X.  You can move
it back later.

Alternatively, if you want a command line console but you still want to be
able to login via XDMCP over the net you can look in /sbin/rc.d to see
whether your XLOGIN is set to xdm or cde. It's probably cde.

If it's cde, then look in /usr/dt/config and find the Xservers file and
comment out the console line, like this:

#   *	Local local@console /usr/bin/X11/X :0

If it's xdm, then look in /var/X11/xdm/Xservers and comment out this line:

:0 local /usr/bin/X11/X

Then to get a command line login on the console, make sure that's started
from inittab:

cons:1234:respawn:/usr/sbin/getty console console vt100

-- 
I've seen things you people can't imagine. Chimneysweeps on fire over the roofs
of London. I've watched kite-strings glitter in the sun at Hyde Park Gate.  All
these things will be lost in time, like chalk-paintings in the rain.   `-_-'
Time for your nap.  | Peter da Silva | Har du kramat din varg, idag?    'U`


  reply	other threads:[~2004-08-04  0:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-29 21:27 Tru64 5.1b and X server Loic Domaigne
2004-08-02 13:02 ` Homonnai Mihaly
2004-08-02 22:05   ` Loic Domaigne
2004-08-04  0:39     ` Peter da Silva [this message]
2004-08-04  6:12     ` Nikola Milutinovic
2004-08-04  9:33     ` Homonnai Mihaly
2004-08-05  9:08     ` Tru64 Wizz
2004-08-23 18:57     ` Loic Domaigne
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