Sunday, May 01, 2011

Skype 2.2 Beta for Linux

I recently upgraded my Skype to version 2.2 Beta and suddenly the video stopped working.

I found a solution in the Skype site.

Just modify the ~/bin/skype file showed in the previous post to the following content:
#!/bin/bash
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so:/usr/lib/libv4l/v4l2convert.so
/usr/bin/skype

Labels: , , ,

Tuesday, March 08, 2011

Linux Skype Webcam Fix

I recently upgraded from Debian 5 to 6 and suddenly the video skype stopped working.

I google and found this link that fixed the problem, the text is well written and I recommend reading.

But I had to replace the dir /usr/local/lib by /usr/lib, so the fix for Debian 6 is:

  1. Install libv4l-0 package.

  2. Create the directory ~/bin, if you do not have a bin in your home directory.

  3. Be sure that ~/bin dir comes before /usr/bin in your PATH environment variable.

  4. Create the file ~/bin/skype.

  5. Change file permission: chmod a+x ~/bin/skype

  6. The ~/bin/skype file content with the replacement is:
    #!/bin/bash
    export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
    /usr/bin/skype

That's all folks!

Thanks Jestin for posting this fix.

Labels: , , ,

Sunday, February 07, 2010

How to Install Zope 2 into GNU/Linux Debian 5 (Quick Install)

Here are the steps I followed after some trial, error and googling:

1. Log as root.

2. Install Python version 2.4.
NOTE:
If Python version 2.4 and 2.5 are installed in your machine, you'll have to use version 2.4 in order to Zope 2 works.
As a quick and dirty steps:
# cd /usr/bin
# rm python
# ln -s python2.4 python
# rm python-config
# ln -s python2.4-config python-config

3. Install zope2.10 and zope-mysqlda packages, if they are not installed.

4. Create a Zope instance:
# /usr/lib/zope2.10/bin/mkzopeinstance.py
directory: /DIR/OF/ZOPE/INSTANCE
user: admin
password: *****
verify password: *****
#


NOTE:
As a suggestion, /DIR/OF/ZOPE/INSTANCE could be /opt/zopeinstance/YOURINSTANCENAME

5. Edit Zope instance configuration file:
# vim /DIR/OF/ZOPE/INSTANCE/etc/zope.conf

Insert the line below into productions section.
products /usr/share/zope/Products

6. Start Zope instance:
# /DIR/OF/ZOPE/INSTANCE/bin/zopectl start

7. To stop Zope instance:
# /DIR/OF/ZOPE/INSTANCE/bin/zopectl stop

That's all folks!!!

Labels: , ,

Thursday, October 29, 2009

How to Convert DOS/Windows and UNIX text files

The format of Unix and DOS/Windows text files differs in the way the lines end. In DOS/Windows the lines end with both carriage return and line feed ASCII characters, but Unix uses only line feed.

So, some applications in Unix may display the carriage returns from a DOS/Windows text file, for example:
   line one^M
line two^M
And some applications in Windows may not display the line breaks from a Unix text files, for example:
   line one
line two
There are many ways to solve this problem, here we will use only sed and tr utilities to convert one file format to another.

Converting from Unix to DOS/Windows:
   sed -e 's!$!\r!g' unixfile.txt > winfile.txt

Converting from DOS/Windows to Unix:
   sed -e 's!\r$!!g' -e 's!\x1A!!g' winfile.txt > unixfile.txt
or
   tr -d "\32\r" < winfile.txt > unixfile.txt
You can't use tr to convert a file from Unix format to DOS/Windows format.
Notice that control Z (\32) is also removed.

If the input file will be also the output file, you can use the -i option (in place option):
   sed -i -e 's!$!\r!g' samefile.txt
and
   sed -i -e 's!\r$!!g' -e 's!\x1A!!g' samefile.txt
Now if you have to use these commands a lot, you can create some shell functions, for example, in bash:
   function unix2dos {
sed -e 's!$!\r!g' $1 > $2
}

function dos2unix {
sed -e 's!\r$!!g' -e 's!\x1A!!g' $1 > $2
}

dos2unix winfile.txt unixfile.txt

unix2dos unixfile.txt winfile.txt

Labels: , , , , ,

Sunday, August 06, 2006

First Post

This is my very first post, not much to say...