To install xfce + vnc in centos, first install the desktop environment. I chose xfce, lightweight desktop, which is small and practical and does not occupy too much memory (xfce is less than kde and kde is less than gnome ). run the following command to install: www.2cto. comyumgroupinstallxfce-4.4 (xfce now looks... to install xfce + vnc in centos, first install the desktop environment. I chose xfce, lightweight desktop, which is small and practical and does not occupy too much memory (xfce is less than kde and kde is less than gnome ). run the following command to install: www.2cto.com yum groupinstall xfce-4.4 (xfce seems to have been updated to 4.8 now, but the yum groupinstall xfce-4.8 is not installed successfully, prompting no, wait) after the desktop is installed, the vncserver is installed. run the following command to install: www.2cto.com yum install vnc-serv. After the er desktop environment and vncserver are installed, you can configure them. now, take the root user as an example: modify the/etc/sysconfig/vncservers file and add the following content to the file with WINSCP: VNCSERVERS = "1: root" VNCSERVERARGS [1] = "-geometry 800x600" resolution can be adjusted based on actual conditions. generally, 1024x768 (xp) is commonly used ), 1366x768 (win7) In addition, note that this must be manually modified. if you use vncserver to start only, you cannot add a boot item. To set multiple users, use the following format: VNCSERVERS = "1: one 2: two 3: three "VNCSERVERARGS [1] ="-geometry 800 × 600 "VNCSERVERARGS [2] ="-geometry 800 × 600 "VNCSERVERARGS [3] ="-geometry 800 × 600 "then, set the vncserver password: vncpasswd twice. Start the vnc service vncserver so that a file is generated under/root. the vnc folder contains related configurations. run the command in SSH, enter ls-a in the/root path, and then kill the vnc service and configure VNC vncserver-kill: 1. after killing the process, modify/root /. in the vnc/xstartup file, replace the content with the following :#! After saving/bin/sh/usr/bin/startxfce4, add the execution permission to xstartup: chmod + x ~ /. After vnc/xstartup is configured, start vncserver: after vncserver is started, run the following command to check whether Port 5901 is enabled: netstat-lptn. Note that if the port is opened but cannot be connected, you must set firewall rules. otherwise, Port 59xx cannot be connected to the outside. then, set the vncserver to start automatically when it is started. enter the following method to install firefox under chkconfig vncserver on centos: yum install firefox so that the desktop can be accessed through vncviewer, note: The server address of vncviewer is IP: 1: http://up.2cto.com/2013/0312/20130312095826480.rar Vncviewer.exe
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