Add a desktop installation script to install and configure a graphical environment. The current goal is to provide a simple option in bsdinstall to install the GPU driver, SDDM, and KDE Plasma. I have already received requests for additional functionality, such as allowing users to choose their display manager instead of SDDM, due to concerns about potential future issues. In particular, it is not yet clear whether the KDE project will continue developing its main display manager without systemd.
Additional options and desktop environments can obviously be added in the future as requested.
Adding a new desktop environment, such as XFCE, should be straightforward. It would be enough to add a new entry to the menu in files/bsdinstall-de in the x11/bsdinstall-de port, alongside KDE, and then add a bsdinstall-de-xfce flavor to configure XFCE through pkg-post-install.lua(5).
Currently, plasma6lts is installed by design instead of plasma6, which is Wayland-only. This allows KDE to work with VESA, SCFB, and VirtualBox graphics drivers as well. In the future, we could add an option to install plasma6, possibly checking whether a DRM driver is available before enabling it.
The previous version of this script, D56167, was a standalone script of approximately 400 lines. Following a request from the previous review, this new version moves the configuration logic into separate ports. For more details, see the Desktop bsdinstall status report.
The new ports are:
These ports provide the following packages and flavors:
text bsdinstall-desktop-0.0.1.pkg bsdinstall-desktop-audio-0.0.1.pkg bsdinstall-gpu-0.0.1.pkg bsdinstall-gpu-amd-0.0.1.pkg bsdinstall-gpu-drm-0.0.1.pkg bsdinstall-gpu-intel-0.0.1.pkg bsdinstall-gpu-nvidia-304-0.0.1.pkg bsdinstall-gpu-nvidia-340-0.0.1.pkg bsdinstall-gpu-nvidia-390-0.0.1.pkg bsdinstall-gpu-nvidia-470-0.0.1.pkg bsdinstall-gpu-nvidia-580-0.0.1.pkg bsdinstall-gpu-nvidia-595-0.0.1.pkg bsdinstall-gpu-nvidia-610-0.0.1.pkg bsdinstall-gpu-nvidia-addons-0.0.1.pkg bsdinstall-gpu-nvidia-optimus-0.0.1.pkg bsdinstall-gpu-radeon-0.0.1.pkg bsdinstall-gpu-scfb-0.0.1.pkg bsdinstall-gpu-virtualbox-0.0.1.pkg bsdinstall-gpu-vesa-0.0.1.pkg bsdinstall-gpu-vmware-0.0.1.pkg bsdinstall-de-0.0.1.pkg bsdinstall-de-kde-0.0.1.pkg bsdinstall-de-wireplumber-0.0.1.pkg bsdinstall-dm-0.0.1.pkg bsdinstall-dm-ly-0.0.1.pkg bsdinstall-dm-sddm-0.0.1.pkg
Building and testing all these packages through bsdinstall has been quite tedious. I doubt that splitting this functionality into separate ports will significantly improve its long-term maintainability.
However, since the post-installation configuration is written in Lua via pkg-post-install.lua(5), I can reuse the same chunks directly in the Lua installer by organizing the configuration into two chunks: gpu.lua and desktop.lua.
Sponsored by: The FreeBSD Foundation