BackTrack 5 R2 install VNC

Source: Internet
Author: User

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
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.