Use tigervnc to implement Linux Remote Desktop

Source: Internet
Author: User

Tigervnc Configuration
1. Confirm that SSH is running
2. Install tigervnc Server
Yum install tigervnc-Server

Installed
Yum info tigervnc-Server
You can view the installed status

3. Configure the display resolution, product, and user
Edit/etc/sysconfig/vncservers
Add two lines according to the last two lines commented out.

Vncservers = "2: myname"
Vncserverargs [2] = "-geometry 1024x768-nolisten TCP"

In this step, remove-localhost.

4. Configure the VNC desktop environment and password
Log on to Linux with the user name configured previously, and then start vncserver. Then, the vncserver loads the local path and environment information of the user, in this way, the user's VNC authentication and logs are stored in the corresponding path.
Command Line execution:
$ Vncserver
The system will prompt you to set the Password Upon initial execution, and enter the password as prompted.

You will require a password to access your tops.

Password:
Verify:

Xauth: creating new authority file/home/XF/. Xauthority

New 'xf: 1 (xf) 'desktop is XF: 1

Creating default startup script/home/XF/. VNC/xstartup
Starting applications specified in/home/XF/. VNC/xstartup
Log File is/home/XF/. VNC/XF: 1.log

As shown above, the. VNC directory and several files are generated under the current user directory.

5. Start the VNC Server Service
Log on as an administrator and stop the service first.
# Service vncserver stop
If the error message is displayed, it does not matter. It indicates that the service has not been started.

Start the service
# Service vncserver start

In the original article, I did not use the SELinux and step 6th firewalls, because they have been directly disabled.

8. Configure vro port forwarding
I have no vro here. skip this step.

9. Install the VNC client
In Windows, you can use VNC Viewer and Fedora Linux's Remote Desktop viewer. You can also choose to install other good client software, such as the TightVNC client.

10. Connect to the VNC Server
Now you can connect and access from another machine.
Enter the name or IP address of the remote machine at the connection address. The default port is 5902, for example:
10.0.10.208: 5092
Follow the prompts to enter the password set by vncserver when the user logs on. Normally, the Remote Desktop is displayed. Note that VNC starts a completely different second desktop, which is different from the desktop that you can directly log on to the Linux host. You can configure the desktop preferences separately.

11. connect through SSH Tunnel
Securecrt first creates a connection to the target Linux server, then select the menu> session Options> connection> port forwarding, and click "add" in "local port forwarding ", write a descriptive name in the name, such as "VNC", and then write the port used by the remote VNC Server on both the local port and remote port. The port is 5902 here. Exit and try again.

12. server-side Security Settings
Log on as an administrator
Edit/etc/sysconfig/vncservers
Set
Vncserverargs [2] = "-geometry 1024x768-nolisten TCP"
Add
Vncserverargs [2] = "-geometry 1024x768-nolisten TCP-localhost"
Then
# Service vncserver restart
Then, you must maintain the securecrt connection status, and then open the VNC client. At this time, the address of the connection server must be changed from the previous IP Address: 5902 to localhost: 5902. Then you can connect.

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.