Bug 44565 - Add UCR option to disable starting of xserver + firefox during boot
Add UCR option to disable starting of xserver + firefox during boot
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: System setup
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
https://git.knut.univention.de/univen...
:
: 44356 45810 (view as bug list)
Depends on:
Blocks: 53704
  Show dependency treegraph
 
Reported: 2017-05-10 09:29 CEST by Erik Damrose
Modified: 2023-12-12 11:45 CET (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2017-05-10 09:29:49 CEST
By default, if UCR system/setup/boot/start is true, an xserver + firefox is started to display system setup on a local display. We could add an UCR option to block starting these services in u-s-s-boot.init
Comment 1 Erik Damrose univentionstaff 2017-05-10 09:31:34 CEST
*** Bug 44356 has been marked as a duplicate of this bug. ***
Comment 2 Philipp Hahn univentionstaff 2017-05-11 09:13:00 CEST
+1 for removing X11+Firefox from EC2 (and other) cloud environments.

Please adjust test/ucs-ec2-tools/examples/jenkins/utils/utils.sh accordingly, as we wait there until Firefox is started. In the past the USS start script always removed the /var/cache/univention-system-setup/profile file provided by ucs-ec2-tools while starting, so we added the delay there to work-around that behavior.

Personally I would prefer to use cloud-init by default, but currently that seems to be blocked by Bug #36538 for UCS.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2019-11-05 13:35:21 CET
*** Bug 45810 has been marked as a duplicate of this bug. ***
Comment 4 Ingo Steuwer univentionstaff 2020-07-03 20:53:00 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 5 Philipp Hahn univentionstaff 2020-07-04 10:22:53 CEST
I again stumbled over this in my last 3 technical trainings:
TT 2020-05-20/21
TT 2020-06-25/26
TT 2020-07-01/02
as we used AWS-EC2 there and all unprovisioned systems are running X11 + Firefox needlessly. This is a wast of resources and also a minor security issue.

From my reading of base/univention-system-setup/debian/univention-system-setup-boot.init setting "system/setup/boot/start=false" should be enough already, but that might have unwanted consequences.

At least this should be disabled for our AWS images as the console cannot be used there anyway.

Again: make sure to fix `tests/utils/utils.sh:59 basic_setup()` before such a change as ucs-test waits until it finds a running "startwithfirefox".
Comment 6 Philipp Hahn univentionstaff 2023-12-12 11:45:08 CET
This does not solve the underlying issue but mitigates it for OpenStack:

[5.0-6] 9b10b3f8ff fix(test/utils): rename USS profile
 base/univention-system-setup/tests/30net_10interfaces                        | 16 +++++++++-------
 .../usr/lib/univention-system-setup/scripts/10_basis/18root_password         |  2 +-
 .../usr/lib/univention-system-setup/scripts/setup_utils.sh                   | 10 +++++-----
 3 files changed, 15 insertions(+), 13 deletions(-)

[5.0-6] efb5d7824f fix(USS): Stop renaming USS profile
 base/univention-system-setup/usr/share/univention-system-setup/startxwithfirefox | 6 ------
 1 file changed, 6 deletions(-)

Package: univention-system-setup
Version: 13.0.10-1
Branch: ucs_5.0-0
Scope: ucs5.0-6