SourceForge.net software development

zhaozj2021-02-16  100

SourceForge.net is the world's largest OpenSource website, I believe many people have to download software. I don't know if anyone wants to participate in the development of a certain open source software, I am one of them. I have participated in a small project DBF_Recordset (DBFR) development, joining this project group for a long time, but the administrator is not very active, just throwing a downloaded ZIP source file package at the file list, CVS is initially There is no project. I spent two nights to study CVS and SSH, I finally built the development environment, I would like to share with you.

Provides two CVS services for the project on which SourceForge.net is provided:

An anyone who uses a PServer protocol that can access the source code anonymous. For example, get my project source code:

CVS -D: PServer: anonymous@cvs.sourceforge.net: / cvsroot / dbfr checkout dbf_recordset_1.3

Just now I tested it, I found that I didn't see the module I submitted in the web-based CVS. You can test with Gaim:

CVS -D: PServer: anonymous@cvs.sourceforge.net: / cvsroot / Gaim Login

The above command logs in and prompts the password to enter the password. This time is created in the% UserProfile% directory. Cvspass file.

Use more "% userprofile% /. CVSPASS to view its contents as follows:

/ 1: pserver: anonymous@cvs.sourceforge.net: 2401 / cvsroot / GAIM A

Explain that you have already logged in, the next step can be checkout / update, etc. A record will be added to this file every time you log in.

CVS -Z3 -D: PServer: anonymous@cvs.sourceforge.net: / CVSROOT / GAIM CO GAIM

This command Checkout Gaim This project includes all subdirectory under which.

The other is through the SSH protocol, only developers can modify the source code.

The first step is to download the SSH client, I chose the free client-recommended free client PUTTY http://www.chiark.greenend.org.uk/~sgtatham/putty/-OpenSsh can also be used.

The second step generates public and private key pairs with PUTTYGEN.EXE.

This is a tool for a GUI interface. It is more interesting that it is necessary to keep the mouse input random seed in the blank area of ​​the dialog, if it doesn't move, it will wait. After generating, save two keys, and save the public key in the OpenSSH format in the text box to a file, the public key submitted by SourceForge requires this. The saved public key has excessive things, the format is not right, and the copy is saved here is most convenient. I have n'thing to do, I can display your private key in the future, the corresponding OpenSSH public key will also be displayed. I have a total of three groups of keys, SSH1 (RSA), SSH2 (RSA), SSH2 (DSA).

The third step submits the public key to Sourceforge.Net

Log in to Sourceforge on the Web, select My sf.net, and select Account Options. In the Host Access Information section of the open page, you can see Number of SSH Shared Keys on File, which defaults to 0.

Here you can submit the three OpenSSH public keys generated in the previous step, each key, do not have extra blank lines. You can see the number of keys here will change after submission. Re-opening the page of the submit key, if you see a key is red, this key has a problem, check whether the key number is consistent with you. The fourth step, start the Pagent.exe certification agent service, join your key to the proxy service. Other applications can obtain private keys from the service.

The fourth step is logged in to the shell.sourceforge.net test key. Run putty.exe or puttytetel.exe, Host Name Enter the name of the SHELL.SourceForge.net, Saved Sessions Enter the name of the session, such as the shell, will be directly connected to this website directly through the name. Double-click saved session will pop up the DOS window, prompt Login: Enter the username of SourceForge.net, have some tips for the first time, and log in directly.

The fifth step is activated CVS.SourceForge.net. To access CVS via SSH, you must build a .ssh directory in your user directory, and save your public key to below. This operation is the same as the landing shell service, but you will find it immediately after the landing will be immediately exited, which is normal because the CVS server is not allowed to access. In addition, you can also log in to the Shell server and execute ssh -l username cvs1 after logging in.

The sixth step sets environment variables, and CVS_RSH is equal to the full path of PLINK.exe, ensuring% CVS_RSH% executable.

Step 7 Set the cvsroot environment variable.

Set cvsroot=username@cvs.sourceforge.net: / cvsroot / dbfr

Here is purely for convenience, after setting CVSROOT, you don't have to enter the server name, you can directly Checkout, etc.

Then Import initial file, switch to the path where the project is located, execute CVS IMPORT, I use WinCVS import. Before importing, you need to execute the init command to create a new Respository before you can import it. After the introduction is successful, you can CVS Checkout DBF_RecordSet_1.3 or CVS Commit DBF_RecordSet_1.3, and the like.

转载请注明原文地址:https://www.9cbs.com/read-11692.html

New Post(0)