I try to start vncserver
Code:
$vncserver
Starting applications specified in /home/user1/.vnc/xstartup
Log file is /home/user1/.vnc/home1:1.log
Inside /home/user1/.vnc/home1:1.log I find
Code:
error opening security policy file /etc/X11/xserver/SecurityPolicy
How can I fix it?
P.S.
content of my ~/.vnc/xstartup was
Code:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
Following http://ubuntuforums.org/showthread.p...98#post9324498 I modified it to
Code:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
and restarted the Xserver by executing
Code:
sudo service lightdm restart
then I executed again, but that doesn't seem to have any effect on the content of ~/.vnc/xstartup
Bookmarks