Search This Blog

Sunday, September 30, 2007

Svn on Fedora (yet another update)

Ok. after digging with google and svnfourms, the conclusion is this is due to file permissions.
But i tried with 777 premission it did not work
i got apache, root and local user into a common group called svn.
set the umask of local user to 002 and tried still the same error.

I am too tired to continue. I am going to sleep. will continue tomorrow.

SVn Server on Fedora misadventures.... (another update)

ok.
i found out why it was asking me id and password again and again. It was a mistake that i had made.

On inspection of the server error logs it was strange that the error recorded was user was not present. so i checked the auth (password) file which i had created and it had only one user, the one which i created last.

The reason is this. when creating users i had used htpasswd -cm instead of htpasswd -m. and so only the last user i had created existed. Well now i created the users properly. and tried to access the url via firefox, now the i crossed the authentication phase, after entering the username and password correctly, i passed thru, only to face yet another error. The error is this....


This XML file does not appear to have any style information associated with it. The document tree is shown below.




Could not open the requested SVN filesystem




I am just starting to be hustled. But this ain´t something new. I can and will come thru this. I think it is time to go back to asking Google.......

SVn Server on Fedora misadventures.... (an update)

Jeez......
it is getting more confusing. but i am moving forward inch after inch may be even mm after mm.
I had updated the httpd (apache) to 2.2.6-1. still there was no change..

When going thru the comments section of subversion.conf, all examples were made with /var/www/svn as reference. so i moved my repository to /var/www/repos/... and made the changes to configuration accordingly, now i am being asked for username and password. Great!

But now the problem is, it keeps on asking the username and password even though i gave them correctly and when i hit cancel. i am given a 401 Authorization required error..

lemme dig around more. check the httpd logs if there are any clues present and come back ....

SVn Server on Fedora misadventures....

Hah!

i am just trying to document what i had done till now. So if i get everything accidentaly correct i can check back and see where i went wrong. I am trying this at home...

i am listening to Led Zeppelin - Stairway to Heaven...

Since subversion and httpd are already installed. i created three repositories

/repos/Graziano
/repos/Ginny
/repos/Everonn

then i did yum install mod_dav_svn

then i created 4 users and used the info to create a acl and stored it in /etc/httpd/svn
then i created the configuration for the access path in the subversion.conf placed in /etc/httpd/conf.d

the problem that i am facing is this. The authentication is not happening. I mean, i am not asked for user name and password. i am directly allowed to access the resources...

the httpd version was 2.2.0 and svn version is 1.4.3, so i thought i would update httpd..
so now i am updating it.....

TT

How is TT played? that was what i thought when santosh called me for a round of TT. Anyway i know that i have to hit the ball and send it to the opponents court. and i played with that approach. later mid wat jana came in and gave a explanation on how this game is played.

well anyway we had a good time, and i sweated a lot after a long time. Was good fun playing TT. Myself, Santhosh, Vimal, Balaji, Bharathi, Pavitha played for some 2 hours or so. then we returned to work. We took some pics, will post them soon.

Psst : if u don´t know what TT is, it is the short form or abbreviated form of Table Tennis.....

Linux Fever (SVN server on Fedora 7)

I had configured the svn server at office. and even found how to configure the client to access the server and commit and update changes and stuff. But what was worse was, i was asked to redo it again, but this time with linux as the OS. This was never going to be a challenge coz subversion comes preinstalled in linux, and so it was gonna be a lazy bums work. So i thought.

Yesterday i installed Fedora 7 on the system. It was a nightmare as usual. Whenever i install linux anywhere outside my sys it fails, but being the never say die guy. i set out on a mission to complete the job by the end of the day. I tried installing Ubuntu 7.04 it gave me a buffer error at fd0. i couldn´t make anything. so what i did was again start with my favourite Fedora and this time, i got things correct and installed it.

And there was subversion

Then when i checked for the presence of svn, it was there in /usr/bin. I was a bit disappointed. coz everything was there. svn and apache. now just redo the config in apache that i did in windows will do the trick.( i thought so). i configured everything as i did in windows. Then the challange sprung up to my surprise.

I was accessing the svn via http with firefox and i was asked to authenticate (the usual thing). but even with correct username and password with which i had configured, i was given a you are not authorized to access this (403 forbidden) error..
I am yet to solve this problem. as soon as i solve this i will come up with update post.

Monday, September 24, 2007

SVN (Sub-Version) Server...

 

Like as i had promised, a step by step guide of what i did to setup a SVN server...

Though i first thought it to be a complicated procedure, it just took me around half hour to completely setup the thing, though i was stranded for the next 20 minutes for i was unable to get a http access to it.  that was entirely my mistake, i did not understand what i read in various articles across the net...  then i had do another research to find another detailed instruction which cleared my doubts.  So if you guys can do it (copy paste and typing a bit faster or even at normal pace. i can guarantee u that you can have a svn server with http access in less than 5 minutes.  Yes it is that easy.  (the time limit is calculated, provided you have all the installation materials downloaded and ready in your system).

Ok. Lets get our hands dirty.

Go here and download the svn zip archive. This is for Apache 2.2.x server.  if you are running Apache 2.0 then go here. In my case i am running Apache 2.2.4 server, and i had downloaded svn version 1.4.5 for 2.2.x Apache version.

Now unzip it and place it is some place where it is easily accessible.  say c:\svn.

Now right click My Computer -> Properties -> Advanced -> Environment Variables, and at the end of the PATH variable add the path of the bin directory of svn.  that would be c:\svn\bin, in my case.  Use the path where you unzipped your copy of the svn.

Now we have to create repositories.  we will assume you will need multiple repositories.  for example, proj1  proj2. now create directories where you will be placing repositories.  eg: c:\svn\repos

proj1 : c:\svn\repos\proj1

proj2 : c:\svn\repos\proj2

now lets create the repositories.

in command prompt type..

svnadmin create C:\svn\repos\proj1

svnadmin create C:\svn\repos\proj2

that is it everything is done.

configuring Apache:

For installing Apache, check out the post on walk thru of the PHPBB installation.

copy the files mod_authz_svn.so and mod_sav_svn.so from the subversion unzipped directory to the modules folder of Apache.

Copy the following dlls too to the modules folder

intl3_svn.dll, libdb44.dll, libeay32.dll,ssleay32.dll.

now open the httpd.conf file

remove comments before these lines.

Loadmodule dav_module modules/mod_dav.so

Loadmodule dav_fs_module modules/mod_dav_fs.so

add these lines

Loadmodule dav_svn_module modules/mod_dav_svn.so

Loadmodule authz_svn_module modules/mod_authz_svn.so

at the end of the config file add this line.

Include c:/svn/subversion.conf.

Users

ok. now lets create users and passwords who can access. go to the bin directory of Apache and type

htpasswd -cm c:\svn\svn-auth-file <name1>

Newpassword *****

Re-type password *****

adding password for user <name1>

use the same procedure to create other users and passwords. do not use the -c switch in the command.  only the first time ever you create a user you will have to use it..

if you want to have annonymous access then u can skip User creation step.

Access Control

Now that we can authenticate our users, we must configure the access rights to our repositories. To do this, we create another file in our etc directory.
C:\svn\svn-acl

#
# specify groups here
#
[groups]
team1 = name1, name2

#
# team1 group has a read/write access to proj1 repository
# all subdirectories
# all others have read access only
#
[proj1:/]
@team1 = rw
* = r

#
# proj2 repository,
#
[project2:/]
name3 = rw
name4 = rw
* = r

#
# name2 is helping with the time zone part of the proj
#
[proj2:/timezone]
name3 = rw
name4 = rw
name2 = rw
* = r

The groups section can be used to define groups of users. For repository project1, only users from the group team1 have read/write access. All other users have read only access.

It is possible to define access for the entire repository, or for specific directory within repository.

SVN COnfig

Now for the config file for Apache. Put this in the subversion.conf file.  you will have to modify it according to your requirements

<Location /proj1>
DAV svn
SVNPath C:/svn/repos/proj1
AuthType Basic
AuthName "Subversion Project1 repository"
AuthUserFile c:/svn/svn-auth-file

Require valid-user

AuthzSVNAccessFile c:/svn/svn-acl
</Location>

<Location /proj2>
DAV svn
SVNPath C:/svn/repos/proj2
AuthType Basic
AuthName "Subversion Project2 repository"
AuthUserFile c:/svn/svn-auth-file

Require valid-user

AuthzSVNAccessFile c:/svn/svn-acl
</Location>

once you finish it that is it. restart apache, and you are ready to go.  type http://localhost/proj1.

 

Addicted to Google

 

"As long as Google is there, i can do anything, that is above the earth and below the sky"

I was looking back and thinking about how i react to things which i face 'em.  It all started after i had said the famous saying of mine "As long as Google is there, i can do anything, that is above the earth and below the sky" to bharathi on Friday afternoon.  I was not having any work, since the client had not replied and also she hadn't come to office yet.  And i was lazing around, why i said that.  and a small questionnaire and a little travel to past revealed something.  I am dependent on Google for a lot of things, it is like i am addicted to Google.

The email u give to others: Gmail

when you want to know something: Google.com

you blog at: blogger

your pictures are stored online in: Picassa

Do you have a personal web page: Google pages

You have your official documents and presentations in :Google Docs

the social networking site you frequent: Orkut

which desktop search do you use: Google Desktop

see i have answered everything with something related to Google.  and the highlight of the whole thing which got me thinking was when i was in Bangalore. We needed the std code of Bangalore so that we can make a call, i fired up Google search in firefox and got the std code.  Now this seems to much, i could have asked the person who was sitting next to me, he is a bangalorean, i could have searched my uncle's phone  number in my phone address book(he lives in bangalore).  But why did i search Google? 

when i had to setup a AMP server for the forums i could have called Mr.Suresh. He knows it.  instead i used Google again. 

and the latest in this list was the above mentioned episode with Bharathi, when she asked me if i knew how to setup a svn server.  the statement gives away how much i am dependent on GOOGLE.

But the reality is as i had said.....

"As long as Google is there, i can do anything, that is above the earth and below the sky"

Dreamz......

 

Dreamz.... They are such a beautiful thing.  They are the drivers of life.  They are the ones which don't allow us to sleep.

I had a dream.  A dream, that i would walk this earth without glasses, just like every other person out there.

I fought hard, i begged, i tried every alternative in the book to get my parents consent for the laser operation since i was in 11th standard, and at last i even got it last wednesday.  Everything was ready, But my Eyes had slipped out a little, they couldn't hold on for a little longer, they had developed a cylinder, which was uneven...

The whole operation of doing this operation is to remove my dependency of glasses.  But, that is not going to happen (atleast for now)... The maximum they say they can reduce is only 5 diapters.  and if i opt for the completely laser approach called Interop laser, then i will be remain with 2 diapters for the rest of my life.  and the cost 80,000 to 1,00,000 Rs/-.  The trade of doesn't seem worth. 

The whole point is, why should i wear glasses, after doing an operation to enable me to be without glasses...

Now, i will wait again, wait till the scientists develop some other technology to do it more clean.  The cost is not gonna be a problem, but i will wait till they develop some thing which will completely erase my dependency on glasses.

Sunday, September 23, 2007

PHPBB Installation and Configuration...

As i had promised.  The complete step by step guide of what i did to get the forums up and running...

PHPBB, is one of the freely available online bulletin board or forums software.  The beauty of PHPBB is its simplicity yet completely functional and ease of customization.   Though i did not do any customization, if i think i know anything about it. i will walk thru that too.

First and foremost since PHPBB is written in PHP language, you need to have a server which can dish out pages written in PHP.  we have a choice here since it can be configured with IIS or Apache or with any other damn web server software.  But the choices i had was IIS and Apache.  Since i cannot have IIS in my office setup i had to default to Apache. 

Then the next thing is the database.  Here i had a lot of options and also i had the freedom to choose.  Since PHPBB supported both MS and My SQL.  i had a confusion.  which to use.  again since being a open source fan and a slight hatred towards MS i choose MySql.  which leads us to a familiar territory, and that would be AMP setup.

Though i have setup AMP servers in Linux by hands, i had never done that in Windows.  coz for windows there is always a Next -> Next -> Finish thing available.   But this time i had to coz using such a WAMP setup might get me praise in office for setting up a forum, but would cast a serious doubts on my credit status as a GEEK.  So i decided to do the hard way.  and that is why this post is there....

I am giving the steps which i followed and worked for me.  I cannot guarantee you that it will work.  any trouble, you can get to me via comments, and i will try to help you out.  Lets get started.....

Since it is going to be WAMP server, i expect you to have a windows system running, preferably a Win XP or Win 2000 system, with all security fixes, and service packs. This solves the W part...

Apache

Now lets get down how to install Apache. I had downloaded the latest version of Apache which was 2.2.4 at that time from here. I downloaded the windows binary download. if you are the adventurous type you can go for a source compile build install method.   Well like any windows software installation it is pretty much straight forward, Next -> Next -> Finish type.  But still you got to enter some info..

In the third screen where it will ask for Server information. In the First and second text Box, give the Ip address of your system. if you are going to use localhost use the ip 127.0.0.1.  If you have a domain name, then you can give the domain name itself.  But still, i would suggest you to go with the IP Address approach....

Choose the port 80. since you will be wanting the others to access your server. Now after the installation is over, fire up your browser and type http://localhost, you should get a page saying the installation works.  For me it was a page saying "It Works". 

Now put your html pages in the 'htdocs' folder in the installation folder of the server, which should be here C:/Program Files/Apache Software Foundation/Apache2.2/htdocs. now try accessing and you should get your pages...

Now try to access your site from some other system with your system name.  if you are unable to try with the IP address of you system now you should be able to connect.

PHP

Now that we have setup the Apache Web Server, we need to enable it to dish out php pages.  Well first get yourselves a copy of php from here. get the zip one it would give the most flexibility than installer one... ok. now unzip it and store in a place say c:/php. 

Open this file c:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf in your text editor (like notepad)...

Add these 3 lines to it, after the LoadModule lines:
LoadModule php5_module "c:/php/php5apache2_2.dll" (put the path where you have unziped php)

AddType application/x-httpd-php .php .phtml .inc .php3
AddType application/x-httpd-php-source .phps

For Apache to use index.php as the default index page, change the line
DirectoryIndex index.html index.html.var     to
DirectoryIndex index.php index.html index.htm index.html.var

Copy the file "php5ts.dll" to c:\Program Files\Apache Software Foundation\Apache2.2\bin\

Copy the file "php.ini-recommended" to c:\Program Files\Apache Software Foundation\Apache2.2\ and rename it to "php.ini"

For PHP sessions to work properly, you need to specify where to save the sessions. Edit the php.ini file, and find the setting for session.save_path. Set it to "c:\windows\temp\" or another folder you use as a temp directory.

Restart Apache server.  (you will have to restart the apache server each and every time you make changes to the httpd.conf file, for the changes to take effect)

Now you can serve php pages with the server...

MySql

Now comes the last part of the AMP server, the MySql database server.... 

This one is again a very simple installation.  Get the installer for the mysql server, double click setup.exe and keep all default settings and do a Next -> Next -> Finish...

After that you might want to create a database, which you will need for the forums to use.

Now we have make php speak with mysql.  Fire up you favorite text editor and open the php.ini and set the extension_dir variable to your php installation/ext directory i.e. extension_dir="c:/php/ext". see the forward slashes are used instead of the backward slash.

search for these lines and remove the ; before the lines.

extension=php_mysql.dll
extension=php_mysqli.dll

Copy the file libmysql.dll to c:\windows\system32\

Restart Apache...

Thats it you have a WAMP server ready, and running.

PHPBB

Now lets get the forums up and running... This is the most easiest thing in the whole process. I used the 2.0.22 version.

download yourself a copy of PHPBB for here.

unzip in to a directory named 'forums' or whatever you want to name it and move it to the htdocs folder of the Apache Server.

fire up your browser and go to http://localhost/forums. now you will be lead to the installation page. fill in all the details and click install.  and lo you will have it installed in no time. 

Now go to the forums folder and rename the install and contrib to some thing else. (just add a _ after the name that will do)

Now you have a forums running.  Go to the administration panel and create different forums and topics and categories, have some some users register and use it.

Have Fun...

Friday, September 21, 2007

Sethu Samudhiram Calvai (Canal)

 

This canal is the center of all media attention and political attention these days in Tamil nadu.  In mythology it is said that, Lord Mr.Rama, built a canal or a dam or a bridge(i think bridge would be appropriate) from the tip of rameshwaram to srilanka to fight a war to get his wife back from her kidnapper the evil Mr.Ravanan. 

Now in the present scenario. the sethu, is the place where the depth of the ocean is less, or it can be defined to be shallow, so the ships cannot cross this 18 - 20 km stretch. instead they go all the way round srilanka and get to the other side.  this a lot of time waste, energy waste  and also resource waste (imagine how much fuel we can save if we travel via sethu)  Well, so some politicians tried to deepen sethu so that ships can go.

Now this sethu or adams bridge as it is known and the bridge built by lord Mr.Rama as said to be the same.  and a certain sect are opposing the destruction of it.  there was violence in bangalore(i hate this damn place).  and a few lives were lost.  all just to save the bridge.  Now the very people had earlier said that the government is not doing anything for this problem, and now when the government is taking some step they come back and create a deadlock situation. 

Wat stumped was the newspaper article which supported this act.  This is a very standard newspaper, which is known for neutrality...  but how come this favored article.  and the ending was the most stupid thing.  The way every one who opposes something usually would say.  may be a common man saying that is ok. but a newspaper of such a caliber saying that is too bad.  Please find a alternate solution to solve this problem. come on you damn guys, if you guys are the ones who are opposing the actions then you are the ones who have to suggest.  they are doing so coz they thought this is the best way to destroy adams bridge.  If you think that it is wrong,  that something of cultural importance is being destroyed and you stop it, yes it is good, but be prepared with an alternate solution.   Why just stop the work when you can;t suggest a alternative...

Lasik

 

Success at last, nearly after, begging, coaxing and doing all sorts of things(nearly for 5 years), my parents have accepted to go ahead with laser treatment..  I would love to go out like everybody else without wearing glasses.  Just like a normal person.  Just like everyone walking in the streets, in the train, riding bikes.

Still everything depends on what, the doc is gonna say tomorrow.  If all goes well. i will finish the training module to become a trainer and then proceed for the surgery next week.  Hope everything goes fine.

Hope i get to walk the streets without glasses.

AIMS Presentation, OrangeScape....SVN

 

Well i was forced to do a presentation of the application which i had just nearly completed and took live.  I was supposed to do the presentation with wink but instead i had went ahead with a ppt made with Open Office. 

The presentation went fine, except for a few glitches.  Like it did not work the way it was intended to.  but anyway rest of the things really went fine...

the presentation was done in  2 parts yesterday half hour and today 2 hrs...

 

after the presentation when we were talking with barathi, the topic turned to SVN and she wanted to setup a svn server for use in all projects for the members in my floor.  ie for team members...  When i said, anything can be done as long as there is access to google.  she did not believe it.  I think i had convinced her. and she was saying that she will get a system ready for me and i have to configure a svn server for us.  I accepted the challenge so that i could spend the weekend doing something. But lo, it was a desire which was left unfilled. 

i had finished the challenge just a few minutes ago.  Though i have to check wether it is accessible via the svn clients.  but i think it will.  coz it is working cool with the browser... so it should work really cool with the client system too....

 

I think i should again post it over here.  even my last promise about posting how i set up the forums is still pending.  i will get everything done soon. plEase bear with me. u know how lazy i am don;t you...

Monday, September 17, 2007

Virginity

Read This...

ok.. i got this link from another blog...
well. whats your take on this....
I will post my comments on this later, from home, not here....

Saturday, September 15, 2007

Boring weekend....

The weekend is boring, nothing to do,

no challenges to face.

just plain work, and that too boring.

how long am i going to do this.

Who cares......

Wednesday, September 12, 2007

Dimension Forums

Well Well Well,

once i am back to chennai, i think i start to behave like the usual stupid geek that i am. anyway since i was absent for the first ever company meeting which was organized. i wanted to do some part which would be mine towards it. i took up one of the things which they had decided to do - Knowledge Transfer. and the only way that i know, and also the easiest and the most useful way (IMHO) was a forums dedicated for us. so i got to work on the next day that i came from bangalore and set up a test environment in my home in this stupid RAM problem system of mine. and configured a forums with the PHPBB... and AMP in my system.

The next day i launched the forums within our local intranet. Though this would be a little useful, it would not be useful if we are out of office. so i have to take it to the internet. i don't know how i am going to do it. but somehow i think i will do it. Lets hope the company steps in. But i am not going to wait till the company comes in with its solution or help. We will go on make our lives easier as far as we can by ourselves, then get the company involved...

Well, still i am not recovered from the joy of working in Mac. i am still dreaming and longing for yet another chance to go there and work in the mac system....

May be i should come up with a post describing how i had setup the AMP server and configured PHPBB. k i will soon come up with it...

It's been a long time....

 

yes i am back from bangalore,  and back to office again.  Again the pretty boring normal life, it's been a long time since something happened in my life.... 

Everything is going on as usual, pretty darn usual.  i just am unable to start to write what happened after i left house to bangalore the second time...  I couldn't bring myself to write about that near death experience....  ( u can't call it near death experience, but as far as i am concerned, that is how close i have been to death).  That morning death started at my facing asking So, when are you coming to the party?...   U know wat, the face of death was beautiful, so very beautiful.  may be taht is my version of death. 

well whatever....  if something ever happens,................

Tuesday, September 04, 2007

A few more dayz....

it is been long, really long time. and i am missing chenai, like never before, i don't know. I am still in bangalore, and i am writing here coz, today is Janmastami, the bithday of Lord Krishna and so a holiday and in here in guesthouse there is Internet available without any restrictions.

great huh!...

well, it is a little frustrating... i just don't wanna be here... and u all know how i hate bangalore... this is one city which i hate deep down to the core... even may be till the next side of the core... But i am stuck here... and the client is . I hope i come down to chennai soon.....

well one of the bright things is, i saw my friends Rahul, Nityanandam, and Jeyan, and made a last minute dash and applied to Japanese Language Proficiency Test. I am writing level 4 this year... had struggle though, but i have confidence i will clear it... let us see....

well, anyway i don't have mood to balber now, sitting here in this chair.. watching this LCD screen, it sucks.. i'm a bit old skool, yeah, and i am not ashamed.... I am proud to be old skool...

well, will write in detail everything once back in chennai or when i get to a old skool which suits me.. got some photos too. everything after i come down to chennai leaving this sick bangalore... till then bye...