Setting Up a New DaDesktop Server
Deploying a DD Node on GTHost / Hetzner Infrastructure
The following guidelines assist in deploying a DaDesktop Node (Server) on bare metal Linux servers from providers such as GTHost or Hetzner. Please note that these instructions may evolve as deployment and installation scripts are updated.
These steps assume that a server has already been procured and prepared with Ubuntu Jammy 22.04. To optimize disk access speeds, utilizing RAID0 (striping) is recommended when multiple disks are available. This configuration should be defined in Hetzner using the 'installimage' process while in Rescue mode.
Preparation and OS Installation for GTHost / Hetzner Servers

- Begin by establishing an SSH connection using the provided root credentials. Ensure the system is fully patched by executing 'apt update', 'apt upgrade', and subsequently 'apt autoremove' to eliminate obsolete packages.
- When using Hetzner, the system will boot into rescue mode. You must define specific requirements, including software RAID (mdm), xfs, and ipv4, before rebooting and proceeding with upgrades. It is generally advisable to accept defaults for small /boot and /boot/esp partitions using ext4 (avoiding xfs here) and to omit a swap partition, as it is not necessary. Allocate the root / partition to use xfs and utilize the remaining disk space.
- If working with LeaseWeb or similar providers, the root / filesystem must be converted from ext4 or btrfs to xfs. While the following notes serve as a guide, configuring the root partition for xfs is more complex than simply assigning xfs to a /bigdisk partition. This is because modifying the / filesystem type cannot be safely performed while the root volume is mounted, requiring changes to be made outside the OS environment.
- To create the xfs filesystem, prefer using supplier-specific tools if available, as they are more user-friendly. Otherwise, from the rescue system, execute a command such as `mkfs.xfs -f /dev/mdx` (where -f forces the overwrite). Note that /bigdisk is no longer defined as a separate partition; it now functions as a directory under /.
- Mount the volume using `mount -t xfs /dev/mdX /` outside the OS environment or via the system portal.
- If a /bigdisk partition is still in use (though less common now), configure /etc/fstab with `defaults,nofail 0 0` to ensure the system boots successfully even if the partition fails to mount.
- Execute `systemctl daemon-reload` to prompt systemd to reload the /etc/fstab configuration.
- Run `mount -a` to verify that partitions are created as required, and validate the setup using `df -T`.
-
Reboot the system
Executing the DaDesktop Installation Script
- Establish an SSH connection to the server, for example: svr@xxxxxxxxx
- Proceed with the installation using the DaDesktop install script:
- Execute `curl http://npg.io/d > d`
- At this stage, the underlying OS should be upgraded from 22.04 to the latest Ubuntu version, currently Ubuntu 23.10 Mantic, with Ubuntu 24.04 Noble expected soon.
- This upgrade is best managed using the `update-os` script located in `/apps/dadesktop_npnode_deploy/modules/00-upgrade-os`. This approach is simpler than manual distribution upgrades and automatically replaces apt sources from Jammy to Mantic (Nautic), allowing the upgrade to occur in a single procedure. Note that while upgrading across two versions simultaneously is typically discouraged, it is safe in this context due to the limited number of installed packages.
- If DNS issues arise during the distribution upgrade (observed in one instance), resolve them by running: `rm /etc/resolv.conf; echo "nameserver 8.8.8.8" > /etc/resolv.conf`
- Optionally, set the hostname (e.g., lo33uk.npg.io) if you intend to name the DD node specifically or reuse a previously configured name. Reboot if necessary to apply the hostname change.
- Next, execute the main script to install the DD Node. To prevent SSH disconnections during the process, it is recommended to use tmux. Within the directory where the script was downloaded, run `bash d`.
- Monitor the on-screen log messages for errors. The server IP will be automatically added to the NP access list; however, you may need to wait a few minutes for the whitelist cron job to update before proceeding.
- Review the script's progress and address or report any emerging issues.
- Execute the cleanup script located at `/apps/dadesktop_npnode_deploy/modules/00-cleanup`. This script removes unused packages and downgrades others as appropriate.
- Run `/apps/zabbix-agent/services/test-all.sh` to check for any remaining issues.
- For any unmaintained packages, remove them using `apt purge xxx, yyy`. Also, remove any broken links identified.
- Finally, reboot the system and test its operation.
Testing the DD Node Post-Installation
- Verify the new dd server entry and test functionality using the test TPAPI within the DaDesktop GUI.
- Configure the start and expiry dates for the server in DaDesktop, and add it to the datacenter if required.
- Monitor the new server's operation in Zabbix and resolve any identified issues.
- Test the setup by adding a Standalone instance to the server and running it.
- Add the server to the Datacenter if not already done.
- Optionally, add Billing rules for the new server if necessary.
- Copy Operating System templates to the server if required.
- If this server is designated for a specific course, notify the Trainer/Coordinator to use this particular instance.
Enjoy your new setup!