# RustDesk - deployment

Environment
```
Operating System: Debian GNU/Linux 12 (bookworm)
```


Create DNS record
```
dig A desk.2dz.fi +short
35.228.9.88
```

Request LE certificate
```bash
cd /etc/nginx/sites-available/
cp default desk.2dz.fi.conf
ln -s /etc/nginx/sites-available/desk.2dz.fi.conf /etc/nginx/sites-enabled/
nginx -t
nginx -s reload
certbot --nginx -d desk.2dz.fi
```
[![](https://storage.googleapis.com/iau-data-dox/uploads/images/gallery/2026-03/scaled-1680-/hqnOjSLdX0behTWR-image-1772806529100.png)](https://storage.googleapis.com/iau-data-dox/uploads/images/gallery/2026-03/hqnOjSLdX0behTWR-image-1772806529100.png)


download RustDesk
```bash
export homedir="/home/anton/delme/rustdesk"
mkdir -p ${homedir}
cd ${homedir}
```

download and install
```bash
wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/install.sh
chmod +x install.sh
./install.sh \
    --resolvedns desk.2dz.fi
    --install-http
```
[![](https://storage.googleapis.com/iau-data-dox/uploads/images/gallery/2026-03/scaled-1680-/lWGxt7uajolbrB1I-image-1772806878662.png)](https://storage.googleapis.com/iau-data-dox/uploads/images/gallery/2026-03/lWGxt7uajolbrB1I-image-1772806878662.png)

Note down:
1) URL to admin page
2) public key
3) username and password


Verify webserver is running
```bash
systemctl status gohttpserver
```
[![](https://storage.googleapis.com/iau-data-dox/uploads/images/gallery/2026-03/scaled-1680-/GtFfB91CbWuQjfS3-image-1772807071672.png)](https://storage.googleapis.com/iau-data-dox/uploads/images/gallery/2026-03/GtFfB91CbWuQjfS3-image-1772807071672.png)

And processes listening
```bash
ss -ntap | grep http
```






Harden:
```bash
TODO: enable TLS/SSL with LE generated cert

TODO: disable google analytics from webserver

```