2008年2月26日 星期二

Windows XP 搜尋功能的缺陷

在 Windows XP的內建搜尋當中,有個功能是可以找「檔案裡的字或片語」,這對程式設計師或是經常需要改程式的人來說,是非常有用的功能。但是使用過就會發現,怎麼找不到東西?例如要找程式檔裡的某個字串,確定檔案內容有,但就是搜尋不到。這是因為這項功能預設只會找已登錄的純文字檔,例如 txt,所以其他檔案就找不著囉!以下是微軟官方網站提供的方法:


  1. 按一下 [開始],再按 [搜尋] (或指向 [搜尋],再按 [搜尋檔案及資料夾])。

  2. 按一下 [變更喜好],然後按一下 [啟動索引服務 (可加快本機搜尋)]。

  3. 按一下 [變更索引服務設定 (進階)]。請注意,您不必開啟「索引服務」。

  4. 在工具列上,按一下 [顯示/隱藏主控台樹狀目錄]。

  5. 用滑鼠右鍵按一下左邊窗格中的 [本機上的 Indexing Service],然後按一下 [內容]。

  6. 在 [產生] 索引標籤上,按一下以選取 [含有未知副檔名的索引檔案] 核取方塊,然後按一下 [確定]。

  7. 關閉 [Indexing Service] 主控台。

以上面設定即可。真是不友善的Windows

2008年2月16日 星期六

Debian and RetHat 的 RunLevel

RedHat
  • 0 - Halt
  • 1 - Single
  • 2 - Not used/User definable
  • 3 - Full multi-user NO display manager
  • 4 - Not used/User definable
  • 5 - Full multi-user with display manager (GUI)
  • 6 - Reboot

Debian
  • 0 - Halt
  • 1 - Single
  • 2 - Full multi-user with display manager (GUI)
  • 3 - Full multi-user with display manager (GUI)
  • 4 - Full multi-user with display manager (GUI)
  • 5 - Full multi-user with display manager (GUI)
  • 6 - Reboot

Redhat預設runlevel 5 啟動

Debian預設runlevel 2 啟動

在debian中,如果啟動時要進入文字界面,可安裝rcconf,去掉gdm服務就可以了
apt-get install rcconf
執行rcconf拿掉不需要的Service,Ex:gdm