Automated Quick Start
These are instructions using a script to set up a typical sandbox at Brown using Linux. Even if you intend to develop on a different platform such as Windows you should initially get set up on Linux. If you need more explicit instructions or you want a more complex setup then revert back to the full instructions.
- To create your sandbox run this command form any directory:
% /research/graphics/tools/linux/install_linux/bin/setup/new.g.user.sh
NOTE: Creating a sandbox in the directory: /research/graphics/users/YourId/
NOTE: Copying previously installed Brown linux projects ...
NOTE: ... done copying linux projects.
NOTE: Copying previously installed Brown Windows projects ...
NOTE: ... done copying Windows projects.
NOTE: Checking out the common/ directory from CVS ...
NOTE: ... The common/ directory was succefully checked out from CVS.
NOTE: Building the common/utility/ directory ...
NOTE: ... The common/utility/ directory successfully built.
Your work area was created in: /research/graphics/users/YourId/
Source code for projects you create and any Brown projects
you want to check out from the CVS repository will go here:
drwxrwsr-x 2 YourId graphics 4096 Sep 15 11:18 /research/graphics/users/YourId/project
Your private copy of shared Brown source code was checked out to:
drwxrwsr-x 15 YourId graphics 4096 Sep 15 11:20 /research/graphics/users/YourId/common
Your private copy of previously installed programs and libraries
written at Brown are here:
drwxrwsr-x 5 YourId graphics 4096 Sep 15 11:18 /research/graphics/users/YourId/install_linux
drwxrwsr-x 6 YourId graphics 4096 Sep 15 11:19 /research/graphics/users/YourId/install_WIN32
drwxrwsr-x 7 YourId graphics 4096 Sep 15 11:19 /research/graphics/users/YourId/install_OSX
Your projects can access third party software that has been
previously downloaded and installed here:
/research/graphics/tools/linux/import/afni /research/graphics/tools/linux/import/gsl
/research/graphics/tools/linux/import/artoolkit /research/graphics/tools/linux/import/make
/research/graphics/tools/linux/import/blitz /research/graphics/tools/linux/import/mricron
/research/graphics/tools/linux/import/build /research/graphics/tools/linux/import/nifti
/research/graphics/tools/linux/import/camino /research/graphics/tools/linux/import/qt
/research/graphics/tools/linux/import/cg /research/graphics/tools/linux/import/scalable
/research/graphics/tools/linux/import/dtk /research/graphics/tools/linux/import/sdl
/research/graphics/tools/linux/import/ftgl /research/graphics/tools/linux/import/vrpn
/research/graphics/tools/linux/import/g3d /research/graphics/tools/linux/import/xerces
/research/graphics/tools/linux/import/glut
***** The new.g.user.sh script has successfully completed. *****
- To setup your envionment each time you login modify your default login script. First you need to know if you are running the tcsh or bash shell.
> finger $USER
The "Shell:" field in the output will be either /bin/tcsh or /bin/bash. If you are running tcsh then edit $HOME/.cshrc and add this line at the end:
source /research/graphics/tools/linux/install_linux/bin/setup/g.login.csh
If you are running bash then instead edit $HOME/.bashrc and add this line at the end:
source /research/graphics/tools/linux/install_linux/bin/setup/g.login.sh
You can check your results by logging out and then logging in again. This command will list your environment variables.
> printenv
It will list all your variables, but you should see that these variables are set:
CVSROOT GARCH G GTO GROOT G_IMPORT G_COMPILER
Additionally the variable needed to access the NAG library are set up. These variables are not part of the G build environment, but are needed for programs that use the NAG libraries. You can override them if they
conflict with your environment.
The NAG libraries are installed and supported by tStaff. If you have any trouble with these settings contact tStaff.
The NAG environment variable settings are:
LM_LICENSE_FILE /cfarm/nag/license.dat:/com/nag/license.dat NAG_KUSARI_FILE /com/nag/kusari.dat