First, the installation of Chinese language support
When I installed CentOS6.2, I chose Chinese language support, ibus and pinyin input method, GNOME and KDE.
Not installed can be referenced:centos English Environment using Chinese Input method to install Chinese language support and input methods
Second, the configuration Xwindow
1 contents of the/etc/sysconfig/i18n file:
lang= "ZH_CN. UTF-8 "
2 . BASHRC file join:
Export lang= "en_US. UTF-8 "Export lc_all=" en_US. UTF-8 "
3 Xwindow issues that cannot be started are resolved:
Delete all Xwindow-related files and directories in the user's home directory, just keep the following files: . bash* . GVIMRC . SSH . Subversion . Vim . Viminfo . VIMRC your other working files and directories.
Especially after modifying the language settings, theGnome card is dead , this method can be solved.
4 Configuring Input methods
Copy Input method file into English environment
#cp/usr/share/locale/zh_cn/lc_messages/ibus*/usr/share/locale/en_us/lc_messages
set IBUs to boot entry for the English environment
#vi/etc/x11/xinit/xinitrc.d/50-xinput.sh
find _im_language_list= "as Bn gu hi ja kn ko ml Mr ne or pa si ta te th ur vi en"
add en to the list
5 Start Xwindow, add Chinese Input method
In the bottom section of the login window, language selection 中文版 (states), session selection GNOME
Point menu:system->preferences->input method
Dot button: Input Method Preferences ... Select Pinyin Input Method and add
Open the editor and press "Control+space" to enter Chinese. (if not, log off the user first, then enter)
Third, install the JDK (reference URL)
1 Downloads jdk-7u80-linux-x64.gz
2 MV files to the/usr/local directory
Cd/usr/local
TAR-XZVF jdk-7u80-linux-x64.gz
MV Jdk-7u80-linux-x64 Jdk7
3 Modify the. bash_profile file, add:
Export Java_home=/usr/local/jdk7
export classpath=.: $ Java_home/lib/tools.jar: $ Java_home/lib/dt.jar
Export path=$java_home/bin:$PATH
4 exit the user and log back in
$ java-version
Java Version "1.7.0_80"
Java (TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot (tm) 64-bit Server VM (build 24.80-b11, Mixed mode)
Iv. installing eclipse (reference URL)
1 Downloads eclipse-cpp-luna-sr2-linux-gtk-x86_64.tar.gz
2 with root user action:
mkdir /opt/eclipse
CD /opt/eclipse
TAR-ZXVF eclipse-cpp-luna-sr2-linux-gtk-x86_64.tar.gz
MV Eclipse LUNA-SR2
ln-s/opt/eclipse/luna-sr2/eclipse/usr/local/bin/eclipse-luna
3 Creating a Desktop boot
Vim/usr/share/applications/eclipse-luna.desktop
Add the following code:
[Desktop Entry] Type=application name=eclipse 4.4.2 Luna comment=eclipse Luna C + + icon=/opt/eclipse/luna-sr2/icon.xpm Exec=/usr/ Local/bin/eclipse-luna Terminal=false categories=development;ide; C + +;
4 Check if Eclipse is added to the application
CentOS 6.2 Eclipse CDT Development Environment Setup