Record Anything In My Life.


[SOLVED]libexec/ld-elf.so.1: Shared object “libc.so.5″ not found, required by mplayer
February 13, 2008, 7:37 am
Filed under: Fedora

step 1 : remove mplayer (cd /usr/ports/multimedia/mplayer ; make clean deinstall )

step 2 : install nvidia driver ( cd /usr/ports/x11/nvidia-driver ; make install clean)

step 3 : reinstall mplayer(make config install clean)<must enable with nvidia support>

Congratulations!



Update Ports Tree
February 10, 2008, 7:59 am
Filed under: FreeBSD

just key commad

#portsnap fetch extract update



gcin (next generation of xcin)
February 7, 2008, 2:39 am
Filed under: FreeBSD

#cd /usr/ports/chinese/gcin
#make install clean
#vi ~/.xinitrc
export LANG=zh_TW.Big5
export XMODIFIERS=@im=gcin
xgcin&
exec gcin -d &

you can use command gcin-setup to set up what your favorite Keyboard Layout/IME is



安裝嘸蝦米輸入法 - Xcin
February 7, 2008, 2:06 am
Filed under: FreeBSD

1.download liu5.cin from http://gais.cs.ccu.edu.tw/GaisFtp/
2.copy liu5.cin to  /usr/X11R6/lib/X11/xcin25/tab/big5/
3.cd /usr/X11R6/lib/X11/xcin25/tab/big5/
4.use this command to generate liu5.tab   /usr/X11R6/lib/X11/xcin25/bin/cin2tab liu5.cin
5.please modify you xcinrc(default /usr/X11R6/etc/xcinrc)
    ;
    ;  This is the global configuration of the zh_TW.Big5 locale
    ;
    (define zh_TW.Big5
      ‘((DEFAULT_IM         “cj”)
        (DEFAULT_IM_MODULE  “gen_inp”)
        (DEFAULT_IM_SINMD   “DEFAULT”)
        (PHRASE             “default.phr”)
        (CINPUT             (cj simplex phone bimspinyin bimsphone jyutping
    -                         array30 zh_hex))
    +                         array30 zh_hex liu5))
        (FONTSET            “-sony-*-16-*-iso8859-1,-*-16-*-big5-0″)
        (OVERSPOT_FONTSET   “-sony-*-16-*-iso8859-1,-*-16-*-big5-0″)))
   
    ;
    ;  Here are detailed configuration of each IM (for zh_TW.Big5 locale).
    ;
    + (define liu5@big5
    +         ‘((SETKEY               9)
    +           (AUTO_COMPOSE         YES)
    +           (AUTO_UPCHAR          YES)
    +           (AUTO_FULLUP          NO)
    +           (SPACE_AUTOUP         YES)
    +           (SELKEY_SHIFT         YES)
    +           (SPACE_IGNOR          YES)
    +           (SPACE_RESET          YES)
    +           (AUTO_RESET           YES)
    +           (WILD_ENABLE          YES)
    +           (BEEP_WRONG           NO)
    +           (BEEP_DUPCHAR         NO)))



define fonts.dir
January 28, 2008, 11:52 am
Filed under: FreeBSD

fonts.dir的第一行一般是告訴Xwindows一共有多少行字體資訊,從第二行開始起就是正式的字體設置資訊了,一般分兩部分,第一部分為參數部分,是配合第二部分來定義的,現在我來分析下面一行字體資訊給大家一個參考:

ab=y:ai=-0.2:sw=1:bw=0.5:simsun.ttf-misc-simsun-bold-ro-normal–0-0-0-0-p-0-gb18030.2000-0

ab=y 啟用粗體字,預設ab=n 既當沒有設置的時候是不啟用粗體的,配合bold同時使用.
ai=-0.4 左傾斜一個字的0.4的寬度,如果ai=0.4就是右傾斜一個字的0.4寬度,預設ai=0.請配合o或者i同時使用,由於這里是負的所以這里還需要配合r使用,所以后面是ro.
sw=1 字體寬度為1,預設為0.這個一般配合后面的p使用,使用p的時候,由於占用的是字符寬度,所以可能顯示出來的字疊在一起,加上這個后就會把字和字的距離拉開.
bw=0.5 字體間距離為0.5個字的寬度,預設為0,假設你要使用斜體,由於斜體占的寬度比較寬,比如上面的bw=-0.4也就是說字體的上邊部分左移0.4個字的 寬度,那麼我們為了看字的方便,需要吧字體寬度為之為bw=0.5這樣有0.1之間的距離,不會導致字和字之間看起來重疊.
simsun.ttf 字體文件名,這個不用解釋了.
misc 字體制造商
simsun 字體明稱,這個我們可以隨便修改,比如改成song,那麼當我們在Xwindows里設置字體的時候找song字體就行了.
bold 粗體,這個還有一個選項medium(普通)假如使用了bold請同時把ab=y加上才起作用.
ro 反斜,其中r(Roman羅馬體),i(Italic斜體),o(Oblique傾斜)當r和其他兩個一起使用的時候為反斜.當使用i,o,ro,ri等 的時候,請使用ai=n,其中n=0.2,-0.2,0.4,-0.4等.如果不設置ai=n,那麼這些也都失去效果.
normal 字符集寬度為標準, 此外還有 condensed(壓縮), narrow(窄), double(兩倍寬)
0 像素大小,這個字體服務器會自動修改,所以一般為0.
0 點大小,同上.
0 X軸解析度,同上.
0 Y軸解析度,同上.
c 字間距為c,即一個字的距離,另外還有p,即字符距離
0 平均寬度,這個字體服務器會自動修改,所以一般為0.



add other fonts
January 28, 2008, 11:36 am
Filed under: FreeBSD

首先要有 mingliu.ttc, 將該字型拷貝到 /usr/local/share/fonts/TrueType/ 下,然後用 ttfm 安裝該字型:
# ttfm.sh –add xttfm /usr/local/share/fonts/TrueType/mingliu.ttc

# fc-cache -f -v /usr/X11R6/lib/X11/fonts/TrueType/

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

#more fonts.dir

 then you can see the form of fonts



Get source codes from RPM in FreeBSD
January 27, 2008, 5:43 am
Filed under: FreeBSD

 rpm2cpio *.rpm>*.cpio

cpio -i -d <*.cpio

*替换成你需要安装的包 *替換成你需要安裝的包



使用舊核心開機 (kernel.old)
January 26, 2008, 6:00 am
Filed under: FreeBSD

一開機進入

會停在十秒那,可以選擇,請選第6項

之後可以輸入lsmod看到底目前載入了那些東西

因為我們要用舊核心來開機

#unload

#boot /boot/kernel.old

這樣就可以正常的使用舊核心來開機了



install sound driver
January 26, 2008, 1:17 am
Filed under: FreeBSD

# kldload snd_driver
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Yamaha DS-1E (YMF724F)> at memory 0xdffe0000 irq 18 kld snd_ds1 (4p/2r/0v channels duplex default)

then modify /boot/loader.conf  or /boot/loader.conf.local

snd_ds1_load=”YES”



samba-3.0.23c_2,1 broken IPC and code.
January 26, 2008, 12:54 am
Filed under: FreeBSD

#make config

please uncheck “With SMBSH wrapper for UNIX commands” and “With LDAP support “.

with regrads.




Follow

Get every new post delivered to your Inbox.