Create a Windows Sandbox: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
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 ...
 
mNo edit summary
Line 6: Line 6:
* Install Prerequisite Software
* Install Prerequisite Software


When working remotely at Brown you will want to have ssh and VPN set up.
** When working remotely at Brown you will want to have ssh and VPN set up. These tools are supported by the CS department tStaff.  If you need help email:  <code>problem@cs.brown.edu</code>


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




Visual Studio - You will need Studio to compile C++ projects.
** 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.
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.
Line 18: Line 18:




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.
** 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/download/
Line 27: Line 27:
* Elements that make up a remote sandbox.
* Elements that make up a remote sandbox.


Imported Directories:
Populate your sandbox directories From the CS file system.  Only a few imports are needed for a given project.  Since import directories can be large, just copy the ones you need.  Alternatively you can just copy over the zip file with everything.


   common/*                      From clone or cvs
   common\*                      From /map/gfx0/tools/public/clone/common/ or cvs
   import/make/*                  From clone
   import\make\*                  From /map/gfx0/tools/public/clone/import/make/
   import/<select imports>        From clone
   import\<select imports>        From /map/gfx0/tools/public/clone/import/...
  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.


You only need to set up the project directories you will be working with.  Check them out from your Linux sandbox and copy them over to Windows.  When you are done, copy them back to linux and check them in.


Note: CVS access can not be done reliably on Windows.  You need to use Linux and transfer files.
It is very important that whaen checking in text files they use Linux end of line delimiters (LF). THe default delimiter on Windows is carriage return / line feedIt is very likely you will need to convert them before checking them in.


** Use VPN to access files checkout out on the CS FSThis may be slow and unreliable.
  project\<select projects>      From CVS @ project/...
 
 
Unless you intend to use files from the data directory then you do not need to create a data directoryIf you do need some data files then plan wisely because many are large.


** Copy files locally, edit, copy back to update cvs.  May want to use a tar ball to transfer many files.
  data\*                         From /map/gfx0/data/<select data>




Setting up a remote sandbox.
** Use VPN to access files checkout out on the CS FS.  This may be slow and unreliable.


  Create a work directory.
** Copy files locally, edit, copy back to update cvs.  May want to use a tar ball to transfer many files.




Set Environment variables:
Set Environment variables:


<pre>
   G - At %G%\common
   G - At %G%\common
           %G%\import
           %G%\import
Line 62: Line 64:


   PATH - %G%\import\make\g.utility_1.0;%PATH%
   PATH - %G%\import\make\g.utility_1.0;%PATH%
</pre>


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


In the simplest sandbox setup, unzip the common and import files to your sandbox directory.
  For example if your sandbox is:  c:\g\
  For example if your sandbox is:  c:\g\
          You should set up:  c:\g\common
              You should set up:  c:\g\common\
                              c:\g\import
                                  c:\g\import\


Set G, GTO, and GROOT all to your sandbox.
Set G, GTO, and GROOT all to your sandbox.
Line 84: Line 87:




Build the common libraries:
Build the common utility libraries.  Many things use this.
 
  > cd  common\utility
  > make all
  > make install
 
 
Build any other libraries you might want to use.  You can do this as needed.


   > cd  comon\utility
   > cd  ..\gg
  > make all
  > make install

Revision as of 20:06, 11 August 2010

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. These tools are supported by the CS department tStaff. If you need help email: problem@cs.brown.edu
  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.

Populate your sandbox directories From the CS file system. Only a few imports are needed for a given project. Since import directories can be large, just copy the ones you need. Alternatively you can just copy over the zip file with everything.

  common\*                       From /map/gfx0/tools/public/clone/common/ or cvs
  import\make\*                  From /map/gfx0/tools/public/clone/import/make/
  import\<select imports>        From /map/gfx0/tools/public/clone/import/...


You only need to set up the project directories you will be working with. Check them out from your Linux sandbox and copy them over to Windows. When you are done, copy them back to linux and check them in.

It is very important that whaen checking in text files they use Linux end of line delimiters (LF). THe default delimiter on Windows is carriage return / line feed. It is very likely you will need to convert them before checking them in.

  project\<select projects>      From CVS @ project/...


Unless you intend to use files from the data directory then you do not need to create a data directory. If you do need some data files then plan wisely because many are large.

  data\*                         From /map/gfx0/data/<select data>


    • 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.


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 utility libraries. Many things use this.

  > cd  common\utility
  > make all
  > make install


Build any other libraries you might want to use. You can do this as needed.

  > cd  ..\gg
  > make all
  > make install