{"id":209,"date":"2019-11-28T09:14:09","date_gmt":"2019-11-28T09:14:09","guid":{"rendered":"http:\/\/belle2.ijs.si\/public\/?page_id=209"},"modified":"2021-01-20T17:16:28","modified_gmt":"2021-01-20T17:16:28","slug":"installation","status":"publish","type":"page","link":"https:\/\/belle2.ijs.si\/public\/installation\/","title":{"rendered":"Installation"},"content":{"rendered":"\n<p><strong>Belle2Lab installation<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Web version:&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/belle2.ijs.si\/masterclass\/\" target=\"_blank\">http:\/\/belle2.ijs.si\/masterclass\/<\/a> <\/li><li>If used for more than 5 students use Virtual appliance VirtualBox VM: Ubuntu username: belle2, password: belle2<br><ul><li>download virtual appliance: 2020 64-bit version: <a href=\"http:\/\/belle2.ijs.si\/download\/Belle2Lab-ubuntu-1804-20.ova\">http:\/\/belle2.ijs.si\/download\/Belle2Lab-ubuntu-1804-20.ova<\/a> 4.8GB&nbsp; or 32-bit version:&nbsp;<a href=\"http:\/\/belle2.ijs.si\/download\/Belle2Lab-ubuntu-1804-32bit-20.ova\">http:\/\/belle2.ijs.si\/download\/Belle2Lab-ubuntu-1804-32bit-20.ova<\/a> 5.1GB&nbsp; <\/li><li><a rel=\"noreferrer noopener\" href=\"http:\/\/www.7-zip.org\/\" target=\"_blank\"><\/a>&nbsp;and run with&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.virtualbox.org\/\" target=\"_blank\">https:\/\/www.virtualbox.org\/<\/a><\/li><\/ul><\/li><li>Installation in the Apache2 web server:&nbsp;<ol><li>Sources&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/belle2.ijs.si\/masterclass_latest.tgz\" target=\"_blank\">http:\/\/belle2.ijs.si\/masterclass_latest.tgz<\/a><\/li><li>data:&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/belle2.ijs.si\/data\/hadron-1.root\" target=\"_blank\">http:\/\/belle2.ijs.si\/data\/hadron-1.root<\/a>&nbsp;&nbsp;&nbsp;and&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/belle2.ijs.si\/data\/hadron-2.root\" target=\"_blank\">http:\/\/belle2.ijs.si\/data\/hadron-2.root<\/a><\/li><\/ol><\/li><\/ol>\n\n\n\n<p><strong>install.sh for Ubuntu18.04 hosts<\/strong>&nbsp;Collapse source<\/p>\n\n\n\n<pre>#!\/bin\/bash\n#Installation script for the Belle II masterclass sources\n#install VirtualBox disk 10GB, memory 4Gb in the host machine ( can be skipped if just installing in the Linux server )\n#install Ubuntu operating system\nDIR=\/var\/www\/html\nsudo su\n#install missing modules\napt install  apache2 subversion php php-dom curl libapache2-mod-php  php-xml  build-essential libpng-dev  zlib1g-dev\n#install 64 bit root -&gt; change to the correct version of the binaries\ncd \/opt\ncurl -L https:\/\/root.cern.ch\/download\/root_v6<latest>.Linux-ubuntu18-x86_64-gcc7.3.tar.gz | tar xzv\n#for the 32 bit version, you have to compile ROOT\n#get the sources\n#curl -L https:\/\/root.cern.ch\/download\/root_v6<latest>.sources.tar.gz | tar xzv\n#mkdir build\n#cd build\n#cmake .\/root_v6.16.00\n#cmake --build .\n#sudo cmake -DCMAKE_INSTALL_PREFIX=\/opt\/root -P cmake_install.cmake\n#cd &amp;&amp;  rm -rf root root_v6.16.00\n#install data\nmkdir $DIR\/data &amp;&amp; cd $_\nwget http:\/\/belle2.ijs.si\/data\/Belle-1.root\nwget http:\/\/belle2.ijs.si\/data\/Belle-2.root\n#install masterclass sources\nmkdir ..\/masterclass &amp;&amp; cd $_\ncurl -L http:\/\/belle2.ijs.si\/masterclass_latest.tgz | tar xzv\n \n#change the ownership of the directory\ncd $DIR &amp;&amp; chown -R www-data.www-data data masterclass\n#restart apache\nservice apache2 restart\n#access your server with the web browser (Mozilla\/Chrome) pointing to http:\/\/localhost\/masterclass\n#\n# get a belle2 logo and set it as a wallpaper\nwget http:\/\/belle2.kek.jp\/images\/belle2-logo.png\n#Go to Preferences, then Desktop Preferences , set belle2-logo.png as a Walpaper\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Belle2Lab installation Web version:&nbsp;http:\/\/belle2.ijs.si\/masterclass\/ If used for more than 5 students use Virtual appliance VirtualBox VM: Ubuntu username: belle2, password: belle2 download virtual appliance: 2020 64-bit version: http:\/\/belle2.ijs.si\/download\/Belle2Lab-ubuntu-1804-20.ova 4.8GB&nbsp; or 32-bit version:&nbsp;http:\/\/belle2.ijs.si\/download\/Belle2Lab-ubuntu-1804-32bit-20.ova 5.1GB&nbsp; &nbsp;and run with&nbsp;https:\/\/www.virtualbox.org\/ Installation in the Apache2 web server:&nbsp; Sources&nbsp;http:\/\/belle2.ijs.si\/masterclass_latest.tgz data:&nbsp;http:\/\/belle2.ijs.si\/data\/hadron-1.root&nbsp;&nbsp;&nbsp;and&nbsp;http:\/\/belle2.ijs.si\/data\/hadron-2.root install.sh for Ubuntu18.04 hosts&nbsp;Collapse source #!\/bin\/bash #Installation script for the Belle [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-209","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/belle2.ijs.si\/public\/wp-json\/wp\/v2\/pages\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belle2.ijs.si\/public\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/belle2.ijs.si\/public\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/belle2.ijs.si\/public\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/belle2.ijs.si\/public\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":6,"href":"https:\/\/belle2.ijs.si\/public\/wp-json\/wp\/v2\/pages\/209\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/belle2.ijs.si\/public\/wp-json\/wp\/v2\/pages\/209\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/belle2.ijs.si\/public\/wp-json\/wp\/v2\/media?parent=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}