-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu-bootstrap.sh
17 lines (16 loc) · 1.03 KB
/
ubuntu-bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
echo "192.168.88.2 vm.ubuntu.lab" >> /etc/hosts
echo "192.168.88.3 vm.centos.lab" >> /etc/hosts
echo "192.168.88.4 vm.sles.lab" >> /etc/hosts
echo "192.168.88.5 vm.oracle59.lab" >> /etc/hosts
echo "192.168.88.6 vm.trustyubuntu.lab" >> /etc/hosts
cat /vagrant/userpubkey.pub >> /home/vagrant/.ssh/authorized_keys
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse" > /vagrant/tmp/newapt
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse" >> /vagrant/tmp/newapt
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse" >> /vagrant/tmp/newapt
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse" >>/vagrant/tmp/newapt
cat /etc/apt/sources.list >> /vagrant/tmp/newapt
cp /vagrant/tmp/newapt /etc/apt/sources.list
#trying to install packages on a clean install doesn't work without running this first.
apt-get update
#apt-get -y dist-upgrade