On Mon, 20 Oct 1997, Shaul Peleg wrote: > Ok... I changed the server to XF_VGA16 and then I noticed that startx itself > was > pointing to xinitrc and xserverrc in /usr/X11/ - shouldn't it be reading it > from > /etc/X11? I have a feeling that the setup program won't work here because I > screwed > something up and will have to do it all by hand (not so bad). Thanks! -sp
I've attached the "startx" script from my system. It goes in "/usr/X11R6/bin". A few notes: 1) /usr/X11R6/bin/X should be a symlink (made via ln -s) to the server you want to use -- in this case XF86_VGA16. 2) You'll find that some files in /etc/X11/ and /usr/X11R6/lib/X11 are just symlinks to each other, so that it doesn't matter which one you're reading. Will [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cis.udel.edu/~lowe/ ***************************************************************************** Good Idea: Feeding Stray Cats in the Park. Bad Idea: Feeding Stray Cats in the park ... to a bear. *****************************************************************************
#!/bin/sh # $XConsortium: startx.cpp,v 1.4 91/08/22 11:41:29 rws Exp $ # $XFree86: xc/programs/xinit/startx.cpp,v 3.0 1994/05/22 00:02:28 dawes Exp $ # # This is just a sample implementation of a slightly less primitive # interface than xinit. It looks for user .xinitrc and .xserverrc # files, then system xinitrc and xserverrc files, else lets xinit choose # its default. The system xinitrc should probably do things like check # for .Xresources files and merge them in, startup up a window manager, # and pop a clock and serveral xterms. # # Site administrators are STRONGLY urged to write nicer versions. # userclientrc=$HOME/.xinitrc userserverrc=$HOME/.xserverrc sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc sysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc clientargs="" serverargs="" if [ -f $userclientrc ]; then clientargs=$userclientrc else if [ -f $sysclientrc ]; then clientargs=$sysclientrc fi fi if [ -f $userserverrc ]; then serverargs=$userserverrc else if [ -f $sysserverrc ]; then serverargs=$sysserverrc fi fi display=:0 whoseargs="client" while [ "x$1" != "x" ]; do case "$1" in /''*|\.*) if [ "$whoseargs" = "client" ]; then clientargs="$1" else serverargs="$1" fi ;; --) whoseargs="server" ;; *) if [ "$whoseargs" = "client" ]; then clientargs="$clientargs $1" else serverargs="$serverargs $1" case "$1" in :[0-9]) display="$1" ;; esac fi ;; esac shift done serverargs="$serverargs -auth $HOME/.Xauthority" xauth add $display . `mcookie` xinit $clientargs -- $serverargs