Trust WB-1400T webcam on Ubuntu

posted by Arkham on February 27th, 2008

Download the source here.

Now open a root terminal and create the folder:

mkdir -p /usr/src/modules

Move the package to the new folder and move into it:

mv <gspcav1_package> /usr/src/modules
cd /usr/src/modules

Extract and move into it:

tar -xzvf <gspcav1_package>
cd <gspcav1_folder>

Compile and install:

make && make install

Remove eventually previous version of the module and load the new one:

modprobe -r gspca && modprobe gspca

Plug-in the webcam, and you should see something in dmesg.
Now you can just test with

mplayer tv:// -tv driver=v4l:width=352:height=288:device=/dev/video0

or using programs like xawtv, camorama, amsn or skype. Have fun ;)

Tags: , ,

Nvidia API Mismatch

posted by Arkham on February 19th, 2008

I’ve installed the Nvidia driver from the binary package and when I restarted, X couldn’t start and gave me a nice blue welcome screen; the X log told me that my kernel module version was 1.0-7184 and my nvidia driver version was 1.0-9755.

I tried with

sudo apt-get remove --purge nvidia-kernel-common

but the fine ubuntu hugemetapackages&&weirddependencies system suggested me to remove all my restricted kernel modules.

So I ran

sudo vi /etc/default/linux-restricted-modules-common

and added nvidia to blacklist the restricted nvidia module.

Everything works fine now, btw.

Tags: , ,

Installing Ubuntu behind a HTTP Proxy

posted by Arkham on February 12th, 2008

1 ) Put a Ubuntu CD in your CD/DVD drive, reboot, and set the BIOS to boot from the CD drive. Wait until you see the Ubuntu desktop

2 ) Go to Applications -> Accessories -> Terminal and gain root priviledges with

sudo su

3 ) Load your keyabord map with

setxkbmap language_code

Example:

setxkbmap it

4 ) Create a new file with

nano /etc/apt/apt.conf

5 ) Write the line

Acquire::http::Proxy "http://[user]:[pass]@[proxy_ip]:[port]";

Example:

Acquire::http::Proxy "http://camp:1234@192.168.10.4:3128";

6 ) Ctrl + O to save and Ctrl + X to exit

7 ) Go to System -> Preferences -> Network Proxy and fill the proxy settings (don’t forget to click on advanced, if the proxy requires authentication)

8 ) Launch the Ubuntu usual installer

9 ) Cross your fingers and pray thy Holy Shuttleworth to have pity for thy damned soul

Here you go! ;)

Tags: , , ,

How to install PDO on Ubuntu Edgy

posted by Arkham on April 16th, 2007

Since PDO should be enabled by default on PHP >= 5.1 but it isn’t on X/K/ubuntu edgy, I had to go through some forums and tutorials to learn how.

Firstly, install php-pear and some other dev packages:

sudo apt-get install php-pear php5-dev libmysqlclient15-dev

Then use the pecl command to install pdo && pdo_mysql:

sudo pecl install pdo
sudo pecl install pdo_mysql

If you use a 64 bit system, an error message like

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 143 bytes) in /usr/share/php/PEAR/Builder.php on line 312

probably will come out, and editing the php.ini files to increase the memory_limit size won’t work.
Instead, edit the /usr/share/php/pearcmd.php file adding

@ini_set('memory_limit', '16M');

Add the drivers to your /etc/php5/apache2/php.ini

extension=pdo.so
extension=pdo_mysql.so

Restart your apache server:

sudo /etc/init.d/apache2 restart

Now you should be able to notice the pdo drivers installed in the phpinfo() page. Enjoy ;)

Tags: , ,