Wednesday, December 17, 2008

Setting Up a CVS server on CentOS

Setting up a CVS server
Just now I had finished setting up CVS server on a CentOS
The steps which I followed is

Step 1
chose the location where I want to have the repo
I wanted to kept it as /usr/local/CVSREPO for this purpose I did
mkdir /usr/local/CVSREPO

Step 2
create system user and group named as “cvsuser”

Step 3
create the repository needed
cvs -d /usr/local/CVSREPO/StudentAdmin init
cvs -d /usr/local/CVSREPO/AccountAdmin init

Step 4
Change owner and group of repository and all files to “cvsuser”
chown cvsuser.cvsuser -R /usr/local/CVSREPO/

Step 5
check whether tcp service is there in /etc/services , U should find a entry simillar to
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations

Step 6
Now we need to create an entry for the xinet.d . For this I
create a file name “cvpspserver” in /etx/xinet.d
with contents
service cvspserver
{
port = 2401
socket_type = stream
protocol = tcp
user = root
wait = no
type = UNLISTED
server = /usr/bin/cvs
server_args = -f --allow-root=/usr/local/CVSREPO/StudentAdmin --allow-root=/usr/local/CVSREPO/AccountAdmin pserver
disable = no
}

Step 7
For giving user permissions
create a file name “passwd” in
/usr/local/CVSREPO/StudentAdmin/CVSROOT and
/usr/local/CVSREPO/AccountAdmin/CVSROOT .
“passwd file format is
username:encryptedpassword:cvsuser
for making creating encrypted password I used a downloaded perl script
I created encrypted password using the downloaded script and copied the encrypted password to the newly created passwd

Step 8
restarted xinted service

Step 9
checked from the client using cvs login

Thursday, November 20, 2008

Problem solved:- INSERT data to the table using hibernate

Problem solved:- INSERT data to the table using hibernate

I was fortunate to solve the problem I faced in inserting the data to the table using hibernate
I have been trying out for a long time .
Yesterday I thought I will start from scratch . I took the eg tutorial from roseindia (http://www.roseindia.net/hibernate/incrementgenerator.shtml )
I selected this example to try out auto increment for primary key and insert key
I was getting the error .
“Could not find UserTransaction in JNDI “
I searched was not able to find the solution . Today morning I remembered vague about Niyas explanation some time back about the changes which we have to do in “hibernate.cfg.xml” for JDBC . I tried to solve it and was success
the changes which I had done I had cut and pasted for my future reference


Error Could not find user Transaction in JNDI

Sol:-
Modified "hibernate.cfg.xml" file
I had cut and pasted it for reference






Now I am able to insert the data into this table . I understood the way auto increment work

Tuesday, November 11, 2008

Work Flow to start

I need to setup a work flow for their sales dept for a manufacturing company
after getting feedback from them
I have this point in my mind
two cases here
# one for existing profile . (Design )
# One for new profile (design )

For existing profile
# Customers inquire :- This enquiry can be converted to sales order
# Sales dept response by sending the fax (PO)
# Customer response by resending the fax
# based on the above result , it is send to the production dept
# materials produced and dispatched after getting the payment

Thursday, November 6, 2008

ZM How I am solving it ?

Was the ZM installation or the Pansonic WV-NP244 had problems ?
I am investigation
The problem was that after giving the correct path "/cgi-bin/jpeg?connect=start"
also I was not able to see the images .

After struggling for some time . I thought I will try step by step

I had this doubt of ffmpeg . I installed ffmpeg , re-installed ZM using ffmpeg option
I followed the following ways
1> First I tried to view a static image , copied a jpeg image , gave the path in the monitor section . checked it I can see it
2> Then I selected network as source , gave the path of the file . checked it I can see it

3> Now I am trying to see test.mpg file . which I am not able to see it in (a) network as source (b) file as source
after giving the path

What I concluded from the above steps is that . If I can see the image file using network and file source . I have not made any mistake in giving the path
Now I have to find the reason why it is not showing when using .mpg files

Have to find it ?

ffmpeg for ZM

Today i had tough time installing ZM with ffmpeg , I was using CentOS

At frist I installed the default system "ffmpeg" and then I went to intsall zm , while installing zone minder I was getting this error
zm_mpeg.cpp:281: error: cannot convert �ByteIOContext� to �ByteIOContext*� for argument �1� to �int url_fclose(ByteIOContext*)�

After searching the forum . I found that I need to install the latest ffmpeg
Uninsatalled the system "ffmpeg"
downloaded latest source by using
"svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg "
installed ffmpeg , but for ZM again problem
I faced problems Like

zm_mpeg.h:29:29: error: ffmpeg/avformat.h: No such file or directory
zm_mpeg.h:31:28: error: ffmpeg/swscale.h: No such file or director


Did so many things like copying files here and there , I think I nearly made a mess of my installation . then I happened to see the link which save me

"http://www.zoneminder.com/forums/viewtopic.php?t=12151&highlight=ffmpeg+avformat"

Followed it step by step and it ZM got installed
Thanks to "hushpuppy" user

Tuesday, November 4, 2008

About OSS workshop

About OSS workshop

I got the quote from KT and GN , now some very important task which are left is
Stage 1
# Create the contents for the web site
# Create a logo
# Create the advertisement format

Stage 2
# Fix the ratio for the sponsors contribution
# Contact the sponsors and inform them about the web site and add contents
#

Stage 3
# Fix the topic
# Find the person to give presentation
# Find a backup for the presenter
# Find a venue
#

Stage 4
Agreement sign for the advertisement
Advertise
Conduct the seminar
Collect the feedback

Sunday, October 26, 2008

ZoneMinder , with WV-NP244

Today I started working on a CCTV project based on zoneminder (GPL based on Linux ) installed it . I have to configure the camera for it now . I do not know much about the CCTV field but again what we do not know today we will learn tomorrow.

The camera which I got is of national panasonic network camera WV-NP 244 , The camera is working I managed to find out the IP address which was given earlier , cahnaged it to our subnet IP address . Now I need to configure it using zoneminder

Acer ASPIRE One :- Value for money

I bought a small laptop . Can I call it laptop? , Acer Aspire one pre-installed with linux for AED 999 .(= 0.275961 US$ )
it has wi-fi , web cam , 3 usb port , one nic interface card . Hard disk of 8 GB falsh , Buitl In Stero Speakers , 512 MB DDR2 SDRAM
Processor is Intel Atom processor N270 ( 1.6 Ghz , 533Mhz FSB, 512 KB L2 Cache.

It has MSN messenger , I will be updating the FireFox browser to the latest

Wednesday, October 22, 2008

GITEX 08

I attended GITEX08 yesterday . It was a tough time finding car parking . The authorititve should do more to solve parking and traffic issues before hand when they are expecting this kind of attendees . Gitex compared to last year , I could feel there is less attendance . Stall size of the leading companies had become smaller . But new entry to the GITEX are Zimbra , Google . Happy to see thier presence in ME

Sunday, October 19, 2008

UCM error :-The requested URL /idc/idcplg was not found on this server.

The error
The requested URL /idc/idcplg was not found on this server.
When I first installed ucm this error happened to come and I solved it .
Today While I try to install it for the secound instance it again showed .

Cause of this error is from apache configuration , U need to give the parameters propelry
My working ucm apache configuration contains entry as follows
############


LoadModule IdcApacheAuth "/oracle/ucm/server/shared/os/linux/lib/IdcApache2Auth.so"

IdcUserDB "idc" "/oracle/ucm/server/data/users/userdb.txt"
Alias /idc "/oracle/ucm/server/weblayout/"

IdcSecurity idc
Allow from all
DirectoryIndex portal.htm


IdcUserDB "ge" "/ge-ucm/ge/server/data/users/userdb.txt"
Alias /ge "/ge-ucm/ge/server/weblayout/"

IdcSecurity ge
Allow from all
DirectoryIndex portal.htm

Linux installation at Happy School

Have to appreciate Happy School Management and the IT staff Sandhya for their willingness to have Linux installed in their lab . We started with 3 PC installed . One with full installation and the other two with dual booting . These PC's have genuine XP with license installed .After the installation was over management's comment was that they want to install Linux on all the systems which is there at the school
Rest of the installation Sandhya said she will do it her self , since she is confident of installing Ubuntu .Her comment was that Ubuntu it is too Simple !

Saturday, October 18, 2008

Friday morning at Mamzar Beach

The climate is getting fine . Thursday while coming from office I received two times call from Sana . Confirming whether we are going to Safeer Mall to buy her dress for swimming . After reaching home we went to Safeer mall and bought what all things needed , Sana was happy she slept early on Thursday , got up early on Friday morning wake me up . We all got ready and left to the beach . We all had good time over there