Getting Started on Linux - VirtualPhotonics/VTS GitHub Wiki

Prerequisites

  • An installation of git. To install on Ubuntu 22.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 8.0 runtime, for Ubuntu the commands are documented here.

  • An installation of powershell, on Ubuntu 22.04 the commands are:

# Update the list of packages
sudo apt-get update
wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb
# Install the Microsoft repository configuration package
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of products
sudo apt-get update
# 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/net8.0/

To generate sample infiles for MCCL

./mc geninfiles

To run MCCL with sample infile

./mc infile=infile_one_layer_all_detectors.txt