Installing the New DaDesktop Server
Deploying a DD Node on GTHost / Hetzner Servers
The guidelines below are designed to assist with deploying a DaDesktop Node (Server) on GTHost, Hetzner, or similar bare-metal Linux servers. Please note that these procedures are subject to change as the installation and deployment scripts evolve.
It is assumed that the server has already been procured and will be configured with Ubuntu Jammy 22.04. For enhanced disk access performance, consider utilizing RAID0 (striping) if you have sufficient space across two or more drives. On Hetzner, this configuration must be defined via 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 packages are current, followed by 'apt autoremove' to eliminate obsolete packages prior to the upgrade.
- If using Hetzner, the system will boot into rescue mode. Before rebooting and upgrading, define the necessary distribution requirements, software RAID components (mdm, xfs, IPv4, etc.). It is generally recommended to accept defaults for small /boot and /boot/esp partitions using ext4, avoid using xfs for these specific partitions, and omit a swap partition as it is not required. Configure the / partition to utilize xfs and consume the remaining disk space.
- When using LeaseWeb or other providers, you must convert the main / filesystem from ext4 or btrfs to xfs. While the following notes serve as a guide, changing the / filesystem to xfs is more complex than simply defining /bigdisk with xfs. Filesystem changes for / require external tools outside the OS, as modifying the / filesystem type is not safely executable while it is mounted.
- To create the xfs filesystem, utilize the supplier's tool if available, as it is typically simpler. Otherwise, execute the following from the rescue system:
mkfs.xfs -f /dev/mdx (this formats the / partition with xfs, where -f forces an overwrite).
Note: We no longer define /bigdisk as a separate partition; it now exists simply as a directory under /. - Mount the partition using: mount -t xfs /dev/mdX / outside of the OS, or perform this action via the system portal.
- If utilizing a /bigdisk partition (which is no longer common), add 'defaults,nofail 0 0' to /etc/fstab to ensure the system boots successfully even if the /bigdisk partition fails to mount.
- Execute systemctl daemon-reload to allow systemd to reload /etc/fstab.
- Run mount -a to verify that partitions are created as required, and validate with df -T.
-
Reboot the system.
Executing the DaDesktop Installation Script
- Establish an SSH connection to the server, e.g., svr@xxxxxxxxx.
- Proceed with the installation using the DaDesktop install script.
- Download the 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 upcoming.
- This upgrade is best performed using the update-os script located in /apps/dadesktop_npnode_deploy/modules/00-upgrade-os. This method is simpler than manual distro upgrades and updates apt sources from jammy to mantic (nautic), allowing the upgrade to occur in a single procedure. Note: Although upgrading through two versions at once is generally discouraged, it is considered safe here due to the minimal number of installed packages.
- If DNS issues arise during the distro upgrade (as observed in one instance), resolve them by executing:
rm /etc/resolv.conf ; echo "nameserver 8.8.8.8" > /etc/resolv.conf - Optionally, configure the hostname, e.g., lo33uk.npg.io, if you wish to assign a specific name to the DD node, perhaps one that was previously configured. Reboot if necessary to apply the hostname change.
- Next, execute the main script to install the DD Node. It is advisable to use tmux to prevent broken SSH connections during the upgrade. Within the current directory where the script was downloaded, run 'bash d'.
- Monitor the on-screen logs for any errors. During the script 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.
- Review the script's progress and address or report any issues that arise.
- Execute the cleanup script located at /apps/dadesktop_npnode_deploy/modules/00-cleanup. This script removes numerous unused packages and downgrades others where appropriate.
- Run /apps/zabbix-agent/services/test-all.sh to check for any further issues.
- For any unmaintained packages, remove them using 'apt purge xxx, yyy'. Also, remove any broken symbolic links that are identified.
- Finally, reboot the system and verify its operation.
Testing the DD Node Post-Installation
- Verify the new DD server entry and conduct tests using test TPAPI etc. via 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 issues if necessary.
- Validate functionality by adding a Standalone instance to the server and running it.
- Add the server to the Datacenter if applicable.
- If required, add Billing rules for the new server.
- Copy Operating System templates to the server if needed.
- If this server is designated for a specific course, notify the Trainer/Coordinator to utilize this particular server.
Enjoy!