Korean Solaris User's Guide

Installing a Terminal

If you have not added a terminal to your system before, first try installing a terminal in ASCII mode only.

How to Install a Terminal to Support KS C 5601

  1. Become superuser.


    system% su
    
  2. Type admintool.

    The admintool menu will appear.


    system# admintool
    
  3. Select the serial ports icon.

  4. Click edit on the serial ports menu.

    The modify service submenu appears.

  5. From the modify service submenu, select enabled, baud rate 9600. Then enter the terminal type.

    The preceding context describes the graphic.
  6. Under expert options, select the create utemp entry and enter the appropriate module in the streams modules field.

    To install a terminal that supports the KS C 5601-1987 version of combination code for the Korean Solaris Operating System, add kpack to the streams modules field.

    To install a terminal that supports the KS C 5601-1992 version of combination code for the Korean Solaris Operating System, add kjohap to the streams modules field.

    The preceding context describes sthe graphic.

    For more information on admintool, see the System Administration Guide: Solaris Containers, Resource Management, and Virtualization.

How to Set Up a ttya Port from the Command Line

Use the following procedure to set up a terminal on ttya port from the command line.

  1. Determine the port monitor version number.


    # ttyadm -V
    

    The port monitor version number will display.

  2. Enter the following commands and substitute the port monitor version number for ver.


    # pmadm -r -p zsmon -s ttya
    #sacadm -a -p zsmon -t ttymon -c /usr/lib/saf/ttymon -v ver
    

    For more information, see pmadm(1M) and sacadm(1M) man pages.

  3. Use the pmadm command that matches your terminal type to add a login service.

    For EUC terminals, use the following command.


    # pmadm -a -p zsmon -s ttya -i root -fu -v ver -m “ `ttyadm -S y \
      -T terminal_type -d /dev/ttya -l 9600 -m ldterm,ttcompat -s \
      /usr/bin/login`”
    

    For Korean Packed code terminals that use the KS C 5601-1987 version of Combination code, type the STREAMS module kpack in the ttyadm command.


    # pmadm -a -p zsmon -s ttya -i root -fu -v ver -m “`ttyadm -S y \
      -T terminal_type -d /dev/ttya -l 9600 -m kpack,ldterm,ttcompat -s \
      /usr/bin/login`”
    

    For Korean Combination code terminals, which use the KS C 5601-1992 version of Combination code, type the STREAMS module kjohap in the ttyadm command.


    # pmadm -a -p zsmon -s ttya -i root -fu -v ver -m “`ttyadm -S y \
      -T terminal_type -d /dev/ttya -l 9600 -m kjohap,ldterm,ttcompat -s \
      /usr/bin/login`”
    
  4. Turn on the terminal.

    Refer to the documentation that accompanies the terminal.

  5. Log in the terminal.

  6. Check to see that the installation is correct.


    # setenv LANG ko
    # /bin/stty cs8 -istrip  defeucw
    

    Note –

    These values show that the operating system is set to communicate with the terminal in 8-bit no-parity mode. Make sure the terminal is set up in 8-bit no-parity mode. Refer to the terminal's setup manual for the proper way to set terminal options.


How to Verify TTY Set Up

Use the following procedure to verify that the TTY is properly set up.

  1. Type the /bin/stty command with the -a option.


    system% /bin/stty -a
    
  2. If the cs8, -istrip values set in the previous procedure are not listed, use the following command to set them.


    system% /bin/stty cs8 -istrip defeucw
    

This is the last step in setting up a terminal. The default setting of a Korean terminal is the completion-code mode. Continue to the next section to install a Packed-code TTY.

How to Use Packed Code and Johap TTY in the ko Locale

If you use a Packed code (KS C 5601-1987) terminal , you must load the kpack STREAMS module into the kernel.

  1. Become superuser.


    system% su
    Password: (Type superuser password here if required.)
    
  2. Load the kpack module.


    #modload /kernel/strmod/kpack
    
  3. Type the following command to enable the module.


    system% setterm -x PACK
    

How to Use Combination Code and Johap TTY in the ko Locale

If you use a combination code (KS C 5601-1992) terminal , you must load the kjohap STREAMS module into the kernel.

  1. Become superuser.


    system% su
    Password: (Type superuser password here if required.)
    
  2. Load the kjohap module.


    # modload /usr/kernel/strmod/kjohap
    
  3. Type the following command to enable the module.


    system% setterm -x JOHAP
    

How to Use the EUC TTY in the ko.UTF-8 Locale

If you use an EUC (KS C 5601-1987-0) terminal , you must load the ku8euc STREAMS module into the kernel.

  1. Become superuser.


    system% su
    Password: (Type superuser password here if required.)
    
  2. Load the ku8euc module.


    #modload /kernel/strmod/ku8euc
    
  3. Type the following command to enable the stream module.


    system% setterm -x KU8EUC
    
  4. Type the following command to enable 8-bit I/O.


    system% stty defeucw cs8 -istrip
    
  5. If you want to use dtterm, type the following command.


    system% setterm -x u8
    

How to Use the Johap TTY in the ko.UTF-8 Locale

If you use a Johap (KS C 5601-1992-3) code terminal , load the ku8johap STREAMS module into the kernel.

  1. Become superuser.


    system% su
    Password: (Type superuser password here if required.)
    
  2. Load the ku8johap module.


    #modload /kernel/strmod/ku8johap
    
  3. Type the following command to enable the module.


    system% setterm -x KU8JOHAP
    
  4. Type the following command to enable 8-bit I/O.


    system% stty defeucw cs8 -istrip
    
  5. If you want to use dtterm, type the following command.


    system% setterm -x u8