Installation

Belle2Lab installation

  1. Web version: http://belle2.ijs.si/masterclass/
  2. If used for more than 5 students use Virtual appliance VirtualBox VM: Ubuntu username: belle2, password: belle2
  3. Installation in the Apache2 web server: 
    1. Sources http://belle2.ijs.si/masterclass_latest.tgz
    2. data: http://belle2.ijs.si/data/hadron-1.root   and http://belle2.ijs.si/data/hadron-2.root

install.sh for Ubuntu18.04 hosts Collapse source

#!/bin/bash
#Installation script for the Belle II masterclass sources
#install VirtualBox disk 10GB, memory 4Gb in the host machine ( can be skipped if just installing in the Linux server )
#install Ubuntu operating system
DIR=/var/www/html
sudo su
#install missing modules
apt install  apache2 subversion php php-dom curl libapache2-mod-php  php-xml  build-essential libpng-dev  zlib1g-dev
#install 64 bit root -> change to the correct version of the binaries
cd /opt
curl -L https://root.cern.ch/download/root_v6.Linux-ubuntu18-x86_64-gcc7.3.tar.gz | tar xzv
#for the 32 bit version, you have to compile ROOT
#get the sources
#curl -L https://root.cern.ch/download/root_v6.sources.tar.gz | tar xzv
#mkdir build
#cd build
#cmake ./root_v6.16.00
#cmake --build .
#sudo cmake -DCMAKE_INSTALL_PREFIX=/opt/root -P cmake_install.cmake
#cd &&  rm -rf root root_v6.16.00
#install data
mkdir $DIR/data && cd $_
wget http://belle2.ijs.si/data/Belle-1.root
wget http://belle2.ijs.si/data/Belle-2.root
#install masterclass sources
mkdir ../masterclass && cd $_
curl -L http://belle2.ijs.si/masterclass_latest.tgz | tar xzv
 
#change the ownership of the directory
cd $DIR && chown -R www-data.www-data data masterclass
#restart apache
service apache2 restart
#access your server with the web browser (Mozilla/Chrome) pointing to http://localhost/masterclass
#
# get a belle2 logo and set it as a wallpaper
wget http://belle2.kek.jp/images/belle2-logo.png
#Go to Preferences, then Desktop Preferences , set belle2-logo.png as a Walpaper