Hi all, I hope there is someone in Japan. If we install CentOS in Japanese, and then I SSH to it from an English client. Will the SSH prompt be in Japanese?
How to make the SSH prompt in Japanese?
My guess–it’s a bit late to test it tonight—is that as long as your terminal can handle Japanese you should be alright.
That is, it’s probably easiest to, while running X, use a terminal emulated, e.g., uxterm or urxvt (rxvt-unicode), and check the LC_CTYPE. Generally, something like LC_CTYPE=en_US-UTF-8 will be able to read Japanes, but it will probably also depend upon the LC_CTYPE settings on the remote machine.
As English is my first language, I’ve never quite had to do it that way, but at times, have had to remotely read emails in mutt using Japanese.
You’re prompt will reference whatever the hostname is doesn’t it? I’m located in Tokyo, I haven’t setup any servers with Japanese hostnames actually, but on occasion some filenames are written in Japanese. What is it you wanted to see exactly? It also depends on the keyboard setup you have set to the default. Most people in Japan set the keyboard to a US
style – where they enter romaji, and don’t usually enter the kana from the different keyboard layout. So, you type the roman characters ra for example to make ら, but there is a Japanese keyboard layout where you can type the ら
character directly – but I never really see that used.
So, as far as I know, you’ll be using whatever input methods you actually have on your local system where you’re ssh’ing from. So, if you needed to write Japanese input you’d need some local IME on your particular system.
and sorry for my bad grammar, too much time in Japan ;-)
your prompt, you are not a prompt.
Hi Ross, thanks for your time. What I want to know is, during the initial SSH login. Will it display the dialogue fully in Japanese? e.g. email@example.com’s password: (will it be in Japanese?)
as the directory structures are in English. Usually people’s home directories are setup in English, I don’t think I’ve ever come across a user login that does use Japanese actually (not sure if you can – otherwise your SSH connection you’d have to match you user name – eg. Ross would be my katakana name, $B%m%9!w(B22.214.171.124 – don’t even know it’s possible). I’ve worked at one Japanese company as the only foreigner, and all others companies have been international ones – but everyone uses Roman characters for their logins and not kana or kanji.
Same with passwords.
Usually, on systems I’ve seen in Japan most of the time files and folders are creating using Roman characters for naming (most of the time). Within a document, of course it could be written 100% in Japanese. Some folders and files can be in Japanese, so it can be hard to navigate through some directories if you don’t have any IME tools for Japanese input. Lots of tab autocomplete and copy and pasting at times – but that’s usually within a home directory for a user for example.
I see. Thanks Ross. That makes sense.
Sent from Samsung Galaxy ^^
[root@CENT01 ~]# useradd -m $B%m%9(B
useradd: invalid user name ‘$B%m%9(B’
So, looks like it needs to be in Roman characters.
But it appears even I have some issues via my terminal too:
[root@CENT01 ~]# useradd -m ross
[root@CENT01 ~]# cd /home/ross/
[root@CENT01 ross]# touch $B%m%9(B
[root@CENT01 ross]# ls
So, my Japanese input isn’t being displayed. But I did get a warning when I
SSH’d in about that:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)
Hope that helps.
Definitely Ross. I’ll tell my friend. Thank you.
I have a .ja version of CentOS-6 in a VM. I do all my testing work by ssh’ing to it but have not encountered issues with Japanese input/display.
[yagi2@c63-64ja ~]$ mkdir $BF|K\8l(B
[yagi2@c63-64ja ~]$ cd $BF|K\8l(B
[yagi2@c63-64ja $BF|K\8l(B]$ touch $B%m%9(B
[yagi2@c63-64ja $BF|K\8l(B]$ ll total 0
-rw-r–r–. 1 yagi2 yagi2 0 Aug 6 06:39 $B%m%9(B
The machine I connect from does have Japanese input set up (as mentioned by others).
Akemi A Japanese in California :-)
think was the main concern that the username / password combination would be in Japanese. I don’t think I’ve encountered a non romaji home directory
– but the folders and files can be created in Japanese no problem.
The issue I had is a local one that I can fix with the display actually.
Fajar Priyanto wrote:
Fajar, please don’t top post.
And the Japanese not being displayed – the setlocale is your clue: you need to install Japanese language support.
Right, username cannot be in Japanese :
[root@c63-64ja ~]# useradd $B;08.Cc20(B
useradd: ‘$B;08.Cc20(B’ $B$O%f!< %6L>$K;H$($^$;$s(B