Modifying configuration parameters
This section describes how to modify the configuration parameters for your Amazon DCV server. For more information about the registry keys for Windows servers, sections for Linux servers, parameter names, types, and valid values, see the Amazon DCV Server parameter reference.
Windows Amazon DCV Servers
For Windows Amazon DCV servers, modify the configuration parameters using the Windows Registry Editor, PowerShell, or the command line.
To modify a configuration parameter using the Windows Registry Editor
-
Open the Windows Registry Editor.
-
Navigate to the following registry path:
HKEY_USERS/S-1-5-18/Software/GSettings/com/nicesoftware/dcv/
-
Select the registry key in which the parameter exists. If the registry key does not exist, create it using the exact key name described in the Amazon DCV Server parameter reference.
-
Open (double-click) the parameter. If the parameter does not exist, add it using the type and name described in the Amazon DCV Server parameter reference.
To modify a configuration parameter using the PowerShell
-
Run PowerShell as the administrator.
-
Add the registry key using the key name described in the Amazon DCV Server parameter reference.
PS
C:\>
New-Item -Path "Microsoft.PowerShell.Core\Registry::\HKEY_USERS\S-1-5-18\Software\GSettings\com\nicesoftware\dcv\" -Nameregistry_key
-Force -
Create the parameter in the registry key using the type and name described in the Amazon DCV Server parameter reference.
PS
C:\>
New-ItemProperty -Path "Microsoft.PowerShell.Core\Registry::\HKEY_USERS\S-1-5-18\Software\GSettings\com\nicesoftware\dcv\registry_key
" -Nameparameter_name
-PropertyTypeparameter_type
-Valueparameter_value
-Force
To modify a configuration using the command line
-
Run the command line as the administrator.
-
Create the registry key and add the parameter using the key name, and parameter type and name described in the Amazon DCV Server parameter reference.
C:\>
reg.exe ADD "HKEY_USERS\S-1-5-18\Software\GSettings\com\nicesoftware\dcv\registry_key
" /vparameter_name
/tparameter_type
/dparameter_value
/f
Linux Amazon DCV servers
For Linux Amazon DCV servers, the configuration parameters can be modified using a text editor or a command line tool, such as crudini.
To modify a configuration parameter using a text editor
-
Open
/etc/dcv/dcv.conf
using your preferred text editor. -
Locate the appropriate section in the file. If the section does not exist, add it using the section name described in the Amazon DCV Server parameter reference.
[
section
] -
Locate the parameter in the section and modify the value. If the parameter does not exist in the section, add it using the parameter name described in the Amazon DCV Server parameter reference.
parameter_name
="parameter_value
" -
Save and close the file.
To modify a configuration parameter using crudini
Create the section and add the parameter using the section and parameter names described in the Amazon DCV Server parameter reference.
$
sudo crudini --set /etc/dcv/dcv.confsection_name
parameter_name
'parameter_value
'