如何在没有显示器的服务器上使用 Skype Desktop API? [英] How to use Skype Desktop API on a server without a display?

查看:29
本文介绍了如何在没有显示器的服务器上使用 Skype Desktop API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有一个虚拟服务器并希望在其上运行 Skype 机器人.显然,Skype 不能在没有显示器的情况下启动.Skype 是否有命令行选项可以禁用 GUI 并仅使用桌面 API?或者我必须模拟 X11 显示器,如果是这样,我该怎么做?

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?

推荐答案

使用 Xvfb 可以轻松设置虚拟 X11 显示器(服务器"),如下所示:

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 &

您甚至可以使用 VNC 来查看虚拟缓冲区上发生的情况.

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.

这篇关于如何在没有显示器的服务器上使用 Skype Desktop API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆