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 17:57] – GavinAtkinson | googlecodein:gettingstarted [2020/12/30 02:52] (current) – Remove 1 broken hyperlink. SashaVigole | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | The easiest way to get started with | + | ====== Getting Started ====== |
| - | OLD PAGE: | + | Some of the %%FreeBSD%% tasks may seem daunting, especially to those who have no prior experience with %%FreeBSD%% or similar operating systems. |
| - | Most of the Google Code-In tasks require the %%FreeBSD%% source code to have been checked out. There are several ways of doing this, each with advantages | + | 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 # |
| - | The following documentation assumes that you are using %%FreeBSD%%, | + | ===== Requirements for Google Code-In tasks ===== |
| - | **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.** | + | Most of the Google Code-In |
| - | If you have any problems | + | * A %%FreeBSD%% system (in a [[/ |
| + | * Knowledge | ||
| + | * A copy of the %%FreeBSD%% documentation tree checked out from the %%FreeBSD%% doc repository. | ||
| + | * Knowledge | ||
| + | * Thorough work style | ||
| - | ====== Documentation tree ====== | + | ===== Using the pre-prepared VM images |
| - | As root, create a file named '' | + | 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. After the machine has booted, basic instructions will be shown on the console, including the IP address that the virtual machine has been given. You can SSH to this IP address (using the gcin account) if you wish to work over SSH rather than directly on the console. |
| - | *default host=cvsup8.FreeBSD.org | + | |
| - | *default base=/ | + | |
| - | *default prefix=/ | + | |
| - | *default release=cvs tag=. | + | |
| - | *default delete | + | |
| - | *default compress | + | |
| - | doc-all | + | There are two accounts set up: |
| - | #www | + | |
| - | </ | + | |
| - | For most tasks, the website source is not necessary. | + | | username | password | |
| + | | root | gcin | | ||
| + | | gcin | gcin | | ||
| - | Then, still as root, run '' | + | You should only need to use the gcin username/password for most tasks. |
| - | 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, make a copy of it: | + | In the home directory of the gcin users, a directory called "'' |
| - | '' | + | | doc | The %%FreeBSD%% Documentation tree | |
| + | | head | %%FreeBSD%% source code for -CURRENT | | ||
| + | | stable/9 | %%FreeBSD%% source code for the 9-STABLE branch | | ||
| - | Then, make your edits to '' | + | All three trees are checked out using Subversion. |
| - | ===== Testing your changes ===== | + | ==== Working on the FreeBSD documentation tree ==== |
| - | Once you are ready to test your changes, follow the instructions at '' | + | (to be written). See http:// |
| - | ===== Submitting your changes | + | === Working on existing documentation |
| + | === Testing | ||
| - | As you made a copy of the file before you made changes, you can produce a diff from it with: | + | ==== Working on the FreeBSD source tree ==== |
| - | '' | + | (to be written) |
| + | === Working on existing documentation === | ||
| + | === Testing === | ||
| - | This file can then be submitted | + | ==== Submitting your work ==== |
| + | |||
| + | 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 | ||
| + | |||
| + | '' | ||
| + | |||
| + | 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 ==== | ||
| + | |||
| + | All the supplied trees can be updated using "svn update" | ||
| + | |||
| + | '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ====== Working on tasks without using the prepared VM images ====== | ||
| + | |||
| + | There are several ways of obtaining the source code, each with advantages and disadvantages. | ||
| + | |||
| + | The following assumes that you are using %%FreeBSD%%, | ||
| + | |||
| + | ===== Obtaining the FreeBSD Documentation tree ===== | ||
| + | |||
| + | The %%FreeBSD%% Project currently still uses CVS to store its documentation. | ||
| + | |||
| + | Check the tree out with: | ||
| + | |||
| + | '' | ||
| + | |||
| + | Once you have obtained | ||
| + | |||
| + | ===== Obtaining the FreeBSD source Code ===== | ||
| + | |||
| + | As the %%FreeBSD%% source code is held in SVN, this can be checked out directly: | ||
| + | |||
| + | '' | ||
| + | |||
| + | 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. | ||