Setting Up a New DaDesktop Server
Deploying a DD Node on GTHost / Hetzner Infrastructure
The following guidance supports the deployment of a DaDesktop Node (Server) on GTHost, Hetzner, or equivalent bare-metal Linux environments. Please note that these procedures may evolve as installation and deployment scripts are updated.
This process assumes the server has been procured and prepared for Ubuntu Jammy 22.04. If utilizing two or more disks with sufficient capacity, implementing RAID0 (Striping) can enhance disk I/O performance. For Hetzner, this configuration should be defined during 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. Execute 'apt update' and 'apt upgrade' to ensure all system packages are current, followed by 'apt autoremove' to eliminate obsolete packages prior to any further upgrades.
- When using Hetzner, the system will initially boot into rescue mode. Before rebooting and upgrading, you must define distro requirements and software RAID settings, including mdm, xfs, and ipv4. It is recommended to accept default configurations for small /boot and /boot/esp partitions using ext4 rather than xfs, and to omit a swap partition as it is not required. The root / partition should utilize xfs and occupy the remaining disk space.
- For LeaseWeb or other providers, the primary / filesystem must be converted from ext4 or btrfs to xfs. While the subsequent notes serve as a guide, configuring the root / partition to use xfs is more complex than simply defining a /bigdisk partition for xfs, as modifying the mounted root filesystem type generally requires operations outside the standard OS environment to ensure safety.
- To create the xfs filesystem, utilize the supplier's tools if available, as they are typically more straightforward. Alternatively, from the rescue system, use a command such as
mkfs.xfs -f /dev/mdx (this formats the device with xfs; the -f flag forces an overwrite).
Note: A separate /bigdisk partition is no longer defined; this is now implemented as a directory under /. - Mount the xfs device at / outside of the operating system or via the system portal.
- If a /bigdisk partition is used (though this is no longer standard practice), configure /etc/fstab with 'defaults,nofail 0 0' to ensure the system boots successfully even if the separate partition fails to mount.
- Execute 'systemctl daemon-reload' to enable systemd to re-read the updated /etc/fstab.
- Run 'mount -a' to verify that partitions are created as intended, and validate the setup using 'df -T'.
-
Reboot the system.
Executing the DaDesktop Installation Script
- Connect to the server via SSH, e.g., svr@xxxxxxxxx.
- Proceed with the installation using the DaDesktop script:
- Run: curl http://npg.io/d > d
- At this stage, the underlying OS should be upgraded from 22.04 to the latest Ubuntu release, currently Ubuntu 23.10 Mantic, with Ubuntu 24.04 Noble expected to follow.
- This upgrade is best handled using the 'update-os' script located in /apps/dadesktop_npnode_deploy/modules/00-upgrade-os. This approach simplifies the process compared to manual distro upgrades, automatically switching apt sources from jammy to mantic (nautic) to perform the upgrade in a single, cohesive procedure. Note: While upgrading through two versions simultaneously is generally discouraged, it is considered safe here due to the minimal number of installed packages.
- Should DNS issues arise during the distro upgrade (as observed in one installation instance), resolve them by executing:
rm /etc/resolv.conf ; echo "nameserver 8.8.8.8" > /etc/resolv.conf - Optionally, assign a specific hostname, such as lo33uk.npg.io, if you intend to create a DD node with a predefined identity, perhaps reusing a previously established name. Reboot if necessary to apply the hostname.
- Next, initiate the main DD Node installation script. To prevent SSH connection interruptions during the upgrade, it is advisable to use tmux. Within the directory where the script was downloaded, execute 'bash d'.
- Monitor on-screen logs for errors. During execution, the server IP is automatically added to the NP access list. You may need to wait a few minutes for the whitelist cron job to update before proceeding.
- Continue reviewing script progress and address or report any emerging issues.
- Execute the cleanup script at /apps/dadesktop_npnode_deploy/modules/00-cleanup. This action removes unnecessary packages and downgrades others as needed.
- Run /apps/zabbix-agent/services/test-all.sh to identify any remaining issues.
- For any unmaintained packages, remove them using 'apt purge xxx, yyy'. Also, eliminate any broken symbolic links identified.
- Finally, reboot the system and verify its operation.
Post-Installation Testing of the DD Node
- Verify the new dd server entry and test functionality, such as TPAPI, within the DaDesktop GUI.
- Configure start and expiry dates for the server in DaDesktop, and add it to the datacenter if required.
- Monitor the new server's status in Zabbix and resolve any identified issues.
- Test functionality by adding a Standalone instance to the server and running it.
- Add the server to the Datacenter if required.
- Optionally, configure 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 ensure its use.
Enjoy!