Custom Operating System Template (Linux)

While DaDesktop supports a wide range of popular Linux distributions, there may be times when a specific, unavailable distro is required. We are happy to assist with this for most mainstream Linux distributions. Please provide us with the ISO file download location and specify which server you would like to host the Custom OS template on. 

Critical Information Regarding Disk Partitioning

1. Custom templates must use either a single disk partition or two distinct partitions: one for EFI/Boot and another for system and data.
2. Logical Volume Manager (LVM) partitions are not supported; please avoid using LVM.
3. An incorrect partition scheme can lead to failures in automatic disk resizing and other key functions.

Linux Template

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

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

It is crucial to follow this guide meticulously and complete every step. Failure to do so may result in DaDesktop not functioning correctly.

  1. Install the operating system
  2. Set the default username to "student" and the password to "student"
  3. Enable Auto Login for the "student" account
  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, proceed as follows:

     Edit  /etc/gdm/custom.conf    as an 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, preferably using your system's package manager. Note that this component may already be present depending on the distribution.
    • After installation, 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, again preferably via the package manager
  8. Install X11VNC. Note: For certain 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 the command sudo -i to open a root shell
    • Run 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 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 the firewall configuration, ensuring TCP port 5900 is open, for example:

    ss -pntl

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

    Upon connection, if the URL changes to include a token query parameter, the setup is successful. This indicates that X11VNC is operational. Additionally, the text box in the bottom-left corner of the screen, used for copy/paste between your local desktop and the virtual environment, should now be functional.

     

Additional Notes

To enable optional features such as: 

  • DDWebdav, which allows trainer content folders to sync to each participant's machine,
  • or DDUpload, which facilitates easy file uploads within a DaDesktop machine;

Please get in touch with DaDesktop Tech Support.