Chapter 14.  Server Configuration

Table of Contents

14.1. Configuring ThinLinc Servers in a Cluster
14.1.1. Configuration Options
14.1.2. Cluster Management
14.2. Server Configuration Parameters
14.2.1. Parameters in /vsmagent/
14.2.2. Parameters in /vsmserver/
14.2.3. Parameters in /vsm/
14.2.4. Parameters in /appservergroups/
14.2.5. Parameters in /sessionstart/
14.2.6. Parameters in /tlwebadm/
14.2.7. Parameters in /webaccess/
14.3. Configuring Logging on ThinLinc servers
14.3.1. ThinLinc server components
14.3.2. Per-Session Logging
14.4. Customizing the User's Session
14.4.1. Session startup - the big picture
14.4.2. Session startup on VSM Agent
14.4.3. Profiles and the standard xstartup.default file.
14.4.4. Session Startup with a Client Supplied Start Program
14.4.5. Configuring available profiles
14.4.6. Configuring different Linux Desktops based on the selected profile
14.4.7. Speeding up Session Startup
14.4.8. Configuring the language environment on the server based on the client language
14.4.9. Forcing sessions for some users to certain agent hosts
14.5. Limiting Lifetime of ThinLinc Sessions

14.1.  Configuring ThinLinc Servers in a Cluster

In this section, we will describe how to configure a ThinLinc cluster with multiple agent servers to allow load-balancing and redundancy.

Note

This section does not address configuration of high availability (HA). For information on configuring your ThinLinc cluster for high availability, see Chapter 6, High Availability (HA) .

A ThinLinc cluster consists of one master server (or multiple master servers in a HA configuration) with multiple agent servers behind it. While ThinLinc in its simplest configuration may be run with both the master and agent installed on the same machine, running ThinLinc in a cluster configuration conveys numerous advantages:

  1. A cluster configuration allows automatic load-balancing of sessions across multiple agents

  2. Having multiple agents offers redundancy; for example, if one agent goes down or is taken out of service for maintenance, other agents are still available to handle user sessions

  3. A cluster configuration is scalable. Since most of the workload is taken up by the agents and not the master, adding more capacity to your ThinLinc installation is generally as easy as installing one or more new agent servers

14.1.1.  Configuration Options

When configuring ThinLinc servers as a cluster, there are two main configuration options which need to be set, one on the master and one on the agent(s):

/vsmserver/terminalservers

This parameter is configured on the master, and contains a space-separated list of all agent servers which will be part of this cluster. Only servers in this list will be considered by the master as available to create sessions on. See Section 14.2.2, “ Parameters in /vsmserver/ ” for details.

/vsmagent/master_hostname

This parameter is configured on each agent in the cluster, and contains the name of the master server for the cluster. See Section 14.2.1, “ Parameters in /vsmagent/ ” for details.

Once the two parameters above have been configured, and the vsmagent and vsmserver services have been restarted, these ThinLinc servers will then function as a cluster.

14.1.2.  Cluster Management

When multiple agents have been configured as part of a cluster, it is usually desirable to keep their configurations synchronised. Instead of making the same change seperately on each agent, ThinLinc ships with the tool tl-rsync-all to ensure that configuration changes can be synchronised easily across all agents in a cluster. See Chapter 13, Commands on the ThinLinc Server for more information on how to use this tool.

The tl-rsync-all command should be run on the master server, since it is the master which has a list of all agents in the cluster (in /vsmserver/terminalservers ). For this reason, it is often useful to configure the master server as an agent as well, even if it will not be used to host user sessions in general. This allows the master to be used as a "template" agent, where configuration changes can be made and tested by an administrator before pushing them out to the rest of the agents in the cluster. In this way, configuration changes are never made on the agents themselves; rather, the changes are always made on the master server, and then distributed to the agents using tl-rsync-all.

An example of how one might implement such a system is to configure the master server as an agent which only accepts sessions for a single administrative user. The steps to do this are as follows:

  1. Configure the master as an agent too. On a ThinLinc master, the vsmagent service should already have been installed during the ThinLinc installation process; make sure that this service is running.

  2. Make sure that the master server is not listed in the parameter /vsmserver/terminalservers . This will ensure that normal users will not be able to create sessions on the master server.

  3. Create an administrative user, for example tladmin . Give this user administrative privileges if required, i.e. sudo access.

  4. Make sure that the master server is explicity selected as the agent for tladmin whenever they create a session. This is done using the parameter /vsmserver/explicit_agentselection . See Section 14.4.9, “ Forcing sessions for some users to certain agent hosts ” for details on this parameter. As an example, the parameter should contain the value tladmin:master.example.com .

In this way, configuration changes are never made on the agents themselves; rather, the changes are always made on the master server, and then tested by logging in as the tladmin user. If successful, these changes are then distributed to the agents using tl-rsync-all.