歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網

美化rh8

日期:2017/2/27 14:21:27   编辑:更多Linux
  RH8感覺上是目前做的最好的一個distribution,尤其在desktop interface 上有巨大的改進.比如AA字體,Gnome/KDE的統一......不過還是有很多地方需要 自己定制以符合個人口味,增強功能.下面總結一下定制的一些東西.可能和以前的 文章重復了.也算一個總結吧.包括字體的安裝,界面的美化,和一些extra package 的安裝. 1 Microsoft字體安裝 雖然RH8的字體已經很不錯了,不過多一點選擇總沒錯的.Microsoft的TrueType 字體一直是以前Linux desktop ugly字體的解決方案.現在Microsoft已經取消了 TrueType core fonts的下載,但根據End User License Agreement,除了 Tahoma font,其他的字體還是可以用的. a. 從 http://prdownloads.sourceforge.net/corefonts/cabextract-0.6-1.i386.rpm?download 下載cabextract. b. 從 http://prdownloads.sourceforge.net/corefonts/msttcorefonts-1.2-3.src.rpm?download 下用於制作RPM的source c. rpm -ivh msttcorefonts-1.2-3.src.rpm 然後到/usr/src/redhat/SPECS下面,打開msttcorefonts.spec,根據你的需要 選上一個合適的下載font CAB文件的地點.一般情況下不用修改. d. rpmbuild -bb msttcorefonts.spec e. cd /usr/src/redhat/RPMS/noarch/ rpm -ivh msttcorefonts-1.2-3.noarch.rpm f. /sbin/service xfs restart g. xlsfonts grep ^-microsoft 驗證安裝成功 Reference: http://corefonts.sourceforge.net/ 2 SimSun字體安裝 看中文SimSun字體還是不錯的,雖然已經有了zysong. a. mkdir /usr/share/default/fonts/TrueType 當然/usr/X11R6/lib/X11/fonts下面也可以建. 缺省的TrueType字體在Type1目錄下 b. 把C:Windowsfonts下面的simsun.[ttcttf] copy到這個目錄下 c. ttmkfdir > fonts.dir ttmkfdir對字體編碼識別有問題,需要自己改一下. 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-gb2312.1980-0 另外加上這幾行: ai=0.2:simsun.ttc -misc-simsun-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0 ai=0.4:simsun.ttc -misc-simsun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0 ai=-0.4:simsun.ttc -misc-simsun-medium-ri-normal--0-0-0-0-c-0-gb2312.1980-0 ai=-0.2:simsun.ttc -misc-simsun-medium-ro-normal--0-0-0-0-c-0-gb2312.1980-0 ab=y:simsun.ttc -misc-simsun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0 ai=0.2:ab=y:simsun.ttc -misc-simsun-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0 ai=0.4:ab=y:simsun.ttc -misc-simsun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0 ai=-0.4:ab=y:simsun.ttc -misc-simsun-bold-ri-normal--0-0-0-0-c-0-gb2312.1980-0 ai=-0.2:ab=y:simsun.ttc -misc-simsun-bold-ro-normal--0-0-0-0-c-0-gb2312.1980-0 以支持bold, italic font. 別忘了修改fonts.dir的第一行的數字(加9). d. cp fonts.dir fonts.scale e. cp /usr/X11R6/lib/X11/fonts/encodings/encodings.dir . f. 修改/etc/X11/XF86Config Section "Files" FontPath "unix/:7100" FontPath "/usr/share/fonts/default/TrueType" (關鍵)


EndSection Modules 部分 # Load "freetype" # TrueType font handler (注釋掉) Load "xtt" # TrueType font handler (加上) g. 重啟 X Window. Reference: http://www.lslnet.com/linux 3 Chinput設置 參照前面的文章, 在~/.i18n中: LANG=zh_CN.GB18030 LC_MESSAGES=en_US 4 通明KDE kicker KDE kicker是指桌面最下面的工具條和任務欄,可以設置成透明. a. 在KDE Control Center->Look&Feel->Style設成Keramik,選Effect,把 TranslUCent Menu Effect加上,在最下面調整Alpha值.這樣就有通明菜單效果了. b. 去www.kde-look.org找[Keramik] Transparent Kicker (TARBALL) (in Theme/Styles->KDE 3.0) c. 解包運行 eXPort KDEDIR=/usr ./build_trans-keramik 5 Debian的apt-get Debian的apt-get可以檢查RPM的dependencies,隨時下載安裝或者更新package. FreshRPM提供了類似的功能,這樣不用買Redhat的basic service就可以隨時更新 RPM了. a. 下載: http://FTP.freshrpms.net/pub/freshrpms/psyche/apt/apt-0.5.4cnc8-fr1.i386.rpm http://ftp.freshrpms.net/pub/freshrpms/psyche/apt/apt-devel-0.5.4cnc8-fr1.i386.rpm b. rpm -ivh apt* c. apt-get update apt-get -f install d. 安裝apt-get的圖形界面: apt-get install synaptic Reference: http://www.osnews.com/story.PHP?news_id=1890&page=1 6 一些軟件可以直接通過apt-get安裝 apt-get install xmms-mp3 (MP3 playback) apt-get install mplayer (DivX playback) 7 GDM theme 對了,可以從www.themedepot.com下GDM的theme,感覺比KDM好多了. 其他?....... 請大家補充.



RPM了. a. 下載: http://FTP.freshrpms.net/pub/freshrpms/psyche/apt/apt-0.5.4cnc8-fr1.i386.rpm http://ftp.freshrpms.net/pub/freshrpms/psyche/apt/apt-devel-0.5.4cnc8-fr1.i386.rpm b. rpm -ivh apt* c. apt-get update apt-get -f install d. 安裝apt-get的圖形界面: apt-get install synaptic Reference: http://www.osnews.com/story.php?news_id=1890&page=1 6 一些軟件可以直接通過apt-get安裝 apt-get install xmms-mp3 (MP3 playback) apt-get install mplayer (DivX playback) 7 GDM theme 對了,可以從www.themedepot.com下GDM的theme,感覺比KDM好多了. 其他?....... 請大家補充.



Copyright © Linux教程網 All Rights Reserved