Display problem

Paul Mackinney paul@mackinney.net
Tue, 30 Sep 2003 23:53:29 -0700


Peter van Rossum declaimed:
> On Tue, Sep 30, 2003 at 05:11:02PM -0700, Paul Mackinney wrote:
> > # /etc/init.d/gdm stop
> > 
> > to turn off the Gnome Display Manager (assuming that's the graphical
> > login you're running). Next I really recommend uninstalling or disabling
> > gdm (sorry, don't have a quick procedure for how) 
> 
> update-rc.d remove gdm
> 
> to turn off gdm without actually uninstalling it
> 
> update-rc.d defaults gdm
> 
> if you ever want it back again
> 
Thanks, great example of Debian administration.

BTW: I particularly dislike gdm because it keeps ressurecting itself
even if you ctrl-alt-<minus> to kill X. Instead of running xdm or gdm, I
have a little script in my .bash_profile to check if I'm logging in via
ssh. If not, it runs startx. The test is [ -z "$SSH_CLIENT" ]. Anyone
have a positive test to see if I'm logging in from the console instead
of remotely?

One other note: we've recommended startx, it will require a settings
file such as:

--.xsession--
#!/bin/sh
gnome-client 

The above assumes you want to run Gnome. I just run the Blackbox window
manager by itself with a few pre-launched utilities:

--.xsession--
#!/bin/sh
bbpal -p rathead & 
bbpager -s -w &
wmmixer -w &
wmxmms &
gkrellm -w &
/usr/bin/blackbox

Be sure to make .xsession executable after you create it.

PM
-- 
Paul Mackinney
paul@mackinney.net