Skype on CentOS

<!> The Skype page and RPM are no longer working. This page needs to be fixed.

1. Skype on CentOS-5

<!> It has been reported that the RPM method does not work. Please try the static version described in the CentOS-4 section below.

qt4 is available on CentOS-5 and the Skype RPM is available for installation on CentOS-5.

Here are the steps to get Skype installed and working on CentOS (all actions need to be taken as the root user, to obtain the proper root privileges, use this command):

su - root

1.1. Download the Latest Skype RPM for CentOS-5

You can download the latest RPM (which is built for CentOS) from here. Also available via this command:

wget http://www.skype.com/go/getskype-linux-centos

1.2. Installing the CentOS-5 Skype RPM

You need to install the key used to sign the Skype RPMs into your rpm database using these 2 commands:

wget http://www.skype.com/products/skype/linux/rpm-public-key.asc
rpm --import rpm-public-key.asc

<!> [Note: The above link does not seem to work any more. An alternative place is http://gd.tuwien.ac.at/infosys/phone/skype/rpm-public-key.asc (thanks to Jennifer Rodriguez-Mueller for the tip)]

Another possibility to install the key is to use the keyserver and import the key. (adapted from http://fedorasolved.org/multimedia-solutions/installing-skype)

gpg --keyserver pgp.mit.edu --recv-keys 0xD66B746E
gpg -a -o RPM-GPG-KEY-skype --export 0xD66B746E
rpm --import RPM-GPG-KEY-skype

Now we can install the Skype RPM for CentOS-5 that we downloaded above. The current version at the time of this Howto is skype-2.0.0.72-centos.i586.rpm. Here is the command:

yum localinstall skype-<version>-centos.i586.rpm

1.3. Running Skype

You can run the skype program (as a normal user) from the command line with the command:

skype

Also, you can double click the skype launcher from your desktop.

See the README file at /usr/share/skype/README and the documentation from the Skype Website for instructions on how to use skype.


2. Skype on CentOS-4

Note added on Nov 30, 2007. The current "static" version of skype does NOT run on CentOS 4. It needs some library files that are not available for CentOS 4. However, this method still works to get the 1.x version of Skype to install on CentOS-5

This guide assumes you already have CentOS-4 installed and that you have audio (both speakers and microphone) working on your CentOS install.

The rpm versions of Skype available from Skype.com are compiled for Fedora. They require qt4, which is not available on CentOS-4.

Since qt is a major component of the system and the released version is required for the proper operation of KDE and many applications, the recommended way to handle the installation of Skype on CentOS is to use the statically compiled version.

Here are the steps to get Skype installed and working on CentOS:

2.1. Download the Latest Skype Static for Linux

You can get the latest static version of Skype from here

You can also get it with this command from the command line:

wget http://www.skype.com/go/getskype-linux-static

(at the time of this Howto, the current version of Skype is skype_static-1.4.0.118.tar.bz2)

<!> The above link now downloads version 2.1.0.47 instead of 1.x. Could someone check to see if the current version works in CentOS-4?

2.2. Untar the static file

Use this command to untar the skype_static tar ball that you downloaded (substituting the version of the file you downloaded for <version> ... at the time of this Howto, the version was 1.4.0.118):

tar -xvjf skype_static-<version>.tar.bz2

Once you have untared the file, you will have a directory named skype_static-<version>. Change to the new directory with this command:

cd skype_static-<version>

List the files in the directory with the following command:

ls -l

This is the result for the latest version available at the time of this Howto:

[user@myth skype_static-1.4.0.118]$ ls -l
total 18428
drwxr-xr-x 2 user group     4096 Sep 27 11:39 avatars
-rw-rw-r-- 1 user group      424 Nov 12 01:42 diff
drwxr-xr-x 2 user group     4096 Sep 27 11:39 icons
drwxr-xr-x 2 user group     4096 Sep 27 11:39 lang
-rw-r--r-- 1 user group    15628 Sep 27 11:39 LICENSE
-rw-r--r-- 1 user group     3173 Sep 27 11:39 README
-rwxr-xr-x 1 user group 18753060 Sep 27 11:39 skype
-rw-r--r-- 1 user group      453 Sep 27 11:39 skype.conf
-rw-r--r-- 1 user group      161 Sep 27 11:39 skype.desktop
drwxr-xr-x 2 user group     4096 Sep 27 11:39 sounds

2.3. Move the files into place

If this is an upgrade from a previous version of Skype which was installed using this howto, you will want to backup the previous version of Skype so you can move back to it if there are problems with the upgrade. Perform the following actions prior to copying the files into place to create this backup (need to become root here):

# Begin upgrades only section #
rm -f /usr/bin/skype
rm -f /etc/dbus-1/system.d/skype.conf
rm -rf /usr/share/skype.bak
mv /usr/share/skype /usr/share/skype.bak
# End upgrades only section #

Now you are ready (for upgrades and new installs) to copy the currently downloaded Skype files into place. You should still be inside the untared directory above and the command ls -l should show the above file list. Use these commands to enable skype:

mkdir -p /usr/share/skype
cp -a * /usr/share/skype
cd /usr/bin/
ln -s /usr/share/skype/skype .
cd /etc/dbus-1/system.d/
ln -s /usr/share/skype/skype.conf .

2.4. Adding skype.desktop to Desktops

If you want to have skype.desktop to show up on users desktops, you need to edit the file /usr/share/skype/skype.desktop and search for the line that says:

Icon=skype.png

and change it too

Icon=/usr/share/skype/icons/SkypeBlue_48x48.png

then copy the skype.desktop file into the user(s) Desktop with the command:

cp -a /usr/share/skype/skype.desktop ~<username>/Desktop
chown <username> ~<username>/Desktop/skype.desktop

2.5. Running Skype

You can run the skype program (as a normal user) from the command line with the command:

skype

Also, if you installed the skype.desktop file above, you should be able to double click it from your desktop.

See the README file at /usr/share/skype/README and the documentation from the Skype Website for instructions on how to use skype.


3. More information

You can find more information regarding the Linux version of Skype on the Skype forum at:

HowTos/Skype (last edited 2009-10-18 22:49:29 by AkemiYagi)