2008年10月21日 星期二

VirtualBox - Spawning Session 解法 in Ubuntu

在安裝完一次的 Kernel 更新之後,VirtualBox 就出現問題了,啟動虛擬機的時候會跑一個視窗,上面寫著 Spawning Session 然後一直卡在進度 0 % 沒有動作,如果用舊版的 Kernel 就可以正常執行,試著找了一下,在官網也沒有找到什麼解答:

http://forums.virtualbox.org/viewtopic.php?p=37897&sid=da7c0a20c648e320c82afb45d58678a5

然後嘗試想用命令啟動 (覺得是 Management UI 的問題),發現這麼一段錯誤訊息:

jty@ubuntu:~$ VBox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.27-4-generic) or it failed to load.
Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
Unknown application - VBox

原來是因為 Kernel Module 的版本不對了,所以才出現狀況的,按著上面的指令重新編譯一次 Kernel Module,就可以了…

PS: 注意指令的大小寫是不同意義的! eg: VBox # vbox


2008年10月20日 星期一

Clonezilla Live-免安裝的單機版還原系統



Clonezilla Live對Windows系統的備份與還原

GParted(Gnome Partition Editor) - 磁區調整,和Partition Magic一樣Magic

無法啟動 Windows 防火牆服務

如果要重新安裝 Windows 防火牆, 請依照下列步驟執行:
  1. 請按一下 [ 開始 ] , 按一下 執行 , 輸入 cmd 然後按一下 [ 確定 ]
  2. 在命令提示字元, 輸入下列命令列, 並按 ENTER 鍵:
    Rundll32 setupapi,InstallHinfSection Ndi-Steelhead 132 %windir%\inf\netrass.inf
  3. 重新啟動 Windows。
  4. 請按一下 [ 開始 ] , 按一下 執行 , 輸入 cmd 然後按一下 [ 確定 ]
  5. 在命令提示字元中輸入下列命令,然後按 ENTER:
    Netsh firewall reset
  6. 請按一下 [ 開始 ] , 按一下 執行 , 輸入 firewall.cpl 然後按 ENTER 鍵,在 [ Windows 防火牆 ] 對話方塊中, 按一下 [ 開啟 (建議選項) ] 及 [ 確定 ]。

2008年10月15日 星期三

Bridging VirtualBox 1.6.2 on Ubuntu 8.04.1

前言:VirtualBox 安裝完成後,網路的初始設定為 NAT 模式,如此的設定 guest 可上網但無法連線網路芳鄰,host 則無法上網。必須改為 Bridging 模式才可解決此問題,設定如下:

The steps I mentioned here is assumed that the host system is behind a router and the ip addresses are distributed by DHCP from the router.

Step 1 :

Install the required package for the bridged network on the host.

sudo apt-get install uml-utilities bridge-utils

Issue the following command to stop the network interface.

sudo invoke-rc.d networking stop

Edit the /etc/network/interfaces by the below command.

sudo nano /etc/network/interfaces

The content of the file should be like this. That is, append the line of 「auto br0」 and the rest to the end of /etc/network/interfaces. The codes are for bridging eth0 and you can change it as required.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Restart the network interface.

sudo /etc/init.d/networking restart

Step 2 :

Still on the host. Issue the following commands.

sudo VBoxAddIF vbox0 `whoami` br0
VBoxManage modifyvm "My VM" -hostifdev1 vbox0
sudo chmod 0666 /dev/net/tun

* where 「My VM」 is the name of your guest (eg myself is 「WinXP」). The network interface should be Host Interface.

Make sure, at the GUI VirtualBox panel, select 「Network」, Select 「Host Interface」 at 「Attached to」 and fill in the blank to 「vbox0」 at 「Interface Name」.


2008年10月12日 星期日

Total Commander檔案總管隨身版

大家對windows commander 或是 total commander應該不陌生,他是我認為在視窗系統裡面最強的檔案管理的應用程式(現在它也支援隨身版本了,有一般隨身的版本和U3版)。當然他除了檔案管理外,他也具備幾項優異的功能。
  • 工具列的設定空間大,可讓你自行設定的的工具列內容。
  • 本身也是一個ftp的客戶端軟體,所以你可以連到任何一個ftp伺服器上,來下載或上傳檔案並加以管理。或是你有ftp伺服器的話,它更是可以成為你管理伺服器的利器。
  • 它也支援多標籤管理,更容易讓你掌握日益增多的檔案和其所在。
  • 讓有備份的習慣的你,利用其本身的比對目錄和同步目錄的功能,使你更容易掌握檔案更新與否,因此是你最方便的工具。
  • 列印檔案清單、檔案清單(含子目錄)和檔案內容,使你除了直接在電腦上比對資料外,亦可利用其他方式來比對你的資料,讓你瞭解目前的資料和資料的架構。
  • 支援外掛的功能,而其外掛功能可分為四大類:
  1. Packer extensions (plugins)
  2. File system extensions (plugins)
  3. Lister extensions (plugins)
  4. Content plugins (for Total Commander >=6.50)
  • 支援壓縮檔案IP, ARJ, LZH, RAR, UC2, TAR, GZ, CAB, ACE等,或經由外掛處理。

當然還有其它強大的功能如:多功能更換檔名、縮圖等,或是結合外掛的功能如:秀圖和燒錄的功能也都應有盡有。若你還有什麼問題也可上他們的討論區去討論和發現它新的功能。

附記:

  • 一般隨身版本需要在你的電腦內安裝後,下載一個安裝的小工具tc2usb tool就可以了。