Skip to content

Commit 65c880c

Browse files
authored
add example Linux script
1 parent cf82468 commit 65c880c

File tree

1 file changed

+20
-3
lines changed
  • src/content/docs/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/partners

1 file changed

+20
-3
lines changed

src/content/docs/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/partners/fleet.mdx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,24 @@ To uninstall the Fleet-deployed WARP client:
119119
120120
## Linux
121121
122-
Fleet allows you to [execute custom scripts](https://fleetdm.com/guides/scripts) on Linux hosts. Your script should:
122+
Fleet allows you to [execute custom scripts](https://fleetdm.com/guides/scripts) on Linux hosts. The following example script creates an [MDM file](/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/#linux) and installs WARP on an Ubuntu 22.04 host:
123123
124-
1. Place an [`mdm.xml` file](/cloudflare-one/connections/connect-devices/warp/deployment/mdm-deployment/#linux) in `/var/lib/cloudflare-warp/`.
125-
2. Run the [WARP installation commands](https://pkg.cloudflareclient.com/) for your specific Linux platform.
124+
```sh
125+
#!/bin/sh
126+
127+
# Write the mdm.xml file
128+
touch /var/lib/cloudflare-warp/mdm.xml
129+
echo -e "<dict>\n <key>organization</key>\n <string>your-team-name</string>\n</dict>
130+
" > /var/lib/cloudflare-warp/mdm.xml
131+
132+
# Add cloudflare gpg key
133+
curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
134+
135+
# Add this repo to your apt repositories
136+
echo "deb [signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
137+
138+
# Install
139+
sudo apt-get -y update && sudo apt-get -y install cloudflare-warp
140+
```
141+
142+
To install WARP on other Linux distributions, refer to the [package repository](https://pkg.cloudflareclient.com/).

0 commit comments

Comments
 (0)