CentOS Open VNC Record (summary)

Source: Internet
Author: User

Before we start VNC, we need to be clear 3.

1. The current desktop version of my CentOS is

[Email protected] ~]# Gnome-panel--version
Gnome Gnome-panel 2.16.1

2.VNC Service

[[email protected] ~]# Rpm-qa|grep VNC
vnc-server-4.1.2-14.el5_3.1

3. Self-Starting service settings

Chkconfig

Okay, let's take a step-by-step

1.centos The current desktop version is

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/56/FB/wKioL1SO0_PBPUG-AAAtLGnPm08578.jpg "title=" 0.PNG " alt= "Wkiol1so0_pbpug-aaatlgnpm08578.jpg"/>

2.VNC Service Open

1) View VNC version

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/56/FE/wKiom1SO0p-RFkoSAABJNVq-OBk109.jpg "title=" 1.PNG " alt= "Wkiom1so0p-rfkosaabjnvq-obk109.jpg"/>

2) Open the password of the VNC input link

#vncserver

You'll require a password to access your desktops.

Password:
Verify:

Xauth:creating new Authority file/root/. Xauthority

New ' Localhost.localdomain:1 (root) ' Desktop is Localhost.localdomain:1

Here: 1 hints wait for the link to be 5901 2 for 5902 in turn recursion

3) Configuring VNC

TWM &a

Gnome-session &

Startkde &

Launch TWM Desktop and GNOME desktop or KDE desktop separately

# Vi/root/.vnc/xstartup

Shield the TWM off

and join Gnome-session &

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/56/FB/wKioL1SO1BmBkRtBAADRjxLyNxs915.jpg "title=" 3.PNG " alt= "Wkiol1so1bmbkrtbaadrjxlynxs915.jpg"/>

And then restart

[Email protected] ~]# service Vncserver restart
Shutting down VNC server: [OK]
Starting VNC SERVER:NO displays configured [OK]

3. Self-Starting service settings

Chkconfig--level 2345 Vncserver on

Chkconfig--list|grep Vncserver

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/56/FE/wKiom1SO04yC25CTAABMGJOWlOg713.jpg "title=" 4.PNG " alt= "Wkiom1so04yc25ctaabmgjowlog713.jpg"/>

------------Chkconfig level------------------------------

Level 0 means: shutdown
Level 1 means: Single user mode
Level 2: Multi-user command line mode with no network connection
Level 3 means: Multi-user command line mode with network connection
Level 4 means: not available
Level 5 means: Multi-user mode with graphical interface
Level 6 means: reboot

-------------------------------------------------------

0: System shutdown status, the system default operation level cannot be set to 0, otherwise it will not start normally, the machine shuts down.

1: Single user working status, root privileges, for system maintenance, prohibit remote login, just like Windows security mode login.

2: Multi-user status, no NFS support.

3: Full multi-user mode, NFS, login to console command line mode.

4: The system is not used, reserved for general use, in some special cases you can use it to do some things. For example, you can switch to this mode to do some setup when your laptop's battery is running out.

5:x11 console, after landing into the graphical GUI mode, Xwindow system.

6: The system shuts down gracefully and restarts, the default runlevel cannot be set to 6, otherwise it will not start normally. Running the INIT6 machine will restart.


This article is from the "Cloud Notepad" blog, please be sure to keep this source http://youngcloud.blog.51cto.com/2873694/1590216

CentOS Open VNC Record (summary)

Related Article

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.