# Full redeployment or first deployment

This requires a root password and _some_ Linux distribution running on it.

We assume that following variables are set.

```bash
HOST="<host-name>" # e.g., server1
SSH_URL="<ssh-url>" # e.g., root@server1.vhack.eu
```

## Generate a networking configuration

```bash
scp scripts/mk_network_config.sh "$SSH_URL:/root/"
ssh "$SSH_URL" /root/mk_networking_config.sh > "hosts/by-name/$HOST/networking.nix"
```

## Re-deploy

```bash
./scripts/deploy.sh "$SSH_URL" "$HOST"
```