Configuration of the Chinese environment under ubuntu8.04root

Source: Internet
Author: User
Article Title: Chinese environment configuration under ubuntu8.04root. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

1. By default, ubuntu 8.04 does not allow the root user to log on to the graphic interface. To enable root, make the following changes:

(1) reset the root password:
$ Sudo passwd root # Enter the new password twice as prompted and confirm it.

(2) $ sudo vi/etc/TPD. conf
AllowRoot = false # change to AllowRoot = true

2. Click "System"-> "System Management"-> "login window", switch to the "Security" option page, and select the "Allow local administrator login" option under it.

3. you can use the root account to log on to the graphic interface through the above two steps. If you need to disable the root account from logging on to the graphic interface, sudo passwd-l root, you can also remove the "System"-> "System Management"-> "login window" menu, switch to the "Security" option page, and then remove the "Allow local administrator login" option under the selected menu.

4. You can log on to the GUI through the root user. The default Interface is in English. You need to perform the following two steps:

(1) install the Chinese Language Pack for the root user as follows:
Click "system" --> "system mangement" --> "language support", select "Chinese" in the Supported languages, and select "Chinese (mainland)" in the default language )", click "OK" to download some Chinese language packs. The download time depends on the network speed.

(2) vi/etc/. profile
#~ /. Profile: executed by Bourne-compatible login shells.

If ["$ BASH"]; then
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi
Fi

Mesg n
# Installed by Debian Installer:
# No localization for root because zh_CN.UTF-8
# Cannot be properly displayed at the Linux console
LANG = C # modify this behavior: LANG = "zh_CN.UTF-8"
LANGUAGE = C # modify this behavior: LANGUAGE = "zh_CN: zh"

5. Enable scim input on the root Gui
(1) apt-get install scim # install all the files to be installed by default

(2) touch/etc/X11/Xsession. d/95 xinput
Export XMODIFIERS = @ im = SCIM;
Export GTK_IM_MODULE = "scim ";
Export QT_IM_MODULE = "scim ";
Scim-d

(3) reboot # restart your system

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.