On 4/14/2017 12:03 PM, Rick Stevens wrote:
On 04/14/2017 12:02 AM, Chris Kottaridis 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
> everything setup but when I connect into the VNC I initially got a blank
> screen. I can get more than a blank screen by changing my local user's
> xstartup script. For example if I add "gnome-terminal &" I'll have
> gnome terminal up on the blank screen just fine. I can add vncconfig
> -iconic and that will be up as well.
> However there is no window manager running so I can't move these windows
> and while I can start other applications from the gnome-terminal I have
> up I don't get the graphical icons available to click on to start programs.
> Clearly I can not seem to get a window manager to startup.
> I tried the default xstartup:
> unset SESSION_MANAGER
> unset DBUS_SESSION_BUS_ADDRESS
> exec /etc/X11/xinit/xinitrc
> and another example called xstartup.gnome-try:
> [ -x /etc/vnc/xstartup ] && exec /etc/vns/startup
> [ -r $HOME/.Xresources ] && xrdb $Home/.Xresources
> if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
> eval `dbus-launch --sh-syntax -exit-with-session`
> echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
> exec gnome-session
> Like I said if I add lines like
> gnome-terminal &
> vnccnfig -icon &
> 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
Have you thought of running a separate Xvnc server on the machine? Xvnc
creates a virtual X server that's not tied to the physical
display/keyboard/mouse on the machine.
You'll need to put a ~/.vnc/xstartup script in the desktop user's home
directory, something like this (which we use to start Xfce on the Xvnc
The ~/.vnc/xstartup script will be executed by vncserver when it starts
up in order to establish the desktop environment.
Once you've created
the file, that's done, as
that desktop user, run vncserver:
/usr/bin/vncserver -geometry 1600x900
Remote VNC clients can access the machine via a GUI by connecting
and get a completely separate X session from any others you wish to run
from the server's console. We do this on a couple of servers in our
data center where we must use a GUI interface. I think that'll do what
Should you wish to, you can even make this work essentially on demand
from xinetd. I've not done it, but it's possible.
This is what I have done. I just have systemd start up vncserver
# systemctl enable vncserver@:1
# systemctl start vncserver@:1
It is clearly running my startx when I start it. I can tell a couple of
1. I put in various echo statements that redirected output to a file and
they all showed up
2. I actually get some X applications when I add them to startx when I
login. So doing
[ -x /etc/vnc/xstartup ] && exec /etc/vns/startup
[ -r $HOME/.Xresources ] && xrdb $Home/.Xresources
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
eval `dbus-launch --sh-syntax -exit-with-session`
echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
vncconfig -iconic &
When I log in using a vncviewer, the vncconfig and gnome-terminal are
running and working fine. I can also see a gnome-session-binary
executable running via ps and various GUI related commands running via
the ps command, that disappear when I run systemctl stop vncserver@:1.
I can use the gnome-terminal application just fine.
However, the application is not "wrapped" in a border and I can't move
the gnome-terminal around on the screen, nor is there an Activity option
to select applications to run.
The problem seems to be that there is no Window manager running to move
windows around and give me the icons to start other applications.
I am sure it's some configuration thing. Might be related to the fact
that I did a server installation instead of a workstation installation.
Then later added the X and Gnome group packages and others. This worked
out for the console which I want to have a standard ASCII login rather
then a graphics login. Once I get logged in on the console I can run
startx and I get gnome and everything is fine.
I want to keep the console exactly as it is, but I'd also like to be
able to VNC in to a GUI environment because the console is hard to get to.
Is there some configuration setting that could be causing the problem
because I did a server install instead of a workstation installation ?
GDM is not running. When I start it my console switches to a GUI login
instead of ASCII which I don't want and the one time I tried it it
didn't seem to help the VNC situation either.
- Rick Stevens, Systems Engineer, AllDigital ricks(a)alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- We are born naked, wet and hungry. Then things get worse. -
users mailing list -- users(a)lists.fedoraproject.org
To unsubscribe send an email to users-leave(a)lists.fedoraproject.org