Blacksceen upon connection via auto launch
Troy Arnold
troy "at" troyandtina.com
Tue Nov 29 18:20:02 2005
Greetings....
I have searched through the archives and found a few hits on the black
screen issue but they don't seem to provide any log files or fit to what
I'm really running into.
I'm running Fedora Core 4 all patched up and have need to have a VNC
session launch when/if the server reboots or is started up.
I have found two ways to do this:
1) Modify the /etc/rc.local file as such
su - username -c "/usr/bin/vncserver"
2) Modify the /etc/sysconfig/vncservers file as such
VNCSERVERS="1:username"
Both of these auto-start types seem to work just fine in that, when I
start the server and I look for the process I see it running.
*IE: *
/[arnoldt "at" PCH0-HIS23-Linux ~]$ ps aux | grep vnc
arnoldt 3437 0.0 0.7 7096 3820 ? S 13:10 0:00 Xvnc :1
-desktop PCH0-HIS23-Linux.cvmc.org:1 (arnoldt) -httpd
/usr/share/vnc/classes -auth /home/arnoldt/.Xauthority -geometry
1024x768 -depth 16 -rfbwait 30000 -rfbauth /home/arnoldt/.vnc/passwd
-rfbport 5901 -pn/
Now.. if I test this setup, and reboot the Linux machine... as stated
above, the VNC process for my user starts fine. I then go to connect
and find I only see a black screen.
I found this odd so from this point I would kill the PID and launch
vncserver manually from /usr/bin. When I did this the vncserver process
started just fine, and when I goto connect everything works fine.
*Outputs:*
/[arnoldt "at" PCH0-HIS23-Linux ~]$ cd /usr/bin
[arnoldt "at" PCH0-HIS23-Linux bin]$ ./vncserver
New 'PCH0-HIS23-Linux.cvmc.org:1 (arnoldt)' desktop is
PCH0-HIS23-Linux.cvmc.org:1
Starting applications specified in /home/arnoldt/.vnc/xstartup
Log file is /home/arnoldt/.vnc/PCH0-HIS23-Linux.cvmc.org:1.log/
*ps aux | grep vnc from a manual launch:*
/[arnoldt "at" PCH0-HIS23-Linux bin]$ ps aux | grep vnc
arnoldt 4343 0.2 1.6 11608 8136 pts/1 S 13:12 0:00 Xvnc :1
-desktop PCH0-HIS23-Linux.cvmc.org:1 (arnoldt) -httpd
/usr/share/vnc/classes -auth /home/arnoldt/.Xauthority -geometry
1024x768 -depth 16 -rfbwait 30000 -rfbauth /home/arnoldt/.vnc/passwd
-rfbport 5901 -pn/
I have the logfile here for review. Note this is the log file from the
server after it reboots, and not before I manually launch vncserver.
*Output:*
/*_*XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not
be created.
_XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 2
_XSERVTransMakeAllCOTSServerListeners: failed to create listener for local
Xvnc version 4.0 - built Oct 6 2004 08:11:33
Underlying X server release 60801000, The X.Org Foundation
Tue Nov 29 13:10:22 2005
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: Listening for HTTP connections on port 5801
vncext: created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing
from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing
from list!
/usr/X11R6/bin/xsetroot: unable to open display
'PCH0-HIS23-Linux.cvmc.org:1'
xrdb: Connection refused
xrdb: Can't open display 'PCH0-HIS23-Linux.cvmc.org:1'
xmodmap: unable to open display 'PCH0-HIS23-Linux.cvmc.org:1'
Agent pid 4323
(gnome-session:3439): Gtk-WARNING **: cannot open display:/
Any help folks could lend me would greatly appreciated
Troy Arnold