Display problem

Vineet Kumar vineet@doorstop.net
Wed, 1 Oct 2003 00:24:53 -0700


--v9Ux+11Zm5mwPlX6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Mike Markley (mike@markley.org) [031001 00:12]:
> On Tue, Sep 30, 2003 at 11:53:29PM -0700, Paul Mackinney <paul@mackinney.=
net> wrote:
> > 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?
>=20
> I use:
> case "`tty`" in
>     /dev/tty[0-9]*)
>         ;;
>     /dev/vc/[0-9]*)
>         ;;
>     *)
>         # console only stuff here
>         ;;
> esac

that's way cleaner than the one I just posted, and looks more like
/bin/sh than /bin/bash

good times,
Vineet
--=20
http://www.doorstop.net/
--=20
http://www.anti-dmca.org/=09

--v9Ux+11Zm5mwPlX6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/eoFF7z3S33fUb9ERAosuAKCz2Cxj4Jw6ssqvqgBRSyQYOykBqQCfYBhf
XZtmt5jz2J0wHrVrC4zK21M=
=D4/g
-----END PGP SIGNATURE-----

--v9Ux+11Zm5mwPlX6--