I have one computer with vncserver running on display1 and the other with vncviewer. When I connect, all I get is a blank screen, similar to the display just before the logon dialog box for KDE comes up. How can I get any further? Searched the documentation on the VNC website, but nothing there about this. Art
On Saturday 24 August 2002 11:33 pm, Art Fore wrote:
I have one computer with vncserver running on display1 and the other with vncviewer. When I connect, all I get is a blank screen, similar to the display just before the logon dialog box for KDE comes up. How can I get any further? Searched the documentation on the VNC website, but nothing there about this.
Art
Hello Art, Have you started a window manager in the VNC session? I suspect that you have not. The window manager gets started when you start the VNC server. The commands to start the window manager are contained in the ~/.vnc/xstartup file. Keep in mind that on Linux, you'll now have two window managers running, one in display :0 and another in display :1. They need not be the same window manager. Here is a a copy of my ~/.vnc/xstartup file. Note that besides starting a window manager, it starts an xterm and sets the background to a solid grey color. One may customize this file as desired. Later, Andy === start === #!/bin/sh xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & # # The user might set these outside of this script. # # VNCWM is the desired window manager to run. # # DEFAULT_VNC_WM is the default to execute if the desired one is unavailable. # if [ -z "$VNCWM" ]; then VNCWM="blackbox" fi if [ -z "$DEFAULT_VNC_WM" ]; then DEFAULT_VNC_WM="/usr/X11R6/bin/blackbox" fi # # Pick a window manager to run. # if [ "$VNCWM" = "icewm" ]; then /usr/X11R6/bin/icewm & elif [ "$VNCWM" = "twm" ]; then /usr/X11R6/bin/twm & elif [ "$VNCWM" = "fvwm2" ]; then /usr/X11R6/bin/fvwm2 & elif [ "$VNCWM" = "fvwm95" ]; then /usr/X11R6/bin/fvwm95 & elif [ "$VNCWM" = "gnome" ]; then /usr/X11R6/bin/gnome & elif [ "$VNCWM" = "xfwm" ]; then /usr/X11R6/bin/xfwm & elif [ "$VNCWM" = "xfce" ]; then /usr/X11R6/bin/xfce & elif [ "$VNCWM" = "blackbox" ]; then /usr/X11R6/bin/blackbox & else $DEFAULT_VNC_WM & fi === finish === -- Andy Stewart, Founder Worcester Linux Users' Group Worcester, MA USA http://www.wlug.org
On Sat, 2002-08-24 at 20:48, Andy Stewart wrote:
On Saturday 24 August 2002 11:33 pm, Art Fore wrote:
I have one computer with vncserver running on display1 and the other with vncviewer. When I connect, all I get is a blank screen, similar to the display just before the logon dialog box for KDE comes up. How can I get any further? Searched the documentation on the VNC website, but nothing there about this.
Art
Hello Art,
Have you started a window manager in the VNC session? I suspect that you have not. The window manager gets started when you start the VNC server. The commands to start the window manager are contained in the ~/.vnc/xstartup file.
Keep in mind that on Linux, you'll now have two window managers running, one in display :0 and another in display :1. They need not be the same window manager.
Here is a a copy of my ~/.vnc/xstartup file. Note that besides starting a window manager, it starts an xterm and sets the background to a solid grey color. One may customize this file as desired.
Later,
Andy
=== start ===
#!/bin/sh
xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# # The user might set these outside of this script. # # VNCWM is the desired window manager to run. # # DEFAULT_VNC_WM is the default to execute if the desired one is unavailable. #
if [ -z "$VNCWM" ]; then VNCWM="blackbox" fi
if [ -z "$DEFAULT_VNC_WM" ]; then DEFAULT_VNC_WM="/usr/X11R6/bin/blackbox" fi
# # Pick a window manager to run. #
if [ "$VNCWM" = "icewm" ]; then /usr/X11R6/bin/icewm & elif [ "$VNCWM" = "twm" ]; then /usr/X11R6/bin/twm & elif [ "$VNCWM" = "fvwm2" ]; then /usr/X11R6/bin/fvwm2 & elif [ "$VNCWM" = "fvwm95" ]; then /usr/X11R6/bin/fvwm95 & elif [ "$VNCWM" = "gnome" ]; then /usr/X11R6/bin/gnome & elif [ "$VNCWM" = "xfwm" ]; then /usr/X11R6/bin/xfwm & elif [ "$VNCWM" = "xfce" ]; then /usr/X11R6/bin/xfce & elif [ "$VNCWM" = "blackbox" ]; then /usr/X11R6/bin/blackbox & else $DEFAULT_VNC_WM & fi === finish ===
-- Andy Stewart, Founder Worcester Linux Users' Group Worcester, MA USA http://www.wlug.org
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Here is my xstartup file. Tried it both with kde & gnome. Still, just blank screen. xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & /usr/X11R6/bin/kde On Sat, 2002-08-24 at 20:48, Andy Stewart wrote:
On Saturday 24 August 2002 11:33 pm, Art Fore wrote:
I have one computer with vncserver running on display1 and the other with vncviewer. When I connect, all I get is a blank screen, similar to the display just before the logon dialog box for KDE comes up. How can I get any further? Searched the documentation on the VNC website, but nothing there about this.
Art
Hello Art,
Have you started a window manager in the VNC session? I suspect that you have not. The window manager gets started when you start the VNC server. The commands to start the window manager are contained in the ~/.vnc/xstartup file.
Keep in mind that on Linux, you'll now have two window managers running, one in display :0 and another in display :1. They need not be the same window manager.
Here is a a copy of my ~/.vnc/xstartup file. Note that besides starting a window manager, it starts an xterm and sets the background to a solid grey color. One may customize this file as desired.
Later,
Andy
=== start ===
#!/bin/sh
xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# # The user might set these outside of this script. # # VNCWM is the desired window manager to run. # # DEFAULT_VNC_WM is the default to execute if the desired one is unavailable. #
if [ -z "$VNCWM" ]; then VNCWM="blackbox" fi
if [ -z "$DEFAULT_VNC_WM" ]; then DEFAULT_VNC_WM="/usr/X11R6/bin/blackbox" fi
# # Pick a window manager to run. #
if [ "$VNCWM" = "icewm" ]; then /usr/X11R6/bin/icewm & elif [ "$VNCWM" = "twm" ]; then /usr/X11R6/bin/twm & elif [ "$VNCWM" = "fvwm2" ]; then /usr/X11R6/bin/fvwm2 & elif [ "$VNCWM" = "fvwm95" ]; then /usr/X11R6/bin/fvwm95 & elif [ "$VNCWM" = "gnome" ]; then /usr/X11R6/bin/gnome & elif [ "$VNCWM" = "xfwm" ]; then /usr/X11R6/bin/xfwm & elif [ "$VNCWM" = "xfce" ]; then /usr/X11R6/bin/xfce & elif [ "$VNCWM" = "blackbox" ]; then /usr/X11R6/bin/blackbox & else $DEFAULT_VNC_WM & fi === finish ===
-- Andy Stewart, Founder Worcester Linux Users' Group Worcester, MA USA http://www.wlug.org
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Sunday 25 August 2002 12:52 am, Art Fore wrote:
xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & /usr/X11R6/bin/kde
HI Art, I tried your xstartup file, and I made it work only after I changed its permission to execute. Notice the last line of my log file, which was in ~/.vnc/tux:1.log (substitute your host name for 'tux'): 25/08/02 14:14:15 Xvnc version 3.3.3r2 25/08/02 14:14:15 Copyright (C) AT&T Laboratories Cambridge. 25/08/02 14:14:15 All Rights Reserved. 25/08/02 14:14:15 See http://www.uk.research.att.com/vnc for information on VNC 25/08/02 14:14:15 Desktop name 'X' (tux:1) 25/08/02 14:14:15 Protocol version supported 3.3 25/08/02 14:14:15 Listening for VNC connections on TCP port 5901 25/08/02 14:14:15 Listening for HTTP connections on TCP port 5801 25/08/02 14:14:15 URL http://tux:5801 sh: /home/andy/.vnc/xstartup: Permission denied Try setting the permission on your xstartup file to include execute, and see if it works. It did for me, and hopefully it will work for you also. Later, Andy -- Andy Stewart, Founder Worcester Linux Users' Group Worcester, MA USA http://www.wlug.org
participants (2)
-
Andy Stewart
-
Art Fore