# Raspberry PI - Uctronics panel setup

This is to setup the panel on the rack mount UCTRONICS raspberry pi holder with SSD drives

You will need to get the following from GitHub

```bash
git clone https://github.com/UCTRONICS/SKU_RM0004.git
```

Compile the download

```bash
cd SKU_RM0004
make clean && make 
```

Run this to auto configure

```bash
./deployment_service.sh   
```

Reboot your Pi

```bash
sudo reboot
```

Below Depricated

<s>You will have to modify the following file</s>

```bash
sudo nano /boot/config.txt
or
sudo nano /boot/firmware/config.txt
```

<s>At the end of the file add below the last \[ALL\] section</s>

```bash
dtparam=i2c_arm=on,i2c_arm_baudrate=400000
dtoverlay=gpio-shutdown,gpio_pin=4,active_low=1,gpio_pull=up
```

<s>You will need to get the following from GitHub</s>

```bash
git clone https://github.com/UCTRONICS/SKU_RM0004.git
```

<s>Run the following</s>

```bash
cd SKU_RM0004
make
```

<s>Edit the following file: </s>

```bash
sudo nano /etc/rc.local
```

<s>You will need to add the following after the fi and before the exit 0</s>

<table border="1" id="bkmrk-_ip%3D%24%28hostname--i%29-%7C" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 99.881%;"></col></colgroup><tbody><tr><td><s>\_IP=$(hostname -I) || true</s>  
<s>if \[ "$\_IP" \]; then</s>  
<s> printf "My IP address is %s\\n" "$\_IP"</s>  
<s>fi</s>

<s>&lt;&lt;&lt;HERE&gt;&gt;&gt;</s>

<s>exit 0</s>

</td></tr></tbody></table>

<s>Once modified should look like this</s>

<table border="1" id="bkmrk-%23%21%2Fbin%2Fsh--e%23%23-rc.lo" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 99.881%;"></col></colgroup><tbody><tr><td><s>\#!/bin/sh -e</s>  
<s>\#</s>  
<s>\# rc.local</s>  
<s>\#</s>  
<s>\# This script is executed at the end of each multiuser runlevel.</s>  
<s>\# Make sure that the script will "exit 0" on success or any other</s>  
<s>\# value on error.</s>  
<s>\#</s>  
<s>\# In order to enable or disable this script just change the execution</s>  
<s>\# bits.</s>  
<s>\#</s>  
<s>\# By default this script does nothing.</s>

<s>\# Print the IP address</s>  
<s>\_IP=$(hostname -I) || true</s>  
<s>if \[ "$\_IP" \]; then</s>  
<s> printf "My IP address is %s\\n" "$\_IP"</s>  
<s>fi</s>

<s><span data-darkreader-inline-color="" style="color: rgb(45, 194, 107);">**cd /home/pi/SKU\_RM0004**</span></s>  
<s><span data-darkreader-inline-color="" style="color: rgb(45, 194, 107);">**make clean** </span></s>  
<s><span data-darkreader-inline-color="" style="color: rgb(45, 194, 107);">**make** </span></s>  
<s><span data-darkreader-inline-color="" style="color: rgb(45, 194, 107);">**./display &amp;**</span></s>

<s>exit 0</s>

</td></tr></tbody></table>

<s>Run the following:</s>

```bash
cd /home/pi/SKU_RM0004
make clean 
make 
./display &
```