亚洲欧洲国产欧美一区精品,激情五月亚洲色五月,最新精品国偷自产在线婷婷,欧美婷婷丁香五月天社区

      考試首頁 | 考試用書 | 培訓(xùn)課程 | 模擬考場(chǎng) | 考試論壇  
        當(dāng)前位置:操作系統(tǒng) > Linux > 文章內(nèi)容
        

      Linux新手入門優(yōu)秀教程:漢化RedHatLinux7.1

       [ 2016年9月20日 ] 【

        漢化Red Hat Linux 7.1

        1.安裝 TrueType 字體

        要在系統(tǒng)里使用中文TrueType字體,最好先禁用xfs字體服務(wù)器, xfs在啟動(dòng)時(shí)會(huì)自動(dòng)更新字體目錄下的fonts.dir文件,這樣會(huì)影響到我們所作的修改。

        以root身份登陸,然后執(zhí)行setup工具,在Service中關(guān)閉xfs。

        1)修改XF86Config-4 配置文件

        進(jìn)入/etc/X11目錄,用vi編輯XF86Config-4文件,如下進(jìn)行相應(yīng)的修改:

        Section "Files"

        # FontPath "unix/:7100" ;注釋掉這一行,加入下面的幾行

        FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"

        FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"

        FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"

        FontPath "/usr/X11R6/lib/X11/fonts/misc"

        FontPath "/usr/X11R6/lib/X11/fonts/Type1"

        FontPath "/usr/X11R6/lib/X11/fonts/Speedo"

        FontPath "/usr/X11R6/lib/X11/fonts/75dpi"

        FontPath "/usr/X11R6/lib/X11/fonts/100dpi"

        FontPath "/usr/X11r6/lib/X11/fonts/TrueType"

        EndSection

        Section "Module"

        Load "dbe" # Double-buffering

        Load "GLcore" # OpenGL support

        Load "dri" # Direct rendering infrastructure

        Load "glx" # OpenGL X protocol interface

        Load "extmod" # Misc. required extensions

        Load "v4l" # Video4Linux

        Load "xtt" ;加入這一行

        EndSection

        2)獲取字體文件simsun.ttf

        新建一個(gè)目錄:/usr/X11R6/lib/X11/fonts/TrueType

        ,然后將Windows所在的分區(qū)mount上來,然后將simsum.ttf復(fù)制到該目錄。

        3)生成字體列表

        cd /usr/X11R6/lib/X11/fonts/TrueType

        # ttmkfdir>fonts.dir

        # vi fonts.dir 修改字體列表文件,使其與下面類似

        simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-ascii-0

        simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15

        simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1

        simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0

        simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-koi8-r

        #cp fonts.dir fonts.scale

        4)修改 gtk 的字體定義

        # vi /etc/gtk/gtkrc.zh_CN

        修改后的內(nèi)容如下:

        style "gtk-default-zh-cn" {

        fontset = "-misc-SimSun-medium-r-normal--14-*-*-*-*-*-*-*"

        }

        class "GtkWidget" style "gtk-default-zh-cn"

        2.安裝中文輸入法Chinput 3.0.1

        1)首先下載以下幾個(gè)軟件包:

        Chinput-3.0.1-1.i386.rpm

        pth-1.3.7-3.i386.rpm

        unicon2-im.tar.gz

        2)然后安裝:

        # rpm -ivh pth-1.3.7-3.i386.rpm

        # rpm -ivh Chinput-3.0.1-1.i386.rpm --nodeps

        # cp unicon2-im.tar.gz /usr/lib

        # cd /usr/lib

        # tar vfxz unicon2-im.tar.gz

        # rm unicon2-im.tar.gz

        # ln -s libstdc++-2-libc6.1-1-2.9.0.so libstdc++-libc6.1-2.so.3

        3)修改Chinput的一些配置

        # cd /usr/lib/ZWinPro

        # vi Chinput.ad 修改以下幾個(gè)地方

        ...

        chinput.gblocale=zh_CN.gb2312

        chinput.big5locale=zh_CN.gb2312

        ...

        chinput.gbfont=-misc-SimSun-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0

        chinput.big5font=-misc-SimSun-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0

        ...

        (注意:在這個(gè)文件里不能出現(xiàn)空格,只能用 Tab 代替)

        4)修改~/.bashrc文件,新增以下幾行:

        export LC_ALL=zh_CN.GB2312

        export LANG=zh_CN.GB2312

        export XMODIFIERS=@im=Chinput

        3.漢化 GNOME

        重啟后,執(zhí)行startx時(shí),你在GNOME中就可以顯示中文了。緊接著,你可以通過在Program->設(shè)定->Session->Startup

        Programs里面把chinput加入啟動(dòng)運(yùn)行程序里面就完成了 GNOME的中文環(huán)境和輸入法的安裝了。

        4.漢化 KDE

        如果是KDE系統(tǒng),則打開 Preferences->Personalization->Country & Language,選擇中文,再打開 Look &

        Feel->Fonts,選擇相應(yīng)的字體,并把字符集改成gb2312.1980-0。最后再打開桌面上的 Autostart 目錄,新建一個(gè)應(yīng)用程序(

        Chinput )的連接,以后每次啟動(dòng)后就可以使用中文輸入法了.

      將考試網(wǎng)添加到收藏夾 | 每次上網(wǎng)自動(dòng)訪問考試網(wǎng) | 復(fù)制本頁地址,傳給QQ/MSN上的好友 | 申請(qǐng)鏈接 | 意見留言 TOP
      關(guān)于本站  網(wǎng)站聲明  廣告服務(wù)  聯(lián)系方式  站內(nèi)導(dǎo)航  考試論壇
      Copyright © 2007-2013 中華考試網(wǎng)(Examw.com) All Rights Reserved