Quote:
Originally Posted by simeon.mattes
Hi,
I have a problem with the my files, which use greek letters. I can't see them.
Is there anything I can do?
Thanks in advance
|
The hellug howto is a bit old and most of the stuff mentioned there aren't needed.
In order to be able to type greek letters on the keyboard and read greek letters on the screen
the mininum you need is LC_CTYPE to be set. If you want a full greek enviroment so that even
commands return greek errors and messages you set LANG which will set everything.
As Yalla-One mentioned you can change the settings in /etc/profile.d/lang.sh (for sh like shells)
and /etc/profile.d/lang.csh (for csh like shells)
Use your favourite editor (eg vi, nano etc) to edit /etc/profile.d/lang.sh (assuming you are using
bash which is the most common).
Change the variable LANG to say "export LANG=el_GR.UTF-8". In the end of the file there is also
a line mentioning LC_COLLATE=C. This changes the sort order and has the effect that greek names
don't get sorted correctly. So disable this line by putting a hash # in the beginning of it
This tells the system to use a Greek locale. In order to actually see greek letters in console
you need to use a greek font and in order to type greek you need to use a greek keymap.
The scripts setting the font and the keymap are /etc/rc.d/rc.font and /etc/rc.d/rc.keymap respectively.
Choose the "gr.map" keymap and the "iso07u-16.psfu.gz" font.
In order to set the font instead of directly editing the script you can also run setconsolefont.
I include what my scripts look like in case it helps you.
/etc/rc.d/rc.font
Code:
setfont -v iso07u-16.psfu.gz
/etc/rc.d/rc.keymap
Code:
if [ -x /usr/bin/loadkeys ]; then
/usr/bin/loadkeys -u gr.map
fi
/etc/profile.d/lang.sh
Code:
export LANG=el_GR.UTF-8
# export LC_COLLATE=C
SPOILER tags didn't work so i removed all the comments (lines beginning with #) in order to
make the post smaller.
I hope i helped you.