Script to make webcam working in Skype

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg

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/

Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg