Thursday, September 23, 2010

Common operation of FreeBSD 5.2




1. Chinese locale
FreeBSD 5.2 currently supported by the Simplified Chinese locale has the following:
zh_CN.GB18030
zh_CN.GBK
zh_CN.EUC
zh_CN.eucCN
As zh_CN.EUC is not a formal Chinese locale, FreeBSD 5.2 Release of XFree86 removed the support of zh_CN.EUC only support zh_CN.eucCN, for zh_CN.GBK and zh_CN.GB18030 in most Chinese ports that have not yet appropriate support. Is still zh_CN.eucCN (using GB2312 encoding) locale is most formal, but also the most mature.
The Chinese locale set methods (bash, can be used chsh to change, fcitx input method):

Code:

# File / etc / profile
export LANG = "zh_CN.eucCN"
export LC_CTYPE = "zh_CN.eucCN"
export XMODIFIERS =''@ im = fcitx''

Zh_CN.eucCN by the zh_CN.EUC to trigger the ports of some new problems. If fcitx to start, but the control panel can not display Chinese characters. The solution is to open / usr / ports / chinese / fcitx / Makefile, change all the strings zh_CN.EUC zh_CN.eucCN can.

Of course, you can still set zh_CN.EUC, but you need to ln a zh_CN.EUC the locale:

Code:
cd / usr / share / locale & & ln-s zh_CN.eucCN zh_CN.EUC



2.X under the best terminal gnome-terminal
If you use bash, and like the Linux prompt is displayed, you can / etc / profile add the following:
Code:
if ["$ BASH"]; then
PS1 =''u @ h: w $''
else
if ["` id-u `"-eq 0]; then
PS1 =''#''
else
PS1 =''$''
fi
fi

If your gnome-terminal does not make any settings, / etc / profile will not play any role. Can be set as follows:
Code:
Start gnome2 (startx / usr/X11R6/bin/gnome-session) and start the gnome-terminal, open the menu and click on: Edit -> current profile (U )..., open the "Title and Command" option card, select the "run shell command" can be after the close.


3.mozilla other browser plug-ins (Flash, acrobat):
First, install linuxpluginwrapper the port:

Code:
cd / usr / ports / www / linuxpluginwrapper & & make all install clean

And then in / etc under the accession libmap.conf which reads as follows:
Code:
# / Etc / libmap.conf for FreeBSD 5.x
# $ Id: libmap.conf-FreeBSD5.x, v 1.1 2003/11/09 07:39:33 nork Exp $


# Flash6 with Opera is not avilable.

# Flash6 with Konqueror (temporary setting)
[/ Opt / mozilla / plugins / libflashplayer.so]
libpthread.so.0 liblthread.so.3
libdl.so.2 pluginwrapper/flash6.so
libz.so.1 libz.so.2
libstdc + +-libc6.2-2.so.3 liblstdc + +. so.4
libm.so.6 libm.so.2
libc.so.6 pluginwrapper/flash6.so

# Flash6 with Mozilla / Firebird / Galeon / Epiphany
[/ Usr/local/lib/linux-flashplugin6/libflashplayer.so]
libpthread.so.0 liblthread.so.3
libdl.so.2 pluginwrapper/flash6.so
libz.so.1 libz.so.2
libstdc + +-libc6.2-2.so.3 liblstdc + +. so.4
libm.so.6 libm.so.2
libc.so.6 pluginwrapper/flash6.so


# Acrobat with Opera
# [/ Usr/X11R6/lib/browser_plugins/nppdf.so]
# Libc.so.6 pluginwrapper / acrobat.so

# Acrobat with Konqueror (temporary setting)
# [/ Opt / mozilla / plugins / nppdf.so]
# Libc.so.6 pluginwrapper / acrobat.so

# Acrobat with Mozilla / Firebird / Galeon / Epiphany
# [/ Usr/local/Acrobat5/Browsers/intellinux/nppdf.so]
# Libc.so.6 pluginwrapper / acrobat.so



4.fat32, ntfs, cd9660 partition the problem of Chinese file name.
Chinese before the directory has gbfs port support, now can be realized without installing gbfs fat32 partition display Chinese file name. Is in the implementation of load-L zh_CN.eucCN mount_msDosfs parameters, such as:

Code:
mount_msdosfs-L zh_CN.eucCN / dev/ad0s1 / mnt / disk

Cd9660 for ntfs and format, then use the other parameters-C gbk, such as:
Code:
mount_cd9660-C gbk / dev/acd0 / cdrom

Code:
mount_ntfs-C gbk / dev/ad0s1 / mnt / win


5.gnome2 Chinese garbled in xmms and gimp problem.
Both procedures are based on older gtk +1.2, the problem can be garbled in the user directory set up. Gtkrc.mine file:
Code:
cat / usr/X11R6/share/themes/Default/gtk/gtkrc.zh_CN> $ HOME / .gtkrc.mine

Of course, you need according to your practical situation. Gtkrc.mine content, specific ways to refer to a number of posts in this forum.

6.nvidia official driver problems.
Driver Download: http://image.21tx.com/files/20050416/12254.gz
I configured the XFree86 nv driver that comes with (preferably xf86cfg). But after installed the nvidia driver can not start X, by constantly trying to only remove / etc/X11/XF86Config in
ChipSet
This line to start.






Recommended links:



BI, in the M & A growth?



FLV to PSP



GOOD Automation Tools



My favorite Themes And WALLPAPER



Compared with the performance of sybase vs. oracle



OGM to MKV



2009 CAXA Ten News



OGM TO MP4



How To Get All The Screen Colors Red, Green And Blue Values



Competitive STRATEGY: Legal spying



AMERICAN professional experts: seven double the efficiency and salary tips



Network And Internet COMPARISON



Legend of the case told a grand International arbitration claim was dismissed Wemade Results



Fireworks 4.0 Zhezhao Daquan ---- Second Class To Create A Bitmap Zhe Zhao



No comments:

Post a Comment