Difference between revisions of "Cool Solution - Configuration of display setups"

From Univention Wiki

Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Cool Solutions Disclaimer|Repository=no|UCS=4.1|UCC=3.0}}
+
{{Version|UCS=4.1}}
 
+
{{Version|UCC=3.0}}
 +
{{Cool Solutions Disclaimer|Repository=no}}
 +
{{#seo:
 +
|title={{#replace:{{#replace:{{#replace:{{#replace:{{FULLPAGENAME}}|'|'}}|&|&}}|"|"}}|Cool Solution - |}} - {{SITENAME}}
 +
<!--|description=-->
 +
}}
  
 
This article describes briefly, how you can setup a custom display configuration for one monitor operation in UCC-environments.
 
This article describes briefly, how you can setup a custom display configuration for one monitor operation in UCC-environments.
Line 10: Line 15:
 
{{TOC}}
 
{{TOC}}
  
=Setup script=
+
== Setup script ==
 
As described in the [[http://docs.univention.de/ucc-manual-1.0.html#hardware:dualdisplay UCC manual]] for all special cases the display configuration can be configured in a script.  
 
As described in the [[http://docs.univention.de/ucc-manual-1.0.html#hardware:dualdisplay UCC manual]] for all special cases the display configuration can be configured in a script.  
 
Following steps are necessary to setup the script:
 
Following steps are necessary to setup the script:
Line 20: Line 25:
 
# Copy the script manually to all necessary clients  
 
# Copy the script manually to all necessary clients  
  
==1. Solution: Modify the UCC image==
+
=== 1. Solution: Modify the UCC image ===
 
# Copy the [[Media:020_univention-ucc-setup-onemonitor.sh| configuration script]] onto the server where the UCC images are available:
 
# Copy the [[Media:020_univention-ucc-setup-onemonitor.sh| configuration script]] onto the server where the UCC images are available:
 
#: scp 020_univention-ucc-setup-onemonitor.sh root@123.456.789.123:
 
#: scp 020_univention-ucc-setup-onemonitor.sh root@123.456.789.123:
Line 39: Line 44:
 
# "Save changes"
 
# "Save changes"
  
==2. Solution: Copy scripts manually to clients==
+
=== 2. Solution: Copy scripts manually to clients ===
 
# If the UCC clients are thinclients, the following two steps are necessary <u>before</u> copying the script to the clients.
 
# If the UCC clients are thinclients, the following two steps are necessary <u>before</u> copying the script to the clients.
 
## Set the additional boot parameter "mount=rw" in the "Images"-TAB of the "Computers"-Module in the Univention-Management-Console
 
## Set the additional boot parameter "mount=rw" in the "Images"-TAB of the "Computers"-Module in the Univention-Management-Console
Line 50: Line 55:
 
## Reboot the clients
 
## Reboot the clients
  
=Setup Univention Configuration Registry policy=
+
== Setup Univention Configuration Registry policy ==
 
# Create a ''Univention Configuration Registry policy'', as described in the [[http://docs.univention.de/manual-3.2.html#central-management-umc:Creating_a_policy UCS manual]]
 
# Create a ''Univention Configuration Registry policy'', as described in the [[http://docs.univention.de/manual-3.2.html#central-management-umc:Creating_a_policy UCS manual]]
 
# Set the Univention Configuration Registry Variable "ucc/displayscript" to "/etc/lightdm/display-setup/020_univention-ucc-setup-onemonitor.sh"
 
# Set the Univention Configuration Registry Variable "ucc/displayscript" to "/etc/lightdm/display-setup/020_univention-ucc-setup-onemonitor.sh"
 
# Assign the policy to all necessary clients, as described in the [[http://docs.univention.de/manual-3.2.html#central:policies:assign UCS manual]]
 
# Assign the policy to all necessary clients, as described in the [[http://docs.univention.de/manual-3.2.html#central:policies:assign UCS manual]]
  
= Setup UCC hardware settings policy =
+
== Setup UCC hardware settings policy ==
 
# Create a ''UCC hardware settings policy'', as described in the [[http://docs.univention.de/ucc-manual-1.0.html#hardware:dualdisplay UCC manual]]
 
# Create a ''UCC hardware settings policy'', as described in the [[http://docs.univention.de/ucc-manual-1.0.html#hardware:dualdisplay UCC manual]]
 
# Set the "Resolution of primary display"
 
# Set the "Resolution of primary display"
Line 62: Line 67:
 
# Assign the policy to all necessary clients, as described in the [[http://docs.univention.de/manual-3.2.html#central:policies:assign UCS manual]]
 
# Assign the policy to all necessary clients, as described in the [[http://docs.univention.de/manual-3.2.html#central:policies:assign UCS manual]]
  
==Additional sources==
+
=== Additional sources ===
 
* https://forge.univention.org/bugzilla/show_bug.cgi?id=31953
 
* https://forge.univention.org/bugzilla/show_bug.cgi?id=31953

Latest revision as of 13:55, 8 September 2017

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