aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/setup.sh
blob: bd07b121e5ce802484792826440469aad9961247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

sudo yum -y update
sudo yum -y install git gcc gcc-c++ tcl-devel python3 \
     graphviz xdot gperf gmp-devel make bison flex autoconf \
     tmux

sudo mkdir -p /mnt/tools
sudo mount /dev/sdf1 /mnt/tools

sudo chown -R $USER:$USER /mnt/tools/home/ec2-user

curl -sSL https://get.haskellstack.org/ | sh

{ cat <<EOF
export PATH="\${PATH}:/mnt/tools/bin:/mnt/tools/opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/"
EOF
} >> $HOME/.bashrc

source $HOME/.bashrc