32.3. Configuring SCPM Using a Graphical User Interface

The following sections introduce the graphical tools used for controlling your profile settings.

32.3.1. Configuring the Profile Chooser Panel Applet

Before you can use Profile Chooser to control your system configuration, configure it to be started automatically on login:

  • In GNOME, right-click the panel and select Profile Chooser from the list of available applets.

  • In KDE, select System+Desktop Applet+Profile Chooser to add Profile Chooser to your panel.

32.3.2. Configuring Basic SCPM Settings

Configure the basic behavior of SCPM through YaST.

  1. Start YaST from the main menu and select the YaST Profile Manager.

  2. In System Configuration Profile Management, click Options and select Enabled.

  3. Determine how verbose SCPM should be by selecting any or both of Verbose Progress Messages and Log Debug Messages.

  4. Determine the appropriate switch mode for your setup:

    • Should SCPM list any changed resource when switching to another profile and save these changes to the active profile? Select Normal or Save Changes.

    • Should SCPM drop any changed resource configuration when switching? Select Drop Changes.

  5. Set the boot mode and determine whether changes to the current profile should be saved or whether they should be discarded with profile switching triggered at boot time.

  6. Make sure that all resource groups you need are covered by the active selection, displayed in the Resource Groups section. If you need additional resource groups, adjust the resources with Configure Resources. For details, refer to Section 32.3.6, “Configuring Resource Groups”.

    For the example scenario, you do not need to configure additional resources, because printer and network resources are included by default.

Figure 32.1. YaST: Basic SCPM Configuration

YaST: Basic SCPM Configuration

To allow users other than root to manage profiles, proceed as follows:

  1. Start YaST from the main menu and select the YaST Profile Manager.

  2. Check Permit non-root Users to Manage Profiles. See Figure 32.2, “YaST: Configure SCPM Users”.

  3. Click Configure Users.

  4. Click Add to add any user who should be able to manage profiles.

  5. For each user, specify whether he should have switch permissions only or whether this user should be allowed to switch, modify, and create profiles.

  6. Click Accept to apply your settings and close YaST.

Figure 32.2. YaST: Configure SCPM Users

YaST: Configure SCPM Users

32.3.3. Creating a New Profile

After you have enabled SCPM, you have a profile named default that contains your current system configuration. Create another profile that matches the requirements of the other setup.

To add a new profile based on the current system configuration, proceed as follows:

  1. Right-click the Profile Chooser and select Run Profile Manager (SUMF).

  2. Select Profiles+Add.

  3. Enter the name of the new profile and click OK.

  4. Determine whether the new profile should be the active profile.

    If you selected Yes, SCPM switches to the new profile immediately after it has been created.

For this example, do the following:

  1. In your home setup, enable SCPM.

  2. Rename the default profile to a more descriptive name by starting SUMF and selecting Profiles+Edit and entering the new name.

  3. In your setup at work, start SUMF and create the profile for your system environment at work.

Once you have all profiles you need, you are ready to switch to them whenever a different system setup is required. Switching profiles is described in Section 32.3.4, “Switching Profiles”.

32.3.4. Switching Profiles

There are two ways to switch profiles. You can either select a new profile at boot or switch profiles in the running system.

To select a profile at boot, proceed as follows:

  1. In the boot screen, press F2 to enter the Other Options menu.

  2. Press F3 to access the list of profiles available.

  3. Use the arrow keys to select the appropriate profile and hit Enter.

    The system boots into the configuration selected.

To switch profiles in a running system, proceed as follows:

  1. Make sure that you are allowed to switch profiles as a non-root user. If you are not allowed to do so, refer to Section 32.3.2, “Configuring Basic SCPM Settings”.

  2. Left-click the Profile Chooser panel applet.

  3. Select the profile you need in the menu that opens using the arrow keys and hit Enter.

    SCPM runs a check for modified resources and prompts you for a confirmation of the switch. If changes have been made to the system configuration before the switch, SCPM asks you to either keep them or discard them when switching to another profile.

32.3.5. Editing a Profile

To adjust existing profiles to a changed environment, for example, if you want to change the printer configuration of your home network, proceed as follows:

  1. Switch to the profile to adjust as described in Section 32.3.4, “Switching Profiles”. In this example, you would choose the home profile.

  2. Change the resources that need to be adjusted using the appropriate YaST module. In this example, run the YaST printer configuration.

  3. After the configuration changes have been applied, SCPM asks whether these changes should be permanently applied to your active profile on the next profile switch.

    [Tip]Forcing a Profile Update

    If you want to force an update of the active profile, click the profile in the profile selection menu of the Profile Chooser panel applet. This triggers a reload of your profile and you are asked whether to apply the configuration changes or discard them.

32.3.6. Configuring Resource Groups

SCPM comes with a set of predefined resource groups that are included in any profile by default. However, some scenarios require the inclusion of additional resources and resource groups.

To change the resource (group) configuration, proceed as follows:

  1. Start YaST from the main menu and start the YaST Profile Manager module.

  2. In the System Configuration Profile Management dialog, click Configure Resources.

    All resource groups available on your system are listed as shown in Figure 32.3, “Configuring Resource Groups”.

  3. To add or edit a resource group:

    1. Set or edit Resource Group and Description.

    2. Enter the appropriate resources (resources, services, or both) and delete those that are not needed. To reset the status of the selected resources—discard any changes made to them and return to the initial configuration values—choose Reset Group.

    3. Click OK to leave the resource configuration.

  4. Click OK to save your changes to the active profile.

Figure 32.3. Configuring Resource Groups

Configuring Resource Groups