2009年5月21日 星期四

How to enter Linux console, when the Linux is a VMware guest OS?

在VMware下的Linux如何進入終端機模式?

[ctrl]+[alt]+[space]+[F1]~[F6] --> console mode

[ctrl]+[alt]+[space]+[F7] --> X window

Usually, Linux reservers at least 6 consoles for us. You can simply press the [ctrl]+[alt]+[F1]~[F6] key combination to access these consoles. However, when using a Linux as a VMware guest system, the key combination mentioned above don't work any more.

WHY?

It is because, VMware uses [ctrl]+[alt] key combination to release the mouse and keyboard from guest to host.

Solution?

1. Change the VMware release key combination from [ctrl]+[alt] to  [ctrl]+[alt]+[shift].

2. In guest Linux system, press [ctrl]+[alt]+[space]+[F1]~[F6] in stead of [ctrl]+[alt]+[F1]~[F6].

For the same reason, to switch back to X window, you need to press [ctrl]+[alt]+[space]+[F7].

在Linux環境中,通常會預設保留六個終端機模式來使用,而要使用終端機模式,只要按[ctrl]+[alt]+[F1]~[F6]即可。可是,當你在VMware下使用Linux時,會發現按[ctrl]+[alt]+[F1]~[F6]後,並沒有進入終端機,因為,在VMware中,按[ctrl]+[alt]會將滑鼠和鍵盤還給主系統。

解決之道有二:

其一,將VMware的熱鍵改為[ctrl]+[alt]+[shift]。

其二,在Linux系統下,按[ctrl]+[alt]+[space]+[F1]~[F6]

同理,回到X window,按[ctrl]+[alt]+[space]+[F7]