Getting Started on Linux

Carole Hayakawa edited this page Mar 17, 2018 · 5 revisions


  • An installation of git. To install on Ubuntu 16.04, bring up a terminal window and type:
sudo apt-get update
sudo apt-get install git
git config --global "yournamehere"
git config --global "youremailaddresshere" 
  • An installation of mono
sudo apt-get install mono-complete
sudo apt-key adv --keyserver hkp:// --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt-get update
sudo apt-get install mono-devel

Getting the Source Code

Clone the source code from GitHub using the command:

git clone

This will create a directory "vts" in your current directory.

Building the Code

  • Using Monodevelop:
    • Bring up MonoDevelop and open solution Vts-Mono.sln in vts/src
    • In Edit->Preferences->Projects->Build, check "build with MSBuild instead of xbuild"
    • Right click "Vts-Mono" in left column window and select "Rebuild Vts-Mono".
    • To execute any application, click on project (e.g. Vts.MonteCarlo.CommandLineApplication) and select "Options". Under "Run" "General" input any "Parameters" the application (e.g. infile=infile_one_layer_all_detectors.txt).
    • To execute any unit tests (notated by a ending ".Test"), right click and select "Run Item".
  • Using commandline:
cd vts

To execute any application, e.g. Monte Carlo CommandLine (MCCL):

cd src/Vts.MonteCarlo.CommandLineApplication/bin/Debug

To generate sample infiles for MCCL

mono mc.exe geninfiles

To run MCCL with sample infile

mono mc.exe infile=infile_one_layer_all_detectors.txt