Korean Solaris User's Guide

Chapter 8 Configuring a Korean Solaris System

You can use the procedures this chapter to set a system-wide default locale or to add a new locale from the Solaris DVD and CD media. You also change the font path set by the Xsession script included in the Korean Solaris Operating System. The following sections are included in this chapter.

Setting the Default Locale

You can use the procedure in this section to make a system-wide change to the default locale.

How to Set the Default Locale

  1. Become superuser.

  2. Edit the /etc/default/init file.

  3. Add or update the LANG variable with the appropriate locale.


    LANG=locale
    

    locale

    C, ko, or the ko.UTF-8

  4. Instruct all users to exit CDE.

  5. Kill the dtconfig process.


    # /usr/dt/bin/dtconfig -kill
    
  6. Reboot the system.


    # reboot
    

Using Aliases to Set the Locale

You can use aliases to change a terminal-emulation window between the Korean locales and ASCII/English locale without typing long command lines or editing your .dtlogin file and running source every time.

How to Set Locale Aliases for the Korn Shell

    Put aliases such as the following in your .profile file.


    alias kor_EUC "export LANG=ko; /bin/stty cs8 -istrip defeucw"
    alias kor_UTF "export LANG=ko.UTF-8; /bin/stty cs8 -istrip \defeucw"
    alias asc "export LANG=C; /bin/stty cs7 istrip defeucw" 

How to Set Locale Aliases for the C Shell

    Put aliases such as the following in your .cshrc file.


    alias kor_EUC "setenv LANG ko; /bin/stty cs8 -istrip defeucw"
    alias kor_UTF "setenv LANG ko.UTF-8; /bin/stty cs8 -istrip \defeucw"
    alias asc "setenv LANG C; /bin/stty cs7 istrip defeucw"