Custom Operating System Template (Linux)

While DaDesktop supports a wide range of standard Linux distributions, there may be instances where you require a specific distribution not currently available in the library. We are pleased to accommodate requests for most major Linux distributions. Please provide us with the download link for the ISO file and specify the server where you wish to deploy this custom template.

Key Considerations Regarding Disk Partitioning

1. Custom templates must utilize either a single disk partition or a dual-partition setup: one dedicated to EFI/Boot and another for the system and data.
2. LVM (Logical Volume Manager) partitions are not supported; please avoid using LVM.
3. Incorrect partition schemes can result in failures for automatic disk resizing and other critical functions.

Linux Template Configuration

Once the ISO file has been downloaded to the server, it will appear under Admin Menu->OS IMAGES->ISO FILES in your account.

From there, you can prepare the template via Admin Menu->OS IMAGES->CUSTOM OS TEMPLATES

It is crucial to follow this guide meticulously and complete every step, as overlooking any part may prevent DaDesktop from functioning correctly.

  1. Install the operating system.
  2. Set the default username to "student" and the password to "student".
  3. Configure the "student" account for Auto Login.
  4. Apply the DaDesktop wallpaper or your own branded wallpaper
    DaDesktop or your own brand wallpaper
  5. Recent distributions often default to Wayland as the display server. Although DaDesktop is compatible with Wayland, we recommend reverting to X11 for optimal stability.

    To disable Wayland, edit the file /etc/gdm/custom.conf and ensure the following line is uncommented:

    # Uncomment the line below to force the login screen to use Xorg
            WaylandEnable=false
            

    Log out and log back in to apply the changes.

  6. Install spice-vdagent. Using your distribution’s package manager is generally the recommended method. Note that this package may already be present depending on your specific Linux distro.
    • Once installed correctly, restart the machine. You should observe two active processes: spice-vdagent and spice-vdagentd.
    • Install spice-vdagent, using your package manager  in linux
  7. Install qemu-guest-agent, ideally using your package manager.
  8. Install X11VNC. Note: For certain distributions, you may need to enable additional repositories, such as the 'epel' repo for Red Hat-based systems like Oracle Linux or Rocky Linux.
  9. Configure X11VNC:
    • Verify that X11VNC is installed.
    • Open a root shell by running the command sudo -i.
    • Execute the following command to enable X11VNC to start automatically upon reboot:

      cat > /etc/xdg/autostart/x11vnc.desktop <<EOF
                      [Desktop Entry]
                      Type=Application
                      Exec=/usr/bin/x11vnc -N -no6 -rfbportv6 -1 -allow 10.0.3.1 -nopw -shared -alwaysshared -forever -repeat -nowireframe -noscr -nocursorshape -skip_lockkeys -cursor_drag -grab_buster -deferupdate 10 -speeds 6000,5000,20 -afteraccept announce-vnc-users.sh -gone announce-vnc-users.sh
                      Hidden=false
                      X-MATE-Autostart-enabled=true
                      X-MATE-AutoRestart=true
                      Name[en_US]=X11VNC
                      Name=X11VNC
                      Comment[en_US]=Share desktop over VNC
                      Comment=Share desktop over VNC
                      EOF
                      
  10. Create a desktop notification script by executing the following commands:

    cat > /usr/local/bin/announce-vnc-users.sh <<EOF
            notify-send -a x11vnc "VNC users connected: $RFB_CLIENT_COUNT"
            EOF
            chmod +x /usr/local/bin/announce-vnc-users.sh
  11. Reboot the system.
  12. Review firewall settings to ensure TCP port 5900 is open. You can verify this using the command:

    ss -pntl

  13. Disable the sudo password (this is recommended for a smoother user experience).
  14. Verify the configuration.

    When you connect, if the URL updates to include a token query parameter, the setup is successful. This indicates that X11VNC is functioning properly. Additionally, the text box located at the bottom left of the screen, which facilitates copy/paste between your local desktop and the virtual environment, should now be operational.

Additional Notes

To incorporate optional features such as:

  • DDWebdav, which enables the synchronisation of Trainer content folders to each participant’s machine;
  • or DDUpload, which allows for easy file uploads within a DaDesktop environment;

please get in touch with DaDesktop Tech Support.