0

I've install Ubuntu as web server without desktop mode. I'm also running website and I need to develop it with Thai language.

Question 1: If I login on server directly, how can i read/write Thai language (with default command in English)?

Question 2: If I ssh remote from my Mac, how can i read/write Thai language same (this question after i pass first question i may adjust by myself)?

Thank you all.

Kaz Wolfe
  • 34,680

1 Answers1

1

You can type Thai text quite normally inside programs and whatnot that are unicode compliant (for example, vi and nano).

However, the commands must still be run in English, as the system does not know what the translation of each command is to Thai. Note that you can usually pass arguments (like --name <name>) in Thai, but this depends on the application at hand.

In order to do this, you just need to set your keyboard layout to Thai format, and make sure your SSH client can forward and see the Thai letters and unicode symbols correctly. You can do this by setting your locale.

Edit your ~/.ssh/config (or whatever SSH config file you use) on your side of the link and add the below lines:

Host *
SendEnv LC_*

Restart your shell session, and be sure your local shell actually does support Thai.

Kaz Wolfe
  • 34,680