Virtual Box Virtual Keys

While a new Mac OS X laptop might be the perfect system for hosting a cornucopia of virtual machines, you may soon discover that many of the Mac function keys are already used by your laptop subsystem. How do you get something as simple as F12 to access the virtual BIOS using VirtualBox?

Fortunately, VirtualBox includes a utility that can be used to direct these unusual keyboard sequences from a command prompt.One of the many benefits of the Mac keyboard is the utilitarian mappings provided by virtually every function key. There are dedicated function keys to adjust screen brightness, volume and even eject a disc from the DVD-ROM drive. When running VirtualBox, however, many of these function keys fail to deliver the expected results in the host operating system.

Fortunately, VirtualBox includes a utility that can be used to direct these unusual keyboard sequences from a command prompt. The application is called VBoxManage and it is easy to use from a command prompt. On your Mac, open a terminal window and at the resulting text prompt you can begin issuing commands. An extremely popular command is Ctrl + Alt + Delete, which can be used to bring up the Windows logon dialog on XP:

VBoxManage controlvm [name] keyboardputscancode 1d 38 e0 53
继续阅读

libvirt升级错误记录

错误提示:
> *ImportError: /usr/local/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_0.10.2′
> not found (required by /usr/lib/python2.6/site-packages/libvirtmod.so)*
产生背景:
libvirt-1.2.3编译安装结束后,运行virt-install时产生的错误提示信息
解决方案:
参考https://www.redhat.com/archives/libvirt-users/2013-September/msg00197.html,
http://libvirt.org/compiling.html
编译之前运行./autogen.sh –system,使得编译安装的libvirt覆盖centos发行版中默认的libvirt

多终端管理器tmux使用详解

Ctrl+b // 激活控制台;此时以下按键生效

系统操作

? // 列出所有快捷键;按q返回

d // 脱离当前会话;这样可以暂时返回Shell界面,输入tmux attach能够重新进入之前的会话

D // 选择要脱离的会话;在同时开启了多个会话时使用

Ctrl+z // 挂起当前会话

r // 强制重绘未脱离的会话

s // 选择并切换会话;在同时开启了多个会话时使用

: // 进入命令行模式;此时可以输入支持的命令,例如kill-server可以关闭服务器

[ // 进入复制模式;此时的操作与vi/emacs相同,按q/Esc退出

~ // 列出提示信息缓存;其中包含了之前tmux返回的各种提示信息

窗口操作

c // 创建新窗口

& // 关闭当前窗口

数字键 // 切换至指定窗口

p // 切换至上一窗口

n // 切换至下一窗口

l // 在前后两个窗口间互相切换

w // 通过窗口列表切换窗口

, // 重命名当前窗口;这样便于识别

. // 修改当前窗口编号;相当于窗口重新排序

f // 在所有窗口中查找指定文本

面板操作

” // 将当前面板平分为上下两块

% // 将当前面板平分为左右两块

x // 关闭当前面板

! // 将当前面板置于新窗口;即新建一个窗口,其中仅包含当前面板

Ctrl+方向键 // 以1个单元格为单位移动边缘以调整当前面板大小

Alt+方向键 // 以5个单元格为单位移动边缘以调整当前面板大小

Space // 在预置的面板布局中循环切换;依次包括even-horizontal、even-vertical、main-horizontal、main-vertical、tiled

q // 显示面板编号

o // 在当前窗口中选择下一面板

方向键 // 移动光标以选择面板

{ // 向前置换当前面板

} // 向后置换当前面板

Alt+o // 逆时针旋转当前窗口的面板

Ctrl+o // 顺时针旋转当前窗口的面板

aida64序列号

ULUG1-PRWD6-U8DA7-8DMM4-FUYR8
FW4E4-J3UD6-25DG9-5D8S4-UWADB
3Z3TD-7UDD6-K7DGB-CDPN4-F6K9E
R4FMY-AUWD6-WSDGR-KDPM4-3UW8G
YYD93-ZYED6-V8DGA-ZDSB4-R9PRV
FTU14-63KD6-XSDGF-WDV14-4VRN5