Skype: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
 
(35 intermediate revisions by 22 users not shown)
Line 1: Line 1:
{{proprietary}}
{{users}}
{{users}}
== Simple setup instructions ==
=== Standard ===
You can use yum to install everything; you'll install a bit more than you need but it's only a few megabytes more and much easier to do and undo than the manual method detailed below. Drop to a terminal and:


== Standard installation ==
cd /var/tmp
wget http://www.skype.com/go/getskype-linux-fc7
su
yum --nogpgcheck -y localinstall skype-2.0.0.72-fc5.i586.rpm
exit
# all done; just run:
skype


In Build 13 (13.2.0) on XO-1.5 works fine:
If skype shows a mostly blank screen when running, you are using superuser (su)


<code>
On build 656, I was only able to load skype using the following command:
yum -v --nogpgcheck localinstall skype-2.0.0.72-fc5.i586.rpm
sudo yum install http://download.skype.com/linux/skype-4.2.0.13-fedora.i586.rpmu
</code>
Would not work with the -y switch, had to use the -v (verbose switch and answer y to any results (y/n).


== Skype Static and alternatives ==
You'll need to set the Options --> Sound --> Sound In and Sound Out to "CS5535 Audio (hw:Audio,0)".


In late 2012 Skype [http://community.skype.com/t5/Linux/Static-binaries-for-Skype-4-1/td-p/1209918 announced] discontinuance of their static binary for Linux. Just as well to avoid the proprietary software and move to an open [http://wiki.laptop.org/go/VoIP VoIP] such as
If you want to install version 1.x skype (without video-in capability) on your OLPC, you can
[http://en.wikipedia.org/wiki/Session_Initiation_Protocol‎ SIP]. [http://www.linphone.org/ Linphone] can be installed with "yum install linphone" and works. [http://puppylinux.org/wikka/PuppySip Psip] might also. If Skype is indispensable, Google might find an old installer on an independent server. The following is legacy documentation. Regards, ... [[User:Peasthope|Peasthope]] 19:18, 2 October 2013 (UTC)
go to google, and search for


olpc skype


=== With video ===


{{outdated}}
Here's my all-in-one install:
== Install ==
su -l
=== XO-1 and XO-1.5===
wget http://www.skype.com/go/getskype-linux-fc7
On an XO-1 or XO-1.5 with OLPC OS [http://wiki.laptop.org/go/Release_notes/10.1.3 10.1.3]:
yum --nogpgcheck -y localinstall skype-2.0.0.72-fc5.i586.rpm
* switch to GNOME,
wget ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/testing/libasound2-1.0.15-33.el5.i386.rpm
* connect to the Internet,
rpm -i libasound2-1.0.15-33.el5.i386.rpm
* using Firefox, go to the [http://www.skype.com Skype Web site] and download the ''Linux Static'' version (here's a [http://www.skype.com/intl/en/get-skype/on-your-computer/linux/downloading.static direct link] and more recent [http://wiki.laptop.org/go/Talk:Skype#Skype_Static status]),
wget http://dev.laptop.org/~ffm/gstfakevideo.zip
* locate the file using the File Browser &mdash; it is most likely in the "Download" folder in your home directory, with a file name like "skype_static-2.2.0.25.tar.bz2",
unzip gstfakevideo.zip
* right-click on the file and choose "Extract Here",
chmod +x gstfakevideo
* wait for the archive to extract to a new folder &mdash; it should look like "skype_static-2.2.0.25",
mv /dev/video0 /dev/video1
* open the new folder, you should see a file called "skype" &mdash; double-click it.


=== XO-1.75===
:'''NOTE: THIS BREAKS OTHER CAMERA ACTIVITIES LIKE RECORD.''' Reverting /dev/video1 back to /dev/video0 gets them working again. --[[User:Morgs|morgs]] 10:55, 21 May 2008 (EDT)
Not yet available, check with Skype for latest news or [http://lists.laptop.org/pipermail/devel/2011-October/date.html devel] list discussion.


== Options - Sound Devices ==
As before, you'll need to set the Options --> Sound --> Sound In and Sound Out to "CS5535 Audio (hw:Audio,0)".


Audio does not work immediately. Adjust the options to make the microphone work:
Start skype with:
* click the tiny Skype button in the bottom-left of the main Skype window, choose "Options", and in the list of categories on the left, click on "Sound Devices",
su -l
* on the right, click the drop-down box next to "Microphone" and select "HDA VIA VT82xx, CONEXANT Analog (hw:0,0)" for XO-1.5, and "CS5535 Audio (hw:Audio,0)" for XO-1,
./gstfakevideo
* click "Apply" at the bottom,
'''[[User:Firefoxman|ff]]<font color="darkgreen">[[User talk:Firefoxman|m]]</font>''' 03:13, 5 October 2008 (UTC)
* test the setting with the "Make a test call" option.


== Options - Video Devices ==
<span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">==Warning - XO Upgrades== Note that Skype will have to be re-installed each time the laptop is upgraded. {{developers}}</span> == Внимание - XO Обновление == Заметим, что Skype нужно будет вновь установлена каждый раз ноутбук повышен. (()) Разработчиков</span>


On an XO-1.5, video should work immediately. To test, go to "Video Devices" and click the "Test" button in the black box.
== Installing Skype 2.0.0.68 on a Fedora7-based OLPC Laptop ==


== See Also ==
There is always more than one way of doing anything. Here is a detailed set of instructions to install Skype on your OLPC Laptop. Let me also point out that things are likely to change. With subsequent releases of OLPC software and newer versions of Skype, these instructions may no longer work as they do today (February, 2008).
* [http://dev.laptop.org.au/projects/xo-au/wiki/Skype laptop.org.au]

* [[Skype/Obsolete|obsolete instructions from previous releases]]
Basically you need to do four things:

# Check that your PC has the needed pre-requisites installed
# Download the correct version of Skype package and uncompress it
# Install Skype
# Tweak the sound defaults of your PC
# (Optional) Redirect laptop camera into skype for video-out



== Check for prerequisites ==

Skype 2.0 Beta requires the following software to be installed:

* DBus 1.0 or better
* Libasound2 1.0 or better
* LibXScrnSaver 1.1.10 or better

(It also needs QT4 but we will be using the Static version of Skype which includes all QT4 prereqs)

To verify that you have what is needed, open up the terminal and type in:

rpm -qa | grep -i dbus

The response should look something like this: “dbus-1-1.0.2-59.2”. If you just get a blank line, then you need to install Dbus.

rpm -qa | grep libasound2

The response should look something like this: “libasound2-1.0.15-33.el5”. If you just get a blank line, then you need to install Libasound2.

rpm -qa | grep libXScrnSaver

The response should look something like this: “libXScrnSaver-1.1.2-1.fc7”. If you just get a blank line, then you need to install libXScrnSaver.

To install the missing prerequisites as needed, type:

su
wget ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/testing/libasound2-1.0.15-33.el5.i386.rpm
or
wget ftp://ftp.fedora.univ-nantes.fr/dl.atrpms.net/fc5-i386/atrpms/stable/libasound2-1.0.13-32.fc5.at.i386.rpm
yum install libasound2-1.0.15-33.el5.i386.rpm

then libXScrnSaver and dbus IF needed:

yum install libXScrnSaver
yum install dbus

If su doesn't work, follow the instructions at sudo.

If yum install complains about a missing public key, do:

wget http://ATrpms.net/RPM-GPG-KEY.atrpms
rpm --import RPM-GPG-KEY.atrpms

After you found or installed the needed prerequisites, we can go and download Skype.

== Get the Skype installation package==

Leave your previous root shell and start the terminal again. Do not change directories. By default you should be in your own home directory (normally: /home/olpc ) and all intermediate files should be located and are assumed to be there for the installation.

Then to download and uncompress the Skype installation file (Linux Static Version)
type in:

wget http://www.skype.com/go/getskype-linux-beta-static
tar xvf skype_static-2.0.0.72.tar.bz2

At this point you should have a new directory called "skype_static-2.0.0.68" in your home directory with all the files uncompressed and good to go for installation.

<span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">== Install Skype == Then to install Skype, type in the following commands in sequence: cd skype_static-2.0.0.72 su mkdir /usr/share/skype chmod 755 /usr/share/skype cp -a * /usr/share/skype/ cd /usr/share/skype/ mv skype /usr/bin/ chmod +x /usr/bin/skype mv skype.conf /etc/dbus-1/system.d/ At this point your Skype is installed and all the files and directories are in the correct places where Skype can find them.</span> == Инсталиране на Skype == след това да инсталирате Skype, напишете следните команди в последователността: cd skype_static-2.0.0.72 н mkdir / usr / акции / skype chmod 755 / usr / акции / skype cp-а * / usr / акции / skype / cd / usr / акции / skype / mv skype / usr / бин / chmod + Х / usr / бин / skype mv skype.conf / etc/dbus-1/system.d / На този етап ви е инсталиран Skype и всички файловете и директориите са в правилните места, където Skype да ги намерите.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">To get out of Super User mode, close and re-start the terminal now, or press ctrl-D (you may have to press it twice if you typed "su" twice).</span> За да получите от Супер Потребител режим, близки и повторно стартиране на терминала сега, или натиснете Пълен Книга на Око Грижа D (може да се наложи да го натиснете два пъти, ако сте написали "СУ" два пъти).</span>

== Select sound devices to use ==

To configure the sound system, you need to start alsamixer from the terminal. Type in

alsamixer

To navigate around alsamixer:

* use the TAB key to switch between Playback, Capture and All panels;
* use the left and right arrow keys to move between the columns;
* use the up/down arrow keys and the 'm' key to select or set different values in each column.

In the Playback section you can turn all volume sliders to 100 to manage them directly from applications. The key settings for Skype are

* mic 75 or the largest number that does not squeal
* mic select mic1
* mic boost 00

In the Capture section you have to turn on Capture for Skype to work:

* press TAB key to switch to Capture panel
* use the right-arrow key to get to Capture column
* use up-arrow key to adjust capture to 100.

To save the changes you made, and to exit the alsamixer application, push the Esc key (upper left key X in a filled circle).

== Test the sound in OLPC and Skype ==

An easy way to test that your sound settings are correct, type in terminal:

cd /usr/share/skype/sounds
aplay *

You should now hear all Skype sounds, one after another. If you only hear clicks or you hear no sound from loud speakers and/or headphones, then you still have a problem in the alsamixer settings. Check and adjust them again and remember to save the changes at end.

You can test the microphone settings by recording and playing back your own voice. In the terminal, type:

cd
mkdir deleteme
cd deleteme
arecord -d 15 sound1

The left microphone light should come on. speak into the microphone (just above the left speaker). After 15 seconds, type

aplay sound1

You should hear your voice now. If not, then go back to alsamixer and tweak your recording and playback volumes.

When you are happy with your settings, remove the recording file and directory by typing:

rm sound1
cd ..
rmdir deleteme

== Running Skype the first time ==

You should now be in good shape to start Skype. To improve the call quality, you should always start Skype by first:

* press F3 button to go to Sugar interface home
* quit all other applications except Journal and Terminal
* in the terminal, type:

skype

It will take a lengthy 10-20 seconds to get started.

Once Skype is up for the first time:

* login using your Skype ID or create a new one.
* left-click on Main Menu icon (Tiny blue Skype icon in the lower left corner - watch out for the Sugar frame popping out if you miss the icon).
* select Options from the drop-down menu
* select Sound from the menu
* choose “CS5535 Audio (hw:Audio,0)” for each of the three pull downs (In, Out and Ringing).
* check the box “Allow Skype to automatically adjust my mixer levels”
* click on “Make a Test Sound”
You should now hear the sound out of the speakers. Adjust the volume from the keyboard using the volume up and down buttons (upper right corner 3rd and 4th buttons from the edge&mdash;you will recognize the icons). Make it nice and loud.

Here comes THE BIG TEST:

Click on “Make A Test Call”.

Skype will connect you to an automatic voice testing server and lead you through the test process.

At this point, everything should be working. You should have the right sound drivers, selected the right hardware and software options and tested the sound system. Congratulations!

All that is needed is for you to add your friends or find new friends to add to your Skype contact list and Skype away.

== Advanced option: video-out ==

These instructions explain how to get (two-way) video chat working after installing Skype as described above. After the basic Skype installation you should already be able to ''receive'' video chat; these instructions allow you to ''send'' video from the OLPCs camera to the person you're talking to. This recipe seems to be [http://olpcnews.com/forum/index.php?topic=1038.0 working for others].

The setup is based on code called 'gstfakevideo' (aka [http://forum.skype.com/index.php?showtopic=102838 skype video hijacker]) which uses the open source [http://gstreamer.freedesktop.org/ gstreamer] framework (coincidentally the [[GStreamer|XO's multimedia platform]]) to stream an arbitrary video source into Skype. This idea was first suggested in a [http://olpcnews.com/forum/index.php?topic=471.msg8542#msg8542 forum discussion].

:'''NOTE: THIS BREAKS OTHER CAMERA ACTIVITIES LIKE RECORD.''' Reverting /dev/video1 back to /dev/video0 gets them working again. --[[User:Morgs|morgs]] 10:55, 21 May 2008 (EDT)

===Installation===

The basic recipe is:

* Install Skype as described above
* Obtain a compiled version of the gstfakevideo package for the OLPC (see [[#Building gstfakevideo|below for details]] to build or download it)
* Open a terminal window
* Move /dev/video0 out of the way (as root):
su
mv /dev/video0 /dev/video1
exit
* Make sure the video pipeline is correct by editing the gstfakevideo script (e.g. vi gstfakevideo) and changing the 'export GST_PIPE=...' line to read:
export GST_PIPE="v4l2src device=/dev/video1 ! ffmpegcolorspace ! videoscale"
* Also make sure to delete any other lines that set GST_PIPE later in the file! (Like line #42 of gstfakevideo.)
* Make sure 'skype' is on your path (which it will be if you installed correctly)
* make gstfakevideo executable by running
chmod +x gstfakevideo
* Run the gstfakevideo script :
./gstfakevideo
* This launches skype normally (after forcing skype to first load the libgstfakevideo.so library which uses the GST_PIPE setting to provide a fake skype-compatible video source at /dev/video0)

At this point you should be able to use skype as usual, but video options are enabled, e.g. click the tiny camera icon once you start a chat to share your video, or modify the video preferences to start video automatically within calls (see [http://forum.skype.com/index.php?showforum=36 Skype Video forum]).

===Comments===

[[User:Patrick.surry|PDS]]: I haven't used Skype with video extensively yet on the XO, but have had it working between an XO and a Mac. I noticed intermittent sound issues: perhaps to do with bandwidth or CPU? If so maybe we could dial down the framerate or something? Hopefully others who know more about all this stuff can contribute their thoughts. (My head is only barely above water at this point given my very limited knowledge of linux, skype, gstreamer, etc.)

You can test the video pipeline independently of Skype by trying things like this at a terminal prompt:

gst-launch videotestsrc \! ffmpegcolorspace \! videoscale \! autovideosink

This should create a test pattern on your XO display. (To quit, press the 'home' button - the key in the top row with circle containing a single dot - and either stop the unnamed activity or return to terminal and press ctrl-C.) Note you need backslashes before the exclamation marks when executing directly in the terminal to escape them, but not in the gstfakevideo script itself. Also the 'autovideosink' element is only needed when testing (it routes the pipeline to your screen, instead of /dev/video0 for skype like the fakevideo library does).

To test your video camera, try a pipeline like this:

gst-launch v4l2src device=/dev/video1 \! ffmpegcolorspace \! videoscale \! autovideosink

then you should see your own smiling visage. (Same instructions to quit.)

[[User:Patrick.surry|PDS]]: I'm not sure if you need to move /dev/video0 every time you boot the machine (probably?). It seems to be a requirement because the gstfakevideo library can only fake /dev/video0 (so you can't have your 'real' video source there). There is a setting in gstfakevideo to tell it what fake video device to provide but the doc says it doesn't work (I haven't actually tried).

A cleaner setup would probably be to install the gstfakevideo stuff alongside the skype install, and alias 'skype' to kick off the video stuff. But I haven't done that yet. It would also be good to sugarize the whole thing so you could kick off your video skype session from the toolbar. I might have a go at that if no one beats me to it.

==Building gstfakevideo==

Here's how you can build the gstfakelibrary from scratch.

[[User:Patrick.surry|PDS]]: Note that all this work results in a library (libgstfakevideo.so) that's only 14K in size. So I've posted a zip file on one of the forums which includes the compiled library; you should be able to get it from: http://olpcnews.com/forum/index.php?action=dlattach;topic=471.0;attach=172 (requires registration). I can post it elsewhere if there's somewhere more sensible, or can provide by email. To use it, get the zip file on to the XO (e.g. download and copy via a [[Support_FAQ#How_do_I_save_or_retrieve_files_from_a_USB_drive_or_SD_.28Secure_Digital.29_card.3F|USB stick]]). Move gstfakevideo.zip from your USB drive into the home directory of the root user,

su
mv /media/*/gstfakevideo.zip /root

and then just:

unzip /root/gstfakevideo.zip

If you do want to build it yourself, you probably should do so in a [[QEMU]] emulator, since it requires a bunch of dependencies that you probably don't want/need on your real XO:

yum install subversion
yum install make
yum install gcc
yum install gstreamer-devel

(and possibly others now forgotten).

*Note: If you've installed ubuntu on your OLPC, depending on your kernel version, you may need: gstreamer-0.10.20, gst-plugins-base-0.10.20, gst-plugins-good-0.10.9. The "ubuntu3" packages may/may-not work as a result of [http://bugzilla.gnome.org/show_bug.cgi?id=541956 Gnome Bug #541956].


Then get the source code and build:

svn checkout http://gstfakevideo.googlecode.com/svn/trunk/ gstfakevideo
cd gstfakevideo
make

==X Activity==
You may find it helpful to run SKYPE from the X Activity. It makes managing the various SKYPE windows more managable.


[[Category:Software]]
[[Category:Software]]

Latest revision as of 19:54, 25 May 2014

  For the general public

Standard installation

In Build 13 (13.2.0) on XO-1.5 works fine:

sudo yum install http://download.skype.com/linux/skype-4.2.0.13-fedora.i586.rpmu

Skype Static and alternatives

In late 2012 Skype announced discontinuance of their static binary for Linux. Just as well to avoid the proprietary software and move to an open VoIP such as SIP. Linphone can be installed with "yum install linphone" and works. Psip might also. If Skype is indispensable, Google might find an old installer on an independent server. The following is legacy documentation. Regards, ... Peasthope 19:18, 2 October 2013 (UTC)

The contents of this page are considered outdated and some of the information may be stale. Please use information here with caution, or update it.

Install

XO-1 and XO-1.5

On an XO-1 or XO-1.5 with OLPC OS 10.1.3:

  • switch to GNOME,
  • connect to the Internet,
  • using Firefox, go to the Skype Web site and download the Linux Static version (here's a direct link and more recent status),
  • locate the file using the File Browser — it is most likely in the "Download" folder in your home directory, with a file name like "skype_static-2.2.0.25.tar.bz2",
  • right-click on the file and choose "Extract Here",
  • wait for the archive to extract to a new folder — it should look like "skype_static-2.2.0.25",
  • open the new folder, you should see a file called "skype" — double-click it.

XO-1.75

Not yet available, check with Skype for latest news or devel list discussion.

Options - Sound Devices

Audio does not work immediately. Adjust the options to make the microphone work:

  • click the tiny Skype button in the bottom-left of the main Skype window, choose "Options", and in the list of categories on the left, click on "Sound Devices",
  • on the right, click the drop-down box next to "Microphone" and select "HDA VIA VT82xx, CONEXANT Analog (hw:0,0)" for XO-1.5, and "CS5535 Audio (hw:Audio,0)" for XO-1,
  • click "Apply" at the bottom,
  • test the setting with the "Make a test call" option.

Options - Video Devices

On an XO-1.5, video should work immediately. To test, go to "Video Devices" and click the "Test" button in the black box.

See Also