FreeBSD 5.2GNOME2 Chinese

zhaozj2021-02-16  54

FreeBSD is an excellent operating system, but its desktop environment has hindered its development in China. Here is a Chinese cultural method for FreeBSD and GNOME2 as an example of FreeBSD 5.2-Current / Gnome2:

Chinese XFree86 / gnome:

1. Install font 1) Install font management TTMKFDIR

#CD / USR / PORTS / X11-FONTS / TTMKFDIR

#make install clean 2) Installing the font

#mkdir -p / usr / x11r6 / lib / x11 / fonts / trueType

Find Simsun.ttf and Tahoma.ttf to copy them to / usr / x11r6 / lib / x11 / fonts / trueType

The easiest way is to copy one from a Windows partition (Mount_NTFS / DEV / AD0S1 (your NTFS device) / MNT)

You can find it from the Windows / Fonts directory. If you can only find SIMSUN.TTC, you can rename it to the specified directory.

You can use the font of the SIM in / Windows / Fonts.

#CP SIMSUN.TTF / USR / X11R6 / LIB / X11 / FONTS / TRUETYPE

#cp Tahoma.ttf / usr / x11r6 / lib / x11 / fonts / trueType

3) Create a font file:

#CD / USR / X11R6 / LIB / X11 / FONTS / TRUETYPE

#ttmkfdir> fonts.dir

#cp fonts.dir fonts.scale

2. Modify / etc / x11 / xf86config

Comment

Load "freetype"

Load "Record"

Load "Type1"

Add LOAD "XTT" 3. Modification /usr/x11r6/etc/fonts/fonts.conf 1) in

/ USR / X11R6 / LIB / X11 / FONTS ~ / .fonts Add / usr / x11r6 / lib / x11 / fonts / trueType 2) Beautifying the SIMSUN font in Gnome

Add: /usr/x11r6/etc/fonts/fonts.conf Add:

SIMSUN

True

True

false

NSIMSUN

True

true false

SIMSUN

16

false

True

NSIMSUN

16

false

True

NSIMSUN

false

4 configuration fonts and gnome

1) Backup font file:

Cp / usr / x11r6 / share / themes / default / gtk / gtkrc.zh_cn /usr/x11r6/share/themes/default/gtk/gtkrc.zh_cn.bak)

2) Set the area and language of GNOME:

Replace /USR/X11R6/share/gnome/gtkrc.zh_cn is the following content:

STYLE "gtk-default-zh-cn" {

FontSet = "- * - * - Medium-R-NORMAL - 12 - * - * - * - * - * - ISO10646-1, * - r- *"

}

Class "gtkwidget" style "gtk-default-zh-cn"

3) The same replacement /usr/x11r6/share/themes/default/gtk/gtkrc.zh_cn4)cp /usr/x11r6/share/themes/default/gtk/gtkrc.zh_cn ~ / .gtkrc.zh_cn

5) Set the font for SIMSUN, 10 in the font settings of Gnome

Install FcitX2.0 input method:

1 Update Ports Tree

1) If you do not have CVSUP, you can install it via Ports or PKG_ADD.

2) Next, a ports-support to / usr is replicated from the / usr / share / examples / cvsup. This is convenient for future use, and maintains the original example.

# CP / USR / Share / Examples / CVSUP / PORTS-SUPFILE / USR

3) Edit Ports-Suppirl

Will * default host = change_this.freebsd.org

Change to * default host = cvsup.freebsdchina.org (your favorite CVSUP server)

If you want the entire update ports tree, you don't need to do other changes directly to exit.

If you only want to update the ports, comment out the point of the ports you want to update after you go out (Ports-Chinese annotation must be unwrapped, it should be fcitx2.0.1)

4) Start updating Ports tree:

# cvsup -g -l 2 / usr / ports-support

Seeing the display below indicates that the update is successful:

Shutting Down Connection to Server

Finished surcessFully

2 Install the FCITX2.0.1 input method:

# CD / USR / PORTS / CHINESE / FCITX

# make install clean

3 configuration input method

1) Modify ~ / .profile, Add: lang = zh_cn.euccn lc_all = zh_cn.euccn

LC_TYPE = zh_cn.euccn export lang lc_all lc_type

2) Modify ~ / .cshrc (if you use CSH)

Stenv lc_all zh_cn.euccn setENV lang zh_cn.euccn

SetENV LC_TYPE EN_CN.EUCCN

Export Lang LC_All LC_TYPE

If you are other shells, please modify

3) Modify ~ / .xinitrc Add:

Export XModifiers = @ im = fcitx fcitx & to the beginning

According to the above description, it should be able to complete the Chinese and FCITX2.0.1 installation of FreeBSD / GNOME2.

转载请注明原文地址:https://www.9cbs.com/read-18061.html

New Post(0)