-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.virtualbox
61 lines (44 loc) · 2.12 KB
/
README.virtualbox
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
# These are instructions to setup an Ubuntu virtual machine for the examples in
# this chapter. The first part of the instructions must be done manually. The
# last half can be done by executing this file as a script as instructed.
# Download VirtualBox and install
# Download Ubuntu desktop install and save on local disk [ubuntu-20.04-desktop-amd64.iso]
# Download VBoxGuestAdditions.iso
# On Mac already at /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
# Setup new machine
# See the README.autovirtualbox script for directions for setting up base virtual machine
# sign in
# click through whats new
# select dots at bottom left and start up a terminal
# Reboot to get cut and paste and screen size fixed
# Add user to sudo list if needed
# su
# visudo
# add %vboxsf ALL=(ALL) ALL
# exit
# sudo apt-get install -y git
# Need script on guest to execute
# git clone --recursive https://github.com/essentialsofparallelcomputing/Chapter8.git
# Run the script Chapter8/README.virtualbox
sudo apt-get -qq update && \
DEBIAN_FRONTEND=noninteractive \
sudo apt-get -qq install -y cmake git vim gcc g++ gfortran software-properties-common \
mpich libmpich-dev \
openmpi-bin openmpi-doc libopenmpi-dev
# Installing latest GCC compiler (version 10)
sudo apt-get -qq install -y gcc-10 g++-10 gfortran-10
sudo update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-9 80 \
--slave /usr/bin/g++ g++ /usr/bin/g++-9 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-9 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-9
sudo update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-10 90 \
--slave /usr/bin/g++ g++ /usr/bin/g++-10 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-10 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-10
sudo chmod u+s /usr/bin/update-alternatives
sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/*
# If Software updater prompts, install updated software --> wait ....
sudo usermod -a -G video chapter8
cd Chapter8; #make