Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!ukc!icdoc!qmw-dcs!liam From: liam@dcs.qmw.ac.uk (William Roberts;) Newsgroups: comp.unix.aux Subject: Re: X11 & Color Message-ID: <3135@redstar.dcs.qmw.ac.uk> Date: 11 Jun 91 16:03:05 GMT References: <13812@dog.ee.lbl.gov> <443@aplcomm.JHUAPL.EDU> Sender: usenet@dcs.qmw.ac.uk Lines: 66 Nntp-Posting-Host: whitesand.dcs.qmw.ac.uk In <443@aplcomm.JHUAPL.EDU> beser@aplcomm.JHUAPL.EDU (Nick Beser) writes: >beard@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@dcs.qmw.ac.uk % Queen Mary & Westfield College UUCP: liam@qmw-dcs.UUCP % Mile End Road Telephone: +44 71 975 5234 % LONDON, E1 4NS, UK Fax: +44 81-980 6533