How to configure a MacBook for ATLAS usage

Paola's short guide on how to configure your MacBook in order to have all tools for working in ATLAS.

Some setting up on the MacBook's system

  • install X11 (if you did not get it by default)
  • install openafs : http://www.openafs.org/pages/macos.html
  • cvs should be already there (just need to export the variables as on normal linux)
  • in order to avoid that all your directories in open afs are shown as black on yellow when doing ls change this in your .bashrc file:
      export CLICOLOR=1
      export LSCOLORS=ExGxBxDxCxegedabagacFx
      #export LSCOLORS=ExFxCxDxBxegedabagacad
      export TERM=xterm-color
      alias ls='ls -G'

Install Ubuntu on the MacBook (for running Athena)

If you want to run Athena on your laptop the easiest way is to use a virtual machine.

  • download and install VirtualBox: http://www.virtualbox.org/wiki/Downloads
  • download the image of Ubuntu (8.10 in my case) from: http://www.ubuntu.com/getubuntu/download
  • start the creation of your virtual machine with "new" from VirtualBox (I used 1 G of ram and 20 G of disc; see VirtualBox documentation)
  • then boot your virtual machine from the disk and choose install, this would work EXACTLY as if you were installing Ubuntu on any other machine (read the instruction of VirtualBox or ask Tobias if you need help on the configuration step!)
  • after the installation you need to install VBoxGuestAdditions.iso, to have good integration between the host and the virtual machine. The additions allow you to share folders between host and virtual, once you set a folder on your Mac, this will be seen as an external disk from Ubuntu. First you should change the right of this /mnt/directory (when it is NOT mounted) and then you can mount it automatically adding the following line to /etc/fstab (as root):
      Ubuntu /mnt/chic vboxsf rw 0 0
      Ubuntu == name of the shared folder on my macbook
      /mnt/chic == name of the shared folder from the virtual machine
  • then you have to install the following packages on Ubuntu:
    • cvs
    • open-afs && co
  • compile open afs using:
      aptitude install module-assistant
      aptitude install openafs-modules-source
      module-assistant prepare openafs-modules
      module-assistant auto-bild openafs-modules
  • note that on Ubuntu 8.10 the klog command is klog.afs
  • export the cvs variables to CERN

Prepare authentication

  • set-up a password free connection from your laptop to CERN-CVS repo:
      ssh-keygen -t dsa
      scp ~/.ssh/id_dsa.pub user@lxplus.cern.ch:~
  • log-in to cern and
      cat ~/id_dsa.pub >> ~/.ssh/authorized_keys
  • then log in to CERN always using
      ssh -X -o PubkeyAuthentication=no user@lxplus.cern.ch

Setting up Athena on your virtual Ubuntu machine

      set CMTSITE STANDALONE
      set SITEROOT /home/paola/atlas/software/dist/15.0.0/
      # Set the base location of all release for your site:
      macro ATLAS_DIST_AREA ${SITEROOT}
      apply_tag projectArea
      macro SITE_PROJECT_AREA ${SITEROOT}
      macro EXTERNAL_PROJECT_AREA ${SITEROOT}
      apply_tag opt
      apply_tag setup
      #apply_tag noTest
      macro ATLAS_TEST_AREA ${HOME}/athena
      use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)
      set CMTCONFIG i686-slc4-gcc34-opt
      set CVSROOT :ext:user@atlas-sw.cern.ch:/atlascvs
      set CVS_RSH ssh
      set TMPDIR /tmp
  • prepare cmt
      source /home/user/atlas/software/dist/15.0.0/CMT/v1r20p20081118/mgr/setup.sh
      cd ~/cmthome/15.0.0
      cmt config
  • ...and setup
      source ~/cmthome/15.0.0/setup.sh -tag=15.0.0

Additional TIPS FOR UBUNTU

In order to get your code to compile and execute, you need to

  • install procmail (to get lockfile package)
  • tweak libtiff:
      /usr/lib/libtiff.so.3
      -make symlink /usr/lib/libtiff.so.3 -> libtiff.so.4
      sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3
  • install libg2c package.

-- HansVonDerSchmitt - 22 Apr 2009

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2009-04-24 - HansVonDerSchmitt
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback