This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
itk:installing_software_for_use_with_rce_and_hsio-2 [2016/06/01 21:36] mazhang |
itk:installing_software_for_use_with_rce_and_hsio-2 [2016/08/24 23:03] mazhang [Installing Python] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing Software for Use with RCE and HSIO-2 ====== | ====== Installing Software for Use with RCE and HSIO-2 ====== | ||
+ | ====== Installing Python ====== | ||
- | Follow the setup instructions [[https://twiki.cern.ch/twiki/bin/view/Atlas/ | + | Following |
- | Note the line "AYUM software installation location: /sw/atlas". The install | + | yum install -y centos-release-SCL |
+ | yum install -y python27 | ||
+ | which python | ||
+ | |||
+ | Following probably unimportant | ||
+ | |||
+ | yum groups mark convert | ||
+ | yum groups mark install | ||
+ | |||
+ | yum install zlib-devel | ||
+ | yum install bzip2-devel | ||
+ | yum install openssl-devel | ||
+ | yum install ncurses-devel | ||
+ | yum install sqlite-devel | ||
+ | |||
+ | cd /opt | ||
+ | wget --no-check-certificate https://www.python.org/ | ||
+ | tar xf Python-2.7.5.tar.xz | ||
+ | cd Python-2.7.5 | ||
+ | ./ | ||
+ | make && make altinstall | ||
+ | |||
+ | End unimportant | ||
+ | |||
+ | wget --no-check-certificate https:// | ||
+ | sudo / | ||
+ | sudo / | ||
+ | |||
+ | yum install | ||
+ | |||
+ | sudo / | ||
+ | sudo / | ||
+ | sudo / | ||
+ | |||
+ | |||
+ | ====== Server Setup ====== | ||
+ | |||
+ | We will be mostly following the steps on this page - https:// | ||
+ | |||
+ | Become root by using the ' | ||
+ | |||
+ | First, we configure a server on our local computer to communicate with RCE. This server will have NFS and DCHP. Get required packages. | ||
+ | |||
+ | yum install dhcp cmake pyparted lib | ||
+ | |||
+ | Disable firewall and SELinux (Linux security). | ||
+ | |||
+ | /sbin/chkconfig iptables off | ||
+ | /sbin/ | ||
+ | vim / | ||
+ | |||
+ | Set " | ||
+ | |||
+ | sudo mkdir / | ||
+ | cd / | ||
+ | wget -O - http:// | ||
+ | |||
+ | Add the following command to your bash_profile file so that it runs every time you open the terminal. | ||
+ | |||
+ | source / | ||
+ | |||
+ | Set up the DHCP server by editing / | ||
+ | |||
+ | default-lease-time 600; | ||
+ | max-lease-time 7200; | ||
+ | authoritative; | ||
+ | ddns-update-style none; | ||
+ | |||
+ | subnet 192.168.3.0 netmask 255.255.255.0 { | ||
+ | option subnet-mask 255.255.255.0; | ||
+ | option ntp-servers 192.168.3.1; | ||
+ | option routers 192.168.3.1; | ||
+ | option broadcast-address 192.168.3.255; | ||
+ | range 192.168.3.2 192.168.3.254; | ||
+ | } | ||
+ | |||
+ | host hsio2 { | ||
+ | option host-name " | ||
+ | hardware ethernet 08: | ||
+ | } | ||
+ | |||
+ | Start the DHCP server. | ||
+ | |||
+ | / | ||
+ | / | ||
+ | |||
+ | # | ||
+ | |||
+ | ====== Setting Up RCE Pixel Application ====== | ||
+ | |||
+ | BUILD LOCAL AND REMOTE SERVERS | ||
+ | Follow the setup instructions [[https:// | ||
The TDAQ framework does not need to be installed if you're installing RCF. The install command | The TDAQ framework does not need to be installed if you're installing RCF. The install command | ||
Line 12: | Line 104: | ||
< | < | ||
cd ~/ | cd ~/ | ||
- | sometimes spit out errors such as "internal compiler error: Killed (program cc1plus)" | + | sometimes spit out errors such as |
+ | < | ||
+ | This is because our lab computer is horrible and barely has any RAM. Just run the command again after it finishes and it'll go back to work on the parts that failed. | ||
+ | |||
+ | You don't need to edit /etc/hosts if your / | ||
+ | < | ||
+ | If you get an error "No route to host", this means you're using the wrong IP address. | ||
+ | |||
+ | yum install cmake libXpm libX11 libXext libSM libICE python-devel rpm-devel | ||
+ | mkdir -p /sw/atlas | ||
+ | chmod a+w /sw/atlas | ||
+ | cd /sw/atlas | ||
+ | git clone https://: | ||
+ | cd / | ||
+ | ./ | ||
+ | |||
+ | AYUM package location: / | ||
+ | AYUM software installation location: /sw/atlas | ||
+ | AYUM RPM database location: [/ | ||
+ | AYUM cache location: [/ | ||
+ | |||
+ | cd / | ||
+ | cd ~/ayum | ||
+ | ./ayum install | ||
+ | |||
+ | cd ~ | ||
+ | git clone https://: | ||
+ | ln -s ~/pixelrce ~/daq | ||
+ | cd ~/daq/rce | ||
+ | source ./ | ||
+ | git checkout -b V1.1.0 | ||
+ | cd ~/ | ||
+ | cd ~/ | ||
+ | |||
+ | INSTALLING AND RUNNING SERVERS | ||
+ | |||
+ | cd ~/ | ||
+ | rsync -e 'ssh -l root' -rlptDv / | ||
+ | rsync -rlptDv -e 'ssh -l root' build.arm-rcf/ | ||
+ | ssh [email protected] | ||
+ | export PATH=/ | ||
+ | calibserver | ||
+ | |||
+ | cd ~/daq/rce | ||
+ | source scripts/ | ||
+ | calibGui | ||
+ | |||
+ | Use Inlink X+1, Outlink X+1, where the module is plugged into port AX. Use Rce 0. |