Friday, January 30, 2009

F10 Howto for the rpmfusion nvidia drivers

For GeForce 6, 7, 8, 9 & 200 series cards

Code:

su
rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i386 xorg-x11-drv-nvidia-libs.x86_64
reboot

Or (akmod builds the required kmod on bootup )

Code:

su
rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum install akmod-nvidia xorg-x11-drv-nvidia-libs.i386 xorg-x11-drv-nvidia-libs.x86_64
reboot


For GeForce FX cards

Code:

su
rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum install kmod-nvidia-173xx xorg-x11-drv-nvidia-173xx-libs.i386 xorg-x11-drv-nvidia-173xx-libs.x86_64
reboot

Or (akmod builds the required kmod on bootup )

Code:

su
rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum install akmod-nvidia-173xx xorg-x11-drv-nvidia-173xx-libs.i386 xorg-x11-drv-nvidia-173xx-libs.x86_64
reboot


For GeForce 4 and below

Code:

su
rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum install kmod-nvidia-96xx xorg-x11-drv-nvidia-96xx-libs
reboot

Or (akmod builds the required kmod on bootup )

Code:

su
rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm http://ftp-stud.hs-esslingen.de/pub/Mirrors/rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum install akmod-nvidia-96xx xorg-x11-drv-nvidia-96xx-libs
reboot

Unsuported


RIVA TNT
RIVA TNT2/TNT2 Pro
RIVA TNT2 Ultra
Vanta/Vanta LT
RIVA TNT2 Model 64/Model 64 Pro
Aladdin TNT2
GeForce 256
GeForce DDR
Quadro
GeForce2 GTS/GeForce2 Pro
GeForce2 Ti
GeForce2 Ultra
Quadro2 Pro

Supported an Unsupported Nvidia cards


You may need to edit xorg.conf for compiz to work.

Code:

su
gedit /etc/X11/xorg.conf


and add

For 32 bit

Code:

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

For 64 bit


Code:

Section "Files"
ModulePath "/usr/lib64/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib64/xorg/modules/drivers"
ModulePath "/usr/lib64/xorg/modules"
EndSection

Installing Flash Plugin for Firefox


Adobe


Create the file in the repository folder.

su -c 'rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm'

* When that has been installed edit the repo file to look like the following.

su -c 'gedit /etc/yum.repos.d/adobe-linux-i386.repo'

[adobe-linux-i386]
name=Adobe Systems Incorporated
baseurl=http://linuxdownload.adobe.com/linux/i386/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux


* Install the Flash Plugin


su -c 'yum install flash-plugin'
* If you don't hear audio during playback of flash video just install packet called libflashsupport


su -c 'yum install libflashsupport'


Installation without Adobe repository: Install Flash Player 10:



su -c 'rpm -ivh http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-10.0.12.36-release.i386.rpm'


* 64bit Flash

Make sure to uninstall flash-plugin, libflashsupport and nspluginwrapper before you do these steps

wget http://download.macromedia.com/pub/l...6_64.so.tar.gz
tar xvzf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz -C ~/usr/lib64/mozilla/plugins

restart Firefox

Tuesday, January 13, 2009

Virtual Box in Fedora & Ubuntu



Fedora is a Linux-based operating system that showcases the latest in free and open source software. It is a community of contributors from around the world who work with each other to advance the interests of the free culture movement.

The start of Fedora was with Fedora 1.0, this is the version that Red Hat has released after Red Hat 9. I was user of Red Hat Linux and then later moved on to Fedora. I have worked on Fedora 3, 5, 7, 9 and now 10. It is a great operating system. The main advantage that I see with Fedora from other Linux distribution is that, it can be used as a Server, a Desktop machine and also a learning computer for Newbie’s. I became more comfortable with Linux using Fedora only.


I am also using Ubuntu 8.10 Intrepid Ibex, this is first Ubuntu distribution that I am using, the advantage with Ubuntu is that, it is very user friendly; this is the best Operating system for those who just migrated from windows. Using Ubuntu, you don’t have to go to command prompt to do anything. And for any Newbie, who are more comfortable to work on the GUI more can choose Ubuntu.


VirtualBox is a family of powerful x86 virtualization products for enterprise as well as home use. VirtualBox runs on Windows, Linux, Macintosh and Open Solaris hosts and supports a large number of guest operating systems including Windows (NT 4.0, 2000, XP, Server 2003, Vista), DOS/Windows 3.x, Linux (2.4 and 2.6), Solaris and Open Solaris, and Open BSD.



I have used Virtual Box on Windows and also Linux Platforms, and also I heard it works really well on Mac and Solaris. As of now, I have installed Open Solaris, Kubuntu, Ubuntu, Xubuntu, Windows XP, Open Suse 11, Mandriva 2009, and Red Hat 9. All these works pretty well and also they give good performance.


The one thing that I have noticed about Virtual Box is that, since it gives a virtual Display Adapter it is not capable of running Compiz-fusion. Probably this is because the Virtual Box Adapter (emulator) is not capable of handling graphics acceleration. But other than that they are quit fine. And also if you are also considering some old Operating system also, it might be an issue. I installed Win 98 SE and Fedora Core 3 , on which the installation was successful but for FC 3 I was not able to get the UI , its dead , I am getting only a black screen. For Win 98 things are little, only issue with the drivers. In Windows 7 also the issue is with the driver, but we can still hope that in future VBox may come up with the fixes. But for FC3 and Win 98 I don’t think so .



The new version of VBox (2.1) provides good support for host network interface, and it is auto configured. Once you have installed your OS inside a virtual machine (it is called guest OS and the main OS is called Host OS for me here it is Fedora and Ubuntu), then you have to install the VBox guest addition. This is in order to configure your VBox display card, sound and network (basically all drivers). The network and IP is configured automatically you can also manually configure the IP address , but there you have to be careful of entering the gateway and DNS address, or else your network wont work correctly.



Shared drive is something that you can configure on your guest OS from a shared folder on your host OS. If the guest OS is Windows and you have already installed the guest additions then use the command net use x: \\VBoxsvr\Shared (where Shared is the name of the directory in the Host OS that is shared , this setting can be given from the VBox main window) to access the shared directory. And if the guess OS is Linux, it is just simple way of mounting your network drive (mount //VBoxsvr/Shared /mnt/Shared_drive -o username=username, password=password). You can also enable the USB support for the guest OS.




Monday, January 12, 2009

Creating Custom Tag Library

JSTL is JSP Tag Library. It is the ability to define our own custom JSP tags.We design how JSP tags, its attribute and its body are intrepeted. They are called custom Tags.Thus a collection of Custom tags are called tag library. These tags can be used in any number of JSP files.they are re-usable component.It is a way that you can customise the JSP by defining own tags.

There are 4 main component in defining JSTL.
1) JSP Page
2) Tag Handler
3) Tag library descriptor
4) web.xml server configuration file

Tag Handler
-----------
The Tag handler is a Java Class. This Java Class says how to translate code into tag. It implements the javax.servlet.jsp.tagext.Tag interface. This class file will be in the same directory as of servlets and Java Beans This is generally done by extending the TagSupport or the BodyTagSupport class.

import javax.servlet.jsp.tagext.*;
public class Example1 extends TagSupport{

or

public class Example1 extends javax.servlet.jsp.tagext.TagSupport{


Tag Library descriptor
----------------------
The Tag library descriptor is an XML file which describes the name, class and attributes of the Tag Handler. Thus the JSP file will identify the class to the server and associate it with a particular tag name. This file will be of the extention .tld .This file contains some fixed information, an arbitrary short name for your library, a short description, and a series of tag descriptions. The URI of this tld file will be described in the JSP file with a prefix.

The JSP File
------------
The JSP file will import the tag library referencing the URL of the descriptor file. This defines a prefix to the tld , with which the tld will be accessed. We need to define the taglib directive in the top part of the JSP file.This will be of the form

<%@ taglib uri "=WEB-INF/lib/Example1.tld" prefix="Example" %>

The uri can be absolute or relative refering to the taglibrary descriptor.

Web.xml
-------
This is the file where the we tell the JSP file that where is our tld file is. The is the configuration file for the application to run.


Saturday, January 3, 2009

Life of Freedom

This blog is completely on my experience on Linux and I am not there for an argument which Operating System is the best or good . Each of them has their own strengths and weakness. Here I would like to add some of experience with Linux that I found them as interesting .

I have worked on Windows , Linux and Macintosh machines. The use of mac was aaahhh .. 4 years ago , so I dont want to give a comment on that . I heard the new Lepord is good and has a good look and feel. Planning to get one for myself a mac machine , but not in near future.

I started my computer education on DOS and Windows 3.1 , with the black and white monitor in 1997. well for DOS the whether a color ot black and white no issues . does not make much difference. i was learning of the basics of that. Then slowly moved to Fortran , i dont even remember the syntax of it, but one thing that i remember is that, we should be putting margins on them. Then move on to windows 95 that was the time when i first saw the color monitor for computers. not much worked on Windows 95. Then moved into Windows 98 i find it cool with lot of Application , Office 97 , Games and utilities. Then i installed Mandrake Linux 8 with a dual boot . And i find that i can do the same thing which i can do in Windows . That was my first Linux Operating system .

Later i moved to Redhat linux , I have used starting from Red Hat 6 to Red Hat 9. it was so good. but since i didnt had an internet connection i was not able to use the full functionality. Later When Fedora launched ( developed by the community-supported Fedora Project and sponsored by Red Hat. ) From ther onwards i was using Fedora . From 1 to now the latest Fedora 10.

The main advantage that i saw in Linux is that , there is no issues like a VIrus , a Spyware or an adware. It is free . ( Here the term free means not only free of cost, but freedom to do what you want , like customising , compiling and installing software , to make the look you want and even to add a new feature on that ) .

The latest cool feature that i have used is the compiz-fusion, Compiz is one of the first compositing window managers for the X Window System that uses 3D graphics hardware to create fast compositing desktop effects for window management. The effects, such as a minimization effect and a cube workspace are implemented as loadable plugins. Because it conforms to the Inter-Client Communication Conventions Manual standard, Compiz can substitute for the default Metacity in GNOME or KWin in KDE

Compiz-fusion is a compositing window manager that uses 3D graphics acceleration via OpenGL. It is the result of a merge between the old Compiz community plugin set "Compiz Extras" and the parts of the Beryl project that are independent of the window manager core. Here are some screen shots of my Compiz on fedora 10.