Skip to content

Instantly share code, notes, and snippets.

@juliandunn
Last active March 22, 2022 15:35
Show Gist options
  • Save juliandunn/2ab498aaa33628435176 to your computer and use it in GitHub Desktop.
Save juliandunn/2ab498aaa33628435176 to your computer and use it in GitHub Desktop.
Adding EN_US to AIX LPAR

Chef Client 12 uses the UTF-8 locale. By default, BOS doesn't include it so Chef will throw warnings. Here's how you install it.

You need at least the AIX media (first disc), or copy all the files in /installp/ppc/*EN_US* somewhere on your LPAR. Let's say it's /tmp/rte

It's recommended that you use smit to install this charset so any WPARs you have also get the charset applied.

From a root shell type:

$ smit lang

You get a screen that looks like this:

                          Manage Language Environment

Move cursor to desired item and press Enter.

  Change/Show Primary Language Environment
  Add Additional Language Environments
  Remove Language Environments
  Change/Show Language Hierarchy
  Set User Languages
  Change/Show Applications for a Language
  Convert System Messages and Flat Files












F1=Help             F2=Refresh          F3=Cancel           F8=Image
F9=Shell            F10=Exit            Enter=Do

Select Add Additional Language Environments and press Enter. You get a screen like this:

                      Add Additional Language Environments

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  CULTURAL convention to install                                             +
  LANGUAGE translation to install                                            +
* INPUT device/directory for software                [/dev/cd0]              +
  EXTEND file systems if space needed?                yes                    +

  WPAR Management
      Perform Operation in Global Environment         yes                    +
      Perform Operation on Detached WPARs             no                     +
          Detached WPAR Names                        [_all_wpars]            +
      Remount Installation Device in WPARs            yes                    +
      Alternate WPAR Installation Device             []





F1=Help             F2=Refresh          F3=Cancel           F4=List
F5=Reset            F6=Command          F7=Edit             F8=Image
F9=Shell            F10=Exit            Enter=Do

Cursor over the first two entries CULTURAL convention to install and LANGUAGE translation to install and use F4 to navigate through the list until you have selected UTF-8 English (United States) [EN_US] (EN_US is in capital letters!) for both.

Remember to point INPUT device/directory to /tmp/rte if you're not installing from CD. Then you can press Enter to apply and install the language set.

@donaldgavis
Copy link

Thank You Julian !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment