How to use Skype Desktop API on a server without a display?

两盒软妹~` 提交于 2019-12-11 12:09:55

问题


I own a vServer and want to run a Skype bot on it. Obviously skype can't start without a display. Is there maybe a command line option for skype to disable the GUI and only use the Desktop API? Or do I have to simulate a X11 display, and if thats the case how could I do that?


回答1:


It is easy to set up a virtual X11 display ('server') with Xvfb, like so:

Xvfb :1 -screen 0 1280x1024x24 &
sleep 3
skype -display :1 &

You can even use VNC to see what's happening on the virtual buffer.

Note that the virtual server is very simple and does not support hardware acceleration so some programs may complain about missing extensions, etc. But most regular desktop applications should be okay.



来源:https://stackoverflow.com/questions/32030622/how-to-use-skype-desktop-api-on-a-server-without-a-display

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!