Linux _ server maintenance Article 1: installation and configuration of ssh remote vnc

Source: Internet
Author: User


Linux _ server maintenance Article 1: Installation configuration of ssh remote vnc special instructions: I use ubuntu locally .. the server is centos5.5 32-bit .. this is the first tutorial on server configuration. In fact, it is good to use only ssh, but vnc is visualized. remote Control of the server ui! It is convenient for me to look at people who like intuitive operations (or cainiao ).... 1. First of all, I am using terminal ssh in ubuntu .. win. you can use other ssh tools .. SSH username @ ip (ssh remote ). Enter the password .. SSH usage. baidu directly .. after the connection, if rpm-q vnc-server returns the following results, the installation is successful, but the service is not started!
2. next, you need to configure vnc and enter the following command to open the configuration file emacs/etc/sysconfig/vncservers (you can also change emacs to VI and add a user name for your hobbies, write downstream data in emacs: VNCSERVERS = "1: root" www.2cto.com to set the resolution. You can also leave VNCSERVERARGS = "-geometry 1024x768"

Save and exit emacs .. enter the following command: Set the root user password vncpasswd 3. Set the default VNC remote interface command: cd ~ /. Vnc/emacs xstartup

Add gnome-session & remarks # xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" # twm (if the default Desktop is KDE, add: startkde kde desktop) 6. restart vncserver. Continue command:/sbin/service vncserver restart

~ Try connecting to www.2cto.com 7. VNC... o (too many) o... haha! Enable VNC remote (related vnc software is required. You can download the vnc view in windows. I use the remote software that comes with ubuntu !), When you enter an IP address, multiple ": 1" or ": 2" users with the selected VNC, such as: xxx. xxx: 1
Finally, we may encounter problems. For example, after restarting the server (reboot), The vnc is not started ...~ Here: the terminal command: chkconfig vncserver on and then check whether the instance is started # chkconfig -- list vncserver if 2 ~ All five are on. That is, success! The first article is written here ~ Next, install the lamp environment, source code, source code, and some integration environments.

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.