SDB:Skype

跳转至: 导航, 搜索

Template:Tested on

此文章是关于在 openSUSE 中运行原版 Skype 软件的教学。无法否认 Skype 已经成功地创造出一个跨平台的有卓越的音质和防火墙穿越功能的软件。然而,请注意 Skype 软件不是 自由开源软件

安装

准备

32 位 openSUSE 安装

您在安装 Skype 之前需要这些软件包。openSUSE > 12.1 中从 skype.com 下载的 Skype 软件包依赖这些软件包。

su -c 'zypper install libqt4 libqt4-x11 libqt4-dbus-1 libsigc++2 libpng12-0'


64 位 openSUSE 12.2 安装

You will need the corresponding *-32bit RPM packages, since skype is only offered in 32-bit. The Skype rpm from skype.com depends on these so it will install them automatically. However, on most openSUSE systems pulseaudio is used and this is not a hard dependency so you will need to install this to get sound.

su -c 'zypper install libpulse0-32bit alsa-plugins-pulse-32bit'


For 64-bit installation of openSUSE 12.1
You will need the corresponding *-32bit RPM packages, since skype is only offered in 32-bit.

su -c 'zypper install xorg-x11-libXv-32bit libqt4-32bit libqt4-x11-32bit libpng12-0-32bit'

You will maybe also need to install libpng12-0 as I did, and I made it with Yast programe manager
For 64-bit installation of openSUSE 11.4
You will need the corresponding *-32bit RPM packages, since skype is only offered in 32-bit.

su -c 'zypper install libasound2-32bit xorg-x11-libXv-32bit xorg-x11-libs-32bit libqt4-x11-32bit libpng12-0-32bit'


安装 Skype

  • 如果一切正常,您的网络浏览器将启动 YaST 安装此软件包(仅限于火狐)。

如果您的网络浏览器没有说它可以用 YaST 打开(或其他您默认使用的软件包管理器),请下载后在文件管理器中双击打开,YaST 将自动安装该软件包。

  • 另外您也可以从命令行安装 Skype 软件包:
su -c 'zypper in skype-<version>.rpm'


  • 安装后,您可以从应用程序菜单中启动 Skype:
Gnome 中它出现在 网络->更多应用程序
KDE 中它出现在 网络 -> 更多程序

For 64-bit installation of openSUSE 11.4

(this could be valid also for 32-bit openSUSE 11.4)

Do not use above installation procedure as there is dependency issue (libstdc++).

Download skype static version (4.0.0.8) for Linux ((current link)). As root unpack archive to /usr/share/skype_static and make static link to /usr/share/skype_static/skype in /usr/bin. You would need to manually add menu entry in your desktop or use command skype to lunch skype.

从社区源安装

  • Add the community repos (for openSUSE 11.3) using:


  • 使用此命令安装 Skype:
zypper in wrapped-skype


配置

Sign-in (or sign-up) and then make a test call to "echo123". Follow the instructions and it will record your voice and then play it back. Chances are that you will have to configure the microphone volume level. You do this through the Volume Control, available in Gnome at Multimedia->Volume Control->Volume Control or in KDE at Application -> Multimedia -> Sound Mixer


Privacy and security

A lot of people do not want to run Skype because it tries to collect data from your system which it shouldn't do. It tries to read your Firefox profile for whatever reason (said to be because of autodetecting proxy settings but could be more).

To avoid such things you can use AppArmor to protect your system.

Copy this apparmor profile to your /etc/apparmor.d/ directory to jail skype.

Skype has to be installed as RPM to make this work.

On openSUSE 11.1 with this profile settings, skype may not work. The following message is displayed in console: "No protocol specified".


Old link has broken and skype don't work with old profile. I add abstractions/gnome and abstractions/ssl_certs to old cynapses.org config, because new version skype need it. new correct apparmor profile

Tested on openSUSE 11.4
Tested on openSUSE 12.1

12.2 has libgcc47-32bit Skype requires libgcc44-32bit which require removing libgcc47-32bit and would break other programs.

Fail on openSuSe 12.2

Using high resolution with webcam

By default, skype only supports video with resolutions up to 320x240. If you have a good web cam (e.g. from Logitech, e.g. UVC_Webcams) which can do much more for you, here's how to configure skype to make use of it.

After you configured your web camera for use with skype, open ~/.Skype/SKYPENAME/config.xml with a text editor. (Replace SKYPENAME with your skype login name, ~ is short for your home directory.)

Search for the <Video> section. It probably only contains <AutoSend>1</AutoSend>.

Add three lines, so your <Video> section looks as follows:

<Video>
 <AutoSend>1</AutoSend>
 <CaptureHeight>480</CaptureHeight>
 <CaptureWidth>640</CaptureWidth>
 <Fps>15</Fps>
</Video>

With skype-2.0, you can also set higher resolutions (800x600 or even 960x720) or higher frame rates if your camera supports that (and you have enough light to avoid getting completely noisy video). Note that the data rate and the CPU load increase and skype may scale back the resolution again as it runs out of CPU cycles or bandwidth.

skype-2.1 does not support resolutions above 640x480 unless you have very special webcams with hardware encoding support and skype certification ...


Troubleshooting

No Mic input with Logitech webcams

This might not be Logitech specific, applicable to all external mics. If you can use your mic elsewhere but in Skype, then check input device settings in Pulse Audio Volume Control. Install the application pavucontrol, run it, and click on the Recording tab. Then while pavucontrol window is open, run Skype and make a test call. There should be Skype item showing in pavucontrol window. Check Skype: Input from []. Make sure you select Webcam ... Analog Mono instead of Internal Audio Analog.

If you are behind a proxy

If you use skype and are behind a proxy server or firewall, you may have problems connecting to the Skype network. Skype may not even start and will hang immediately.

Skype apparently reads the proxy settings from the Opera or Firefox configuration and reads the environment variables http_proxy and https_proxy.

These environment variables have the format:

http_proxy=myproxyname:myproxyport
https_proxy=myproxyname:myproxyport
http_user=myname
http_passwd=mypwd

export http_proxy https_proxy http_user http_passwd

Often myproxyport is 8080.

However, setting these does not always allow skype to connect correctly. (At least it didn't work for me). Skype seems to hang on the first login, and does not allow you to go any further.

If this happens for you as well, you may need to set a default gateway for your system:

# route add default gw proxy.ip.address


Note that proxy.ip.address need not be an actual network gateway; Skype just needs this setting.

Windows workaround

There is another workaround that can be done:

1) Log into skype on a windows machine, using your skype name and password, and setting the proxy options. You can also do this with WINE and the windows version of skype if you are lucky enough not to have a Windows machine available

2) Copy the file "shared.xml" from the Windows machine or from WINE to the Linux skype version, using a command something like:

cp ".wine/drive_c/windows/profiles/<username>/Application Data/Skype/shared.xml" ./.Skype/shared.xml


(you will have to change, <username> to match yours)

3) Start up skype, and hopefully it will start

ALSA microphone problem with some sound chips

Use command line tools (not GUI tools) to reset configuration and capture the microphone

alsaconfig
alsamixer


On some platforms you will also need to enable "capture" in the mixer

Example

File:Kmix-input.png

No microphone input to skype

When you have checked that the sound system is working, both microphone and speakers but skype, using the test call, does not play back your microphone input, you should change the Sound In setting in skype from Default device to another setting. This may solve this problem.

Skype and pulseaudio

On openSUSE 12.1 64 bit, the package alsa-plugins-pulse-32bit is reported to be required to make Skype work with pulseaudio.

Skype 2.2 beta and openSUSE 11.4, there is no problems with PulseAudio.

Starting with openSUSE 11.0 (With the exception of openSUSE 11.2 with KDE desktop) pulseaudio is shipped and enabled by default. Some users report problems with getting skype to work with pulseaudio enabled, mostly regarding no sound input/output, glitches in sound playback/recording and delays in audio transmission. If you experience any of these problems and suspect that it is due to pulseaudio, refer to PulseAudio and Perfect Setup for proper configurations.

Fixing jitterish webcam screen

On some systems openSUSE might have library loading problem and webcam doesn't show anything sensible (black or green screen is more common). To fix this open the terminal/Konsole and log in as superuser "su" and perform following steps:

mv /usr/bin/skype /usr/bin/skype.real
chmod 755 /usr/bin/skype.real


vi /usr/bin/skype

and put the following inside

#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype.real

If you use a 64-bit system and the fix does not seem to work, try running skype from the terminal window (as your normal user). If you get an error like:

ERROR: ld.so: object '/usr/lib/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored.

you might need to install the 32-bit version of the above-mentioned library with

zypper install libv4l-32bit


Finally set permissions for the script above:

chmod 755 /usr/bin/skype


Test your skype video. It should work now.

Please note that if your web camera is showing a green, scrambled or black image, this workaround may also help:

In the above-mentioned script in place of the line

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype.real

try the following

LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype.real

and test your skype video.

输入法

Skype 是一个 32 位 Qt 应用,如果您的输入法有问题,您应该安装 32 位 Qt 输入法模块(immodule)。

针对 ibus,您需要 ibus-qt 软件包(x86_64 系统:ibus-qt-32bit)

针对 fcitx,您需要 fcitx-qt4(x86_64 系统:fcitx-qt-32bit)


参考


外部链接