Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The connection method of vnc remote Desktop under linux

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "connection method of vnc remote Desktop under linux". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the connection method of vnc remote Desktop under linux".

Connect to the system using the ssh software and start the vnc service using the command vncserver

Using vncserver for the first time will prompt for a password, and then enter it again (enter geisnic.com here

As a password, you must remember this password), enter the following figure prompts:

Remember here, dispay#, this is feng:1,display#, which means 1.

Open the file .vnc / xstartup in the current user's home directory, because the root user is used here, so the file is in the / root directory. After opening the file, comment out all lines, add a line gnome-session &, and save and exit.

Use the command vncserver-kill: dispaly# to explain how to view dispaly# in the above step. This is 1. Enter the command enter.

Use the command vncserver to restart the service again

Remember that the dispaly# here is 1.

The default port for Vncserver is 5900, which is open here in the firewall

Vi / etc/sysconfig/iptables

Find the following statement:

-A RH-Firewall-1-INPUT-j REJECT-- reject-with icmp-host-prohibited

Before this trip, add the following:

-A RH-Firewall-1-INPUT-m state-- state NEW-m tcp-p tcp-- dport 5900 tcp 5903-j ACCEPT

Then restart the iptables service: service iptables restart

That's it.

Open the software vnc Viewer (vnc client) in the local system and enter the Ip address of the machine plus dispaly#

This is 118.126.16.219purl.

Click OK, the following input box appears, and enter the password geisnic.com you just set

Click OK to log in to the system

Set vncserver to boot automatically: chkconfig vncserver on

Thank you for your reading, the above is the content of "connection method of vnc remote Desktop under linux". After the study of this article, I believe you have a deeper understanding of the connection method of vnc remote Desktop under linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report