lost and found ( for me ? )

VNC4Server : sh: /root/.vnc/xstartup: Permission denied

I installed vnc4server ( Xvnc Free Edition 4.1.1 )  on ubuntu 11.04 and connected to that machine from Windows 7 with Ultra VNC viewer.
I got the connection , but window was gray , no GNOME desktop :(

I checked VNC log and found an error “Permission denied”
vncext:      VNC extension running!
vncext:      Listening for VNC connections on port 5901
vncext:      created VNC server for screen 0
error opening security policy file /etc/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
sh: /root/.vnc/xstartup: Permission denied


I linked /root/.vnc/xstartup with /etc/X11/xinit/xinitrc with “ln -s” command.
# ln -s /etc/X11/xinit/xinitrc /root/.vnc/xstartup

lrwxrwxrwx 1 root root   22 2011-07-21 00:10 xstartup -> /etc/X11/xinit/xinitrc

I changed xstartup file’s permission to 755 and after doing that , I could see GNOME desktop :)
# chmod 755 /root/.vnc/xstartup
# kill “VNC’s PID”
# vncserver

The problem seemed to be caused by file permission.

2 comments:

  1. Thanks man, you're the reason for bringing LXDE/Debian Squeeze on android to live.

    ReplyDelete
  2. Hi,
    Thank you for your comment and stopping by my blog!

    ReplyDelete

Note: Only a member of this blog may post a comment.