Customizing the Language of Your VPS

A ServInt VPS is a powerful server. There is quite a bit of customization you can do to make it suite your needs. Today, we’re going to discuss something many international customers don’t even know to ask about: how to change your VPS language and location settings in SSH.

Don’t know how to log into your server via SSH?

Changing your VPS language setting allows you to type and sort by special characters not available in English. But more than that, it is language localization. You pick not only your language, but your country as well. This allows the server to reset date formats, use of commas and points in numbering systems, display options, etc. Bear in mind that changing VPS language settings won’t translate things such as file names or contents of files.

In addition, most GNU programs on your server use localization, wherein they customize their interface based on the VPS language localization settings. Intelligent applications using internationalization can greatly reduce the difficulty of interfacing with a server for non-English speakers.

While logged into your server via SSH, you can see what the current language setting is by running the following command:

root@vps [~]# locale


The output of the command will be something like this:



en_US is the language code (English) followed by the country code (United States).

To change the language of your system–as well as all the other parameters above–you will modify the LANG. To see list of all the supported locales, run:

root@vps [~]# locale -a


You’ll notice that names on the list are named with the format: Language_Country. Simply looks for the two letter code for language and country that you want. For example, if you want to set it to Spanish/Puerto Rico, you would select: es_PR. If you want to set it to Farsi, you would use: fa_IR

Check out this handy guide to look up the right code for your language and location.

Once you have picked out the language and location you want to use, run the following command:

root@vps [~]# nano /etc/sysconfig/i18n


And then simply modify the line the reads something like this:



Ctrl x will save your setting and exit.

You will need to close your SSH session and restart a new session for the changes to take effect.

Note: If you are using Terminal on a Mac, you may need to also type the following for your session to load the updated configuration:

root@vps [~]# su -

If you are having trouble getting these changes to take effect and show up when you initiate another locale command, then check that the default language is not set. In Nano, look at the entire file. Which lines are preceded by hash marks (#)? Those lines are designated as “comments” and not read by programs accessing the file. For example:



In this example, the LANG will always be the default (C). To change this, switch the line that is read by erasing and creating hash marks:



Now the session configuration will be based on the first line–not the fourth–and you can replace the language/location information as desired.

Here is an example.

Before language change:


Here is an ‘After’ language change (to Farsi)


Find out more about ServInt solutions

Starting at $25

  1. [...] written for the ServInt blog as part of the ‘Tech bench’ series. You can view it on the ServInt blog here. Used with permission. Related Posts:SSH Key Authentication [...]
    SSH Language Localization | /
  2. Perfectly, thanks very necessary and interesting information. Good VPS is always very necessary.
  • Hosting Advice
  • Computer World
  • Ars Technica

  • The New York Times
  • The Seattle Times
  • Bloomberg
  • The Hill

To engage with the ServInt Sales Team use the following chat icon. Normal sales hours are Monday-Friday 9am-5pm EST but feel free to leave a message and we will follow up as soon as possible.

Sales Chat

To engage with the ServInt Support Team you must be logged into our Customer Portal for identity verification and have a ticket opened about your request or there will only be limited support offered.

Support Chat