Page MenuHomeFreeBSD

bsdinstall(8): add desktop script
Needs ReviewPublic

Authored by asiciliano on Mon, Mar 30, 5:22 PM.
Tags
None
Referenced Files
F153991176: D56167.diff
Sat, Apr 25, 7:23 AM
Unknown Object (File)
Sat, Apr 25, 1:30 AM
Unknown Object (File)
Sun, Apr 19, 11:09 AM
Unknown Object (File)
Sat, Apr 18, 3:45 AM
Unknown Object (File)
Fri, Apr 17, 2:31 PM
Unknown Object (File)
Tue, Apr 14, 5:55 AM
Unknown Object (File)
Sun, Apr 12, 2:21 AM
Unknown Object (File)
Sat, Apr 11, 8:05 PM
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Add a desktop script to install and set up a graphical environment. The current goal is to provide a simple option in bsdinstall to install the GPU driver, SDDM, and KDE. I have received some requests for additional functionality, such as allowing users to choose the display manager instead of SDDM due to potential future issues; it is not yet clear whether the KDE project will continue developing its main display manager without systemd.

Obviously, if there are requests, more options and graphical environments can be added in the future.

Sponsored by: The FreeBSD Foundation

Test Plan

The main testing challenge has been the large number of existing GPUs. I only have access to a recent laptop with an AMD GPU and an older 2011 laptop with NVIDIA Optimus (NVIDIA GPU + Intel GPU).

The call for testing has been very helpful, https://github.com/alfonsosiciliano/kde-installer-dialogs/blob/main/cft.md

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I can't help but feel a lot of this belongs in packages rather than being big splats of hard-coded config that bsdinstall writes out that risks getting stale when ports gets updated

usr.sbin/bsdinstall/scripts/desktop
21

I did $3 >= 1000 && $3 < 32000 in CheriBSD, since there is an upper limit too above which you're back to system users.

56

Don't we force this non-empty elsewhere?

91

Arm + BIOS?..

usr.sbin/bsdinstall/scripts/desktop
93

I don't think this is true? You can get drm-kmod for arm64? (And drm-subtree if you vendor it in your tree)

david_ixit.cz added inline comments.
usr.sbin/bsdinstall/scripts/desktop
91

What I recall I saw some aarch64 board with BIOS, it's not extra common, but also not rare.

arrowd added inline comments.
usr.sbin/bsdinstall/scripts/desktop
106

IIRC, Optimus is not a correct term anymore. The thing is called "NVIDIA PRIME" now.

307

That's a rather large config file. How much is it different from the .sample one provided by the package?

354

pkg should create config.ini out of config.ini.sample automatically. Does it not?

363

These two knobs are not needed anymore.

424

Pulseaudio has its own way of autostarting. Is this really required?

ziaee added inline comments.
usr.sbin/bsdinstall/scripts/desktop
2–5

The hyphen was for a long abandoned parser, and we removed it from our style guides. Currently, for spdx only licenses the style guides suggest putting the copyright line above the spdx tag.

taosecurity_gmail.com added inline comments.
usr.sbin/bsdinstall/scripts/desktop
106

This is not correct.

NVIDIA Optimus and NVIDIA PRIME are different.

Optimus remains the official hardware brand name for NVIDIA's laptop graphics-switching technology. Modern versions are often called Advanced Optimus. It enables switching without reboots by using a hardware MUX switch.

PRIME (and the related nvidia-prime tool) is the specific implementation and set of scripts used to make Optimus technology work on Linux systems.

I wanted to make sure the original code remained and was not erroneously changed. Thank you!