Korean Solaris User's Guide

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.