# Linux, MacOS

When deploying using .NET Core on a Linux distribution, or on MacOS, you have to make sure that [libgdiplus ](https://www.mono-project.com/docs/gui/libgdiplus/)is installed.

There are several ways to install libgdiplus depending on the distribution. If using apt-get, this is the preferred installation script:

```bash
sudo apt-get update && apt-get install -y apt-utils
sudo apt-get install -y libfontconfig1
sudo apt-get install -y libgdiplus
```

We also recommend the installation of Microsoft's fonts:

```bash
sudo apt-get update; apt-get install -y ttf-mscorefonts-installer fontconfig
```

{% hint style="success" %}
Starting with Wisej.NET 4, the use of `libgdiplus` is no longer necessary. This change is due to the development of a new managed System.Drawing library, which has been created in conjunction with [ImageSharp](https://sixlabors.com/products/imagesharp/).
{% endhint %}

In case the scripts fail, please search online on how to install **libgdiplus** and **microsoft fonts** on Linux or MacOS, and contact our support if you have a different solution.

{% hint style="info" %}
You will need to manually add the Web.Config file to the publish directory. In Linux builds, the purpose of the Web.Config file is to provide the server key and the initial theme.
{% endhint %}

{% hint style="warning" %}
In recent version of RHEL based Linux distributions, (e.g. CentOS), the SHA1 encryption scheme was deprecated, and that could lead to issues with activating the server license.

To fix this issue, you'll need to run the following command **update-crypto-policies --set LEGACY**.
{% endhint %}

Note: The Linux distribution used in this tutorial video is Ubuntu 22.04.2 LTS. You can get information about which Linux distribution you are using by running the command `lsb_release -a`

{% embed url="<https://www.youtube.com/watch?v=8BNdUE67orU>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/deployment/targets/linux-macos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
