Skip to content

Commit fb87875

Browse files
Update linux-install-manually.md
Add documentation regarding custom path installation
1 parent 1e72d4b commit fb87875

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

defender-endpoint/linux-install-manually.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ A successful deployment requires the completion of all of the following tasks:
4242
- [SLES and variants](#sles-and-variants-1)
4343
- [Ubuntu and Debian systems](#ubuntu-and-debian-systems)
4444
- [Mariner](#mariner)
45+
- [Pre Install Setup for Custom Path Installation](#pre-install-setup-for-custom-path-installation)
4546
- [Application installation](#application-installation)
4647
- [RHEL and variants (CentOS, Fedora, Oracle Linux, Amazon Linux 2, Rocky, and Alma)](#rhel-and-variants-centos-fedora-oracle-linux-amazon-linux-2-rocky-and-alma)
4748
- [SLES and variants](#sles-and-variants)
@@ -257,6 +258,50 @@ In order to preview new features and provide early feedback, it's recommended th
257258
sudo dnf config-manager --enable mariner-official-extras-preview
258259
```
259260

261+
## Pre Install Setup for Custom Path Installation
262+
263+
These steps are applicable only if Defender is to be installed in a custom location.
264+
265+
The custom installation path is denoted here as <custom_path>
266+
267+
> [!NOTE]
268+
> Only absolute custom installation path is supported
269+
270+
1. Create the required directories for setup
271+
```bash
272+
sudo mkdir -p <custom_path>
273+
sudo mkdir -p /etc/opt/microsoft/mdatp
274+
```
275+
276+
2. Create the config json file `/etc/opt/microsoft/mdatp/mde_path.json`, specifying the custom installation path, in the mde config directory
277+
278+
File Content:
279+
```
280+
{"path":"<custom_path>"}
281+
```
282+
283+
For example, if the custom installation path is to be set as `/custom/microsoft_mdatp`, `/etc/opt/microsoft/mdatp/mde_path.json` will be created with the following content:
284+
```
285+
{"path":"/custom/microsoft_mdatp"}
286+
```
287+
3. Set required permissions
288+
```
289+
chmod 755 <custom_path>
290+
chmod 644 /etc/opt/microsoft/mdatp
291+
```
292+
293+
4. Create a symlink to the installation location
294+
```
295+
mkdir -p /opt/microsoft
296+
mkdir -p <custom_path>/opt/microsoft/mdatp
297+
ln -sf <custom_path>/opt/microsoft/mdatp /opt/microsoft/mdatp
298+
```
299+
> [!NOTE]
300+
>
301+
> If you choose to skip creation of symlink, you can rely on the installer package to create the symlink for you, provided you have -
302+
> 1. 1GB space in /opt or
303+
> 2. You have managed the disk space check issue at your end
304+
260305
## Application installation
261306

262307
Use the commands in the following sections to install Defender for Endpoint on your Linux distribution.

0 commit comments

Comments
 (0)