如何让 Sikuli 在无头模式下工作 [英] How to get Sikuli working in headless mode
问题描述
如果我们有一个运行 sikuli 的无头测试服务器(需要 ubuntu 和 windows 配置),如何让它在没有物理显示器的情况下工作,最好是尽可能多的屏幕分辨率.
我成功地让 sikuli 在无头模式下运行(没有连接物理显示器)
Ubuntu:检查 Xvfb.
Windows:从虚拟机来宾添加显示驱动程序在机器上安装显示驱动程序(无头),并使用 TightVNC 从另一台机器远程设置分辨率.
Windows 7 的详细步骤
假设:
- 机器 A:无头机器,windows 7,vnc 服务器准备好(例如 的其他重要信息.
If we have a headless test server running sikuli (both ubuntu and windows configurations needed), how to get it work without a physical monitor and preferably for as many screen resolutions as possible.
解决方案I successfully got sikuli running in headless mode (no physical monitor connected)
Ubuntu: check Xvfb.
Windows: install display driver on the machine (to be headless) from virtualbox guest additions display drivers and use TightVNC to remotely set resolution from another machine.
Detailed steps for windows 7
Assume that:
- Machine A: to be headless machine, windows 7, with vnc server ready (e.g. TightVNC server installed and waiting for connections).
- Machine B: will be used to remotely setup the virtual display driver on machine A.
steps:
- Download virtualbox guest additions iso file on Machine A from here (for latest version check latest version here and download VBoxGuestAdditions_x.y.z.iso)
- Extract iso file (possibly with winrar) into a directory (let us call it folder D)
- using command prompt cd to D folder
Driver extraction
-To extract the 32-bit drivers to "C:Drivers", do the following:
- VBoxWindowsAdditions-x86 /extract /D=C:Drivers
-For the 64-bit drivers:
- VBoxWindowsAdditions-amd64 /extract /D=C:Drivers
Goto device manager
add hardware
Restart and connect with VNC viewer, now you should be able to change screen resolution
other valuable info on launchpad.
这篇关于如何让 Sikuli 在无头模式下工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!