How to change Eyeglass Appliance System Locale




Pre-requisite for Eyeglass version 1.4 and earlier

For Eyeglass version 1.4 and earlier, the gblic-locale package must be installed on the Eyeglass appliance prior to running this procedure


Eyeglass appliance with Internet access

  1. Use zypper utility to install the locale package glibc-locale

Example:


# zypper in glibc-locale

Loading repository data...

Reading installed packages...

Resolving package dependencies...


The following NEW package is going to be installed:

 glibc-locale


1 new package to install.

Overall download size: 5.9 MiB. After the operation, additional 113.7 MiB will be used.

Continue? [y/n/? shows all options] (y): y

Retrieving package glibc-locale-2.18-4.35.1.x86_64                                       (1/1),   5.9 MiB (113.7 MiB unpacked)

Retrieving: glibc-locale-2.18-4.35.1.x86_64.rpm ............................................................[done (4.0 MiB/s)]

(1/1) Installing: glibc-locale-2.18-4.35.1 .............................................................................[done]


Eyeglass appliance without Internet access (offline)


  1. You need to download the glibc-locale file first, copy the following url on your broswer http://mirror.its.dal.ca/opensuse/update/13.1/x86_64/glibc-locale-2.18-4.35.1.x86_64.rpm

  2. The file is going to be downloaded automatically.

  3. You need to have an SCP application “like WinSCP” to transfer the file and drop it into the Eyeglass appliance.


  1. ssh to Eyeglass appliance.

  2. Login as root , to login as a root type sudo su

  3. Disable all of the Eyeglass repo , to do that type zypper -mr - d  “Alias name” on the command line.

  4. To check that appliance repo has been disabled type zypper -ls .Enabled column should be No.

  5. Use zypper utility to install the locale package glibc-locale , run zypper in the same file location where the file located.  



Procedure for Eyeglass appliance with Internet access



  1. ssh to Eyeglass appliance.

  2. Login as root or after login sudo su to root.

  3. Type yast2 from the command line.  The YaST2 configuration utility opens.

# yast2



  1. Use the down arrow to highlight System.

  2. Then right arrow and down arrow to highlight Language.




  1. Use Enter key to select.  The YaST2 language window opens.



  1. Use the down arrow to open the Primary Language list.



  1. Use the up and down arrow to scroll through the languages list and select English (US).

Note: English (US) always selected independent of language that is being supported.

  1. Enter to select.

  2. Use the Tab key to highlight Details




  1. Enter to select.



  1. Set:

  • Locale Settings for User root = ctype Only

  • Use UTF-8 Encoding (must be selected)



  1. Tab to OK and Enter to save.

  1. Tab to OK in main window and Enter to save.


  1. Tab to Quit in main window and Enter.

  2. Stop the Eyeglass sca service

Eyeglass 1.4.4 and earlier:    service sca stop

Eyeglass  1.4.5 (Update 1) and later:  systemctl stop sca.service


  1. Check that sca process is no longer running.

Example:

# ps -aux | grep sca

root     19271  0.0  0.0   9008   684 pts/0    S+   19:35   0:00 grep sca


  1. Reboot the Eyeglass virtual machine.

  2. To verify the change login to Eyeglass appliance and sudo to sca user and the type the locale command  

  1. The en_US.UTF-8 code will appear after typing locale if it’s successfully installed .




Procedure for Eyeglass appliance without Internet access (offline)


  1. ssh to Eyeglass appliance.

  2. Login as root , to login as a root type sudo su.

  3. If not already done:  disable all of the Eyeglass repo , to do that type

zypper -mr - d  <Alias name>

on the command line.  Repeat for each repo.

  1. To check that appliance repo has been disabled type zypper -ls .Enabled column should be No.


  1. Type the command yast2, The YaST2 configuration utility opens.

  2. Use the down arrow to highlight System.

  3. Then right arrow and down arrow to highlight Language.


  1. Use Enter key to select.  The YaST2 language window opens

  1. Use the down arrow to open the Primary Language list.

  2. Use the up and down arrow to scroll through the languages list and select English (US).

Note: English (US) always selected independent of language that is being supported.

  1. Enter to select.

  1. Use the Tab key to highlight Details.


  1. Enter to select.

  1. Set :  Locale Settings for User root = ctype Only

                     Use UTF-8 Encoding (must be selected)

  1. Tab OK and and Enter to save.

  1. Tab to OK in main window and Enter to save.


  1. Tab Quit to exit to main window.

  2. Stop the Eyeglass sca service

Eyeglass 1.4.4 and earlier:    service sca stop

Eyeglass  1.4.5 (Update 1) and later:  systemctl stop sca.service


  1. Check that sca process is no longer running.

Example:

# ps -aux | grep sca

root     19271  0.0  0.0   9008   684 pts/0    S+   19:35   0:00 grep sca


  1. Reboot the Eyeglass virtual machine.

  2. To verify the change login to Eyeglass appliance and sudo to sca user and the type the locale command  

  1. The en_US.UTF-8 code will appear after typing locale if it’s successfully installed .