Linux Learning 1-vnc remote learning

Source: Internet
Author: User


Linux learning-vnc remote learning vnc installation Shell code [root @ SC-026 ~] # Yum install vnc www.2cto.com vnc remote connection first, log on to the remote machine through ssh, use the command vncserver to open a port for the current user, and then use the command vncviewer to connect to the remote machine, you can perform various operations. Shell code [root @ SC-026 ~] # Ssh 192.168.15.182 root@192.168.15.182's password: Last login: Sat Oct 27 00:30:02 2012 from sfserver‑localdomain remote machine port opening Shell code [root @ sfserver20 ~] # Vncserver-geometry 1600x900: 3 New 'sfserver20. localdomain: 3 (root) 'desktop is sfserver‑localdomain: 3 Starting applications specified in/root /. vnc/xstartup Log file is/root /. vnc/sfserver‑localdomain: 3.log www.2cto.com close the port Shell code [root @ sfserver20 ~] # Vncserver-kill: 3 Killing Xvnc process ID 29665 if you want to see the desktop format, you need to modify the file Shell code [root @ sfserver20 ~] # Vim. comment out the last line of vnc/xstartup and add a new line as follows: # twm & // comment out gnome-session & // indicates that a remote user logs on to the Linux GNOME desktop or startkde & // indicates that a remote user logs on to the Linux KDE Desktop, it is better to log out at www.2cto.com from the port: Shell code [root @ sfserver20 ~] # Exit [root @ SC-026 ~] # Vncviewer 192.168.15.182: 3 VNC Viewer Free Edition 4.1.2 for X-built Jul 27 2010 10:24:13 Copyright (C) 2002-2005 RealVNC Ltd. see http://www.realvnc.com for information on VNC. thu Nov 1 15:54:10 2012 CConn: connected to host 192.168.15.182 port 5903 CConnection: Server supports RFB protocol version 3.8 CConnection: Using RFB protocol version 3.8 The following page appears, enter the password to log on to the remote machine on the desktop.

 

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.