On Sun, 7 Feb 2021 14:01:57 -0700, the...@sys-concept.com wrote: > >>>>> [ -z "$SSH_TTY" ] && startx ... > >>>>> > >>>>> to only start it when not using SSH. > >>>> > >>>> What do you suggest? > >>>> I was planning to get away from "slim" as I think it is getting > >>>> more unstable; I just need a simple system to start X, log-in over > >>>> ssh and use x2go session. > >>> > >>> Why do you need to start X, doesn't x2go run its own X session? You > >>> are trying to start X in an SSH session, which is what gives your > >>> error. The line I suggested runs startx only if you are not logging > >>> in via SSH. No display manager is involved. > >> > >> Maybe I wasn't clear. No, I don't start any X over ssh. > > > > But you do, because you run it from .bash_profile whenever you login. > > That's why I suggested an alternative command that wouldn't do that. > > OK, according to Gentoo-wiki: > https://wiki.gentoo.org/wiki/Start_X_on_login > > ~/.bash_profile > if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi > The above command works.
It is effectively the same as the one I suggested right at the start of this thread. -- Neil Bothwick Windows95 - crash compatible on Windows 3.x
pgpRuUQsb4RY1.pgp
Description: OpenPGP digital signature