CentOS 5/6 Security GNOME or KDE Desktop Environment

Source: Internet
Author: User

Recently, we started to connect Linode and DigitalOcean VPS. the Linux systems provided in these products are the "least secure ", so I want to see if the GNOME desktop can be installed, and then connect to the terminal desktop with xrdp desktop.

Security and desktop environments

Yum itself provides the groupinstall method for the security kit. First, run the following commands to check which KIT groups are available:

yum grouplist | more

The names of CentOS 5.x and 6.x are not exactly the same, for example, desktop environment kit:

CentOS 5.x:

  • GNOME: GNOME Desktop Environment

  • KDE: KDE (K Desktop Environment)

CentOS 6.x:

  • GNOME: Desktop

  • KDE: KDE Desktop

The following steps deploy CentOS 5.x as the server guard. If you use CentOS 6.x, you need to configure the names of these two kits.

Security steps:

1. Installing XWindow

yum -y groupinstall 'X Window System'

2. Install GNOME and KDE)

yum -y groupinstall 'GNOME Desktop Environment'yum -y groupinstall 'KDE (K Desktop Environment)'

3. Server guard (optional)

yum -y groupinstall "Chinese Support"

4. If there is an Alibaba Cloud Security Chinese character system suite, You need to modify the character system.

Always writable:/etc/sysconfig/i18n, change LANG = "en_US.UTF-8" to LANG = "zh_TW.UTF-8", if the commit case is blank, join directly:

LANG="zh_TW.UTF-8"

5. Set the host to directly enter the desktop environment (optional)

Upload metadata:/etc/inittab, change id: 3: initdefault: to id: 5: initdefault:

6. Restart the host.

reboot


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.