Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-30-2006, 11:36 PM   #1
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
How I localize Slackware

I think it's high time to create a small HOWTO on How to localize Slackware.
Add posts about your language to help others.

This post is about Russian language.
This works in Slackware10.x.
I localize my system to KOI8-R, because mc which I use sometimes, doesn't understand UTF-8. And just because KOI8-R really rocks!

First, I made a script to localize system:

#Console localization
#this creates executable font script which will be run every system startup to set font for console
touch /etc/rc.d/rc.font
chmod +x /etc/rc.d/rc.font
#this removes unnecessary now OLD font script
rm -f /etc/rc.d/
#this soft-links console key map to necessary dir (to avoid copying and wasting space)
ln -s /home/other/src/ /usr/share/kbd/keymaps/i386/qwerty/
#this writes the necessary contents to rc.font
echo 'setfont -v cp866-8x16
mapscrn koi2alt
for i in 1 2 3 4 5 6; do
    echo -ne "\033(K" > /dev/tty$i
loadkeys ru42'>/etc/rc.d/rc.font

#System localization
#this writes necessary contents to which is also run every startup to set system language
echo 'export LANG=ru_RU.KOI8-R
export LC_NUMERIC=C'>/etc/profile.d/

#this is necessary too...
echo 'russian ru_RU.KOI8-R
ru ru_RU.KOI8-R
ru_RU ru_RU.KOI8-R'>/usr/share/locale/locale.alias

#this runs rc.font so that we don't have to wait for console localization untill next startup

#this copies Windows fonts, I wonder why they look so ugly in Windows, and so pretty in X
#/home/other/fonts contains Windows TTF fonts
cp /home/other/fonts/* /usr/X11/lib/X11/fonts/cyrillic
I run the script after every Linux re-installation, then I reboot and get russified console. Then I edit /etc/X11/xorg.conf (actually I've edited it long ago, and now just keep it between re-installations) this way:
- - - -
Section "InputDevice"
- - - -

Option "XkbLayout"  "en_US,ru(winkeys)"
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"

End Section
- - - -
The first line allows two layouts in X, the second one allows me to switch layouts pressing Alt+Shift, also when Russian is on Scroll Indicator is on.

Ok, now console and X undestand Russian very well. But I have some Windows partitions and want to be able to see correct Russian filenames there. (I have FAT32 for Windows to be able to write from Linux, but it shouldn't make any difference)
CD-ROMS and floppies may be with Russian filenames as well.
I edit /etc/fstab like this:
- - - -
/dev/hda7        /mnt/windata     vfat        iocharset=koi8-r,umask=000 0   0
/dev/hda8        /mnt/winsys      vfat        iocharset=koi8-r,umask=000 0   0
/dev/cdrom       /mnt/cdrom       iso9660     iocharset=koi8-r,noauto,group,ro  0   0
/dev/fd0         /mnt/floppy      vfat        iocharset=koi8-r,noauto,group     0   0
- - - -
"umask=000" means that every user is able to write to Windows partitions.
Also I use kernel 2.4.x, while in 2.6.x "iocharset" option is deprecated and you should use smth like "nls" (see FAT32 and NTFS sections of "man mount" for more info).

And lastly, when I was using KDE (now I'm using XFCE ) I had to:
1) select System Admin -> Font Installer in Control Center (yeah, just select);
2) add Russian language in Regional & Accesibility -> Country / Region & Language.

That should be enough to feel yourself like a real Russian Linux user


Last edited by kornerr; 05-21-2006 at 04:10 AM.
Old 01-31-2006, 08:05 AM   #2
LQ Newbie
Registered: Nov 2005
Posts: 22

Rep: Reputation: 15
...this sounds like a very nice and clean way to do it ... too bad I am having this localization
problem with Hellenic alphabet. All the HOWTOs I 've collected from the internet are very poor or oudated and seem to fix problem partially!
Wish I was russian for a change!
I think your post will help me though in going about the hellenic localization!
Old 08-21-2006, 04:23 AM   #3
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 16
Few questions

Dear kornerr,
Thank you very much for such detailed instructions. I have a followup question.

What do I to do if I don't want to "localize" my box to Russian. I.e. I live in US I am pretty happy how the date is displayed. What if I just want to be able to view Russian webpages in various encodings in FireFox? Right now I can only use statically linked netscape to do that (which by the way tells me that X11 sees the russian fonts). For a while konquerror was allowing me to do that. I use 10.2 now (stock, no tweaks). What should I do to be able to view Russian webpages using recently installed FireFox, or Mozilla, or Konquerror?
Old 08-21-2006, 05:15 AM   #4
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,658

Rep: Reputation: 3976Reputation: 3976Reputation: 3976Reputation: 3976Reputation: 3976Reputation: 3976Reputation: 3976Reputation: 3976Reputation: 3976Reputation: 3976Reputation: 3976
That would be fixed by installing a Unicode font that contains the cyrillic characters.
For instance, try the free Thryomanes Truetype font at . Direct link is

Old 08-21-2006, 05:48 AM   #5
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
I cleared the contents of /etc/profile.d/, rebooted and got what you want.
So you can try to simply copy TTF fonts from (I didn't mention, but I have russian Windows version, so fonts are probably russified) Windows fonts directory.
Or try that Unicode font suggested by Alien Bob.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
About Slackware 9.1 boot disk?? AL3OMDAH Slackware 4 04-18-2007 09:54 AM
Dual boot windows/slackware, but slackware installed first? Cryptic_K Slackware 3 11-20-2006 12:49 PM
using older slackware package for newer slackware. Is it problematic? hottdogg Slackware 2 12-13-2005 03:57 AM
Newer Slackware Packages on older slackware version pengStudent Slackware 2 11-12-2003 12:47 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration