Quote:
Originally Posted by thesun
Nope. Still a black, unusable screen. :-(
|
I had this black screen issue too (vncviewer connected to the server, asked the password dialogue but would not refresh the viewer window to anything but all-black) so my findings of how to get rid of it may also work for you:
I checked /home/myuser/.vnc/hostname:1.log and it said "permission denied" on the xstartup file. This was both because I had created it as root (corrected with 'chown myuser:myuser xstartup'), and it was not executable (corrected with 'chmod 770 xstartup).
After that, and '/etc/init.d/vncserver restart', I could connect and see my twm windows. Note this server did not have the switchdesk package installed so that isn't needed in this scenario.
By the way, I'm not using tigervnc right from the X login screen, I use it as a separate X running for just two users. So for other readers who want to use it this way, I have the following in my /etc/sysconfig/vncservers:
VNCSERVERS="1:myuser 2:otherusername"
VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -localhost"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
And I have the older-style xstartup (shorter than what is created by default now on Fedora 11 by tigervnc) in my /home/myuser/.vnc/xstartup:
#!/bin/sh
vncconfig -iconic &
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
(I don't know what the Xresources line does but it is still there from many Fedoras ago.)
Hope that helps.
Martin