# Setup and Install

md5 checksums
20a16397a51410b0e4bafd494e826619  tcpborphserver3
c54b30b0cbe82f8dbb95fa138ee62dfb  librfdc.so.8.1

0. Kill any running instances of TBS

  `ps aux | grep borph`

  note the PID of the running tcpborphserver

  `kill -9 <PID>`

1. Install librfdc.so.8.1

  In the CASPER Linux image, either replace `librfdc.so.1.1` at `/opt/local/lib`
  with this library, or copy `librfdc.so.8.1` to `/opt/local/lib` and update the
  `librfdc.so.1` symbolic link to point to this new library.

  `mv librfdc.so.8.1 /opt/local/lib/librfdc.so.1.1`

  or

  ```
  mv librfdc.so.8.1 /opt/local/lib/
  cd /opt/local/lib
  rm librfdc.so.1
  ln -s librfdc.so.8.1 librfdc.so.1
  ```

2. Install the new tcpborphserver, `tcpborphserver_v8.1`

  Replace the existing one at `/home/casper/bin/` renaming `tcpborphserver_v8.1`
  to `tcpborphserver`  e.g.,

  `mv tcpborphserver_v8.1 /home/casper/bin/tcpborphserver`

3. Ensure tcpborphserver is a as system service to startup on next boot

  `sudo systemctl enable tcpborphserver`

4. Reboot the board

  can optionally ssh back into the board and check that tcpborphserver is
  running as expected, with `ps aux | grep borph`, looking for an active
  running tcpborphserver process

5. Check connection with casperfpga

