目前分類:未分類文章 (12)

瀏覽方式: 標題列表 簡短摘要

Guest OS halts every few seconds. 

Mouse works fine when freezing, just the whole gui not responding at all.

 

Solution:

disconnect the CD-ROM, floppy, or other removable device in VMware.

 

 

這問困擾了我好多天 = =

文章標籤

kyletso 發表在 痞客邦 留言(1) 人氣()

1. 安裝JDK

2. 安裝eclipse for JAVA developer

3. 安裝ADT

Eclipse -> Help -> Install New Software

Add -> Name隨便打 -> Location https://dl-ssl.google.com/android/eclipse/

右下角選accept, Finish

4. 安裝Android SDK

若是出現"找不到JDK"的畫面, Back and Next, 就會找到JDK了 = =

5. AVD Manager安裝packages

記得新增Virtual devices

6. 設定SDK Location for eclipse

Eclipse -> Window -> Preferences -> Android

SDK r12沒辦法讀到路徑中有空格, 在設定SDK Location時, 

如果是32bit Windows預設安裝路徑, 可以設定成 C:\PROGRA~1\Android\android-sdk

         64bit Windows預設安裝路徑, 可以設定成 C:\PROGRA~2\Android\android-sdk

或是安裝sdk的時候, 安裝在無空格的路徑, 例如 C:\Android\android-sdk

文章標籤

kyletso 發表在 痞客邦 留言(1) 人氣()

這個世界太黑暗了....

文章標籤

kyletso 發表在 痞客邦 留言(0) 人氣()

Snow Leopard預設把外掛的NTFS儲存設備設定成read only, 沒辦法寫入檔案

google了一陣子才找到比較好的解決方法

以下的方法適用於有UNIX基礎的人

 

ref: http://forums.macrumors.com/showthread.php?t=785376&page=2

Quot from iBlacky @ macrumors.com

Rename the original /sbin/mount_ntfs tool:

sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig      

Create a script like this:

#!/bin/sh
/sbin/mount_ntfs.orig -o rw "$@“ 


save the script to /sbin/mount_ntfs

sudo chown root:wheel /sbin/mount_ntfs
sudo chmod 755 /sbin/mount_ntfs


Enjoy R/W access to NTFS volumes...

In case you don't like it 

sudo mv /sbin/mount_ntfs.orig /sbin/mount_ntfs

and everything is back to R/O.

文章標籤

kyletso 發表在 痞客邦 留言(0) 人氣()

首先要抱怨一下, pixnet沒有內建的工具可以插入程式碼片段, 好像也沒辦法內嵌javascript或css (為了安全性這可以理解)

但是要貼程式碼片段變成很麻煩...

 


 

#include <syscall.h>

#include <unistd.h>

...

syscall( __NR_syscall, arg... );

syscall( syscall_number, arg... );

...

 

沒有include syscall.h 的話, 就只能用 syscall_number

文章標籤

kyletso 發表在 痞客邦 留言(0) 人氣()

1. modify /home/id/.vimrc

2. add a line "hi Comment ctermfg=blue"

 

Edit: 12/06/2010  change "ctermfg=darkgrey" to "ctermfg=blue"

文章標籤

kyletso 發表在 痞客邦 留言(0) 人氣()

1. yum install gcc

(2. yum install kernel-devel)  optional

(3. yum install mkinitrd ) optional

4. "VM->install VMware Tools" and extract the file

5. ./vmware-install.pl

6. <Enter> <Enter> <Enter> ...

7. C header files: /lib/modules/$releasever/build/include

    如果沒有這些header檔案的話, 自己編一下kernel就會出現了, 不過這些vmware tools都會自己找到

文章標籤

kyletso 發表在 痞客邦 留言(0) 人氣()

1. download the source code from kernel.org or whatever.

2. read the "README" in the directory and that's it.  /jk

3. copy the config file in "/boot/" to "your_src_directory" (eg. /home/xxx/build/linux-2.6.xx/)

    and rename it as ".config"

4. > make oldconfig

5. <Enter> <Enter> <Enter> ...

6. > yum(apt-get) install ncurses-devel

7. > make menuconfig

    (p.s. turn off PAE or Page : Processor type and features --> High Memory Support)

8. > make -j2

    (-j2 means 2 jobs, speed up)

9. > make modules_install install

10. reboot

 

remember to modify the "/etc/grub.conf" file and change the "Timeout" to a reasonable value

(default is 0 =.=)

文章標籤

kyletso 發表在 痞客邦 留言(0) 人氣()

最近突然忙起來, 本來想要玩的WRK也不得已先暫停下來,

之前說要更新, 用Windbg來debug WRK, 其實已經弄好了,

只是事情太多不想花時間截圖什麼的, 而且其實還有一點點問題.

 

等之後空閒時間多一點, 一起把加system call都寫出來好了...

 

神啊! 拜託讓我資格考順利通過 orz

文章標籤

kyletso 發表在 痞客邦 留言(0) 人氣()

 

最近買了一本新書 - Windows核心原理與實務開發

windows_kernel01.png 

http://www.books.com.tw/exep/prod/booksfile.php?item=0010479211

這是一本被翻譯為正體字以及台灣用語的簡體字書, 原版是《Windows内核原理与实现》

作者blog http://blog.csdn.net/panaimin/archive/2010/02/02/5283070.aspx

這應該(?)是第一本直接講解Windows kernel code的書, 直接拿半開放的WRK source code來實做, 而不是反組譯. 也不用再去啃Windows Internals, 光看Windows Internals實在搞不懂他在說什麼東東.

終於有一本在Windows OS方面與Understanding the Linux Kernel相同"方便"的參考書, 我拿到WRK source code之後, 便迫不及待地嘗試安裝.

 


 

WRK v1.2 對應於 Windows Server 2003 SP1 以及 Windows XP x64 Professional, 原本WRK有提供Server 2003的image (裡面包含著已替換成WRK的OS), 由於我沒拿到這個image, 只好試試看手邊的Server 2003 SP2, 還好可以順利安裝.

書上是用Virtual PC來安裝Server 2003, 大家較熟悉的VMware應該也是可以安裝的, 我選擇用VMware, 因為比較方便XD

拿到WRK後, 先試試看可不可以編譯...

編譯環境: Windows 7 Enterprise (x86)

windows_kernel02.png 

windows_kernel03.png 

編好的kernel就放在 "base\ntos\build\exe" 下的 wrkx86.exe,

WRK可以在很多windows平台上編譯, 如果覺得麻煩, 也可以先安裝好Server 2003, 把WRK放到VM裡面, 在Server 2003上編譯, 步驟都一樣.

 


 

接下來在VMware裡安裝Server 2003 SP2,

測試環境: Windows Server 2003 Enterprise SP2 on VMware Workstation 7.1.1

安裝完後, 把WRK資料夾放進Server 2003裡(因為會使用到tools裡的東西), 如果之前是在Server 2003裡面編譯kernel, 可以直接使用.

windows_kernel04.png 

進入"tools\x86"(in Server 2003) 執行 link -dump -all c:\windows\system32\hal.dll | findstr pdb

如圖中黃框所示, 

halacpi.dll   -> halacpim.dll ; ACPI PIC-based PC [used by VirtualPC]

halaacpi.dll -> halmacpi.dll ; ACPI APIC-based PC

halapic.dll   -> halmps.dll ; MPS

找到相對應的dll, 例如這裡就是要找 halmacpi.dll (存放在 "ws03sp1hals\x86\halmacpi" 裡) ,

把他和之前編譯好的 wrkx86.exe , 一起複製到 c:\windows\system32 (in Server 2003) 裡.

 


 

最後一步, 要修改開機選單, 讓Server 2003開機使用剛剛編好的kernel.

開啟 c:\boot.ini , 在最後面加上一行:

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="WRK" /noexecute=optout /fastdetect /kernel=wrkx86.exe /hal=halmacpi.dll

其中, hal那邊填上之前複製進去的檔名.

存檔後重新開機...

windows_kernel05.png

就可以看到選單了, 其中, 選項WRK就是使用我們剛剛編好的kernel, 上一行的預設選項是原本的kernel

 


 

接下來, 我們要嘗試使用windbg來debug剛剛裝好的WRK,

篇幅太長, 下次再寫 XD

(pixnet有辦法在同一篇blog文章裡面分頁嗎?)

文章標籤

kyletso 發表在 痞客邦 留言(0) 人氣()

昨天去地下街買給老媽的生日禮物,


wii fit plus
這wii fit實在很重 (比想像中重很多),
不過回來試用後還算滿意, 老媽也很滿意 XD

wiifit01.png
志玲姐姐很正

 

wiifit02.png 

有些動作很困難

 

可惜我不常回家, 要不然我也該用一用這東西來減肥 XD

文章標籤

kyletso 發表在 痞客邦 留言(0) 人氣()

英文真是麻煩的東西,
把想法直接用英文寫出來也很麻煩...

啊啊啊~~

kyletso 發表在 痞客邦 留言(0) 人氣()