Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| googlecodein:gettingstarted [2011/11/26 18:21] – Flesh this out GavinAtkinson | googlecodein:gettingstarted [2020/12/30 02:52] (current) – Remove 1 broken hyperlink. SashaVigole | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| If you have any problems with any of the instructions here, please do feel free to talk to your mentor, or ask on IRC. There are many mentors available in # | If you have any problems with any of the instructions here, please do feel free to talk to your mentor, or ask on IRC. There are many mentors available in # | ||
| + | |||
| + | ===== Requirements for Google Code-In tasks ===== | ||
| + | |||
| + | Most of the Google Code-In tasks require the following: | ||
| + | |||
| + | * A %%FreeBSD%% system (in a [[/ | ||
| + | * Knowledge of the documentation guidelines for the %%FreeBSD%% project: http:// | ||
| + | * A copy of the %%FreeBSD%% documentation tree checked out from the %%FreeBSD%% doc repository. | ||
| + | * Knowledge on how to research information on the internet | ||
| + | * Thorough work style | ||
| ===== Using the pre-prepared VM images ===== | ===== Using the pre-prepared VM images ===== | ||
| - | The easiest way to get started with the Google Code-In tasks is to download the pre-made Virtual Machine image. | + | The easiest way to get started with the Google Code-In tasks is to download the pre-made Virtual Machine image. |
| - | Once the VM image has been imported, boot it. The image has been set up so that all your work can either be done on the VM console itself, or over SSH. | + | Once the VM image has been imported, boot it. The image has been set up so that all your work can either be done on the VM console itself, or over SSH. After the machine has booted, basic instructions |
| There are two accounts set up: | There are two accounts set up: | ||
| - | | 'username' | + | | username | password | |
| | root | gcin | | | root | gcin | | ||
| | gcin | gcin | | | gcin | gcin | | ||
| Line 19: | Line 29: | ||
| You should only need to use the gcin username/ | You should only need to use the gcin username/ | ||
| - | In the home directory of the gcin users, the following directories exist: | + | In the home directory of the gcin users, |
| - | | docXXX | + | | doc | The %%FreeBSD%% Documentation tree | |
| | head | %%FreeBSD%% source code for -CURRENT | | | head | %%FreeBSD%% source code for -CURRENT | | ||
| | stable/9 | %%FreeBSD%% source code for the 9-STABLE branch | | | stable/9 | %%FreeBSD%% source code for the 9-STABLE branch | | ||
| Line 29: | Line 39: | ||
| ==== Working on the FreeBSD documentation tree ==== | ==== Working on the FreeBSD documentation tree ==== | ||
| - | (to be written) | + | (to be written). See http:// |
| + | |||
| + | === Working on existing documentation === | ||
| + | === Testing === | ||
| ==== Working on the FreeBSD source tree ==== | ==== Working on the FreeBSD source tree ==== | ||
| (to be written) | (to be written) | ||
| + | === Working on existing documentation === | ||
| + | === Testing === | ||
| ==== Submitting your work ==== | ==== Submitting your work ==== | ||
| - | The preferred format for submitting work done is in diff format. | + | The preferred format for submitting work done is in diff format. |
| For example, to create a diff of changes made to the %%FreeBSD%% handbook, the following command should be used: | For example, to create a diff of changes made to the %%FreeBSD%% handbook, the following command should be used: | ||
| Line 44: | Line 59: | ||
| Then, upload the file '' | Then, upload the file '' | ||
| + | |||
| + | Note, however, that any new files (i.e. files created rather than modified) will not be included in the output of "'' | ||
| ==== Updating the source code checkouts ==== | ==== Updating the source code checkouts ==== | ||
| - | All the supplied trees can be updated using "svn update" | + | All the supplied trees can be updated using "svn update" |
| + | |||
| + | '' | ||
| + | |||
| + | ---- | ||
| ====== Working on tasks without using the prepared VM images ====== | ====== Working on tasks without using the prepared VM images ====== | ||
| - | There are several ways of obtaining the source code, each with advantages and disadvantages. | + | There are several ways of obtaining the source code, each with advantages and disadvantages. |
| The following assumes that you are using %%FreeBSD%%, | The following assumes that you are using %%FreeBSD%%, | ||
| - | **Note that it is recommended that you do not update your tree whilst working on your tasks, as this combined with the approach documented here will cause your changes to be overwritten each time you update.** | + | ===== Obtaining the FreeBSD |
| - | + | ||
| - | ====== Documentation tree ====== | + | |
| - | + | ||
| - | As root, create a file named '' | + | |
| - | + | ||
| - | < | + | |
| - | *default host=cvsup8.FreeBSD.org | + | |
| - | *default base=/ | + | |
| - | *default prefix=/ | + | |
| - | *default release=cvs tag=. | + | |
| - | *default delete use-rel-suffix | + | |
| - | *default compress | + | |
| - | + | ||
| - | doc-all | + | |
| - | #www | + | |
| - | </ | + | |
| - | + | ||
| - | For most tasks, the website source is not necessary. | + | |
| - | + | ||
| - | Then, still as root, run '' | + | |
| - | + | ||
| - | Once you have the documentation tree, find the file that you want to work on, and make a copy of it. For example, if your task involves making changes to the %%FreeBSD%% Handbook bibliography, | + | |
| - | '' | + | The %%FreeBSD%% Project currently still uses CVS to store its documentation. In order to make things easier for GCIN students, we have started exporting the doc tree to a Google Code svn repository, which should prove easier for students unfamiliar with CVS to work with. |
| - | Then, make your edits to '' | + | Check the tree out with: |
| - | ===== Testing your changes ===== | + | '' |
| - | Once you are ready to test your changes, follow the instructions at '' | + | Once you have obtained the code, please see the top section of this page for how to work with it, test your work, and submit your changes. |
| - | ===== Submitting your changes | + | ===== Obtaining the FreeBSD source Code ===== |
| - | As you made a copy of the file before you made changes, you can produce a diff from it with: | + | As the %%FreeBSD%% source code is held in SVN, this can be checked out directly: |
| - | '' | + | '' |
| - | This file can then be submitted | + | Once you have obtained the code, please see the top section of this page for how to work with it, test your work, and submit your changes. |