Create a Windows Sandbox

From VrlWiki
Revision as of 19:42, 11 August 2010 by Brad Berg (talk | contribs) (New page: This page is under construction Setting up $G on a Remote Windows SYstem * Install Prerequisite Software When working remotely at Brown you will want to have ssh and VPN set ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This page is under construction
        Setting up $G on a Remote Windows SYstem


  • Install Prerequisite Software

When working remotely at Brown you will want to have ssh and VPN set up.

  http://cs.brown.edu/system/net_remote/


Visual Studio - You will need Studio to compile C++ projects.

In order to Build projects withing studio you will need to create a project or solution file. You can check in the project file so it can be used elsewhere. However, be sure the project file only uses relative paths.

  http://www.microsoft.com/express/Downloads/#2010-Visual-CPP


Python - You will need Python to run scripts. The 3.1.2 version is recent byt any version from 2.6 on will do. Your projects may not require Python so you can defer this. Still Python is a great tool to install.

  http://www.python.org/download/
  http://www.python.org/ftp/python/3.1.2/python-3.1.2.msi


  • Elements that make up a remote sandbox.

Imported Directories:

  common/*                       From clone or cvs
  import/make/*                  From clone
  import/<select imports>        From clone
  project/<select projects>      From cvs
  /map/gfx0/data/<select data>   From CS FS; may be large.

Roll all of common and import into a default zip file.


Note: CVS access can not be done reliably on Windows. You need to use Linux and transfer files.

    • Use VPN to access files checkout out on the CS FS. This may be slow and unreliable.
    • Copy files locally, edit, copy back to update cvs. May want to use a tar ball to transfer many files.


Setting up a remote sandbox.

  Create a work directory.


Set Environment variables:

  G - At %G%\common
         %G%\import
  GTO - At %GTO%\install_WIN32
  GROOT - At %GROOT%\data
  GARCH - WIN32
  PATH - %G%\import\make\g.utility_1.0;%PATH%


In the simplest sandbox setup, unzip the common and import files to your sandbox directory.

For example if your sandbox is:  c:\g\
         You should set up:  c:\g\common
                             c:\g\import

Set G, GTO, and GROOT all to your sandbox.

 For example if your sandbox is:  c:\g\
  Then set G, GTO, and GROOT to:  c:\g\
                       GARCH to:  WIN32
                        PATH to:  c:\g\import\make\g.utility_1.0;%PATH%


II. Building software.

You can work from a command line using a Dos shell or Power Shell

  http://technet.microsoft.com/en-us/library/bb978526.aspx


Build the common libraries:

  > cd  comon\utility