Re: VNC Window Manager won't start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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 a
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:
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec /etc/X11/xinit/xinitrc

and another example called xstartup.gnome-try:

#!/bin/sh
[ -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"
fi
exec gnome-session

Like I said if I add lines like

gnome-terminal &

or

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
"display"):

	unset SESSION_MANAGER
	unset DBUS_SESSION_BUS_ADDRESS
	startxfce4 &

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
something like:

	vncviewer server-IP-address:1

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
you want.

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 automatically:

# systemctl enable vncserver@:1
# systemctl start vncserver@:1

It is clearly running my startx when I start it. I can tell a couple of ways:

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

#!/bin/sh
[ -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"
fi
vncconfig -iconic &
gnome-terminal &
exec gnome-session

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.

Thanks
Chris K

----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-      We are born naked, wet and hungry. Then things get worse.     -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux