Skype on CentOS

1. Skype on CentOS-5

1.1. Installing Skype

The Linux version of skype 2.1 (beta) is available. However, there is no binary RPM for CentOS. You can install the static version by follow the instructions ( http://www.openfusion.net/linux/ ) as summarized here:

The available generic skype binaries are 32-bit, so if you're running a 64-bit system you need to make sure you have various 32-bit libraries installed:

yum install glib2.i386 qt4.i386 zlib.i386 alsa-lib.i386 libX11.i386 \
  libXv.i386 libXScrnSaver.i386 

Installing to /opt (tweak to taste):

cd /tmp
wget http://www.skype.com/go/getskype-linux-beta-static
cd /opt
tar jxvf /tmp/skype_static-2.1.0.47.tar.bz2
ln -s skype_static-2.1.0.47 skype

Setup some symlinks (the first is required for sounds to work, the second is optional):

ln -s /opt/skype /usr/share/skype
ln -s /opt/skype/skype /usr/bin/skype

1.2. 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 2010-01-05 01:55:26 by TimothyLee)