Start the vnc service

Source: Internet
Author: User
Vnc redhat is usually automatically installed with vncserver. you only need to select and start it in the service list, and then you can start your window manager by editing the file $ HOMEvncxstartup. Use startkde & amp; to start KDE and use gnome-session & amp; to start vnc service redhat. generally, vncserver is automatically installed. you only need to select and start it in the service list. by editing the file $ HOME /. vnc/xstartup to start your window manager. Use startkde & to start KDE, and use gnome-session & to start GNOME. create for the first time ~ /. Vnc/xstartup, the specified Window manager is twm, which is a very small Window manager and has twm on almost every X Window System machine. Twm does not have most of the fancy features of the "desktop manager" (like KDE, GNOME, or WindowMaker. The following is a modified example :#! /Bin/sh [-x/etc/vnc/xstartup] & exec/etc/vnc/xstartup [-r $ HOME /. xresources] & xrdb $ HOME /. xresourcesxsetroot-solid greyvncconfig-iconic & # xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & # twm & # exec wmaker # exec startkde gnome-session & in the above example, comment out the default Start of twm and xterm. This desktop is configured to avoid color gradient on the background and title bar, and very little animation effect is used. Close your vnc connection to vncserver-kill on the server: vncserver1. set vncserver startup script (/etc/init. d/vncserver) to enable vncserver when the system is started. 2. edit/etc/sysconfig/vncservers VNCSERVERS = "1: user1 "ARGS ="-geometry 800x600-alwaysshared "modify" 800x600 "in ARGS to adapt to the actual parameter configuration of X desktop. You can add any other VNC server parameter configuration here. In VNCSERVERS, modify user1 to the user you want to run the VNC desktop. 1 in VNCSERVERS indicates that VNC runs on desktop 1. if you want to add another desktop, you can modify the configuration as follows: VNCSERVERS = "1: user1 2: user2 3: user3" 3. set the vnc server access password vncpasswd on the RedHat system and run the following command to start VNC:/etc/init. d/vncserver start
 
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.