3 # Build a base machine for Ubuntu style distro
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
11 # http://www.apache.org/licenses/LICENSE-2.0
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.
20 # Aihua Li, Huawei Technologies.
22 # Synchronize package index files
26 apt-get -y install make
27 apt-get -y install automake
28 apt-get -y install gcc
29 apt-get -y install gcc++
30 apt-get -y install libssl1.0.0
31 apt-get -y install libxml2
32 apt-get -y install zlib1g-dev
33 apt-get -y install scapy
36 apt-get -y install linux-source
37 apt-get -y install pkg-config
39 # Install package dependecies
40 apt-get -y install libncurses5-dev
41 apt-get -y install curl
42 apt-get -y install libcurl4-openssl-dev
43 apt-get -y install autoconf libtool
44 apt-get -y install libpcap-dev
45 apt-get -y install libglib2.0
46 apt-get -y install libfuse-dev
47 apt-get -y install libnuma1
48 apt-get -y install libnuma-dev
50 # Some useful tools you may optionally install
51 #apt-get -y install ctags
52 #apt-get -y install wireshark
54 # packages related to VM
56 # a few manual fix up on a ubuntu
57 cd /lib/x86_64-linux-gnu
58 ln -sf libssl.so.1.0.0 libssl.so
59 ln -sf libcrypto.so.1.0.0 libcrypto.so
61 cd /usr/lib/x86_64-linux-gnu
62 ln -sf libxml2.so.2 libxml2.so