Editing Locales inside VE

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 11: Line 11:
 
     are supported and installed on your system.
 
     are supported and installed on your system.
 
  perl: warning: Falling back to the standard locale ("C")
 
  perl: warning: Falling back to the standard locale ("C")
 
Another common problem is with PostgreSQL, if it won't start up and you see something like this in your <pgsql_data_dir>/serverlog:
 
 
invalid value for parameter "lc_messages": "en_US.UTF-8"
 
  
 
== Resolution ==
 
== Resolution ==
Line 40: Line 36:
  
 
so the default LC will be used.
 
so the default LC will be used.
 
== Fix 3 ==
 
 
To fix this permanently for all new vzs you create, edit your '''/vz/templates/&lt;distro&gt;/&lt;version&gt;/&lt;platform&gt;/.rpmmacros''' and change the line <b>%_install_langs C</b>
 
to include the language(s) you want, for example:
 
 
%_install_langs C:pt_PT:pt_PT.UTF-8:en_US:en_US.UTF-8
 
 
or simply
 
 
%_install_langs all
 
 
After this you will need to rebuild your [[OS template cache]], for example:
 
 
vzpkgcache -r centos-4-i386-vmirth
 
vzpkgcache centos-4-i386-vmirth
 
 
 
[[Category: Troubleshooting]]
 
[[Category: Templates]]
 
 
== Fix 4 (working on Ubuntu 8.04) ==
 
 
Simply install this package:
 
 
aptitude install language-pack-en-base
 
 
== Fix 5 (works on Debian-like systems) ==
 
 
Generate the locale:
 
dpkg-reconfigure locales
 
select the one missing and generate.
 
 
== Fix 6 (should work on recent Debian and Ubuntu distros) ==
 
 
export LANGUAGE=en_US.UTF-8
 
export LANG=en_US.UTF-8
 
export LC_ALL=en_US.UTF-8
 
locale-gen en_US.UTF-8
 
dpkg-reconfigure locales
 
 
Obviously change the en_US to your preferred language.
 
 
  
 
[[Category: Troubleshooting]]
 
[[Category: Troubleshooting]]
 
[[Category: Templates]]
 
[[Category: Templates]]

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)