# Maax

## Alpine

> Small. Simple. Secure.Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox. [Homepage](https://alpinelinux.org)

## VirtualBox

> VirtualBox is a powerful x86 and AMD64/Intel64 [virtualization](https://www.virtualbox.org/wiki/Virtualization) product for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL) version 2. [Homepage](https://www.virtualbox.org/)

## Base Image

* Create a Virtual Machine
  * Operating System Linux 64 Bit
  * Base Memory 1024 MB
  * Hard Disk Type: VDI
  * Hard Disk Size:&#x20;
    * Ardupilot 4 GB
    * DroneKit 2 GB
  * ISO: Alpine Image

Attach Alpine image and start the Virtual Machine.

```
Welcome to Alpine Linux 3.7
Kernel 4.9.65-1-hardened on an x86_64 (/dev/tty1)

localhost login: root
Welcome to Alpine!
```

```
localhost:~# setup-alpine
Select keyboard layout [none]: us
Select variant []: us
Enter system hostname ... [localhost] dronekit
Available interfaces are: eth0
Which one do you want to initialize? ... [eth0] eth0
Ip address for eth0? ... [dhcp] dhcp
Do you want to do any manual network configuration? [no] no
Which timezone are you in? ... [UTC] US
Which sub-timezone are you in? ... [?] Central
HTTP/FTP proxy URL? ... [none] none
Available mirros
...
Enter mirror number (1-28) or URL to add ... [f] f
Which SSH server? ... [openssh] openssh
Which NTP client to run? ... [chrony] chrony
Available disks are:
sda ...
Which disk(s) would you like to use? ... [none] sda
How would you like to use it? [?] sys
WARNING! Erase the above disk(s) and continue? [y/N] y

```

Remove the Alpine image and start the Virtual Machine

## Ardupilot Image

```
ardupilot:~# apk update
ardupilot:~# apk add git
```

```
ardupilot:~# git clone https://github.com/TheIoTLearningInitiative/Bitol.git
ardupilot:~# cd dronekit
ardupilot:~# cd Bitol/VirtualDroneSolution/UseCases/Maax/
ardupilot:~/Bitol/VirtualDroneSolution/UseCases/Maax/# sh Ardupilot.sh
ardupilot:~/Bitol/VirtualDroneSolution/UseCases/Maax/# cd
ardupilot:~# 
```

```
ardupilot:~# adduser ardupilot
```

## Dronekit Image

```
dronekit:~# apk update
dronekit:~# apk add git
```

```
dronekit:~# git clone https://github.com/TheIoTLearningInitiative/Bitol.git
dronekit:~# cd dronekit
dronekit:~# cd Bitol/VirtualDroneSolution/UseCases/Maax/
dronekit:~/Bitol/VirtualDroneSolution/UseCases/Maax/# sh Dronekit.sh
dronekit:~/Bitol/VirtualDroneSolution/UseCases/Maax/# cd
dronekit:~# 
```

```
ardupilot:~# adduser dronekit
```
