Jump to content

LHC@Home Native Linux Guide

This is an updated guide sourced from https://lhcathome.cern.ch/lhcathome/forum_thread.php?id=4840. There's a few version number updates that need to be made since this guide was written and extra packages, I'm just going to post all the commands with no explanations to them so go to the original source if you want to know more.

 

Just to actually explain what Native is this is to setup up your Linux install to run the project tasks directly on the OS rather than in a VirtualBox VM. I have not verified which is actually faster but crude logic would make me think Native is but??? Maybe someone can test that out for me??

 

Ubuntu Server 18.04 is what I used.

 

sudo apt update

 

sudo apt install git build-essential pkg-config libsqlite3-dev libssl-dev libcurl4-openssl-dev m4 dh-autoreconf zlib1g-dev python-setuptools

 

sudo adduser boinc

No password, just mash enter.

 

sudo su boinc
cd
mkdir boinc_source
git clone https://github.com/BOINC/boinc.git boinc_source
cd boinc_source

 

git checkout tags/client_release/7.16/7.16.6

 

./_autosetup
./configure --disable-server --disable-manager --enable-optimize

 

make
exit
cd /home/boinc/boinc_source/
sudo make install

 

sudo /usr/local/etc/init.d/boinc-client start
sudo /usr/local/etc/init.d/boinc-client stop

 

sudo nano /home/boinc/gui_rpc_auth.cfg

This is password for BOINC manager, use anything you like

 

sudo nano /home/boinc/remote_hosts.cfg

Enter 127.0.0.1 and IP addresses of any computers you want to use BOINC manager to connect to this computer

 

sudo apt install cmake uuid-dev libfuse-dev python-dev libcap-dev attr autofs

 

cd
mkdir cvmfs_source
git clone https://github.com/cvmfs/cvmfs.git cvmfs_source
cd cvmfs_source
mkdir -p build
cd build

 

cmake ../
make
sudo make install

 

sudo mkdir -p /scratch/cvmfs

 

sudo nano /etc/cvmfs/default.local

Copy in to this file the following:

Quote

CVMFS_REPOSITORIES=atlas.cern.ch,atlas-condb.cern.ch,grid.cern.ch
CVMFS_CACHE_BASE=/scratch/cvmfs
CVMFS_QUOTA_LIMIT=4096
CVMFS_HTTP_PROXY=DIRECT

 

sudo cvmfs_config setup

 

cvmfs_config probe

 

sudo apt-get install build-essential libssl-dev uuid-dev libgpgme11-dev

 

cd
wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
sudo tar -C /usr/local go1.13.3.linux-amd64.tar.gz

 

echo 'export GOPATH=${HOME}/go' >> ~/.bashrc
echo 'export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin' >> ~/.bashrc
source ~/.bashrc

 

mkdir -p $GOPATH/src/github.com/sylabs
cd $GOPATH/src/github.com/sylabs
git clone https://github.com/sylabs/singularity.git
cd singularity

 

go get -u -v github.com/golang/dep/cmd/dep

 

cd $GOPATH/src/github.com/sylabs/singularity
./mconfig
cd ./builddir
make
sudo make install

 

singularity --version

All gone well this should all work and you'll see something like:

Quote

singularity version 3.5.2+469-g2f8a931c1-dirty

 

 

Now login to your LHC@Home account and edit your project preferences to enable native support

image.png.cc2ab9542fd813e5d4ebbb63521eb284.png

 

 

Choose which ever actual projects you like, if it can run native it'll run native.

 

Now run the BOINC client again, if you cannot remote managed it stop and start it again. I have a few issues with it pick up the changes in the remote hosts file.

sudo /usr/local/etc/init.d/boinc-client start

 

Now connect to the computer using BOINC manager and add the LHC@Home project.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×