Message boards :
Theory Application :
Simple Bash script which sets everything up automatically to run native apps
Message board moderation
Author | Message |
---|---|
Send message Joined: 9 Dec 14 Posts: 202 Credit: 2,533,875 RAC: 0 |
Hi guys, I am working on a simple bash script which automatically sets everything up on various distributions (only ubuntu is implemented at the moment) to run the native applications. The script can be found at https://github.com/g84ycm/LHCHome_Native/. It is basically a collection of some forum posts, scripts and info taken from documentation. You need to have root privileges on your system in order to successfully run the script. The goal of this script is to simplify the setup process for new users in order to run the native apps. To run the script, download it with wget https://raw.githubusercontent.com/g84ycm/LHCHome_Native/master/setup_native_LHC.shand make it executable with chmod +x setup_native_LHC.sh The syntax to use the script is: ./setup_native_LHC.sh [distribution] [install boinc yes|no]More parameters will be added in later versions. Type ./setup_native_LHC.sh helpto get more info. What the script does:
- installs CVMFS from cern repositories - sets up CVMFS to use a local cache and no local squid proxy - sets up CVMFS to use openhtc.io - checks if CVMFS is working correctly - sets up user namespaces (on ubuntu nothing needs to be changed) - checks if user namespaces are working - sets up cgroup stuff for suspend/resume to work (for native theory) - creates systemd script for suspend/resume to work
- add option to build everything from sources
|
Send message Joined: 15 Nov 14 Posts: 602 Credit: 24,371,321 RAC: 0 |
That is a lot of good work on your part. I already have CVMFS up and running on two machines, one for native Theory and the other for native ATLAS. But I would like to implement a "local cache" for CVMFS. Is there a way that I could add a local cache to an existing Ubuntu 18.04 installation? Thanks. |
Send message Joined: 15 Jun 08 Posts: 2386 Credit: 222,911,012 RAC: 138,148 |
CVMFS is a local cache. It serves all ATLAS native and Theory native instances running on the same computer. If you need a more general local cache, e.g. to serve a couple of CVMFS caches either native or inside VMs, a squid proxy is recommended. |
Send message Joined: 15 Nov 14 Posts: 602 Credit: 24,371,321 RAC: 0 |
CVMFS is a local cache. OK, thanks. I was not sure whether I had it already or not, since he lists it as a separate item. (I have had to wipe out my machines since last doing a squid proxy, and will need to give it a go again.) |
Send message Joined: 17 Feb 17 Posts: 42 Credit: 2,589,736 RAC: 0 |
I want to give you a great big hug right now. I am far from a Linux expert. I completely ( and I mean completely) borked up a machine running Linux (Ubuntu 1804) attempting to install this (apart from boinc) all on my own. At this point, I'm failing to remember the specifics, but I do remember quite clearly that I was having issues with CVMFS. I vaguely remember it attempting to replace various libraries having to do with boinc as well as a few other things. Thinking nothing of it, as the machine was running headless and Linux has never given me any issues before, I went ahead with it. I received several errors after this - again, I don't specifically remember the steps taken here - only that when attempting to reboot the system, it failed to come back up, and physically getting to it later found it to be in an infinit bootloop. I do remember that cvmfs_config probe was getting me nowhere at the time. Said machine is still sitting here, so I will throw Ubuntu 1804 on it again and start from scratch. Regardless, I look forward to giving this another shot. This is my excuse to delve into Linux and break things. I'm still confused as to what exactly this application does vs. virtualbox. Does this require an alternative version of Boinc to run alongside, or am I missing something completely and utterly obvious? Of course I am probably overcomplicating just about everything. Seems like this also uses a ton of internet traffic, which I have no issues with. Sorry for the very drawn out post and perhaps silly questions. thank you again for putting this together and if there is anything I can do to help let me know. |
©2024 CERN