Installing Oracle® Solaris 11.2 Systems

Exit Print View

Updated: July 2014
 
 

Setting the Terminal Type and Keyboard Layout

Example 11-7  Configuring Terminal Type

The svc:/system/console-login SMF service configures the terminal type. See the ttymon(1M) man page for definition of related SMF properties.

This example sets the terminal type to vt100.

<service name="system/console-login" version="1" type="service">
    <instance name="default" enabled="true">
        <property_group name="ttymon" type="application">
            <propval name="terminal_type" value="vt100"/>
        </property_group>
    </instance>
</service>
Example 11-8  Configuring Keyboard Layout

Use the sysconfig create-profile command with the kbd_layout grouping to generate a valid profile that configures the keyboard layout.

# sysconfig create-profile -g kbd_layout -o sc_kdb.xml

The svc:/system/keymap SMF service configures the keyboard layout. See the kbd(1) man page for definition of related SMF properties.

This example sets the keyboard layout to Czech.

<service name='system/keymap' version='1' type='service'>
    <instance name='default' enabled='true'>
        <property_group name='keymap' type='system'>
            <propval name='layout' value='Czech'/>
        </property_group>
    </instance>
</service>