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

From Univention Wiki

Jump to: navigation, search
m (typo)
Line 1: Line 1:
{{Cool Solutions Disclaimer|Repository=no|UCS=3.2|UCC=1.0}}
+
{{Cool Solutions Disclaimer|Repository=no|UCS=4.1|UCC=3.0}}
 +
{{Review-Status}}
  
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.
Please note that UCC-Clients use per default the best suited resolution. This steps are only necessary if you need a custom resolution and only if you not have two displays in operation. If you have two displays in operation take a look in the [[http://docs.univention.de/ucc-manual-1.0.html#hardware:dualdisplay UCC manual]]<br>
+
Please note that UCC-Clients use the best suited resolution by default.<br>
 +
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 [[http://docs.univention.de/ucc-manual-1.0.html#hardware:dualdisplay UCC manual]]<br>
 
Prerequisites:
 
Prerequisites:
* UCS DC Master with installed modul UCC  
+
* UCS DC Master with installed module UCC
  
= Setup script =
+
{{TOC}}
 +
 
 +
=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 12: Line 16:
 
# Rollout the script to the UCC clients
 
# Rollout the script to the UCC clients
  
For the rollout of the clients are two solutions possible:
+
For the rollout of the clients, two solutions possible:
 
# Modify the UCC image
 
# Modify the UCC image
 
# 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]] on 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:
 
# Connecting via ssh to the server
 
# Connecting via ssh to the server
# As described in the [[http://docs.univention.de/ucc-manual-1.0.html#imagegen:modify UCC manual]] mount the image:
+
# As described in the [[http://docs.univention.de/ucc-manual-1.0.html#imagegen:modify UCC manual]], mount the image:
 
#: mkdir /mnt/img
 
#: mkdir /mnt/img
 
#: mount -o loop /var/lib/univention-client-boot/ucc-name-of-the-image.img /mnt/img/
 
#: mount -o loop /var/lib/univention-client-boot/ucc-name-of-the-image.img /mnt/img/
# Copy the configuration script in the image, set script executable and unmount the image:
+
# 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/
 
#: 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
 
#: chmod +x /mnt/img/etc/lightdm/display-setup/020_univention-ucc-setup-onemonitor.sh
Line 30: Line 34:
 
# Recalculate the MD5 checksum of the UCC image:
 
# 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
 
#: md5sum /var/lib/univention-client-boot/ucc-name-of-the-image.img > /var/lib/univention-client-boot/ucc-name-of-the-image.img.md5
# Open the Univention-Management-Console and switch to the "Computers"-Modul
+
# Open the Univention-Management-Console and switch to the "Computers"-Module
 
# Select all necessary UCC clients and choose "Edit"
 
# Select all necessary UCC clients and choose "Edit"
 
# In the "Images"-TAB choose "Image boot with update check / Initial installation" as "Boot variant"
 
# In the "Images"-TAB choose "Image boot with update check / Initial installation" as "Boot variant"
 
# "Save changes"
 
# "Save changes"
  
== 2. Solution: Copy scripts manually to clients ==
+
==2. Solution: Copy scripts manually to clients==
# If the UCC clients are thinclients following two steps are necessary [[before]] 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 up the additional boot parameter "mount=rw" in the "Images"-TAB of the "Computers"-Modul 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
 
## Reboot the clients
 
## Reboot the clients
 
# Make the script executable and copy the [[Media:020_univention-ucc-setup-onemonitor.sh| configuration script]] to every client:
 
# Make the script executable and copy the [[Media:020_univention-ucc-setup-onemonitor.sh| configuration script]] to every client:
 
## chmod +x 020_univention-ucc-setup-onemonitor.sh
 
## chmod +x 020_univention-ucc-setup-onemonitor.sh
 
## scp 020_univention-ucc-setup-onemonitor.sh root@Client-IP:/etc/lightdm/display-setup/
 
## scp 020_univention-ucc-setup-onemonitor.sh root@Client-IP:/etc/lightdm/display-setup/
# If the UCC clients are thinclients following two steps are necessary [[after]] copying the script to the clients.
+
# If the UCC clients are thinclients, the following two steps are necessary <u>after</u> copying the script to the clients.
## Remove the additional boot parameter "mount=rw" in the "Images"-TAB of the "Computers"-Modul in the Univention-Management-Console
+
## Remove the additional boot parameter "mount=rw" in the "Images"-TAB of the "Computers"-Module in the Univention-Management-Console
 
## Reboot the clients
 
## Reboot the clients
  
= Setup Univention Configuration Registry policy   =
+
=Setup Univention Configuration Registry policy=
# Create 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 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"
 
# Set the "Name of primary display" (optional)
 
# Set the "Name of primary display" (optional)
# All other configuration of the "Multi monitor configuration"-section will be ignored
+
# All other options of the "Multi monitor configuration"-section can be ignored
# 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

Revision as of 05:56, 27 September 2016

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.
Note: This article is not yet reviewed.


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 / 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