On 04/14/2017 12:53 PM, Chris Kottaridis wrote: > > > On 4/14/2017 12:38 PM, stan wrote: >> On Fri, 14 Apr 2017 02:02:19 -0500 >> Chris Kottaridis <chriskot@xxxxxxxxxxxxx> wrote: >> >>> I have a Fedora 25 installation that was setup originally with server >>> installation and have since added gnome desktop package groups and >>> others. >>> >>> On the console I get a standard non-graphical login prompt and from >>> there I can type startx and get into gnome just fine. >>> >>> I don't want to change that. >>> >>> I do want to use VNC to connect in over net and run gnome. I have >> [snip] >> >>> Before any of the exec lines those apps seem to be running. >>> >>> Just no window manager. >>> >>> Any pointers would be appreciated. >>> >>> I want to keep the console with an ASCII login and then use startx to >>> get a GUI from the console, but I want to also be able to get a GUI >>> via VNC >> I have a script that I run in multiuser that allows me to select which >> desktop I will use when I run startx. It acts like a text greeter. >> This is an edited version of what I have in that script that could be >> used to always start Gnome. >> >> XCLIENTS=/home/$USER/.Xclients >> >> echo '*** Replacing existing ~/.Xclients or creating new one.' >> echo '#! /bin/bash' > $XCLIENTS >> echo ' ' >> $XCLIENTS >> chmod +x $XCLIENTS >> echo 'GSESSION="$(type -p gnome-session)"' >> $XCLIENTS >> echo 'exec $GSESSION' >> $XCLIENTS >> echo 'Starting X with Gnome...' >> startx -- vt10 >> exit 0 > > I think I need to be more careful as I might have interchanged startx > and xstartup. When I log into the console via an ASCII login I can run > startx and everything is fine. > > When vncserver starts it runs the xstartup script, and I know it is > indeed running that because I can see output differences as I make > changes. It just doesn't seem to be getting a Window Manager going It's been a while, but IIRC just doing "startx" brings up a greeter (such as lightdm or sddm-greeter). You log into the greeter (that's your authentication step) and select the type of session you want (Gnome, XFCE, KDE, whatever). startx uses that to eventually call xinit and pass it the session manager you want to run. The session manager is supposed to start the appropriate window manager. If you looked at my script, we bypass the greeter (the machines are only accessed via a VPN so authentication is unnecessary), so when Xvnc starts, it "assumes" we're already authenticated. Our ~/.vnc/xstartup script just starts Xfce4 via Xfce4's startup script. That script (and others it calls) loads Xfce's session manager (xfce4-session) which, in turn, loads it's window manager (xfwm4). Et tu, voila! (or something like that--my romance language skills are awful) ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - Money won't buy happiness, but it will pay the salary of a large - - research staff to study the problem. - Bill Vaughan - ---------------------------------------------------------------------- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx