BackTrack 5R2 install VNC
Hiroot @ bt :~ # Apt-get install vnc4server
Hiroot @ bt :~ # Vnc4server
/-- At this time, the system will prompt you to enter the password, which will be used when you connect through the client. --/
Edit the/root/. vnc/xstartup file:
Hiroot @ bt :~ # Vi/root/. vnc/xstartup
#! /Bin/sh
# HiRoot's Blog QQ: 20627750
# 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 gray
# Vnccon **-iconic &
# X-terminal-emulator-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
# X-window-manager &
#! /Bin/sh
# HiRoot's Blog QQ: 20627750
# 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 gray
# Vnccon **-iconic &
# X-terminal-emulator-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
# X-window-manager &
Modify the license for the/etc/X11/xinit/xinitrc file to make it executable.
Hiroot @ bt :~ # Chmod 755/etc/X11/xinit/xinitrc
(The vnc connection to the gray screen is related to this permission. Execute this operation)
Start VNC
Hiroot @ bt :~ # Vnc4server