#!/bin/bash

sudo apt install exiftool imagemagick 


# Setup the basic configurations
sudo cp -r sysconfig/config.txt /boot/
sudo cp -r sysconfig/cmdline.txt /boot/

sudo rm -rf /etc/alsa
sudo ln -s /home/pi/BallonSonde/sysconfig/alsa/ /etc/

sudo rm -rf /var/spool/cron/crontabs/pi
sudo cp -r /home/pi/BallonSonde/sysconfig/pi /var/spool/cron/crontabs/
sudo chown -R pi:crontab /var/spool/cron/crontabs/pi

sudo mkdir /ramfs
sudo chown -R pi: /ramfs


sudo echo "tmpfs    /ramfs    tmpfs    rw,nodev,nosuid,users,noauto,size=32M" >> /etc/fstab

mkdir ~/_Pictures/

sudo mount /ramfs
