Skip to content

Instantly share code, notes, and snippets.

@khale
Last active March 16, 2021 19:24
Show Gist options
  • Save khale/3471497bcaa21d6f8e6da599afe22f5b to your computer and use it in GitHub Desktop.
Save khale/3471497bcaa21d6f8e6da599afe22f5b to your computer and use it in GitHub Desktop.
cs350-chisel-state-lab-bootstrap
#!/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 \
locate \
make \
netcat \
perl \
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 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
# set up Rust
set -eux; \
url="https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init"; \
wget "$url"; \
chmod +x rustup-init; \
./rustup-init -y --no-modify-path --default-toolchain nightly; \
rm rustup-init; \
chmod -R a+w $RUSTUP_HOME $CARGO_HOME;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment