su - cmsbuild
   sudo su -
   scp -r techlab-arm64-moonshot-xgene-002.cern.ch:/etc/yum.repos.d /etc/
   yum -y install ntp
   scp -r techlab-arm64-moonshot-xgene-002.cern.ch:/etc/ntp.conf /etc/
   systemctl enable ntpd
   systemctl start ntpd
   scp -r cmsbuild@techlab-arm64-thunderx-02:/etc/pki/rpm-gpg/ /etc/pki/
   yum install glibc coreutils bash tcsh zsh perl tcl tk readline openssl ncurses e2fsprogs krb5-libs freetype fontconfig libstdc++ libidn libX11 libXmu libSM libICE libXcursor libXext libXrandr libXft mesa-libGLU mesa-libGL e2fsprogs-libs libXi libXinerama libXrender libXpm gcc-c++ libcom_err libXpm-devel libXft-devel libX11-devel libXext-devel mesa-libGLU mesa-libGLU-devel libGLEW glew perl-Digest-MD5 perl-ExtUtils-MakeMaker patch perl-libwww-perl krb5-libs krb5-devel perl-Data-Dumper perl-WWW-Curl texinfo hostname time perl-Carp perl-Text-ParseWords perl-PathTools perl-ExtUtils-MakeMaker perl-Exporter perl-File-Path perl-Getopt-Long perl-constant perl-File-Temp perl-Socket perl-Time-Local perl-Storable glibc-headers perl-threads perl-Thread-Queue perl-Module-ScanDeps perl-Test-Harness perl-Env perl-Switch perl-ExtUtils-Embed ncurses-libs perl-libs
   yum -y install git subversion bc finger ntp zip unzip voms-clients-cpp python-pip kstart
   yum install java-1.8.0-openjdk
   pip install --upgrade pip
   yum -y install python-devel   
   pip install PyGithub
   yum -y install lcg-CA
   yum -y install perl-LWP-Protocol-https
   yum -y install fetch-crl
   rpm -iUvh http://linuxsoft.cern.ch/cern/slc65/updates/i386/RPMS/CERN-CA-certs-20160421-2.slc6.noarch.rpm
   yum -y install fuse setroubleshoot-server autofs fuse-devel gdb attr cvmfs-config-default
   rpm -iUv http://cvmrepo.web.cern.ch/cvmrepo/yum/cvmfs/EL/7.3/aarch64/cvmfs-2.3.2-1.el7.centos.aarch64.rpm
   cat <<EOF > /etc/cvmfs/default.local 
   CVMFS_QUOTA_LIMIT='2000'
   CVMFS_HTTP_PROXY='DIRECT'
   CVMFS_CACHE_BASE='/var/lib/cvmfs'
   CVMFS_FORCE_SIGNING='yes'
   CVMFS_REPOSITORIES='cms-ib.cern.ch,cms.cern.ch,grid.cern.ch,projects.cern.ch'
   EOF
   cat <<EOF > /etc/cvmfs/config.d/cms.cern.ch.local 
   export CMS_LOCAL_SITE=T2_CH_CERN
   EOF
   systemctl start autofs
   cvmfs_config setup
   cvmfs_config chksetup
   cvmfs_config probe
   ln -s /cvmfs/grid.cern.ch/etc/grid-security/vomses /etc/vomses
   ln -s /cvmfs/grid.cern.ch/etc/grid-security /etc/grid-security
   chmod g+w /build
   USER=cmsbld
   useradd -U -m -s /bin/bash -d /home/$USER $USER
   mkdir /build/$USER
   chown -R $USER:$USER /build/$USER
   su - $USER
   cd ~
   rm -rf .ssh && mkdir .ssh
   echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzHKZxVdp5tF54BJsEOgkQ6rPbhz2w4RznhPlqIM/kmZCL+HN51ofvQPgRWya9coDuuCy2eH5+yJvAZiKRqUlm2QcdUOUmCFYqQKE8WFQVCTGMyMByOHtkf3b+2LtrktIiPp01ElyqQjvoIE++bAmnwKuf3aaK70nmWhrIAQ6BrNfC0vxnx6OOwQcNIyqNHMmi5i49oEUYnwijqm24kngy/reY+ktG3+8fvuISzDru0RKO9pyrtrNg0O772kHY3/MB7GdIgwnJ/bkAvBLa7LEQS9D0EO9TLeJWy6+0IyP5lO0D0Ovillk+0RsWuj4cS7xNnE+xhe+aohuvCP0cwhYwQ== cmsbuild@lxbuild167.cern.ch" > .ssh/authorized_keys

#for ubuntu machines the cvmfs packages
#http://davidlt.web.cern.ch/davidlt/vault/cvmfs_ubuntu1610_aarch64/