Custom OS Template (Linux)

While DaDesktop offers support for many popular Linux distributions, there may be scenarios where a specific version not currently available is necessary. We are pleased to accommodate this for most mainstream Linux distributions. Please provide us with the download link for the ISO file and specify which server the custom OS template should be published to.

Important: Disk Partitioning

1. Custom templates must use either a single disk partition or a dual-partition setup: one for EFI/Boot and another for system and data.
2. LVM partitions are not supported; please avoid using LVM.
3. An incorrect partition scheme may prevent automatic disk resizing and other features from functioning properly.

Linux Template

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

Next, proceed to configure the template via Admin Menu->OS IMAGES->CUSTOM OS TEMPLATES.

Please adhere strictly to this guide and ensure all steps are completed. Failure to do so may prevent DaDesktop from operating 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 background.
    DaDesktop or your own brand wallpaper
  5. Some distributions now default to Wayland as the display driver. Although Wayland is compatible with DaDesktop, we currently recommend reverting to X11.

    To disable Wayland:-

    Modify /etc/gdm/custom.conf, for example:

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

    Log out and log back in.

  6. Install spice-vdagent. Using your package manager is typically the most effective method. Note: This may already be installed on some distributions.
    • After successful installation, restart the machine. You should see 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 some distributions, you may need to add additional repositories, such as the 'epel' repo for Red Hat-based systems like Oracle Linux or Rocky Linux.
  9. Configure X11VNC.
    • Ensure X11VNC is installed.
    • Execute sudo -i to open a root shell.
    • Run the following command to enable X11VNC to auto-start 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. Verify firewall settings, ensuring TCP port 5900 is open. For example, use:

    ss -pntl

  13. Disable the sudo password (recommended).
  14. Verify success.

    Upon connection, if the URL updates to include a token query parameter, the setup is successful. This indicates that X11VNC is functioning correctly. Additionally, the text box located at the bottom left of the screen, used for copying and pasting between your local desktop and the virtual desktop, should now be operational.

     

Additional Notes

To enable optional features such as:

  • DDWebdav, which allows Trainer content folders to be synchronized to participant machines,
  • or DDUpload, for easily uploading files to a DaDesktop machine;

please reach out to DaDesktop Tech Support.