Set VNC multi-user logon in CentOS 6.5

Source: Internet
Author: User
Tags windows remote desktop

Set VNC multi-user logon in CentOS 6.5

Set VNC multi-user logon in CentOS 6.5

1. Install VNC

Yum install vnc-server

2. Add multiple users

Useradd user1 // Add user1

Passwd user1 // set the user's linux logon Password

Su user1 // switch to user user1

Vncpasswd // set the user's user1 logon Password

Exit

Useradd user2 // Add User user2

Passwd user2 // set the user's linux logon Password

Su user2 // switch to user user2

Vncpasswd // set the user's user2 logon Password

Exit

3. Edit the vnc configuration file

Vi/etc/sysconfig/vncservers

Add:

VNCSERVERS = "1: user1 2: user2"

VNCSERVERSVNCSERVERARGS [1] = "-geometry 1024x768-alwaysshared"

VNCSERVERSVNCSERVERARGS [2] = "-geometry 1024x768-alwaysshared"

Note:-geometry 1024x768 indicates the resolution.-alwaysshared indicates that multiple terminals are allowed to log on simultaneously.

4. Open the corresponding port to open port 5901 to port 5902 for vnc // if you need to configure more desktops, add a port

Iptables-I INPUT-p tcp -- dport 5901: 5902-j ACCEPT

Iptables-a input-p tcp -- dport 5901: 5902-j ACCEPT

Permanent storage

Service iptables save

4. Start the vncserver service

1) Start all desktops

Service vncserver start

2) Start a desktop

Vncserver: 1 // here 1 indicates the first desktop

5. Stop the vncserver service. 1) Stop all desktops.

Service vncserver stop

2) Stop a desktop

Vncserver-kill: 1 // stop 1st interfaces. Use the kill command to kill the process on interface 1.

6. Check whether several desktops are currently running the service vncserver status.

7. Enable the vncserver service to start at random. By default, the vncserver service is not automatically started upon startup and needs to be started manually.

Chkconfig -- list vncserver

Chkconfig vncserver on

After saving, restart the test.

8. log on to the vncserver client (1) first install vncviewer to log on remotely,

(2) Enter "host address: 1" in the address bar (that is, the Host IP address and interface number)

9. Automatically Start vncserver upon startup

# Chkconfig vncserver on

Check whether the setting is successful

10. Disable auto start

# Chkconfig vncserver off

Check whether Automatic startup is disabled

Install VNC Server in CentOS 6.5 for graphical access

VNC installation Configuration

Install and configure VNC in CentOS 6.3

In Linux, the dependency installation VNC is not detected.

CentOS6 VNC service installation and configuration

Configure and install VNC in CentOS

VNC remote control installation and Setup

Windows accesses Ubuntu through VNC

Install VNC for accessing Ubuntu 12.04 through Windows Remote Desktop

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.