Linux installation graphical interface and remote connection

Source: Internet
Author: User

#可查询哪些组件是否已经安装 (can be used to control the component name) Yum Grouplistyum groupinstall'X Window System'-y# Installing the GNOME desktop environment Yum Groupinstall'GNOME Desktop Environment'-y# Installing the KDE desktop environment Yum Groupinstall'KDE (K Desktop Environment)'uninstalling and uninstalling the GNOME desktop environment Yum Groupremove GNOME Desktops Environment'uninstalling the KDE desktop environment Yum Groupremove'K Desktop Environment'How to start the X graphical interface1, StartX2, set boot auto start, modify/etc/inittab ID:3: Initdefault:------> ID:5: Initdefault:3Init5--------------------------------------------------------------The broken line is not smooth---------------------------------------------------- -----here are a variety of issues to install X_window success, install KDE successful, start startx unsuccessful, reported a lot of errors, temporarily see such a1, xhost:unable to open display0The personal understanding is that the screen is not set up, find the solution as follows********************************A common workaround for a similar problem is under root: [Root] Export DISPLAY=:0or export display=192.168.1.1:0.0 or export display=localhost:10.0then: [Root] xhost+this is usually done, but sometimes it does not, it is necessary to check X11 the required dependencies are installed complete, the following 3 packages must have. [Root] rpm-qa |grep X11 libX11-common-1.5.0-4. El6.noarch libX11-1.5.0-4. el6.x86_64 libX11-devel-1.5.0-4. el6.x86_64********************************2, the next run Rpm-qa |grep X11 discovers one less dependency package libx11-devel-1.5.0-4. el6.x86_64 running yum install libX11-devel, the results of the tragic discovery no source is available (hint: no more mirrors toTry.) Continue Baidu, find the following methods:********************************Yum Clean Allyum Makecache can********************************3, after running yum clean all, the Yum command is not connected. [[Email protected]~]# Yum makecacheloaded plugins:fastestmirror, securityloading mirror speeds fromcached Hostfilecould not retrieve Mirrorlist http://Mirrorlist.centos.org/?release=6&arch=x86_64&repo=os Error was -: Pycurl ERROR6-"couldn ' t resolve host ' mirrorlist.centos.org '"Error:cannot Find a valid BaseURL forRepoBaseQuery discovery is a problem with DNS??? (unknown so) continue to Baidu, the solution:********************************later on-line looked up said is a DNS server error. So modify/etc/resolv.conf Add a nameserver8.8.8. 8 Completion********************************after adding, Yum Makecache succeeds. Keep. #yum Install libX11-Develok, download successful, install successfully back to 1, or the same problem, for the time being, direct startup, StartX found a warning4,"Warning:you does not seem to has the package Gstreamer0.10-plugins-good installed.Some video features has been disabled."Direct # yum Install gstreamer*-Ystartx, still error-------------------------------------------another shortcut----------------------------------------temporarily install VNC on the terminal, regardless of the StartX startup, and open the terminal using the Yum command to install VNC Sever. Command: Yum install Tigervnc-server-y Set the vncserver to start with the system. Command: Chkconfig vncserver on or: Chkconfig vncserver--level5on modifies the Vncserver configuration file. Command: Vim/etc/sysconfig/vncservers input on the last line of the file (press the S key after opening) Vncservers="1:root"vncserverargs[1]="-geometry 800*600-nolisten TCP"Press ESC, enter: Wq Save exit settings vncserver password (VNC client login is used). Note Before setting the password, Su to the user you want to set. This demo is used by the root user. Command: vncpasswd Restart the Vncserver service. Command: Service vncserver Restart the last client to install VNC, directly after the installation is complete. The VNC service fills the Linux IP and colon desktop number (192.168.1.200:1), click Connect to proceed to the next step if it is not connected, check the server-side firewall settings (below) Connect directly to enter the password, donefirewall******************************** of the uncertainView firewall status service iptables status modification # VIM/etc/sysconfig/iptables Add a row-A input-m state--state new-m tcp-p TCP--dport5901-J Accept Save exit restart Firewall service iptables Restart if restart is unsuccessful, use the following method1, execute setup, and then select Firewall configuration. 2, check the "Security Level:" option is not "(*) Enabled "3, "SELinux:" To select "Enforcing" or "Permissive",4, Select "OK", exit,5, check "service iptables status" This method the firewall is reset, re-execute the above modification firewall configuration. 

Linux installation graphical interface and remote connection

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.