From: JMS (jmsimon@acsu.buffalo.edu)
Date: 08/20/92


From: jmsimon@acsu.buffalo.edu (JMS)
Subject: Re: problems getting X running
Date: 20 Aug 1992 12:50:02 GMT

hedrick@athos.rutgers.edu (Charles Hedrick) said that:
>rgb@esleng.ocunix.on.ca (Richard Briggs) writes:
>
>>Hi Linux'ers:
>
>>Any time I try to initialize, the screen goes dead and a terminal on a serial
>>port is the only feedback I've been able to get aside from capture files.
>
>When I've seen this happen, it's been because Xconfig did not define
>a valid configuration.

I'm sure a lot of people have done this, but a recommendation for anyone
with multiple people using their system and X:

        I modified the 'startx' script as follows:

        if [ -f $HOME/Xconfig ] then
                echo "Using $HOME/Xconfig file"
        else
                ln -s /usr/local/defaults/Xconfig $HOME/Xconfig
                echo "Linking and using default Xconfig file"
        fi

[Forgive any typos I may have made - I'm at work, so couldn't just paste in]

This lets you not worry about someone attempting to start Xwindows going if
they don't have an Xconfig (thereby blanking your screen unless you have a
secret way of fixing things; ie: terminal hooked up through /dev/ttys? and
'ps')

This *does not* stop someone from modifying the Xconfig in such a way as to
cause the screen to blank. I have made the default Xconfig -r--r--r--, but
someone could always make a copy and edit that. If you want to be safe, you
could copy the default Xconfig into their home directory *every* time they
'startx' and clobber any changes they have made (make sure to chmod it first,
as they may have made it -r--r--r-- instead of leaving it -r--r--rw- after
making their changes!)

Good luck protecting your displays...

                JMS

-- 
*******************************************************************************
 Jeffrey M. Simon              .o   o.       Computer Science / Business Mgmt.
 jmsimon@acsu.buffalo.edu       ~~v~~        State University of NY at Buffalo
***** "Perspiration = ( Genius - 1% Inspiration ) / .99" -Ein*kinda*stein *****