-
Notifications
You must be signed in to change notification settings - Fork 1
/
provision-for-base-gnome-box.sh
31 lines (24 loc) · 1.55 KB
/
provision-for-base-gnome-box.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
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
rm /etc/apt/sources.list
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt vivid main restricted universe multiverse" > "/etc/apt/sources.list"
echo "deb-src mirror://mirrors.ubuntu.com/mirrors.txt vivid main restricted universe multiverse" >> "/etc/apt/sources.list"
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt vivid-updates main restricted universe multiverse" >> "/etc/apt/sources.list"
echo "deb-src mirror://mirrors.ubuntu.com/mirrors.txt vivid-updates main restricted universe multiverse" >> "/etc/apt/sources.list"
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt vivid-security main restricted universe multiverse" >> "/etc/apt/sources.list"
echo "deb-src mirror://mirrors.ubuntu.com/mirrors.txt vivid-security main restricted universe multiverse" >> "/etc/apt/sources.list"
echo "deb mirror://mirrors.ubuntu.com/mirrors.txt vivid-backports main restricted universe multiverse" >> "/etc/apt/sources.list"
echo "deb-src mirror://mirrors.ubuntu.com/mirrors.txt vivid-backports main restricted universe multiverse" >> "/etc/apt/sources.list"
cat /etc/apt/sources.list
apt-get update
apt-get dist-upgrade --yes
apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 --yes
VBoxClient --clipboard
VBoxClient --draganddrop
VBoxClient --seamless
VBoxClient --display
VBoxClient --checkhostversion
apt-get install ubuntu-gnome-desktop --yes
apt-get install linux-headers-generic build-essential dkms --yes
sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config