2020-06-08 02:44:19 +08:00
|
|
|
---
|
|
|
|
title: "Debian"
|
|
|
|
date: 2020-05-26T20:57:19+03:00
|
|
|
|
draft: false
|
|
|
|
pre: '<i class="fab fa-linux"></i> '
|
|
|
|
weight: 1
|
|
|
|
disableToc: false
|
2020-07-14 15:42:35 +08:00
|
|
|
tags: ["setup", "debian", "linux"]
|
2020-06-08 02:44:19 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
|
2021-03-29 23:22:32 +08:00
|
|
|
## Supported Distros
|
2020-06-08 02:44:19 +08:00
|
|
|
|
2021-03-29 23:22:32 +08:00
|
|
|
This Debian package has been tested on Ubuntu Bionic 18.04 LTS and Ubuntu Focal 20.04 LTS.
|
2020-06-08 02:44:19 +08:00
|
|
|
|
2021-03-29 23:22:32 +08:00
|
|
|
## Deployment
|
2020-06-08 02:44:19 +08:00
|
|
|
|
2021-03-29 23:22:32 +08:00
|
|
|
1. Update your package list by running:
|
|
|
|
```sh
|
|
|
|
sudo apt update
|
|
|
|
```
|
|
|
|
1. If you are using Ubuntu Focal 20.04, run the following commands to install
|
|
|
|
Python 3.7:
|
|
|
|
```sh
|
|
|
|
sudo apt install software-properties-common
|
|
|
|
sudo add-apt-repository ppa:deadsnakes/ppa
|
|
|
|
sudo apt install python3.7 python3.7-dev
|
|
|
|
```
|
|
|
|
1. Extract the tarball by running:
|
|
|
|
```sh
|
|
|
|
tar -xvzf monkey-island-debian.tgz
|
|
|
|
```
|
|
|
|
1. Install the Monkey Island Debian package:
|
|
|
|
```sh
|
2021-04-09 19:23:26 +08:00
|
|
|
sudo dpkg -i monkey_island_deb.deb # this might print errors
|
2021-03-29 23:22:32 +08:00
|
|
|
```
|
|
|
|
1. If, at this point, you receive dpkg errors that look like this:
|
2020-06-08 02:44:19 +08:00
|
|
|
|
2021-03-29 23:22:32 +08:00
|
|
|
```sh
|
|
|
|
dpkg: error processing package gc-monkey-island (--install):
|
|
|
|
dependency problems - leaving unconfigured
|
|
|
|
Errors were encountered while processing:
|
|
|
|
gc-monkey-island
|
|
|
|
```
|
2020-06-08 02:44:19 +08:00
|
|
|
|
2021-03-29 23:22:32 +08:00
|
|
|
It just means that not all dependencies were pre-installed on your system.
|
|
|
|
That's no problem! Just run the following command, which will install all
|
|
|
|
dependencies, and then install the Monkey Island:
|
2020-06-08 02:44:19 +08:00
|
|
|
|
2021-03-29 23:22:32 +08:00
|
|
|
```sh
|
|
|
|
sudo apt install -f
|
|
|
|
```
|
2020-06-08 02:44:19 +08:00
|
|
|
|
|
|
|
## Troubleshooting
|
|
|
|
|
|
|
|
### Trying to install on Ubuntu <16.04
|
|
|
|
|
2021-01-28 02:13:25 +08:00
|
|
|
If you're trying to install the Monkey Island on Ubuntu 16.04 or older, you
|
2021-01-28 01:58:22 +08:00
|
|
|
need to install the dependencies yourself, since Python 3.7 is only installable
|
|
|
|
from the `deadsnakes` PPA. To install the Monkey Island on Ubuntu 16.04, follow
|
|
|
|
these steps:
|
2020-06-08 02:44:19 +08:00
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo apt update
|
|
|
|
sudo apt-get install libcurl4-openssl-dev
|
|
|
|
sudo apt-get install software-properties-common
|
|
|
|
sudo add-apt-repository ppa:deadsnakes/ppa
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install python3.7-dev python3.7-venv python3-venv build-essential
|
|
|
|
sudo dpkg -i monkey_island.deb # this might print errors
|
|
|
|
sudo apt install -f
|
|
|
|
```
|
|
|
|
|
|
|
|
### The Monkey Island interface isn't accessible after installation
|
|
|
|
|
|
|
|
To check the status of the Monkey Island after the installation, run the following command: `sudo service monkey-island status`.
|
2020-06-14 20:44:07 +08:00
|
|
|
|
|
|
|
## Upgrading
|
|
|
|
|
2021-01-28 01:54:35 +08:00
|
|
|
Currently, there's no "upgrade-in-place" option when a new version is released.
|
|
|
|
To get the updated version, download the new `.deb` file and install it. You
|
|
|
|
should see a message like `Unpacking monkey-island (1.8.2) over (1.8.0)`. After
|
|
|
|
which, the installation should complete successfully.
|
2020-06-14 20:44:07 +08:00
|
|
|
|
2021-01-28 01:54:35 +08:00
|
|
|
If you'd like to keep your existing configuration, you can export it to a file
|
|
|
|
using the *Export config* button and then import it to the new Monkey Island.
|
2020-06-14 20:44:07 +08:00
|
|
|
|
|
|
|
![Export configuration](../../images/setup/export-configuration.png "Export configuration")
|