This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mtca:mtca:centos7install [2020/10/13 08:46] – leac | mtca:mtca:centos7install [2022/05/19 14:42] (current) – lnoeht | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| mkdir ROOT | mkdir ROOT | ||
| cd ROOT | cd ROOT | ||
| - | git clone --branch v6-22-00-patches https:// | + | git clone --branch v6-24-00-patches https:// |
| mkdir build install | mkdir build install | ||
| cd build | cd build | ||
| Line 65: | Line 65: | ||
| Install cactus | Install cactus | ||
| - | sudo yum install cactusboards-amc13-tools-1.2.14-0.centos7 cactusboards-amc13- | + | sudo yum install cactusboards-amc13-tools-1.2.14-0.centos7 cactusboards-amc13-amc13-1.2.14-0.centos7 |
| sudo yum install cactuscore-uhal-grammars cactuscore-uhal-uhal cactuscore-uhal-tests | sudo yum install cactuscore-uhal-grammars cactuscore-uhal-uhal cactuscore-uhal-tests | ||
| Line 120: | Line 120: | ||
| ifconfig -a | ifconfig -a | ||
| - | gives ```enp4s5``` for this network card, yours could be different | + | gives **enp4s5** for this network card, yours could be different |
| + | |||
| + | create file | ||
| + | / | ||
| - | create file ```/ | ||
| with this content: | with this content: | ||
| - | ``` | + | |
| - | HWADDR=90: | + | HWADDR=90: |
| - | TYPE=Ethernet | + | TYPE=Ethernet |
| - | PROXY_METHOD=none | + | PROXY_METHOD=none |
| - | BROWSER_ONLY=no | + | BROWSER_ONLY=no |
| - | BOOTPROTO=none | + | BOOTPROTO=none |
| - | DEFROUTE=yes | + | DEFROUTE=no |
| - | IPV4_FAILURE_FATAL=no | + | IPV4_FAILURE_FATAL=no |
| - | IPV6INIT=yes | + | IPV6INIT=yes |
| - | IPV6_AUTOCONF=yes | + | IPV6_AUTOCONF=yes |
| - | IPV6_DEFROUTE=yes | + | IPV6_DEFROUTE=no |
| - | IPV6_FAILURE_FATAL=no | + | IPV6_FAILURE_FATAL=no |
| - | IPV6_ADDR_GEN_MODE=stable-privacy | + | IPV6_ADDR_GEN_MODE=stable-privacy |
| - | NAME=" | + | NAME=" |
| - | UUID=8c87de7c-ab31-3faa-8480-3c9571cad2af | + | UUID=8c87de7c-ab31-3faa-8480-3c9571cad2af |
| - | ONBOOT=yes | + | ONBOOT=yes |
| - | AUTOCONNECT_PRIORITY=-999 | + | AUTOCONNECT_PRIORITY=-999 |
| - | IPADDR=192.168.0.1 | + | IPADDR=192.168.0.1 |
| - | PREFIX=23 | + | PREFIX=23 |
| - | GATEWAY=192.168.0.1 | + | GATEWAY=192.168.0.1 |
| - | ``` | + | |
| (change the HWADDR, the NAME and the UUID to fit your network card) | (change the HWADDR, the NAME and the UUID to fit your network card) | ||
| restart the network service | restart the network service | ||
| - | ``` | + | |
| - | sudo systemctl restart network.service | + | sudo systemctl restart network.service |
| - | ``` | + | |
| check the ip address change | check the ip address change | ||
| - | ```bash | + | |
| - | ifconfig -a | + | ifconfig -a |
| - | ``` | + | |
| the network card should now have the ip address 192.168.0.1 with the netmask 255.255.254.0 | the network card should now have the ip address 192.168.0.1 with the netmask 255.255.254.0 | ||
| install the dhcp daemon and wireshark | install the dhcp daemon and wireshark | ||
| - | ``` | + | |
| - | sudo yum install dhcpd wireshark | + | sudo yum install dhcpd wireshark |
| - | ``` | + | |
| install the rarp daemon using the instructions from https:// | install the rarp daemon using the instructions from https:// | ||
| - | ```bash | + | |
| - | #!/bin/bash | + | #!/bin/bash |
| + | sudo wget http:// | ||
| + | sudo yum install rarpd-ss981107-42.el6.x86_64.rpm | ||
| + | cat <<EOF > / | ||
| + | [Unit] | ||
| + | Description=Reverse Address Resolution Protocol Requests Server | ||
| + | Documentation=man.rarpd(8) | ||
| + | Requires=network.target | ||
| + | After=network.target | ||
| + | [Service] | ||
| + | Type=forking | ||
| + | User=root | ||
| + | # | ||
| + | ExecStart=/ | ||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | EOF | ||
| + | sudo cp / | ||
| - | sudo wget http:// | + | restart daemons and rarpdaemon |
| - | sudo yum install rarpd-ss981107-42.el6.x86_64.rpm | + | |
| - | + | | |
| - | cat <<EOF > / | + | sudo systemctl restart rarpd |
| - | [Unit] | + | |
| - | Description=Reverse Address Resolution Protocol Requests Server | + | |
| - | Documentation=man.rarpd(8) | + | |
| - | Requires=network.target | + | |
| - | After=network.target | + | |
| - | + | ||
| - | [Service] | + | |
| - | Type=forking | + | |
| - | User=root | + | |
| - | # | + | |
| - | ExecStart=/ | + | |
| - | + | ||
| - | [Install] | + | |
| - | WantedBy=multi-user.target | + | |
| - | EOF | + | |
| - | + | ||
| - | sudo cp / | + | |
| - | + | ||
| - | # restart daemons and rarpdaemon | + | |
| - | sudo systemctl daemon-reload | + | |
| - | sudo systemctl restart rarpd | + | |
| - | ``` | + | |
| - | this script already is stored at ~/ | + | |
| + | this script already is stored at **~/ | ||
| - | copy the ```/ | ||
| - | ```/etc/hosts``` contains: | + | copy the **/ |
| - | ``` | + | |
| - | 127.0.0.1 | + | **/etc/hosts** contains: |
| - | ::1 | + | |
| - | 192.168.0.41 mch | + | 127.0.0.1 |
| - | 192.168.0.157 bpixamc13T1 | + | ::1 |
| - | 192.168.0.156 bpixamc13T2 | + | 192.168.0.41 mch |
| - | 192.168.0.31 bpixtkfec | + | 192.168.0.157 bpixamc13T1 |
| - | 192.168.0.32 bpixpxfec | + | 192.168.0.156 bpixamc13T2 |
| - | 192.168.0.34 bpixfed1 | + | 192.168.0.31 bpixtkfec |
| - | 192.168.0.35 bpixfed2 | + | 192.168.0.32 bpixpxfec |
| - | 192.168.0.36 bpixfed3 | + | 192.168.0.34 bpixfed1 |
| - | ``` | + | 192.168.0.35 bpixfed2 |
| - | only copy the lines starting with 192.168.0. | + | 192.168.0.36 bpixfed3 |
| + | |||
| + | only copy the lines starting with **192.168.0.** | ||
| + | |||
| + | **/ | ||
| + | |||
| + | # copied from old slc6 mtca PC | ||
| + | # see man ethers for syntax | ||
| + | # ETHERS for BPIX CRATE | ||
| + | # ##################### | ||
| + | 08: | ||
| + | 08: | ||
| + | 08: | ||
| + | 08: | ||
| + | 08: | ||
| + | 08: | ||
| + | 08: | ||
| - | ```/ | ||
| - | ``` | ||
| - | # copied from old slc6 mtca PC | ||
| - | |||
| - | # see man ethers for syntax | ||
| - | |||
| - | # ETHERS for BPIX CRATE | ||
| - | # ##################### | ||
| - | 08: | ||
| - | 08: | ||
| - | 08: | ||
| - | 08: | ||
| - | 08: | ||
| - | 08: | ||
| - | 08: | ||
| - | ``` | ||
| copy all lines | copy all lines | ||
| - | try to ping the devices in the ```/etc/hosts``` file | + | try to ping the devices in the **/etc/hosts** file |
| - | ``` | + | |
| - | ping mch | + | ping mch |
| - | ping bpixamc13T1 | + | ping bpixamc13T1 |
| - | ping bpixamc13T2 | + | ping bpixamc13T2 |
| - | ping bpixtkfec | + | ping bpixtkfec |
| - | ping bpixpxfec | + | ping bpixpxfec |
| - | ping bpixfed1 | + | ping bpixfed1 |
| - | ping bpixfed2 | + | ping bpixfed2 |
| - | ping bpixfed3 | + | ping bpixfed3 |
| - | ``` | + | |