Access the Linux GUI vncserver in Windows

Source: Internet
Author: User

Environment:

Server: RedHat 4 as update 7

Client: Windows 7

Software: vncviewer 4

 

Generally, the server does not have a display in the production environment. However, if you need to install oracle on the server, you must use a graphical interface. If the client is Linux, we can use xhost, and there are also corresponding solutions in windows.

If the client is Windows, you can install vncviewer on Windows to log on to the Linux GUI. Generally, vncserver is installed on Linux server.

 

1.1 Server Configuration:

 

1.1.1 If vncserver is used for the first time, you need to configure the vncserver access password, telnet to the server, enter vncserver, and then enter the password twice.

[Root @ ora10g ~] # Vncserver </P> <p> you will require a password to access your tops. </P> <p> password: <br/> verify: <br/> Xauth: creating new authority file/root /. xauthority </P> <p> New 'ora10g: 1 (Root) 'desktop is ora10g: 1 </P> <p> creating default startup script/root /. VNC/xstartup <br/> starting applications specified in/root /. VNC/xstartup <br/> log file is/root /. VNC/ora10g: 1.log</P> <p> [root @ ora10g ~] #

 

1.1.2 configure the default Window Manager

[Root @ ora10g ~] # Vi/root/. VNC/xstartup <br/> #! /Bin/sh </P> <p> # uncomment the following two lines for normal desktop: <br/> # unset session_manager <br/> # exec/etc/X11/xinit/xinitrc </P> <p> [-x/etc/VNC/xstartup] & exec/etc/VNC/xstartup <br/> [-r $ home /. xresources] & xrdb $ home /. xresources <br/> xsetroot-solid gray <br/> vncconfig-iconic & <br/> xterm-geometry 80x24 + 10 + 10-ls-title "$ vncdesktop desktop" & <br/> # TWM & # default window manager, after vncviewer is connected, a very gray window is displayed. Comment out <br/> gnome-session & # Use gnome as the Windows Manager of VNC.

After configuration, restart the VNC service by using service vncserver restart.

 

1.1.2 set the VNC display number)

[Root @ ora10g ~] # Vncserver: 20 </P> <p> New 'ora10g: 20 (Root) 'desktop is ora10g: 20 </P> <p> starting applications specified in/root /. VNC/xstartup <br/> log file is/root /. VNC/ora10g: logtail </P> <p> # ls $ home /. VNC /*. PID to check how many display numbers are currently enabled <br/> [root @ ora10g ~] # Ls/root /. VNC /*. PID <br/>/root /. VNC/ora10g: PID/root /. VNC/ora10g: 2.pid< br/> [root @ ora10g ~] # <Br/>

 

1.2 client Configuration:

In vncviewer, enter 192.168.168.213: 20 (192.168.168.213 is the Server IP address and 20 is the display number) to open the server GUI.

 

Ref: http://www.houyanpeng.com/centos-5%E6%9C%8D%E5%8A%A1%E5%99%A8%E5% AE %89%E8%A3%85vnc%E6%97%B6%E7%81%B0%E5%B1%8F%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95.html

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.