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

« Previous - Version 50/123 (diff) - Next » - Current version
John Chramowicz, 02/16/2017 11:46 AM

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


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

sh VBoxLinuxAdditions run #as root


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

cp krb5.conf /etc #as root

#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
chmod +x

./ --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`, then run ./ --develop

JC Temp Notes

# you need to add components for "default" setup:
# 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
#move current databases and no git data before doing copy

#Turn off firewall in virtual machine to display OTSDAQ in "localhost" machine browser:

#For SL6
service iptables stop #as root
chconfig iptables off #as root

#For SL7
systemctl stop firewalld #as root
systemctl disable firewalld #as root

#hosts file needs to be edited to set host name   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6   otsdaq-7

#hostname otsdaq-6
#ifconfig eth0
#[wicz@otsdaq-6 build_slf6.x86_64]$ cat /etc/hosts
#   localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
#<ip from ifconfig>   otsdaq-6

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)
source setupOTSDAQDEMO

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

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

To Run otsdaq in normal mode:

#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