Last active
March 29, 2023 01:52
-
-
Save khale/7d51ad84dd6ac3e087b27a1cc88ab479 to your computer and use it in GitHub Desktop.
3503-bootstrap.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
systemctl disable --now apt-daily{,-upgrade}.{timer,service} | |
setxkbmap us | |
apt-get update && \ | |
apt-get install -y \ | |
autoconf \ | |
binutils \ | |
bison \ | |
clang \ | |
cscope \ | |
ctags \ | |
curl \ | |
default-jdk \ | |
default-jre \ | |
emacs \ | |
flex \ | |
g++ \ | |
gcc \ | |
gdb \ | |
git \ | |
gtkwave \ | |
libreadline-dev \ | |
libncurses5-dev \ | |
locate \ | |
make \ | |
netcat \ | |
perl \ | |
python3 \ | |
python3-pip \ | |
software-properties-common \ | |
ssh \ | |
tig \ | |
tk \ | |
vim \ | |
tmux \ | |
wget \ | |
xxd | |
echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list && \ | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823 && \ | |
apt-get update && \ | |
apt-get install -y sbt | |
# Verilator | |
git clone http://git.veripool.org/git/verilator && \ | |
cd verilator && \ | |
git pull && \ | |
git checkout v4.016 && \ | |
autoconf && \ | |
./configure && \ | |
make && \ | |
make install | |
cd | |
# set up Mill | |
curl -L https://github.com/lihaoyi/mill/releases/download/0.9.5/0.9.5 > /usr/local/bin/mill | |
chmod +x /usr/local/bin/mill | |
# set up LC3 tools | |
wget http://highered.mheducation.com/sites/dl/free/0072467509/104652/lc3tools_v12.zip && \ | |
unzip lc3tools_v12.zip && \ | |
cd lc3tools && \ | |
./configure --installdir /usr/bin && \ | |
make && \ | |
make install && \ | |
cd && \ | |
rm -rf lc3tools_v12.zip lc3tools | |
# for handin tools | |
pip3 install bs4 requests |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment