On 2/7/21 4:09 AM, Neil Bothwick wrote: > On Sun, 7 Feb 2021 01:28:39 -0700, the...@sys-concept.com wrote: > >> I disable "slim" login manager and try not to use any display manger >> (for simplicity). I start X from: >> >> ~/.bash_profile >> exec startx -- vt1 >> >> but now when I try to ssh as user, I get: >> >> (==) Using system config directory "/usr/share/X11/xorg.conf.d" >> (EE) >> Fatal server error: >> (EE) xf86OpenConsole: Cannot open virtual console 1 (Permission denied) >> > > Of course you are, because you are still trying to start X. If you must > start X from .bash_profile, you need something like > > [ -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. I removed startx from .bash_profile and put in: ~/.xinitrc "exec startxfce4" and I was under impression that xfce4 will start automatically when I log-in but instead I get a user command prompt and have to type: startxfce4 But now ssh login works and x2go-session works as well. So why isn't startxfce4 starts automatically, what am I missing?