Skip to content

Getting Started on Linux

Carole Hayakawa edited this page Jul 2, 2020 · 29 revisions

These instructions describe how to clone the source code on linux and build it

Prerequisites

  • An installation of git. To install on Ubuntu 18.04, bring up a terminal window and type:
sudo apt-get update
sudo apt-get install git
git config --global user.name "yournamehere"
git config --global user.email "youremailaddresshere"
  • An installation of dotnet 3.1 runtime, on Ubuntu 18.04 the commands are:
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y apt-transport-https 
sudo apt-get update 
sudo apt-get install -y dotnet-runtime-3.1
  • An installation of powershell, on Ubuntu 19.04 the commands are:
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of products
sudo apt-get update
# Enable the "universe" repositories
sudo add-apt-repository universe
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
pwsh## Getting the Source Code
Clone the source code from GitHub using the command:

git clone https://github.com/VirtualPhotonics/vts.git

This will create a directory "vts" in your current directory.
## Building the Code    
* Using powershell:

cd vts pwsh ./BuildTestRelease.ps1 exit

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

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

To generate sample infiles for MCCL

./mc geninfiles

To run MCCL with sample infile

./mc infile=infile_one_layer_all_detectors.txt

Clone this wiki locally