build_base_machine: added sysstat
[vswitchperf.git] / systems / ubuntu / 14.04 / build_base_machine.sh
1 #!/bin/bash
2 #
3 # Build a base machine for Ubuntu 14.04
4 #
5 # Copyright 2015 OPNFV, Intel Corporation.
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19 # Contributors:
20 #   Aihua Li, Huawei Technologies.
21 #   Martin Klozik, Intel Corporation.
22 #   Abdul Halim, Intel Corporation.
23
24 apt-get update
25 apt-get -y install $(echo "
26 # Make and Compilers
27 make
28 automake
29 gcc
30 g++
31 libc6
32 libc6-dev
33 libxml2
34 fuse
35 libfuse2
36 libfuse-dev
37 libssl1.0.0
38 libssl-dev
39 libglib2.0-dev
40 zlib1g-dev
41
42 # Linux Kernel Source
43 linux-source
44 linux-headers-$(uname -r)
45 pkg-config
46
47 # tools
48 curl
49 libcurl4-openssl-dev
50 automake
51 autoconf
52 libtool
53 libpcap-dev
54 libnet1
55 libncurses5-dev
56 vim
57 wget
58 git
59 pciutils
60 cifs-utils
61 socat
62 libpixman-1-0
63 libpixman-1-dev
64 sysstat
65
66 # Java runtime environment: Required for Ixia TclClient
67 default-jre
68
69 # install python packages
70 python3
71 python-pip
72 python3-pip
73 python3-setuptools
74 python3-dbus
75 python3-dev
76 python3-tk
77 libpython3.4
78 python3-reportlab
79
80 # install git-review tool
81 git-review
82 " | grep -v ^#)
83
84 # fix: Ixia TclClient installation: cannot find 'libc.s0.6'
85 ln -sf $(locate libc.so.6) /lib/libc.so.6
86
87 # Install virtualenv
88 pip3 install virtualenv
89
90 # Create hugepage dirs
91 mkdir -p /dev/hugepages