TOMOYO

Use Skype with special user

Instead of using AppArmor or TOMOYO which require the installation of extra packages, one may prefer to add a special user. This user is only used for running Skype within one's normal environment. This approach restricts Skype to reading only the data of this particular user instead of one's main user. (The new user should not be used for any other thing. Skype only.)

Optionally, we first add a default group for the skype user. I will call the new user and its default group "skype". The security advantage in keeping the "skype" user in its separate group is that it can be restricted from accessing some places other users are allowed in.

# groupadd skype

Then we have to add the new user:

# adduser

Enter the details for the new user (assumed login name: "skype"). If you created the default "skype" group and want to keep "skype" outside the "users" group, enter "skype" when the wizard asks for the initial group. As additional groups we need "audio,video,pulse-access,pulse-rt".

Now we can start Skype as the newly created user simply by running Template:Codeline from the command line and entering the password of the user skype.

If you are tired of typing in the skype user's password every time, make sure you installed the sudo package, run Template:Codeline then add this line at the bottom:

%wheel ALL=(skype) NOPASSWD: /usr/bin/skype

And use this alias to launch skype:

alias skype='xhost +local: && sudo -u skype /usr/bin/skype'

I noticed that the newly created user is able to read some of the files in my home directory because the permissions were a+r, so I changed them manually to a-r u+r and changed umask from 022 to 066.

In order to restrict user "skype" accessing your external drive mounted in Template:Filename for instance, make sure first that "skype" does not belong to group "users" (if you used the default group "skype", everything should be fine), then change the accesses on the mount point:

# chown :users /media/data
# chmod o-rwx /media/data

This way, it is ensured that only the owner (normally "root") and "users" can access the specified directory tree while the others, including "skype", will be forbidden.

Skype Sound

Skype supports PulseAudio since version 2.1 and ALSA since version 2.0. Earlier versions support only the deprecated OSS.

Skype PulseAudio Sound (2.1+)

Sound should work out of the box, if not you can select another input using pavucontrol (you may have to install it first).

Skype ALSA Sound (2.0+)

Sound should work out of the box, if not you can select a sound device to use in Skype options. If you have problems with Skype blocking your sound device, you only need to add the following to your Template:Filename

pcm.dmixout {
# Just pass this on to the system dmix
type plug
slave {
pcm "dmix"
}
}

then you can start Skype as normal, go to the audio options and select dmixout as your speaker- and ringingdevice.

Skype-OSS Sound (Pre-2.0)

If you have a recent version of Skype, this will not work and is not needed, look at the "important notes" on start of this page.
Option B is preferred over other options.
With option B you can use Skype AND let other programs play sound too.
With option C you can do that too, but option B is way easier to set up.

An OSS compatible version is available from here. Then download the PKGBUILD for x86-64 users form here. Correct the md5sum in the PKGBUILD, and also install Template:Package Official (for x86-64 users). Finally, run

$ makepkg -s

to create the pacman installable package.

A. With OSS or Kernel OSS emulation for ALSA

Start Skype and make sure no other program is using your soundcard.
If you want to use Skype AND let another program play sound too, look at option B instead.

I can receive multiple audio streams, but I can only send one

Skype can send and receive audio and I still hear other sounds playing from other applications, but I cannot record my microphone with other applications. That is because Skype or aoss blocks the audio input for itself.

To make it running from DE menus and independent of Skype updates, you can add alias (e.g. in Template:Filename):

alias skype='LD_PRELOAD=/usr/libxx/libv4l/v4l1compat.so skype'

No video with Compiz

Try this

$ XLIB_SKIP_ARGB_VISUALS=1 skype

Skype does not use my GTK theme, even though other QT apps do

Recent versions of Skype allow you to change the theme via the Options menu. However, selecting the GTK+ option may not work properly. This is probably because you do not have a 32-bit theme engine installed. Try to find the engine your theme uses in the multilib repository or the AUR. Once installed, it will still not work unless you have a 32-bit version of GConf installed. You could build and install Template:Package AUR if desired, but there is an easier workaround. First, create or edit Template:Filename so that it contains the following line:

$ gtk-theme-name = "My Theme"

Replace My Theme by the name of your theme, but leave the quotes. Second, run Skype like this:

$ export GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:$HOME/.gtkrc-2.0"
$ skype

The GTK+ theme should now appear correctly. You can make this permanent either by running Skype from a script containing the above 2 lines, or by exporting GTK2_RC_FILES in Template:Filename or Template:Filename, depending on how you start X.

If you cannot change the theme in the Options menu, run Skype using the following command:

$ /usr/bin/skype --disable-cleanlooks -style GTK

If you wish menus within desktop environments to load Skype with a GTK theme by default then modify the 'Exec' line of Template:Filename so that it reads:

$ Exec=/usr/bin/skype --disable-cleanlooks -style GTK

Similarly if you have set Skype to autostart then modify Template:Filename in the same way.

If your output is similar, your microphone is working just fine, and the issue is either hardware related (broken microphone) or your volume needs to be checked. If you do not have an output similar to the one above or, more specifically, if both Front Left and Front Right are 0% or show an [off] tag at the end, then your microphone settings need to be rectified.

In either case, try to run:

$ alsamixer

and press F5 to show all channels. Using the arrow keys navigate all the way to the end and increase Capture. If you do not see a left and right channel for Capture, press the space bar. Doing this turns the left and right channels on. Check that Input Source is set to the correct value (e.g. [Front Mic]): navigate through the values with up and down arrow keys. If your microphone is an array built into your monitor, or you have a similar setup, make sure to increase the volume for the Digital column too. If you have multiple microphones, you may have to play around with the Mic Jack channel to get your desired setting.

You may want to save your mixer settings with:

# alsactl -f /var/lib/alsa/asound.state store

No incoming video stream

This might be related to Cairo dock, though I am not sure.
You need to start skype with:

export XLIB_SKIP_ARGB_VISUALS=1 && skype

Low sound in Skype, but works everywhere else

If you are sure your microphone is configured correct in ALSA (try recording with a 3rd-party-utility to determent whether it is an ALSA, or Skype problem), it is most likely because Skype is controlling your volume levels. Simply disable this feature in the voice settings page in the Skype configuration window.

This may also help if your microphone input is automatically lowered until 0.