How to get Sikuli working in headless mode

Amr Lotfy picture Amr Lotfy · Sep 25, 2014 · Viewed 20.2k times · Source

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.

Answer

Amr Lotfy picture Amr Lotfy · Sep 25, 2014

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:

  1. Machine A: to be headless machine, windows 7, with vnc server ready (e.g. TightVNC server installed and waiting for connections).
  2. Machine B: will be used to remotely setup the virtual display driver on machine A.

steps:

  1. 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) enter image description here
  2. Extract iso file (possibly with winrar) into a directory (let us call it folder D) enter image description here
  3. using command prompt cd to D folder
  4. 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

    drivers extracted

  5. Goto device manager my computer/manage

  6. add hardwareenter image description here

  7. List item

  8. List item

  9. List item

  10. List item

  11. List item

  12. List item

  13. List item

  14. List item

  15. List item

  16. Restart and connect with VNC viewer, now you should be able to change screen resolution enter image description here

other valuable info on launchpad.