SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do you do!
I have a question. How to configure the support of the Russian language in the command line, in the names of files and folders in KDE?
Thanks.
How do you do!
I have a question. How to configure the support of the Russian language in the command line, in the names of files and folders in KDE?
Thanks.
1) Set system locale (LANG) to russian. This is done in /etc/profile.d/lang.sh
Code:
#!/bin/sh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a
export LANG=ru_RU.KOI8-R
2) Select font with russian character map. This is done in /etc/rc.d/rc.font
Code:
#!/bin/sh
#
# This selects your default screen font from among the ones in
# /usr/share/kbd/consolefonts.
#
setfont -v koi8c-8x16 -u koi8r
3) Select russian keyboard map in /etc/rc.d/rc.keymap:
Code:
#!/bin/sh
# Load the keyboard map. More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
/usr/bin/loadkeys ru-ms.map
fi
Language (in terminal) will be switched by pressing right ctrl.
4) IN /etc/X11/xorg.conf tune keyboard section like this:
Language will be indicated by scrolllock, and you can toggle language by pressing right "windows" key, or two shifts together. Restart X after modifications.
5) In KDE control center, go to "Regional and Accessibility"->"Country/Region & Language". Press "add language", select russian language, and place it first in list.
6) if you are mounting windows volumes (fat32/ntfs), make sure they use correct codepage or locale.
examples:
ntfs-3g volume:
I am assuming, of course, that you don't want to set up the system totally in russian. If you do, then you should check out how to change the locale.
If you don't want to change system completely to russian, then
1) Add section to xorg.conf, as mentioned before.
2) Set /etc/rc.d/rc.keymap and /etc/rc.d/rc.font as I've mentioned before.
3) setup fstab as mentioned before
4) Set system locale (/etc/profile.d/lang.sh) to this:
Code:
#!/bin/sh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a
# en_US is the Slackware default locale:
export LANG=ru_RU.KOI8-R
export LC_MESSAGES=en_US
#export LC_ALL=ru_RU.KOI8-R
This is required, because otherwise KDE might select incorrect encoding for filenames (ISO-8whatever encoding, which no one ever uses).
System messages will be in english, but you'll have russian support.
Unfortunately with this configuration some programs will still detect your locale in russian and print russian text (Qt4 programs). You might even try something like en_US.KOI8-R, but some programs won't understand it.
I am assuming, of course, that you don't want to set up the system totally in russian. If you do, then you should check out how to change the locale.
Changing only locale won't be enough, because you'll need to configure terminal fonts, terminal keymap, and xorg.conf's keyboard configuration. Otherwise you won't be able to type in russian.
Hello!
I have a question that I think pertains here.
I want to use emacs without X, i.e. in the console only and write utf8 encoded cyrillic text (Bulgarian to be precise). Is there a way to achieve that?
In the Changes and Hints file there was something about enabling utf8 console, probably that is what I should do, but Patrick warns that there is some danger of misinterpretation of some commands. So can I achieve my goal without running into this risk? I wish I could leave everything in english on my machine, I just want to write in console emacs in utf8 Bulgarian.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.