-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·62 lines (49 loc) · 955 Bytes
/
install.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
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
#!/bin/bash -i
#
# Ultimate GNS3 server installer for Linux host machines
#
# Install script
#
# Author: Piotr J. Węgrzyn
# GitHub: https://github.com/piotrjwegrzyn/ug3si
set -e
# Environment params
gns3path=~/.gns3runtime/
gns3bridge=gns3bridge
echo "GNS3 server installer"
# check KVM support
kvm_support=$(grep -E "vmx|svm|0xc0f" /proc/cpuinfo | wc -l)
if [ $kvm_support -ne 0 ];
then
echo "KVM supported"
else
echo "KVM not supported, installation aborted"
exit 1
fi
# check internet connection
ping -q -c 1 1.1.1.1 > /dev/null
if [ $? -ne 0 ];
then
echo "Connection error"
exit 1
fi
# install tools and programs
./toolssetup.sh
if [ $? -ne 0 ];
then
exit 1
fi
# configure virtual network
./networksetup.sh $gns3bridge
if [ $? -ne 0 ];
then
exit 1
fi
# configure runtime location for GNS3 server
./filessetup.sh $gns3path $gns3bridge
if [ $? -ne 0 ];
then
exit 1
fi
echo "Installation completed"
echo "Please reboot your system"