# Lab 1: Intro to SourceForge, Subversion, and VirtualBox
##Part 1: Join SourceForge & create a Subversion account
Go to [SourceForge](http://sourceforge.net)
Create an account (everyone does this).
**If your group doesn't have a project yet (only one person does this):**
- After you log in, click the "Me" drop-down menu in the top right, then click "Account".
- In the "Projects" tab, click "Register a new project".
- Pick a project name and URL, uncheck "Git" and check "SVN".
- Pretend to read Terms & Conditions, and click "Create".
- Click "User Permissions" in the left-hand menu.
- Under "Member" click "Add" and add the members of your group, as well as timmenzies and cparsle1.
- Still on the "Member" section, check "read", "admin", "create", and "update".
- In the "Anonymous" section, uncheck "read" (so no one can see your brilliant work).
**Make note of your read/write access string**
To get to this, click the "Code" tab in your project menu, then "RW".
It should be in a box at the top and look something like this:
>svn checkout svn checkout --username=cparsle1 svn+ssh://cparsle1@svn.code.sf.net/p/tester/code/ tester-code
## Part 2: Installing VirtualBox and Ubuntu 13.04
Go to [VirtualBox](https://www.virtualbox.org/wiki/Downloads) and download the version for your current OS.
Download the [Ubuntu 13.04 64 bit ISO file](http://www.ubuntu.com/download/desktop).
Install Ubuntu via VirtualBox using the instructions [here](http://www.youtube.com/watch?v=CfXDom7mwYM). [Part 2](http://www.youtube.com/watch?v=9VXW45fBstE).
>**Important things to do during install:**
>>Set RAM as high as possible (4GB is good, 2GB minimum).
>>Set disk size to 200GB.
>>Set video memory to 128K (if possible).
**Post-install protips:**
~LOUDify your system. This will make sure you're connected into the WVU LCSEE network. Instructions [here](http://www.youtube.com/watch?v=F7h9gw2lnAU)
*Note: Make sure you use the LOUDify script, not LOCDify.*
~Make your life easier and enable bidirectional clipboard.
On the VBox home, "General">"Advanced">"Shared Clipboard">"Bidirectional".
~Take a snapshot of your machine after creation. Do this every month to make sure your stuff will still exist if something goes wrong.
On your Ubuntu screen, "Machine">"Take snapshot".
~If your graphics are running slowly, use the following tips:
>On terminal, enter _sudo apt-get install xubuntu-desktop_.
>Restart Ubuntu.
>On login screen, click the little white circle above textbox where you enter your password.
>Select Xubuntu, which will give you a faster environment.
## Part 3: Using SVN
SVN is an easy way to keep your group's code up to date. By using Subversion via SourceForge, you have access to previous revisions of your code, as well as the ability to see who submitted the revisions.
**To use SVN:**
- To set up the directory for you project (only need to do this step once), paste your read/write access string in terminal.You'll need to enter your SF password a few times for confirmation.
- Use "ls", and you will see your project directory. It should be "blahblah-code".
- Change over ("cd") to the the project directory.
- Move any files that you wish to put into SourceForge into your directory by using the "mv" command, followed by the location of the file, then a space and a period. (e.g. mv ../Documents/IHopeThisCodeWorks.py .)
- Use "ls" to make sure the file was successfully moved.
- If all of the files you wish to move into SourceForge are in the directory, enter "svn add *".
- Enter "svn commit" to commit your revisions. Enter "c" if you are sure.
- If a mostly blank screen comes up with some weirdness on it, using ctrl+c then entering ":quit" should close it.
- Finish up, then check SourceForge to make sure everything copied over correctly.
*SVN protips:*
- To delete a file - "svn delete filename"
- To find what was changed between two revisions of a file (say 1 and 20) - "svn diff -r 1:20 filename"
- To rename a file - "svn move currentname newname"
#What to hand in:
**NOTE: Hand in this assignment by 5 o'clock on Friday.**
After following the VBox/Ubuntu 13.04 instructions about, open terminal and run the following commands:
>lsb_release -r
>ls -lsat /etc/apt/sources.list.d/loud.list
>ls /media/sf*
>exec loud-timmnix
>echo $PS1
Take a screenshot of your terminal with these commands ran and their output, print it out (be sure to put your name & lab day on top), and turn it in to the box outside of Dr. Menzies' office.