forked from p4lang/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroot-release-bootstrap.sh
executable file
·45 lines (36 loc) · 1.23 KB
/
root-release-bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Print commands and exit on errors
set -xe
export DEBIAN_FRONTEND=noninteractive
# Atom install steps came from this page on 2020-May-11:
# https://flight-manual.atom.io/getting-started/sections/installing-atom/#platform-linux
echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" | sudo tee /etc/apt/sources.list.d/atom.list
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | apt-key add -
# Add repository with P4 packages
# https://build.opensuse.org/project/show/home:p4lang
echo "deb http://download.opensuse.org/repositories/home:/p4lang/xUbuntu_20.04/ /" | sudo tee /etc/apt/sources.list.d/home:p4lang.list
wget -qO - "http://download.opensuse.org/repositories/home:/p4lang/xUbuntu_20.04/Release.key" | apt-key add -
apt-get update -qq
apt-get -qq -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
apt-get install -qq -y --no-install-recommends --fix-missing\
atom \
ca-certificates \
curl \
emacs \
git \
iproute2 \
lubuntu-desktop \
net-tools \
python3 \
python3-pip \
tcpdump \
unzip \
valgrind \
vim \
wget \
xcscope-el \
xterm \
p4lang-p4c \
p4lang-bmv2 \
p4lang-pi
sudo pip3 install -U scapy ipaddr ptf psutil grpcio