X11 & Color
William Roberts;
liam at dcs.qmw.ac.uk
Wed Jun 12 02:03:05 AEST 1991
In <443 at aplcomm.JHUAPL.EDU> beser at aplcomm.JHUAPL.EDU (Nick Beser) writes:
>beard at ux5.lbl.gov (Patrick C Beard) writes:
>>I have X11R4 for A/UX 2.x and am having difficulty getting it to
automatically
>>come up in color. The "Getting Started..." manual suggests a file by the
>>name of .X11 to change the default "X" command to something like:
>>X -screen 0 -depth 8
>>From the console emulator I can type this in and it works, so I have that
>>as my default login and I've aliased X to that, but I would like to know
>>what others are doing about this.
First stop, get the right filename: the best way to do this is to look in
/mac/lib/sessiontypes, find the one called x11 and do a "strings" on it (you
could use ResEdit, but my way is quicker). When I do this, I get the result
% strings x11
Macintosh
APPL????
X11 is Apple's adaptation of the industry standard X Window System for A/UX.
X1
1 is a pure X environment, and no Macintosh compatability is provided.
/usr/bin/X11/startx
.X11
STR#
%
So your choice of ".X11" in your home directorry is correct for the override.
The other filename, /usr/bin/X11/startx, is the one used if you don't have
your own override file - if you look at that you'll find it is somewhat more
complicated than just "X -screen 0 -depth 8"
I changed ours so that it will use colour if colour is possible, but default
to black and white otherwise: this is done by the simple change shown in the
following diff.
*** startx Tue Jun 11 16:59:03 1991
--- startx.orig Tue Jun 11 16:59:35 1991
***************
*** 17,23
sysclientrc=/usr/lib/X11/xinit/xinitrc
sysserverrc=/usr/lib/X11/xinit/xserverrc
clientargs=""
! serverargs="-screen 0 -depth 8 "
if [ -f $userclientrc ]; then
clientargs=$userclientrc
--- 17,23 -----
sysclientrc=/usr/lib/X11/xinit/xinitrc
sysserverrc=/usr/lib/X11/xinit/xserverrc
clientargs=""
! serverargs=""
if [ -f $userclientrc ]; then
clientargs=$userclientrc
--
% William Roberts Internet: liam at dcs.qmw.ac.uk
% Queen Mary & Westfield College UUCP: liam at qmw-dcs.UUCP
% Mile End Road Telephone: +44 71 975 5234
% LONDON, E1 4NS, UK Fax: +44 81-980 6533
More information about the Comp.unix.aux
mailing list