Summary: This is the experience I've had since using FreeBSD 5.2 current, highlighting the latest 5 different places from previous operations. Hope to be helpful to friends who are using the latest 5 current or are going to use 5.
Cd/usr/ports/shells/bash2 && make install cleanchsh-s/usr/local/bin/bash
2.2, set the Chinese locale:
Add in/etc/profle:
#file:/etc/profile
export LANG="zh_CN.eucCN"
export LC_CTYPE="zh_CN.eucCN"
2.2, installation Input method FCITX:
by ZH_CN. EUC changed to ZH_CN.EUCCN in ports will cause some new problems. If the FCITX can start, but the control Panel does not display Chinese characters. The solution is to open/usr/ports/chinese/fcitx/makefile and ZH_CN all strings. EUC changed to ZH_CN.EUCCN can be.
Of course you can still set it up as a zh_cn. EUC, but you need a zh_cn in ln. EUC's locale:
cd /usr/share/locale && ln -s zh_CN.eucCN zh_CN.EUC
Then add the FCITX boot parameter:
#file:/etc/profile
export XMODIFIERS="@im=fcitx"
2.3, plus we are familiar with the prompt character:
Insert in/etc/profile:
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
2.4, let gnome2 under the gnome-terminal source/etc/profle:
Start Gnome2 (startx/usr/x11r6/bin/gnome-session) and then start Gnome-terminal, open the menu and click:
Edit-> Current profile (U) ..., open the Titles and Commands tab, and then close after you select "Run commands as shell."
Mount_msdosfs-l Zh_cn.euccn/dev/ad0s1/mnt/disk
For NTFS and cd9660 formats, use another parameter-C GBK, such as:
Mount_cd9660-c Gbk/dev/acd0/cdrom
Mount_ntfs-c gbk/dev/ad0s1/mnt/win3.2, display the Chinese file Life command.
Previously displayed Chinese filename needs to be installed Gnuls, not now. We can add the-w parameter to LS. Also-G is the explicit parameter that displays the color mode. You can insert in the/etc/profle:
Alias ls= ' LS-GW '
4, gnome2 in the Xmms and GIMP Chinese garbled problem.
Both programs are based on older gtk+1.2, and garbled problems can be created in user directories. gtkrc.mine Files:
cat /usr/X11R6/share/themes/Default/gtk/gtkrc.zh_CN > $HOME/.gtkrc.mine
cd /usr/ports/editors/vim && make all install clean拷入/etc/vimrc:
/usr/local/share/vim/vim62/vimrc_example.vim /etc/vimrc