Installing new DaDesktop Server
Deploying a DaDesktop Node on GTHost / Hetzner Servers
The following documentation outlines the process for deploying a DaDesktop Node (Server) on GTHost, Hetzner, or comparable bare-metal Linux infrastructure. Please note that these instructions may evolve as deployment scripts and installation methodologies are updated.
We assume the server has already been procured and prepared with Ubuntu Jammy 22.04. For performance optimization, consider utilizing RAID0 (striping) if you have sufficient disk space across two or more drives; this can be configured via Hetzner’s '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 the upgrade process.
- If utilizing Hetzner, the system will initially boot into rescue mode. You must define distribution requirements, software RAID (mdm), XFS, and IPv4 settings before rebooting for upgrades. It is recommended to accept default configurations for small /boot and /boot/esp partitions using ext4, avoiding XFS and swap partitions where unnecessary. Allocate the root (/) partition to use XFS and consume the remaining disk space.
- For LeaseWeb or other providers, the primary / filesystem should be converted from ext4 or btrfs to XFS. While the following steps serve as a guide, modifying the / partition's filesystem is more complex than simply designating a /bigdisk partition for XFS, as filesystem changes to / must occur outside the mounted OS context to ensure safety and simplicity.
- To establish the XFS filesystem, prefer using the provider’s supplied tools if available, as they simplify the process. Alternatively, from the rescue system, execute:
mkfs.xfs -f /dev/mdx (this formats with XFS /, using -f to force overwrite).
Note: We no longer define /bigdisk as a separate partition; it is now merely a directory under /. - Execute mount -t xfs /dev/mdX / either outside the OS or via the system portal.
- If utilizing a /bigdisk partition (now rarely required), configure /etc/fstab with defaults,nofail 0 0 to ensure the system boots successfully even if the separate /bigdisk partition fails to mount.
- Run systemctl daemon-reload to prompt systemd to reload /etc/fstab configurations.
- Execute mount -a to verify partition creation, and validate the setup using df -T.
-
Reboot the system.
Executing the DaDesktop Installation Script
- Establish an SSH connection to the server, e.g., svr@xxxxxxxxx.
- Proceed with installation using the DaDesktop install script:
- 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 handled using the update-os script located in /apps/dadesktop_npnode_deploy/modules/00-upgrade-os. This approach simplifies manual distribution upgrades and replaces apt sources from Jammy to Mantic (or Noble), allowing the upgrade to complete in a single procedure. Note: While skipping versions is generally discouraged, it is considered safe here due to the minimal number of installed packages.
- In the event of DNS issues during the distribution upgrade (observed in one instance), resolve by executing:
rm /etc/resolv.conf ; echo "nameserver 8.8.8.8" > /etc/resolv.conf - Optionally, assign a specific hostname (e.g., lo33uk.npg.io) if you intend to use a previously configured DD node name. Reboot if necessary to apply the hostname change.
- Next, execute the main script to install the DD Node. For stability during the upgrade, consider using tmux to mitigate potential SSH disconnections. Then, in the current directory where the script was downloaded, run 'bash d'.
- Monitor on-screen logs for any errors. During the script execution, the server IP is automatically added to the NP access list. Allow a few minutes for the whitelist cron job to update before proceeding.
- Review script progress and address or report any arising issues.
- Execute the cleanup script at /apps/dadesktop_npnode_deploy/modules/00-cleanup. This script removes unused packages and downgrades others as required.
- 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, remove any broken links identified.
- Finally, reboot the system and verify operational status.
Testing the DD Node Post-Installation
- Verify the new dd server entry and perform tests such as TPAPI within the DaDesktop GUI.
- Input the start and expiry dates for the server in DaDesktop, and add it to the datacenter if applicable.
- Monitor the new server’s operation in Zabbix and resolve any issues if necessary.
- Conduct functional tests by adding a Standalone instance to the server and executing it.
- Add the server to the Datacenter if required.
- Optionally, configure Billing rules for the new server if needed.
- Transfer Operating System templates to the server if necessary.
- If this server is designated for a specific course, notify the Trainer/Coordinator to utilize this particular instance.
Enjoy !