Google Plus

Script to make webcam working in Skype

Written by Mel Kham on . Posted in Linux tutorials

When using skype in Linux, happen that when you install Skype the webcam will not work, you can use the mic for voice conversation but not the cam, this script come to resolve this issue, the script work for both 32 bit and 64 bit. The script can be used for  for the actual version of skype 2.2.0-35.

skype-2.2

 {codecitation}

#!/bin/bash
SK=/usr/bin/skype2
if [ $USER != root ]; then
  echo -e $RED”Error: must be root”
  echo -e $YELLOW”Exiting…”$ENDCOLOR
  exit 0
fi
bit32(){
if which $SK > /dev/null ; then
 echo “skype is patched”
 else
cd /usr/bin/
mv skype skype2
echo “#!/bin/bash” > /usr/bin/skype
echo “LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype2″ >> /usr/bin/skype
chmod +x skype
echo “skype 32-bit patched”
fi
}
bit64(){
if which $SK > /dev/null ; then
 echo “skype is patched”
 else
cd /usr/bin/
mv skype skype2
echo “#!/bin/bash” > /usr/bin/skype
echo “LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype2″ >> /usr/bin/skype
chmod +x skype
echo “skype 64-bit patched”
fi
}
case $1 in
32bit)
bit32
;;
64bit)
bit64
;;
*)
echo “
Skype Patch WebCam [2.2.0]

Usage: $0 [option]

[options:]

32bit – Install patch on system 32 bit [i386]
64bit – Install patch on system 64-bit [amd64]

esac{/codecitation}

Download the script : skype-patch-cam.sh

After download, make it executable and then install it using the following commands:

su 
chmod +x skype-patch-cam.sh
./ skype-patch-cam.sh
For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • henry

    Thanks…great tip

  • http://goodfinance-blog.com ChandlerJOSIE

    One understands that humen’s life seems to be high priced, nevertheless people need money for different issues and not every person earns enough cash. Thus to get quick home loans and just short term loan should be a proper way out.

  • http://enteryoursiteURL... marek

    How do I make it executable? Why you did not make it executable for download? I am new to linux, but everything here is so complicated, it is pissing me off.

  • http://stanwilliamsmusic.com Stan

    @marek
    In Ubuntu, right click on it, select Properties,click on permission, then tick the check box for Allow executing file as program. That is an easy way for beginners new to Linux.

  • Alex

    Thanks a million, you have no idea how helpful this was.

  • Hikari

    This doesn’t help at all. . the “install using the following commands” don’t work, for the first one returns “Unkown id: chmod” and the second one returns “bash: ./: Is a directory” . . . soooooo i dont think this works at all, considering there are no clear instructions for what to do.

  • gtx

    Is working, really, try again. Run this script in terminal as root.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

SK

|

Yes we can. What kind of help you need? We are doing outsourcing and technical support for Linux and Open source worldwide. To know more about the details visit here.

ClintB

|

After install as above, run shell script /opt/Citrix/ICAClient/wfica.sh manually and note lib errors still occur. I had the x64 motif loaded but had to manually install the x86 too. Got that from http://rpmfind.net/linux/rpm2html/search.php?query=libXm.so.4 Even after that, I still had to do a “yum install alsa-lib.i686 alsa-lib.x86_64″ to resolve any additional libasound.so.2 errors. Once those two lib issues were resolved, Citix Web Interface launched apps fine by telling browser to open launch.ica using /opt/Citrix/ICAClient/wfica.sh. Good luck Ernesto!

AD

|

I need some Help on Linux,can you guide me ?

Edson Carlos

|

In debian no found. I need link download install in linux debian

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .