

# Creating Default Application Settings for Your Users
<a name="create-default-app-settings"></a>

Follow these steps to create default application settings for your users.

**Topics**
+ [Step 1: Install Linux Applications on the Image Builder](#app-settings-image-install)
+ [Step 2: Create a TemplateUser Account](#app-settings-template-user)
+ [Step 3: Create Default Application Settings](#app-settings-image-create-default-app-settings)
+ [Step 4: Save Default Application Settings](#app-settings-image-save-default-app-settings)
+ [Step 5: Test Default Application Settings (optional)](#app-settings-image-test-applications)
+ [Step 6: Clean Up](#app-settings-image-finish)

## Step 1: Install Linux Applications on the Image Builder
<a name="app-settings-image-install"></a>

In this step, you connect a Linux image builder and install your applications on the image builder.

**To install applications on the image builder**

1. Connect to the image builder by doing either of the following: 
   + [Use the WorkSpaces Applications console](managing-image-builders-connect-console.md) (for web connections only)
   + [Create a streaming URL](managing-image-builders-connect-streaming-URL.md) (for web or WorkSpaces Applications client connections)
**Note**  
You will be logged in as an ImageBuilderAdmin user to the Linux GNOME desktop and have root admin privileges.

1. Install the applications that you need. For example, to install a Chromium browser from a public yum repo, first open the Terminal application, then run the following command:

   **[ImageBuilderAdmin]\$1 sudo yum update && sudo yum install chromium.x86\$164** 

## Step 2: Create a TemplateUser Account
<a name="app-settings-template-user"></a>

In this step, you create a TemplateUser account, which creates default application settings for your streaming users.

**To create a TemplateUser Account**

1. Create a TemplateUser account that has no root permissions. For example, in a Terminal window, run the following commands to create TemplateUser on the image builder:

   **[ImageBuilderAdmin]\$1 sudo useradd -m TemplateUser** 

   **[ImageBuilderAdmin]\$1 echo -e '<*password*>\$1n<*password*>\$1n' \$1 sudo passwd TemplateUser**

1. Switch to the TemplateUser account:

   **[ImageBuilderAdmin]\$1 su - TemplateUser** 

## Step 3: Create Default Application Settings
<a name="app-settings-image-create-default-app-settings"></a>

In this step, you create default application settings for your WorkSpaces Applications users. Doing this enables your users to get started with applications quickly during their WorkSpaces Applications streaming sessions, without the need to create or configure these settings themselves.

**To create default application settings for your users**

1. Launch the application that you want to create the default settings for. For example, in a Terminal window, run following command to launch Chromium browser:

    **[TemplateUser]\$1 chromium-browser**

1. Configure the settings of the application. For example, set the home page of the Chromium browser as **https://aws.amazon.com**.

1. Close the applications.

1. Log out:

   **[TemplateUser]\$1 logout** 

## Step 4: Save Default Application Settings
<a name="app-settings-image-save-default-app-settings"></a>

In this step, you copy the default application settings you added to the **/etc/skel/** directory, and make them available to your streaming users.

**To save default application settings**
+ Run the following command in a Terminal window to copy the default application settings for your streaming users:

   **[ImageBuilderAdmin]\$1 sudo cp -r -f /home/TemplateUser/. /etc/skel**

## Step 5: Test Default Application Settings (optional)
<a name="app-settings-image-test-applications"></a>

In this step, verify that the applications you've added run correctly, and the default application settings work as expected. 

**To test your applications and default settings on an image builder**

1. Create a test user that has no root permissions. For example, in a **Terminal** window, run the following commands to create **test-user** on the image builder:

   **[ImageBuilderAdmin]\$1 sudo useradd -m test-user**

   **[ImageBuilderAdmin]\$1 echo -e '*password*>\$1n<*password*>\$1n' \$1 sudo passwd test-user** 

1. Switch to the test user:

   **[ImageBuilderAdmin]\$1 su - test-user**

1. Launch the application (e.g., Chromium) as the test user:

   **[test-user]\$1 /usr/bin/chromium-browser** 

1. Verify that the default settings are available for the test user (e.g., the Chromium home page is https://aws.amazon.com/).

1. Log out:

   **[test-user]\$1 logout**

## Step 6: Clean Up
<a name="app-settings-image-finish"></a>

Finally, your last step is to clean up.

**To clean up**

1. Delete TemplateUser:

   **[ImageBuilderAdmin]\$1 sudo killall -u TemplateUser**

   **[ImageBuilderAdmin]\$1 sudo userdel -r TemplateUser**

1. Delete test-user (not required if you skipped step 5):

   **[ImageBuilderAdmin]\$1 sudo killall -u test-user**

   **ImageBuilderAdmin]\$1 sudo userdel -r test-user**