如何在 Debian 上通过 DBUS 使用无头 Skype

Pri*_*iit 20 skype debian dbus headless

我在 Debian 上安装了 Skype 并无头运行,但是,我无法通过 dbus 与它交互。

到目前为止我所拥有的一些背景:

  • 从 netinst CD 在 VMware fusion box 上安装 Debian 6
  • Skype 版本为 2.2.0.25 动态
  • DBus 版本是 1.2.24,安装它 apt-get install dbus
  • Skype 似乎在无头模式下运行良好

看起来很奇怪:

  • Skype --enable-dbus --use-system-dbus它启动 Skype时显示警告Skype: unrecognized option '--enable-dbus'

现在,当我尝试通过 dbus 向 Skype 发送一些消息时:

dbus-send --system --type=method_call --print-reply --dest=com.Skype.API /com/Skype com.Skype.API.Invoke string:NAME\ hello  string:PROTOCOL\ 5 string:SET\ PROFILE\ RICH_MOOD_TEXT\ echo123
Run Code Online (Sandbox Code Playgroud)

它以错误消息结束:

Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.Skype.API was not provided by any .service files
Run Code Online (Sandbox Code Playgroud)

说到 dbus,我是新手。据我了解,下面应该有一些文件,/etc/dbus-1/session.d|system.d但这些目录是空的。

小智 1

安装运行无头 Skype 所需的 Ubuntu 依赖项。

以 root 身份通过 SSH 连接到您的服务器或执行 sudo -i。

然后安装必要的软件:

apt-get update
apt-get install -y xvfb fluxbox x11vnc dbus libasound2 libqt4-dbus libqt4-network libqtcore4 libqtgui4 libxss1 libpython2.7 libqt4-xml libaudio2 libmng1 fontconfig liblcms1 lib32stdc++6 lib32asound2 ia32-libs libc6-i386 lib32gcc1 nano python-virtualenv
wget 
# if there are other unresolved dependencies install missing packages using apt-get install and then install the skype deb package again
dpkg -i skype-linux-beta.deb
Run Code Online (Sandbox Code Playgroud)