How to get Sikuli working in headless mode

前端 未结 3 1098
北海茫月
北海茫月 2020-11-29 21:29

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 sc

3条回答
  •  天命终不由人
    2020-11-29 21:42

    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.

提交回复
热议问题