Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 46374  / 3 Years ago, fri, july 2, 2021, 11:50:04

I have a server with no X, installed with no locales. There is a "C" locale.



I need to:




  • run server scripts (no console involved) to copy, move and gzip files towards local ext4 file-system, which should contain files with special encoding (Czech, Korean, Russian etc.), so the UTF-8 should be enabled.

  • see the file-names when I type commands in the console

  • have possibility to type most of the file-names with special letters, when logged trough ssh.



What should I do to reach that state? Goal is to give complete guide to change locale systemwide (as default).


More From » locale

 Answers
3

I have to investigate it deeper and this solution helps me to solve it:



dpkg-reconfigure locales


choose cs_CZ.UTF-8 UTF-8 (default) and/or en_US.UTF-8 UTF-8



apt-get install console-data
dpkg-reconfigure console-data


set pc / qwerty / Czech / Standard / Standard or any other on your choice



dpkg-reconfigure console-setup


set Encoding to use on the console: UTF-8
set Charecter set: Latin2 - central Europe and Romanian, Fixed, 16 or any other on your coice



in file /etc/default/locale set



LANG=cs_CZ.UTF-8
LANGUAGE=cs_CZ.UTF-8
LC_ALL=cs_CZ.UTF-8
LC_CTYPE=cs_CZ.UTF-8


I dont know which steps are necessary, but after this all fonts and especially all ftp transfers and all tar-gzip actions work well.


[#31090] Sunday, July 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
giccolla

Total Points: 161
Total Questions: 124
Total Answers: 117

Location: Aland Islands
Member since Wed, Nov 17, 2021
3 Years ago
giccolla questions
Sun, Oct 17, 21, 05:39, 3 Years ago
Mon, Aug 1, 22, 02:00, 2 Years ago
Sun, Nov 21, 21, 08:21, 3 Years ago
;