Custom OS Template (Linux)

While DaDesktop maintains a selection of widely used Linux distributions, there may be instances where a specific distribution not currently available is required. We are pleased to support most mainline Linux distributions in these cases. Please provide us with the download location for the ISO file and specify which server you wish to publish the Custom OS template to.

Important Regarding Disk Partitioning

1. Customized templates require either a single disk partition or a two-partition layout: one for EFI/Boot and another for the system and data.
2. LVM partitions are not supported; therefore, please avoid using LVM.
3. An incorrect partition scheme will cause disk auto-resize and other functions to fail.

Linux Template

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

You can then prepare the template under Admin Menu->OS IMAGES->CUSTOM OS TEMPLATES

Please adhere strictly to this guide and complete all steps. Failure to do so may prevent full DaDesktop operation from working correctly.

  1. Install the OS
  2. Set the default username to "student" and the password to "student"
  3. Configure the "student" account for Auto Login
  4. Apply the DaDesktop or your own brand wallpaper
    DaDesktop or your own brand wallpaper
  5. Some distributions now default to using Wayland as their display driver. Although Wayland functions in DaDesktop, we currently recommend reverting to X11.

    To disable Wayland:

    Edit /etc/gdm/custom.conf as follows:

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

    Log out and log in again.

  6. Install spice-vdagent. Using your package manager is typically the best approach. Note: This may already be installed depending on your distribution.
    • After successful installation, restart the machine. You should observe two running processes: spice-vdagent and spice-vdagentd.
    • Install spice-vdagent, using your package manager  in linux
  7. Install qemu-guest-agent. Again, using your package manager is usually the most effective method.
  8. Install X11VNC. Note: For certain distributions, you may need to add extra repositories, such as the 'epel' repo for Redhat-based distributions like Oracle Linux or Rocky Linux.
  9. Configure X11VNC
    • Ensure X11VNC is installed.
    • Run the command sudo -i to open a root shell.
    • Execute 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 running the commands below:

    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 to ensure TCP port 5900 is open. For example, use:

    ss -pntl

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

    Upon connection, if the URL changes to a new URL containing a token query parameter, you are ready to proceed. This indicates that X11VNC is functioning correctly. Additionally, the text box at the bottom left of the screen, used for copy/paste between your local desktop and the virtual desktop, should now be operational.

     

Please Note

To add extra optional features, such as:

  • DDWebdav, allowing Trainer's content folders to be synchronized to each participant's machine,
  • or DDUpload, enabling easy file uploads within a DaDesktop machine;

Please contact DaDesktop Tech Support.