Cool Solution - Configuration of display setups

From Univention Wiki

Jump to: navigation, search
Produktlogo UCS Version 4.1
Produktlogo UCC Version 3.0

Note: Cool Solutions are articles documenting additional functionality based on Univention products. Not all of the shown steps in the article are covered by Univention Support. For questions about your support coverage contact your contact person at Univention before you want to implement one of the shown steps.

Also regard the legal notes at Terms of Service.

This article describes briefly, how you can setup a custom display configuration for one monitor operation in UCC-environments. Please note that UCC-Clients use the best suited resolution by default.
These steps are only necessary if you need a custom resolution and only if you don't have two displays in operation. If you have two displays in operation, take a look in the [UCC manual]
Prerequisites:

  • UCS DC Master with installed module UCC

Setup script

As described in the [UCC manual] for all special cases the display configuration can be configured in a script. Following steps are necessary to setup the script:

  1. Download configuration script
  2. Rollout the script to the UCC clients

For the rollout of the clients, two solutions possible:

  1. Modify the UCC image
  2. Copy the script manually to all necessary clients

1. Solution: Modify the UCC image

  1. Copy the configuration script onto the server where the UCC images are available:
    scp 020_univention-ucc-setup-onemonitor.sh root@123.456.789.123:
  2. Connecting via ssh to the server
  3. As described in the [UCC manual], mount the image:
    mkdir /mnt/img
    mount -o loop /var/lib/univention-client-boot/ucc-name-of-the-image.img /mnt/img/
  4. Copy the configuration script into the image, set script executable and unmount the image:
    cp 020_univention-ucc-setup-onemonitor.sh /mnt/img/etc/lightdm/display-setup/
    chmod +x /mnt/img/etc/lightdm/display-setup/020_univention-ucc-setup-onemonitor.sh
    umount /mnt/img
    rmdir /mnt/img
  5. Recalculate the MD5 checksum of the UCC image:
    md5sum /var/lib/univention-client-boot/ucc-name-of-the-image.img > /var/lib/univention-client-boot/ucc-name-of-the-image.img.md5
  6. Open the Univention-Management-Console and switch to the "Computers"-Module
  7. Select all necessary UCC clients and choose "Edit"
  8. In the "Images"-TAB choose "Image boot with update check" or "Initial installation" as "Boot variant"
  9. "Save changes"

2. Solution: Copy scripts manually to clients

  1. If the UCC clients are thinclients, the following two steps are necessary before copying the script to the clients.
    1. Set the additional boot parameter "mount=rw" in the "Images"-TAB of the "Computers"-Module in the Univention-Management-Console
    2. Reboot the clients
  2. Make the script executable and copy the configuration script to every client:
    1. chmod +x 020_univention-ucc-setup-onemonitor.sh
    2. scp 020_univention-ucc-setup-onemonitor.sh root@Client-IP:/etc/lightdm/display-setup/
  3. If the UCC clients are thinclients, the following two steps are necessary after copying the script to the clients.
    1. Remove the additional boot parameter "mount=rw" in the "Images"-TAB of the "Computers"-Module in the Univention-Management-Console
    2. Reboot the clients

Setup Univention Configuration Registry policy

  1. Create a Univention Configuration Registry policy, as described in the [UCS manual]
  2. Set the Univention Configuration Registry Variable "ucc/displayscript" to "/etc/lightdm/display-setup/020_univention-ucc-setup-onemonitor.sh"
  3. Assign the policy to all necessary clients, as described in the [UCS manual]

Setup UCC hardware settings policy

  1. Create a UCC hardware settings policy, as described in the [UCC manual]
  2. Set the "Resolution of primary display"
  3. Set the "Name of primary display" (optional)
  4. All other options of the "Multi monitor configuration"-section can be ignored
  5. Assign the policy to all necessary clients, as described in the [UCS manual]

Additional sources

Personal tools