Friday, June 02, 2006

How do I register a project & upload at sf.net?



Hey, Successfully done! I have uploaded my sample project at http://j2ee-examples.sourceforge.net ....

Yeah, Here is the snap shot of my putty. Thanks to Hari, who helped me to get out of the mess!














And this is scp uploading screen-shot



















As I promised, this is the FAQ I present from my experience:

------------------------------------

How do I register a project at sf.net?

First register for a user account. Then, go to ‘My Projects’ column and follow the new project link. It will guide throughout registering a project. After the registration, you have to wait for approval more than 2 weeks. Approval will not be emailed, you have to go and check.

I followed the instructions and successfully uploaded the project using CVS into sf.net. (I mean projectname.cvs.sourceforge.net). But, it is not available for download for other users. What went wrong?

Same sweet first! I was also such an ignorant last week. CVS is for you and for managing your versions. Sf.net doesn’t allow the CVS folder’s or files for download. For uploading projects (which can be downloadable), you can use ‘scp’ or ‘sftp’ (about which we are going to discuss later).

So, how do I upload?

In case of windows, first download putt.exe and scp.exe (use Google). Then, launch the scp like from the command prompt like,

scp -r . username@shell.sourceforge.net:/home/groups/P/PR/PROJECTNAME/htdocs

The command says, “Hey scp, recursively (-r) copy all the files present in current directory (.) to shell.sourceforge.net server, under the directory /home/groups/P/PR/PROJECTNAME/htdocs”

Note: you have to replace the ‘P’ (in the destination directory path) by the first letter of your project name and ‘PR’ by the first two letters of your project name.

htdocs directory is where the htmls files are kept. (like your web root directory). The allocated quota is 5 MB. In the same hierarchy you have cgi-bin directory where you can put your php or cgi scripts.

Then, how do I login and see every thing?

Use either putty or ssh on windows. The host name is shell.sourceforge.net, the port is 22. You have your login and password right? Then, what else! Enjoy.
I can just tell you where you should not try to login. Projectname.cvs.sourceforge.net – This is not for ssh-ing. Only for CVS repository access.

Last time, when I logged in to sf.net, it was successful. Same thing I try now… but the putty is closed saying “connection problem”... but the network is fine …sf.net is ‘Ping’ able from my host …. What went wrong?

(OR)

My ssh gives some strage errors like

‘ssh_exchange_identification: Connection closed by remote host’

Do you want to see more ?

$ ssh -v username@shell.sourceforge.net
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted. debug1: ssh_connect: needpriv 0 debug1: Connecting to channel-e.sourceforge.net [66.35.250.209] port 22.
debug1: Connection established. debug1: identity file /home/csea/.ssh/identity type -1
debug1: identity file /home/mani/.ssh/id_rsa type -1
debug1: identity file /home/mani/.ssh/id_dsa type -1 ssh_exchange_identification: Connection closed by remote host
debug1: Calling cleanup 0x80674d0(0x0)

Now, tell me what went wrong?

Don’t worry. You are not the culprit. Sf.net might have blocked the access. I also got the same error message.
I tried logging after 1 or 2 days. Then, it worked fine. I guess, the access list would have released the lock. Not sure…

All the best!






3 comments:

prabs said...

oh.. thats gr8 mani.. just i check ur Y! msg'r's msg also.. after saw ur blog.. then i came to know u got that..gr8 mani..nice work...

Manivannan P said...

thanks prabhu...
I became a early-morning-guy (from a late-night-guy), thats why not able to catch you often...
Then, where is your blog? I dont see it...

prabs said...

mani thats very funny !!!
u just click on prabs will take u to my profile page.. @ the end u can find mine mani...