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

Re: vncserver and wrong xinitrc permissions



On Sat, 10 Mar 2007 16:21:48 GMT
Marco De Vitis <starless@spin.it> wrote:

> Hi,
> I installed the vnc4server package on Etch. When launching vncserver,
> I want to get a "normal" desktop environment, so I uncommented the
> two lines in the ~/.vnc/xstartup file which is automatically created:
> 
>    # Uncomment the following two lines for normal desktop:
>    unset SESSION_MANAGER
>    exec /etc/X11/xinit/xinitrc
> 
> But anyway, all I got was the typical grey screen with the X mouse
> pointer. I looked at the vncserver log, and the error reported was:
> 
> /username/.vnc/xstartup: line 5: /etc/X11/xinit/xinitrc: Permission
> denied /username/.vnc/xstartup: line 5: exec: /etc/X11/xinit/xinitrc:
> cannot execute: Success
> 
> Indeed, the /etc/X11/xinit/xinitrc file did not have any executable
> bit set by default. I did a "chmod +x" on it, and now vncserver works
> fine.
> 
> What I'm wondering now is:
> 
> 1. How is it that I also have a Sarge machine where the same file is
> NOT executable, and vncserver works fine anyway? The xinitrc file is
> called from ~/.vnc/xstartup exactly like in Etch, but of course
> vncserver is version 3 instead of 4.
> 
> 2. is it a bad thing having an executable xinitrc?
> 
> Any ideas?
> Thanks.
> 

In my ~/.vnc/xstartup file I put the line

    exec sh /etc/X11/xinit/xinitrc

Thus I avoided the need to change the permissions of a system file.

-- 

Liam



Reply to: