Project

General

Profile

SL6-7 Install as a User » History » Version 53

« Previous - Version 53/122 (diff) - Next » - Current version
John Chramowicz, 02/16/2017 01:05 PM


SL6/7 Install as a User

Quick Start (from scratch, start here)

To Download and Build the otsdaq software:

#login as your user account, you do not need to be root

#For Virtual Machines: make sure git, kernel and make are installed

yum install git libuuid-devel openssl-devel #as root
yum install -y gcc kernel-devel make #as root

reboot

#for virtual machines, if you want VBoxLinuxAdditions, mount ISO and go to ISO folder

sh VBoxLinuxAdditions run #as root

reboot

#for virtual machines, you need to get the kerberos files

wget http://computing.fnal.gov/authentication/krb5conf/Linux/krb5.conf
cp krb5.conf /etc #as root
kinit

#make sure you are in bash
#echo $0 #should print out "bash" if you are in the proper terminal type
#bash #if not in bash, this will switch you

#navigate to where you want to install otsdaq
#'cd' without any parameters will take you to your home directory

#Proceed with download and build

mkdir otsdaq-base
cd otsdaq-base
wget https://cdcvs.fnal.gov/redmine/projects/otsdaq/repository/demo/revisions/develop/raw/tools/quick-mrb-start.sh
chmod +x quick-mrb-start.sh

./quick-mrb-start.sh --tag v1_00_05 # Use --develop to get the development version, which may be broken, and -w to checkout read-write (need repository access)

# For develop, you will have to run `mrb gitCheckout -d otsdaq_components http://cdcvs.fnal.gov/projects/components`, then run ./quick-mrb-start.sh --develop

Notes for using OTSDAQ in a Virtual Machine

# you need to add 'components' for "default" Configuration GUI:
# change to srcs folder ('cd srcs/')
cp -r /home/wicz/Desktop/otsdaq-base/srcs/otsdaq/tutorial_data/NoGitData_tutorial_first_demo_v2/ /home/wicz/Desktop/otsdaq-base/srcs/otsdaq_demo/NoGitData
cp -r /home/wicz/Desktop/otsdaq-base/srcs/otsdaq/tutorial_data/databases_tutorial_first_demo_v2/ /home/wicz/databases

#For SL6
#Turn off firewall in virtual machine to display OTSDAQ in "localhost" machine browser:
service iptables stop #as root
chconfig iptables off #as root

#hosts file (/etc/hosts) needs to be edited to set host name
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.2.15   otsdaq-6

#For SL7
#Turn off firewall in virtual machine to display OTSDAQ in "localhost" machine browser:
systemctl stop firewalld #as root
systemctl disable firewalld #as root

#hosts file (/etc/hosts) needs to be edited to set host name
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.2.15   otsdaq-7

From now on, when you start a terminal use the following to Setup otsdaq:

cd otsdaq-base
source setupOTSDAQDEMO

#to reset the entire setup (like a new terminal)
unsetup_all
source setupOTSDAQDEMO

To Configure your instance of the otsdaq software (change security settings, icons on desktop, etc.):

StartOTS.sh --wiz

#check console print out for url with secret access key
#copy and paste url to browser

To Run otsdaq in normal mode:

StartOTS.sh

#check console print out for url
#copy and paste url to browser

It is recommended that users start with otsdaq_demo as a template user repository, but migrate to their own user repository as soon as possible.
Here are instructions on how to setup your own user repository:
Setting up a User Repository

To Build otsdaq after making changes:

mrb b

For an introduction to the otsdaq experience try this tutorial:
Intro Tutorial

If you want to develop in all three repositories (otsdaq, -demo, and -utilities), you must checkout the repositories with write access. More information for developers can be found here:
Instructions for using MRB with OTSDAQ

MRB is used to build otsdaq: mrb

Troubleshooting your otsdaq Installation

Migrating to artdaq database utilities