Monday, April 14, 2008

HP Pavilion Webcam on Fedora 9

Folks at mediati are working hard to bring the r5u870 webcam work with the latest linux kernels, after the initial work done by Sam Revitch on this type of webcam.

I've again built the rpm package to work with the Latest Fedora 9 (rawhide as of 14-apr-08). Older RPM with the source code from Sam Revitch can be downloaded here http://lsb.blogdns.com/ry5u870

Download this Package for Fedora dkms-r5u870-0.11.0-8.noarch.rpm.bz2 , this package compiles on all fedora distributions with linux kernel higher than 2.6.16 (even the latest 2.6.25-rc9, Fedora 9)

Installation process


1. Download and extract this file


 bunzip2 dkms-r5u870-0.11.0-8.noarch.rpm.bz2

2. Install this package with yum.


yum install ./dkms-r5u870-0.11.0-8.noarch.rpm --nogpg


3. Start your favorite viewer to see the webcam (ex. tvtime)


tvtime

NOTE: Currently cheese is not able to read from the webcam for some reason (tested in Fedora 9 rawhide). But the webcam works in gstreamer-properties

Saturday, April 12, 2008

Fedora 9 and Latest Nvidia 173.08 Driver

Nvidia has released its latest version of the xorg 1.5 compatible drivers. You no longer need to follow my techique for 173.08 version driver . See my new blog entry for details

Nvidia has released its latest drivers for Linux which has support for the latest x.org versions (1.5) which are used in the Fedora 9 release (currently beta was released). Follow these steps in order to use the latest Nvidia driver in your Fedora 9

NOTE: I really tested and using these things in my laptop currently, things should work for others too. THIS METHOD IS COMPLETELY UNSUPPORTED BY FEDORA FOLKS, BUT WORKS.

[NOTE] This process works on Latest Fedora 9 Too. But you'll not be able to make use of any of the glx capabilities , so all the commands like glxgears, nvidia-settings will give errors

step-1 : Install the Latest nvidia driver (download rpm from freshrpms or livna)

yum install xorg-x11-drv-nvidia


step-2 : Nvidia suggests that we use the -ignoreABI option to use these drivers with the latest xorg servers. Follow these steps to setup such way.

1. Logout of X ( preferably go to runlevel 3 or 1, anything other than 5)

init 3


2. Rename the /usr/bin/Xorg binary to any other name like /usr/bin/Xorg.o

mv /usr/bin/Xorg /usr/bin/Xorg.0


3. Create a shell script named /usr/bin/Xorg

touch /usr/bin/Xorg
chmod +x /usr/bin/Xorg


4. Now edit the /usr/bin/Xorg and put these two lines

vi /usr/bin/Xorg

#!/bin/sh
exec /usr/bin/Xorg.0 -ignoreABI "$@"


5. close the file

6. Confirm that your /etc/X11/xorg.conf has the driver set as 'nvidia'

my xorg.conf follows


[nareshv@fallenAngel ~]$ cat /etc/X11/xorg.conf

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
Option "IgnoreABI" "true"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib/xorg/modules"
EndSection

Section "Module"
Load "glx"
Load "extmod"
Load "dbe"
Load "dri2"
Load "dri"
Load "xtrap"
Load "GLcore"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
Option "UseDamageEvents" "True"
Option "OnDemandVBlankInterrupts" "True"
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection


7. Reboot into runlevel 5.

init 5.


8. Now you should see the system using nvidia driver as the default one.


Few Gotchas:

1. Currently only 2D works, NVIDIA is working on getting 3D as soon as x.org 1.5 version is released.

2. None of the 3d commands work glxinfo,glxgears, all because of lack of 3d support.

3. Now i am able to play the movies in mplayer when i've replaced the nvidia's libwfb.so with libwfb.so the xorg itself has.

-- last updated (Fri April 18 2008)

Saturday, November 17, 2007

Using Telugu Spell Checker in Fedora 8

Spell checking in telugu language is pretty easy in Linux, you can install the 'aspell' telugu sets and start spell checking. Below are the steps to do on a Fedora 8 System.

1. Install the aspell-te package if you haven't done it already


nareshv@fallenangel $ sudo yum install aspell-te -y

nareshv@fallenangel $ rpm -qi aspell-te
Name : aspell-te Relocations: (not relocatable)
Version : 0.01 Vendor: Fedora Project
Release : 2.fc8 Build Date: Mon 10 Sep 2007 05:27:41 PM IST
Install Date: Mon 12 Nov 2007 06:34:46 PM IST Build Host: hammer2.fedora.redhat.com
Group : Applications/Text Source RPM: aspell-te-0.01-2.fc8.src.rpm
Size : 2355665 License: GPLv2+
Signature : DSA/SHA1, Thu 25 Oct 2007 03:31:26 AM IST, Key ID b44269d04f2a6fd2
Packager : Fedora Project
URL : http://aspell.net/
Summary : GNU Aspell Telugu Dictionary Package
Description :
GNU Aspell Telugu Dictionary Package

nareshv@fallenangel $ rpm -ql aspell-te
/usr/lib/aspell-0.60/te.dat
/usr/lib/aspell-0.60/te.multi
/usr/lib/aspell-0.60/te.rws
/usr/lib/aspell-0.60/telugu.alias
/usr/lib/aspell-0.60/u-telu.cmap
/usr/lib/aspell-0.60/u-telu.cset
/usr/share/doc/aspell-te-0.01
/usr/share/doc/aspell-te-0.01/COPYING
/usr/share/doc/aspell-te-0.01/Copyright



After the package is installed, try creating a sample telugu document

Below image explains the sample document.



Now run the aspell command like below


[nareshv@fallenangel Desktop]$ cp telugu.txt telugu2.txt
[nareshv@fallenangel Desktop]$ aspell -l te -c telugu2.txt
[nareshv@fallenangel Desktop]$ gedit telugu2.txt
[nareshv@fallenangel Desktop]$


See the changes in the below image




Its very easy to run the aspell on any text document which is in telugu.

You can download the wordlist that is used in the latest aspell version here.

For the impatient this is the direct link (te.wl.gz)

Saturday, November 03, 2007

blueman rpm for Fedora 8



yesterday i was searching for a good front end software which helps in using the bluetooth easy in the gnome desktop environment. after searching in yahoo, found the software http://www.gnomefiles.com/app.php/blueman. The software is really cool and is written in python.

Using blueman after extracting it from source is pretty easy. But in order to use all the features you need to have btsco/libsbc and btsco kernel modules.

In order to maintain the software easy on RPM based systems, i'd created a spec file and created the rpm. The spec file is here


#
# Spec file written and maintained by naresh , cyan_00391 At yahoo dot co dot in
#
Summary: Bluetooth Manager for GNOME Desktop
Name: blueman
Version: 0.19
Release: 2%{?dist}
License: GPL
Group: Applications/Accessories
URL: http://blueman.tuxfamily.org/
Source: http://blueman.sf.net/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
BuildRequires: gcc
Requires: pybluez gnome-bluetooth dbus-python
Requires: bluez-utils > 3.9
##
## bluetooth-alsa-btsco, libsbc and dkms-btsco are built by me for fc8
## and are not widely available in fedora world. Not sure where to put
## these packages/spec files
##
Requires: bluetooth-alsa-btsco
Requires: libsbc
Requires: dkms-btsco
Packager: Naresh Kumar

%description
Blueman is a GTK+ bluetooth management utility for GNOME using bluez dbus backend.
The aim is to create a full featured graphical bluetooth manager for Linux.

Features:

* Easy to use interface
* Storing Favourite devices
* Send files
* Browse files on devices
* List all seen devices
* View Local/Remote Device information
* Configure local devices
* Manage Pairing (Bonding)
* Host/Connect to Personal Area Networks
* Bind services to /dev/rfcomm ports, for eg. connecting via gprs
* Connect to Bluetooth headsets and use them as ALSA audio devices.

%prep
%setup -n blueman-%{version}

%build

%install
%{__rm} -rf %{buildroot}

make install DESTDIR=$RPM_BUILD_ROOT

%files
%defattr(-, root, root, 0755)
%exclude /usr/share/applications
%doc COPYING DEPENDENCIES README
%{_datadir}/blueman/*
%{_datadir}/blueman/icons/*
#%{_datadir}/applications/*
%{_datadir}/blueman/lib/*
%{_bindir}/*


%changelog
* Wed Nov 2 2007 Naresh 0.19.2-fc8
- Cleaned up the code a bit.

* Wed Nov 2 2007 Naresh 0.19.1-fc8
- Initial Revision


Although this says btsco and libsbc as prerequisites, you can easily build the rpm by just downloading the source files from the blueman home page download link

Thursday, November 23, 2006

When google search failed to fetch proper results



* My Nvidia GeForge Go 7400 is having refresh problem in my laptop.
* Searched on Google. It returned all bullshit results . Here is what i tried
http://tinyurl.com/yhokll

* No Luck.!

* I searched on Yahoo! Now . Exactly what i wanted.

http://tinyurl.com/yg6zkb

When people praise google as the best engine. It failed to search my query.

Wednesday, April 19, 2006

Making Calendar work with Thunderbird and Outlook




Many people who uses thunderbird want to exchange calendars with Windows Outlook.

Here is the new plugin for the thunderbird.Lightning Project. This plugin allows you to manage calendars..etc

Here is a simple trick to import M$ Outlook invitations.
(1) Install the Lightning extension
(2) Restart thunderbird
(3) Ask your friends who are in Outlook, to send an invite
(4) The invite contains the following attachments
- .ics file ( the ical standard file)
- Part 1.1.1 ( something like this)
(5) If i see the 2nd type of file. Rename it to something meaningful like 'abc.ics'
(6) Thunderbird=>Calendar=>Import
(7) Now u have the tasks imported into your thunderbird !

Here are some images.