You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.4 KiB
68 lines
1.4 KiB
5 years ago
|
# INSTALL
|
||
|
|
||
|
## Clone repo
|
||
|
|
||
|
See http://docs.vlabs.uniwa.gr/Howtos/git/use-git.adoc.html
|
||
|
|
||
|
|
||
|
|
||
|
## create a directory structure as shown below
|
||
|
|
||
|
```
|
||
|
/
|
||
|
├── etc
|
||
|
│ ├── bash_completion.d
|
||
|
│ │ └── swarmlab-mpi-autocompletion.sh
|
||
|
│ └── profile.d
|
||
|
│ └── swarmlab-mpi.sh
|
||
|
└── usr
|
||
|
└── share
|
||
|
└── swarmlab.io
|
||
|
└── mpi
|
||
|
├── commands
|
||
|
├── LICENSE
|
||
|
├── project
|
||
|
│ └── mpi_hello_world.c
|
||
|
├── ssh
|
||
|
│ ├── id_rsa
|
||
|
│ └── id_rsa.pub
|
||
|
└── swarmlab-mpi
|
||
|
```
|
||
|
|
||
|
chmod +x all files in /usr/share/swarmlab.io
|
||
|
|
||
|
|
||
|
|
||
|
## Add the following lines to the end of .bashrc file
|
||
|
|
||
|
```
|
||
|
if [ -d /etc/profile.d ]; then
|
||
|
for i in /etc/profile.d/*.sh; do
|
||
|
if [ -r $i ]; then
|
||
|
. $i
|
||
|
fi
|
||
|
done
|
||
|
unset i
|
||
|
fi
|
||
|
|
||
|
|
||
|
# enable programmable completion features (you don't need to enable
|
||
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||
|
# sources /etc/bash.bashrc).
|
||
|
if ! shopt -oq posix; then
|
||
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||
|
. /usr/share/bash-completion/bash_completion
|
||
|
elif [ -f /etc/bash_completion ]; then
|
||
|
. /etc/bash_completion
|
||
|
fi
|
||
|
fi
|
||
|
```
|
||
|
|
||
|
# Install Docker and Compose
|
||
|
|
||
|
See http://docs.vlabs.uniwa.gr/Howtos/docker/install.adoc.html
|
||
|
|
||
|
|
||
|
Ready :-)
|
||
|
|