Adding P4D2_2018_East Folder (#116)
* Copying P4D2 Fall 2017 into P4D2 2018 East. * Updated P4D2_2018_East VM. Added vagrant URL workaround, cdrom to VM. Updated to latest commits of BMV2, p4c, PI. Known issue with p4runtime exercise. * Applied patch from @antoninbas in and updated solution
This commit is contained in:
90
P4D2_2018_East/vm/root-bootstrap.sh
Executable file
90
P4D2_2018_East/vm/root-bootstrap.sh
Executable file
@@ -0,0 +1,90 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Print commands and exit on errors
|
||||
set -xe
|
||||
|
||||
sudo add-apt-repository ppa:webupd8team/sublime-text-3
|
||||
sudo add-apt-repository ppa:webupd8team/atom
|
||||
|
||||
apt-get update
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
|
||||
|
||||
apt-get install -y --no-install-recommends \
|
||||
atom \
|
||||
autoconf \
|
||||
automake \
|
||||
bison \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
cmake \
|
||||
cpp \
|
||||
curl \
|
||||
emacs24 \
|
||||
flex \
|
||||
git \
|
||||
libboost-dev \
|
||||
libboost-filesystem-dev \
|
||||
libboost-iostreams1.58-dev \
|
||||
libboost-program-options-dev \
|
||||
libboost-system-dev \
|
||||
libboost-test-dev \
|
||||
libboost-thread-dev \
|
||||
libc6-dev \
|
||||
libevent-dev \
|
||||
libffi-dev \
|
||||
libfl-dev \
|
||||
libgc-dev \
|
||||
libgc1c2 \
|
||||
libgflags-dev \
|
||||
libgmp-dev \
|
||||
libgmp10 \
|
||||
libgmpxx4ldbl \
|
||||
libjudy-dev \
|
||||
libpcap-dev \
|
||||
libreadline6 \
|
||||
libreadline6-dev \
|
||||
libssl-dev \
|
||||
libtool \
|
||||
lubuntu-desktop \
|
||||
make \
|
||||
mktemp \
|
||||
pkg-config \
|
||||
python \
|
||||
python-dev \
|
||||
python-ipaddr \
|
||||
python-pip \
|
||||
python-scapy \
|
||||
python-setuptools \
|
||||
sublime-text-installer \
|
||||
tcpdump \
|
||||
unzip \
|
||||
vim \
|
||||
wget \
|
||||
xcscope-el \
|
||||
xterm
|
||||
|
||||
useradd -m -d /home/p4 -s /bin/bash p4
|
||||
echo "p4:p4" | chpasswd
|
||||
echo "p4 ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/99_p4
|
||||
chmod 440 /etc/sudoers.d/99_p4
|
||||
usermod -aG vboxsf p4
|
||||
|
||||
cd /usr/share/lubuntu/wallpapers/
|
||||
cp /home/vagrant/p4-logo.png .
|
||||
rm lubuntu-default-wallpaper.png
|
||||
ln -s p4-logo.png lubuntu-default-wallpaper.png
|
||||
rm /home/vagrant/p4-logo.png
|
||||
cd /home/vagrant
|
||||
sed -i s@#background=@background=/usr/share/lubuntu/wallpapers/1604-lubuntu-default-wallpaper.png@ /etc/lightdm/lightdm-gtk-greeter.conf
|
||||
|
||||
# Disable screensaver
|
||||
apt-get -y remove light-locker
|
||||
|
||||
# Automatically log into the P4 user
|
||||
cat << EOF | tee -a /etc/lightdm/lightdm.conf.d/10-lightdm.conf
|
||||
[SeatDefaults]
|
||||
autologin-user=p4
|
||||
autologin-user-timeout=0
|
||||
user-session=Lubuntu
|
||||
EOF
|
||||
Reference in New Issue
Block a user