Wednesday, September 4, 2013

Enable VNC on Oracle Linux

Change last line of /root/.vnc/xstartup file to “gnome-session &” and restart server

After restart type #vncserver

[root@oracleap1 ~]# cat /root/.vnc/xstartup
#!/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 &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &

#if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
#       eval `dbus-launch --sh-syntax .exit-with-session`
#       echo "D-BUS per-session daemon address is: \
#       $DBUS_SESSION_BUS_ADDRESS"
#fi
gnome-session & 

No comments: