Practicum Source - Main

For Practicum, We'll be working on a smaller project in Java for better platform independence. This code will later be translated and brought into the bigger project. There are 4 branches available: main, crystal, jeff and jon. Please only modify your version of the branch. Merge the code into the main branch when you have code that's ready. I'm not certain how to do this under NetBeans very well, but TortoiseSVN is fairly easy. (see below)

Image Files

The images are zipped up and available for download. You'll need to unzip them into different folders. *Please be kind, as this is hosted from my home machine!*

SVN

Windows, NetBeans

Software: Download and install

  • full version of Putty or just Plink (link).

In NetBeans, click Versioning -> Subversion -> Checkout…
Repository URL: svn+ssh://gfxcoder.homelinux.com/var/svn/virtualcam
Tunnel Command: plink -l [user] -pw [passwd] (or)
Tunnel Command: plink -l [user] -i C:\Path\To\Private.key (see below for instructions on generating a private/public key)
Next. Choose a local folder to place it in. Finish. Open the appropriate Project when done.

Windows, TortoiseSVN

Software: Download and install

  • full version of Putty or just Plink (link).
  • TortoiseSVN (link). It will require a restart!

Note: if you don't use a public/private key, TortoiseSVN will ask for a password. Sometimes, annoyingly, it asks for it several times.

To checkout for the first time, Open My Documents and right-click in an open space -> SVN Checkout… Enter the following
Repository URL: svn+ssh://[user]@gfxcoder.homelinux.com/var/svn/virtualcam
Press OK and answer Yes to creating the folder. Enter your password. Enter your password, again. OK.

Any new file that you create (new class, folder, etc.) will need to be added to the SVN log for it to be committed. To do this, just right-click on the file (or the parent folder) -> TortoiseSVN -> Add… Check all the files you want to add. OK.

To commit changes, right-click on the file you wish to commit (or parent folder) -> SVN Commit… Make sure that the file/folder(s) are checked. Add a comment about the changes made. OK.

To branch, right-click the folder you wish to branch -> TortoiseSVN -> Branch/tag… Enter the new branch location. Enter a brief message. Check to make it the working copy. OK. You'll need to update to see the new branch.

To merge your code into the main branch, first make sure to update the main branch to latest revision. Then, right-click the main folder -> TortoiseSVN -> Merge… Select Merge a range of revisions, Next. It should have your branch filled in for the URL to merge from. Next. (Click on Test merge to see what will be changed…) Click Merge. You'll need to update and then commit the main folder now.

To prevent having to supply a password each time, first generate a public/private key. See section below for instructions. Browse to where you saved your OpenSSH key. Right-click -> Edit. Enter your secret password for the key. Right-click the Public key for pasting -> Copy. Now, open Putty and connect to gfxcoder.homelinux.com. Enter your username and password. Type nano mykey.pub (enter). Right-click in the Putty shell window to paste the key. The key will actually be in 3 lines… delete the enter at the end of each line to make it all a single line. CTRL-O. ENTER. CTRL-X. Type cat mykey.pub » .ssh/authorized_keys (enter). Type exit (enter). From now on, as long as you have Pageant opened, you should be able to log in via SSH (which includes performing SVN commands) without having to supply a password.

Windows, Private/Public Key Generation

You can use PuTTYGen to generate a SSH-2 RSA key set. Be sure to protect it with a passphrase. Save the private and public keys to a safe location. Then under Conversions -> Export OpenSSH key. Save it to the same place. Close PuTTY Key Generator

If you're using TortoiseSVN to handle the SVN commands, open Pageant (under Putty Start menu). Double-click the computer with a hat in your system tray. Add Key. Locate your private key. Supply the password. Close.

Linux

svn co svn+ssh://[user]@gfxcoder.homelinux.com/var/svn/virtualcam
svn --force add *
svn ci
svn up

In NetBeans, click Versioning -> Subversion -> Checkout…
Repository URL: svn+ssh://gfxcoder.homelinux.com/var/svn/virtualcam
Tunnel Command: ssh -l [user] -pw [passwd] (or)
Tunnel Command: ssh -l [user] -i /path/to/private.key
Next. Choose a local folder to place it in. Finish. Open the appropriate Project when done.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License