[patch] Re: vncserver error

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

 



On Mon, Dec 13, 2004 at 09:45:34AM +0000, Tim Waugh wrote:

> On Sun, Dec 12, 2004 at 08:25:15PM -0600, Harry Putnam wrote:
> 
> > Running newest vncserver off rawhide I get this error when starting
> > the server from user account:
> 
> I don't think this is a result of any code change:

Actually, come to think of it, it might well be to do with using "-l"
or switching to runuser.  Please try this patch to
/etc/init.d/vncserver:

Index: vncserver.init
===================================================================
RCS file: /cvs/dist/rpms/vnc/devel/vncserver.init,v
retrieving revision 1.7
diff -d -u -r1.7 vncserver.init
--- vncserver.init	17 Nov 2004 17:01:45 -0000	1.7
+++ vncserver.init	13 Dec 2004 12:19:05 -0000
@@ -23,6 +23,11 @@
     echo -n $"Starting $prog: "
     ulimit -S -c 0 >/dev/null 2>&1
     RETVAL=0
+    if [ ! -d /tmp/.X11-unix ]
+    then
+        mkdir -m 1777 /tmp/.X11-unix || :
+        restorecon /tmp/.X11-unix || :
+    fi
     for display in ${VNCSERVERS}
     do
         echo -n "${display} "

Tim.
*/


[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]