-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·63 lines (49 loc) · 1.46 KB
/
install.sh
File metadata and controls
executable file
·63 lines (49 loc) · 1.46 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
# Installs the necessary tools to run Xubuntu Core 18.04 on VMware Horizon
# Must be run on an Ubuntu Mini 18.04 x64 image
# Written by Solal Pirelli
### Check for prerequisites
### First the platform, then the stuff that can be changed
if [ ! -f '/etc/lsb-release' ]; then
echo 'Please run this script on Ubuntu' >&2
exit 1
fi
. /etc/lsb-release
if [ "$DISTRIB_ID" != 'Ubuntu' ]; then
echo 'Please run this script on Ubuntu' >&2
exit 1
fi
if [ "$DISTRIB_RELEASE" != '18.04' ]; then
echo 'Please run this script on Ubuntu 18.04' >&2
exit 1
fi
if [ "$(uname -i)" != 'x86_64' ]; then
echo 'Please run this script on an x64 OS' >&2
exit 1
fi
NetworkInterface="$(ls /sys/class/net | grep -v lo)"
if [ "$(echo $NetworkInterface | wc -l)" -ne '1' ]; then
echo 'Please run this script in a machine with only 1 interface (apart from loopback)' >&2
exit 1
fi
if [ $(id -u) -ne 0 ]; then
echo 'Please run this script as root' >&2
exit 1
fi
if [ ! -d 'install' ]; then
echo 'Please run this script from its containing folder.' >&2
exit 1
fi
if [ ! -f '/opt/horizon-client.tar.gz' ]; then
echo 'Please put the VMware Horizon Client in /opt/horizon-client.tar.gz' >&2
exit 1
fi
if [ $# -ne 4 ]; then
echo "Usage: $0 <AD user> <AD user password> <AD domain> <AD computer OU>" >&2
exit 1
fi
### Perform the installation, in modular steps
./install/xubuntu-minimal.sh
./install/ad-auth.sh "$1" "$2" "$3" "$4"
./install/horizon-client.sh
./install/fixes.sh