2014-07-02 02:00:57 +02:00
|
|
|
Skype and camera issues
|
|
|
|
-----------------------
|
2014-10-29 19:28:40 +01:00
|
|
|
It has been pointed out by a lot of users that Skype has problems with
|
2014-07-02 02:00:57 +02:00
|
|
|
some cameras, in most cases this leads to green screen or no video at
|
|
|
|
all. This happens because V4L API (legacy) has been dropped from newer
|
2013-11-12 04:44:08 +01:00
|
|
|
kernels, and pixel format decoding has been pushed to user space.
|
2014-10-29 19:28:40 +01:00
|
|
|
Moreover, V4L2 does not support kernel space decoding. Since Skype
|
2014-07-02 02:00:57 +02:00
|
|
|
supports only V4L, easiest way to get it working is to preload it with
|
2014-10-29 19:28:40 +01:00
|
|
|
V4L compatibility library, and call Skype like this:
|
2013-11-12 04:44:08 +01:00
|
|
|
|
|
|
|
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype
|
|
|
|
|
2014-10-29 19:28:40 +01:00
|
|
|
If you are still having problems, try adding the following as well:
|
2013-11-12 04:44:08 +01:00
|
|
|
|
|
|
|
XLIB_SKIP_ARGB_VISUALS=1
|
|
|
|
|
|
|
|
Included with this package is an alternative desktop file modified to
|
|
|
|
include those variables. For easy use, just copy it to your home
|
|
|
|
directory:
|
|
|
|
|
2014-07-02 02:00:57 +02:00
|
|
|
cp /usr/doc/skype-4.3.0.37/skype-alternative.desktop \
|
2013-11-12 04:44:08 +01:00
|
|
|
~/.local/share/applications
|
2014-07-02 02:00:57 +02:00
|
|
|
|
2014-10-29 19:28:40 +01:00
|
|
|
Skype and pulseaudio dependencies
|
|
|
|
---------------------------------
|
|
|
|
With the introduction of Skype 4.3 series, all built-in ALSA support
|
2014-07-02 02:00:57 +02:00
|
|
|
has been completely removed. What this means is that we now have one
|
2014-10-29 19:28:40 +01:00
|
|
|
more dependency to deal with, and for 64bit Slackware users this makes
|
2014-07-02 02:00:57 +02:00
|
|
|
things even more complex, because they have to build 32bit counterparts
|
|
|
|
and use convertpkg script to make them installable on their systems.
|
|
|
|
At the time of writing this, pulseaudio also requires json-c and speex
|
2014-10-29 19:28:40 +01:00
|
|
|
dependencies, so if you are on a 32bit system, it should be enough to
|
2014-07-02 02:00:57 +02:00
|
|
|
build these and installpkg them.
|
2014-10-29 19:28:40 +01:00
|
|
|
For a 64bit setup, you will have to build all three dependencies, and
|
2014-07-02 02:00:57 +02:00
|
|
|
in the end you will end up with a total of six packages, three for each
|
|
|
|
platform. To do this, you will obviously need multilib packages from
|
|
|
|
Eric Hameleers, so make sure you check README that comes with them.
|
|
|
|
After 32bit packages are built, convert them like this:
|
|
|
|
|
|
|
|
convertpkg-compat32 -i json-c-0.11-i486-1_SBo.tgz -e tgz
|
|
|
|
convertpkg-compat32 -i speex-1.2rc1-i486-3_SBo.tgz -e tgz
|
|
|
|
convertpkg-compat32 -i pulseaudio-5.0-i486-1_SBo.tgz -e tgz
|
|
|
|
|
|
|
|
And installpkg resulting packages as usual.
|
|
|
|
|
2014-10-29 19:28:40 +01:00
|
|
|
Skype and pulseaudio dependencies (addendum)
|
|
|
|
--------------------------------------------
|
|
|
|
It turns out, all of the above can be skipped by using apulse to wrap
|
|
|
|
around Skype binary. Naturally, for 64bit users this makes things a bit
|
|
|
|
harder, and a 32bit apulse compat32 package is required instead. In any
|
|
|
|
case, it's still a bit cleaner then having a whole pulseaudio installed
|
|
|
|
and interfering with the rest of the system, and only to serve Skype.
|
|
|
|
Find apulse SlackBuild at the usual awesome place, the slackbuilds.org
|
|
|
|
Website. Thanks goes to Andrzej Telszewski for pointing it out!
|
|
|
|
|
2014-07-02 02:00:57 +02:00
|
|
|
Skype with a grain of salt
|
|
|
|
--------------------------
|
|
|
|
Running binary-only applications might give open source literate people
|
2014-10-29 19:28:40 +01:00
|
|
|
a certain dose of unease. Even more so when this application runs at
|
2014-07-02 02:00:57 +02:00
|
|
|
computer start up, has constant outbound network access, becomes a
|
2014-10-29 19:28:40 +01:00
|
|
|
super node when open ports from the internet are detected, effectively
|
2014-07-02 02:00:57 +02:00
|
|
|
accepting random connections from other users on the internet. If you
|
|
|
|
are not scared enough already, think about access to your sound card,
|
|
|
|
camera, and precious files after reading the above!
|
|
|
|
Sure, some will argue that privacy is a thing of the past, and not to
|
|
|
|
run such applications if you don't want to, but sometimes you simply
|
|
|
|
don't have a choice. Whether it's your long distance family members or
|
|
|
|
coworkers and friends, price is the same, you are left with an ugly
|
|
|
|
written app (just look at that 64bit support) that is probably full of
|
|
|
|
horrible holes, intentional or not (really :^)
|
|
|
|
While safest thing, of course, is to avoid using it, and probably turn
|
|
|
|
off your computer for good, right before you put on that tin foil hat
|
2014-10-29 19:28:40 +01:00
|
|
|
or bury your head in a hole somewhere, we wont be exploring those
|
2014-07-02 02:00:57 +02:00
|
|
|
options in this awesome README!
|
|
|
|
Instead, we will start from the obvious, firewall unused ports on your
|
|
|
|
computer, in most cases it's fine to close them all down. Next in line
|
|
|
|
are also obvious things, if you do not trust that little light on your
|
|
|
|
camera, unplug it when your haircut is not presentable to the world.
|
2014-10-29 19:28:40 +01:00
|
|
|
Same goes for your microphone, and if it's an integrated one, take it
|
2014-07-02 02:00:57 +02:00
|
|
|
from the pro's in the police department that use adhesive tape to cover
|
|
|
|
it up :-)
|
2014-10-29 19:28:40 +01:00
|
|
|
Now that manual labor is out the way, we come to a much more fun part,
|
2014-07-02 02:00:57 +02:00
|
|
|
protecting your precious files in $HOME. For this we take advantage of
|
2014-10-29 19:28:40 +01:00
|
|
|
multi-user environment, and simply run Skype under another user with
|
2014-07-02 02:00:57 +02:00
|
|
|
basic access. Without further ado, create another user and group with:
|
|
|
|
|
|
|
|
groupadd -g 666 spyke
|
|
|
|
useradd -u 666 -d /home/spyke -m -s /bin/bash -g spyke spyke
|
|
|
|
|
|
|
|
Optionally give this user access to hardware:
|
|
|
|
|
|
|
|
usermod -G audio,video,pulse -a spyke
|
|
|
|
|
2014-10-29 19:28:40 +01:00
|
|
|
If you previously had Skype set-up that you wish to keep, move it with:
|
2014-07-02 02:00:57 +02:00
|
|
|
|
|
|
|
cp -a $HOME/.Skype /home/spyke
|
|
|
|
chown -R spyke:spyke /home/spyke/.Skype
|
|
|
|
|
|
|
|
Allow group execution:
|
|
|
|
|
|
|
|
echo "%spyke ALL=(spyke) NOPASSWD: /usr/bin/skype" \
|
|
|
|
>> /etc/sudoers.d/66_spyke
|
|
|
|
|
|
|
|
Add your user to this new group:
|
|
|
|
|
|
|
|
usermod -G spyke -a USERNAME
|
|
|
|
|
|
|
|
Finally, run it like this:
|
|
|
|
|
|
|
|
xhost +local: \
|
|
|
|
&& sudo -u spyke /usr/bin/skype
|
|
|
|
|
2014-10-29 19:28:40 +01:00
|
|
|
Attention, due to lack of goofiness in this README, anagrams were used
|
2014-07-02 02:00:57 +02:00
|
|
|
to fill that void. Together with some number crafting, level of Slack
|
|
|
|
has peaked, and the trumpets were blown.
|