-
Notifications
You must be signed in to change notification settings - Fork 3
/
vm-setup
27 lines (17 loc) · 1.21 KB
/
vm-setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Ubuntu:
sshpass -e ssh $IP sudo apt-get update -y &&
sshpass -e ssh $IP sudo apt-get dist-upgrade -f -y &&
sshpass -e ssh $IP sudo apt-get install -y rpm ccache cmake make g++-multilib gdb pkg-config zlib1g-dev python3-pexpect git zlib1g-dev python-dev libacl1-dev tightvncserver xtightvncviewer firefox libreoffice ninja-build manpages-dev capnproto libcapnp-dev &&
sshpass -e ssh $IP rm -rf ~/rr &&
sshpass -e ssh $IP mkdir -p ~/rr &&
sshpass -e scp -r ~/rr/rr $IP:~/rr &&
sshpass -e scp -r ~/rr/rr-vm-testing $IP:~/rr &&
sshpass -e ssh $IP ~/rr/rr-vm-testing/build-and-test.sh >& ~/tmp/$IP.output
Fedora:
sshpass -e ssh $IP sudo dnf update -y &&
sshpass -e ssh $IP sudo dnf install -y ccache cmake make gcc gcc-c++ gdb glibc-devel glibc-devel.i686 libstdc++-devel libstdc++-devel.i686 zlib-devel python3-pexpect man-pages perf gnutls-devel libacl-devel openldap-devel tigervnc-server-minimal rpm-build ninja-build capnproto capnproto-libs capnproto-devel libstdc++-static libreoffice-core &&
sshpass -e ssh $IP rm -rf ~/rr &&
sshpass -e ssh $IP mkdir -p ~/rr &&
sshpass -e scp -r ~/rr/rr $IP:~/rr &&
sshpass -e scp -r ~/rr/rr-vm-testing $IP:~/rr &&
sshpass -e ssh $IP ~/rr/rr-vm-testing/build-and-test.sh >& ~/tmp/$IP.output