Thursday, November 02, 2006

VMware Full Screnn Mode in Linux

1 - Install VMWare

2 - Install guest OS

3 - Run guest OS

4 - Install VMWare Tools

5 - VMWare -> View
[X] Autofit window
[X] Autofit guest

6 - VMWare -> Edit -> Preferences -> Display
Autofit
[X] Autofit window
[X] Autofit guest
Full Screen
( ) Resize host
(o) Resize guest
( ) Don't resize

7 - VMWare -> Edit -> Preferences -> Input
Keyboard and Mouse
[X] Grab keyboard and mouse input on mouse click
[ ] Grab keyboard and mouse input on key press
Cursor
[ ] Grab when cursor enters window
[X] Ungrab when cursor leaves window
[ ] Hide cursor on ungrab

8- VMWare -> View -> Toolsbars
[o] Selective text beside icons

9 - Enjoy !

Tuesday, September 19, 2006

安裝Internet Explorer

在Linux下雖然有Firefix來瀏覽網頁,不過有些網頁用Firefox顯示起來就是有些怪,而且以的還限制只能用IE來開啟.
要在Linux下裝Internet Explorer大部分都是使用wine來安裝,不過我是了很多版本就是裝不起來(在裝IE總是有錯誤訊息) ,最近在網路上有人把裝IE的步驟寫成一個執行程式,它會自動從微軟網頁下載套件然後安裝. 另外他還能選擇要裝什麼語言. 在他的網頁上還宣稱連IE 7都能裝.


首先要先安裝wine,在SuSE的安裝光碟就能找到(因為我裝wine的時候就把wine-tool一起裝了所以 不知道wine-tool是不是一定要奘)
http://www.tatanka.com.br/ies4linux/news/ 下載 ies4linux
解壓縮後,執行目錄裡的ies4linux (#./ies4linux)

他會自動安裝IE6.0版,不過會問你是否要裝5.5跟5.0的版本以及要安裝甚麼語言

之後就會自動下載套件來安裝了

安裝完成後在桌面就會出現圖示,這時候點看看有沒有IE跑出來啦!

我在別的網站上看到說需要有 cabextract套件,不過我安裝的時候倒是很順利!


Wednesday, September 13, 2006

安裝"compiz-quinn"



裝SuSE的最初目的就是喜歡他的3S桌面特效,不過現在幾乎每種Linux版本都能裝XGL了. 而且做出來的效果還比SuSE的還多(像在SuSE中啟動compiz後佈景設置只能用預設的)

最近在網路上終於找到能用在SuSE的compiz管理套件"compiz-quinn".他的功能比SuSE的還更多,而且還能更改佈景.

首先在http://software.opensuse.org/download/Compiz-Quinn/SUSE_Linux_10.1/i586/
下載compiz-quinncvs,xgl-cvs,librsvg,libwnck,cgwd-themes然後使用zen-installer安裝就行了(如果有已經安裝過的就不用下載)

安裝完成後在作業階段新增compiz-start.py自動啟動,最後重新登入就會在系統列看到小圖示了
他還能隨意更換不同桌面系統的佈景設定,還有一堆關於XGL的外掛



不過在我電腦用有點不大穩定,有時候把佈景轉換成compiz時整個桌面會掛掉害我重新開機不少次.
可能是顯示卡太嫩吧(內建的X200 >"< )



Saturday, June 24, 2006

安裝Simplescalar

1. Download SimpleScalar Tool Set
These can be found on the SimpleScalar website, http://www.simplescalar.com/docs.html

Need the following files before installing:

simplesim-3v0d.tgz
simpleutils-990811.tar.gz
simpletools-2v0.tgz
gcc-2.7.2.3.ss.tar.gz

They can be found at the following locations:

simplesim & simpletools: http://www.simplescalar.com/tools.html
simpleutils: http://www.eecs.umich.edu/mirv/
gcc: http://arch.cs.ucdavis.edu/RAD/gcc-2.7.2.3.ss.tar.gz


2. Untar the source code

Untar the source code into a simplesim directory

mkdir (chosen installation directory) (wherever you want to put this...you can name it whatever)
tar xzvf (the z flag unzips a gzip file as well as untars it....
if you have straight tar files then use tar xvf )

In simpetools-2v0.tgz, there is a gcc-2.6.3 compiler. Since we don't need this, delete it.

rm -rf gcc-2.6.3



3. Install

(在Suse10.1的安裝光碟理好像沒有這個檔案,我是從Fedora Core5的光碟借來用的)
Check gcc version by entering "gcc -v". GCC 4.x will cause "invalid lvalue in increment" error
while installing gcc.
GCC 3.2 are included with the Fedora Core 4 installation CD or DVD.
Make sure to have the following RPM's installed.

For CD compat-gcc-32 (On disk 3)
compat-gcc-32-c++ (On disk 4)


Setup environment variables for easy install.

export HOST=i386-*-linux
export IDIR=/home/(your-login-name)/(chosen installation directory)


Install simpleutils.


cd $IDIR/simpleutils-990811
./configure --host=$HOST --target=sslittle-na-sstrix --with-gnu-as --with-gnu-ld --prefix=$IDIR
make
make install

(在Suse10.1會出現這個問題,不過在Fedora Core5就不會)
NOTE: about "../../src/ld/ldlex.l:577: error: `yy_current_buffer' undeclared (first use in this function)"
If you are getting `yy_current_buffer' undeclared errors, you are using a version of flex
which is too new, and buggy (for example 2.5.31).
We advise to uninstall flex and install the 'flex-old' package as a workaround)

Install simplesim.
cd $IDIR/simplesim-3.0
make config-pisa
make
make sim-tests

Install gcc.

cd $IDIR/gcc-2.7.2.3
./configure --host=$HOST --target=sslittle-na-sstrix --with-gnu-as --with-gnu-ld --prefix=$IDIR
make LANGUAGES="c c++" CFLAGS="-O3" CC="gcc32"
make install LANGUAGES="c c++" CFLAGS="-O3" CC="gcc32"

NOTE: If GCC 3.2 are not installed previously, replacing CC="gcc32" with CC="gcc".


NOTE: At some point, the make will fail due to an error and stop compilation.
The followings changes should cause the make to complete successfully.
Some files are set to be read only, changing the parperity if the file need to be modified.

1. Open insn-output.c in a text editor. Ensure that all multi-line quotes that
are broken over several lines are properly escaped using the correct escape
character. In this case V "\".

2. On line 35 of objc/sendmsg.c, add the following "#define STRUCT_VALUE 0"

3. find "stdio.h" ($IDIR/sslittle-na-sstrix/include) at the right place in that file and delete __NORETURN

4. gcc/obstack.h, line 341. delete "(void **)" becomes "*(__o->next_free)++ = ((void *)datum); \"

5. gcc/cxxmain.c, line 2978. disable this line

6. One line 60 of protoize.c, replace the "#include " with
"#include ".

4. Verify

First verify that simplesim is installed correctly.

cd $IDIR/simplesim-3.0
./sim-outorder tests-pisa/bin.little/test-math

If results are generated from this, simplesim is most likely installed correctly.

Next verify that the cross-compiler is working. Create a basic C program (like the "hello world" program), name
it test.c, and place it in a new directory called dev.

cd $IDIR
mkdir dev
cd dev
(create test.c and place in $IDIR/dev)
cd $IDIR
bin/sslittle-na-sstrix-gcc -o test dev/test.c
simplesim-3.0/sim-outorder test

If some errors like "syntax error before ..." occur, sslittle-na-sstrix/include/stdlib, line 43,44, change into #define __NORETURN
and #define __CONSTVALUE

If results are generated from this, the cross compiler is most likely installed correctly.

Saturday, June 17, 2006

溫哥華夜景

雖然是一年前拍的 XD
不過再在翻出來看還是好漂亮


安裝VMware Workstation

之前都是在XP下裝VMware來灌Linux
這還是第一次在Linux下用VMware來裝XP (誰叫Linux下類似visio的軟體不好用)

結果在Suse 10.1雖然能夠安裝成功,不過在後面的configure卻會發生錯誤
之後有請google在一個看都看不懂的德文網站看到有patch可以下載

不過要用到全螢幕還需要做設定 研究中....

在Suse10.1 使用Ati顯示卡裝Xgl

很多人看到有Xgl的3D桌面才跑來裝Suse (我就是...)
Got my SUSE Linux 10不過以為只要把 Xgl/Compiz 這兩個套件給裝了就能看到炫麗的桌面....
結果裝好後啥都沒發生...
之後才知道怎麼裝,現在正看爆炫的桌面打這篇文章

首先你要先裝好Suse10.1 (我承認這句是廢話...)
Got my SUSE Linux 10之後在裝Xgl之前還要先裝1. kernel-source 2.gcc 3. make 還有 Xgl/Compiz

裝好上面這些套件後,就來準備
kernel modules 吧(隨然感覺沒啥用處,不過沒差啦)
在終端機登入成root
# cd /usr/src/linux
# make mrproper
# make cloneconfig
# make modules_prepare

最後再清除
kernel source
# make clean


這裡最重要的是OpenGL必須由硬體驅動才行
Got my SUSE Linux 10在終端機打glxinfofglrxinfo 來看你的OpenGL是由誰驅動的
如果是mesa那就不行啦,這時就要裝Ati的驅動程式

驅動程式到Ati網頁找吧 (相信大家的能力)
在安裝時要退出視窗介面,所以在終端機用root登入輸入# init 3
到你儲存的目錄下把package解出來,因為我的電腦是AMD64所以輸入
# sh ./ati-driver-installer-8.24.8-x86_64.run –buildpkg SuSE/SUSE101-AMD64
再來就安裝啦~
# rpm -ihv fglrx64_6_9_0_SUSE101-8.23.7-1.x86_64.rpm
安裝的時候應該不會有錯誤....

因為在有些電腦在下一個步驟會有問題,所以先執行
# ldconfig

ot my SUSE Linux 10 執行 # aticonfig –initial –input=/etc/X11/xorg.conf
Got my SUSE Linux 10 # sax2 -r -m 0=fglrx

到這裡驅動程式就安裝完成啦 重新啟動吧!

Got my SUSE Linux 10重開機後檢查 fglrxinfo
看看OpenGL的驅動程式是否已經變成由Ati了

有的話舊是快成功啦
到控制中心的Desktop Effects Setting把Xgl啟動(應該會叫你重新登入)
登入後就會看到軟綿綿的視窗啦!
我的電腦用X200這種爛爛的顯示卡都跑的順順順