這只是提供快速的測試方法,方法不是絕對的。其中有些地方你會需要有 root 的權限
如果你懶得自己編譯,最後面有一些 ScreenShot 可以看看
$ cd /usr/src $ cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg login CVS password:上面命令會把原始碼抓到目錄 xc$ cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co -P xc
#define ProjectRoot /opt/Xorg-6.7.99.1 #define NothingOutsideProjectRoot YES #define DefaultGcc2i386Opt -O0 -g #define HasFreetype2 YES #define HasFontconfig YES第一行指定將 Xorg-cvs 裝到 /opt/Xorg-6.7.99.1 去
$ make World > log 2>&1因為建立過程會有大量訊息產生,為免增加你 CPU 負擔,所以把訊息都存至檔案 log 中
如果在編譯 Wraphelp.c 時出現錯誤,請手動編輯這個檔案,加入
#include <stdint.h>
$ make install
Section "InputDevice" Identifier "Keyboard0" Driver "Keyboard"做些許修改為
Section "InputDevice" Identifier "Keyboard0" Driver "kbd"因為舊的 keybord driver 已經不能用了
Section "Extensions" Option "Composite" "Enable" EndSection
$ ln -s /opt/Xorg-6.7.99.1 /usr/X11R6或是用另一個我喜歡的方法
$ mount --bind /opt/Xorg-6.7.99.1 /usr/X11R6到時候不想玩了,只要把 /usr/X11R6 放回去或是 umount 就可以了
目錄換過去後記得讓 ldconfig 重新搜尋一下 shared library 的位置
$ ldconfig
要使用視窗陰影,透明視窗等功能,你需要一個 composite manager,像是 Keithp 的 xcompmgr。
$ cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xapps login CVS password:$ cvs -d :pserver:anoncvs@pdx.freedesktop.org:/cvs/xapps co xcompmgr
$ export PKG_CONFIG_PATH=/opt/Xorg-6.7.99.1/lib/pkgconifg/ $ ./autogen.sh ; ./configure --prefix=/usr ; make ; make install
xcompmgr 接受幾個參數,其中你必須指定 -c 或 -s 才會有陰影
-c 是指由 client 端來繪製 -s 由 server 端繪製
$ cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xapps login CVS password:$ cvs -d :pserver:anoncvs@pdx.freedesktop.org:/cvs/xapps co transset
$ export PKG_CONFIG_PATH=/opt/Xorg-6.7.99.1/lib/pkgconifg/ $ make ; make install
transset 接受一個數字為參數, 1 代表不透明,0.5 是 50%,依此類推。
有任何建議或是願意提供 ScreenShot ,請寄到 kanru.96 [big mouse] stu.csie.ncnu.edu.tw
最後修改 $Id: /local/webpage/docs/xorg-mini-howto.html 634 2005-02-17T07:25:39.792865Z kanru $