Tuesday, April 26, 2011

How to fix the webcam for Skype in Ubuntu

There are some old problems to set the webcam for Skype in Ubuntu. The followings are two rapid methods to try to fix them.

1) First of all install cheese (to normally use your webcam). In a terminal type the command:

sudo apt-get install cheese

Then launch the program with the terminal (typing cheese) or using the menu Applications > Audio and Video. Do you see the webcam working? If not, there is something wrong (maybe with the webcam drivers, etc.) and you have to fix it first. If webcam works you can normally use cheese and you can set the correct resolution in Modify Preferences Resolution.
Then you have to modify the config.xml file:

sudo gedit ~/.Skype/name_user_skype/config.xml

Where name_user_skype is your username in Skype (like john.wayne). In this file look for the tag <video> and modify it like the following:


Where the numbers refer to the resolution you previously set in cheese. Save, exit, restart Skype and click on Try in Main menu Options Video device. Now your webcam should work properly also in normal videocalls.

Another way to fix the webcam is to launch Skype with this command (which include a library):

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

Check if the webcam works clicking on Try in Main menu Options Video device. If it doesn't work the problem is another. If it works you can set the default launcher in the menu Application in this way. Create a text file just with the command above. Rename it skype_launcher.sh, copy it in /usr/share/applications/:

sudo cp skype_launcher.sh /usr/share/applications/

Set execution permissions:

sudo chmod +x /usr/share/applications/skype_launcher.sh

Then open the configuration file for the icon Skype in the Application menu:

sudo gedit /usr/share/applications/skype.desktop

You will see something like that:

[Desktop Entry]
Comment=Skype Internet Telephony

Modify only the Exec row in this way:


Save, exit, restart Skype using the icon in the Applitation menu and click on Try in Main menu Options Video device. Now your webcam should work properly also in normal videocalls.

How to join and split files with Ubuntu

Some rapid methods to split and/or join files in a system Ubuntu-like.

1) Commands split and cat with terminal

For example, to split the file enorme.bib in different parts each one 10000 bytes sized and named partaa, partab, partac, ..., you can launch this command

split -b 10000 enorme.bib part

Then to simply join the files in enormereborn.bib you can use:

cat part* > enormereborn.bib

For more information about this commands typ:

man split
man cat

in a terminal.

2) If you don't want to use command and terminal but you like graphical approaches, you can use HJSplit downloadable here. After you downloaded and extracted hjsplitlx.tar.gz you can enter the folder hjsplitlx and simply double click on hjsplit, so you will have a very easy interface to join/split everything.

3) Alternatively you can use FFSJ downloadable here only as EXE for Windows. So after the download of FFSJ.exe you can use wine to execute it (look here about how to install and use wine), simply launching:

wine FFSJ.exe

4) If you downloaded some files name like bigFile.001, bigFile.002, etc., you can also join them by simply using a compressing tool like that one preinstalled in Ubuntu systems, right clicking on the first file bigFile.001 and then chosing Extract here. Then the program will make the join automatically looking for other parts in the same folder.