LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-25-2017, 01:33 PM   #1
elhreno
LQ Newbie
 
Registered: Feb 2017
Posts: 1

Rep: Reputation: Disabled
Question Problems with tty localization.


Hello!

I'm trying to localize my Slackware 14.2 to Russian and everything works just fine except the tty. I modified rc.font like this:
Code:
setfont -v LatArCyrHeb-16
for n in 1 2 3 4 5 6; do
  echo -en "\033%G" > /dev/tty$n
done
But I only have Russian language in tty1, all others are showing squares where Cyrillic symbols are. Keyboard layout works fine everywhere, I had no problems with X, even man pages were localized without any problems.

What is my problem with fonts? Maybe something gets started after the script runs, but actually needs to be started before? How do I check it and fix it?
 
Old 02-25-2017, 02:12 PM   #2
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,184

Rep: Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765
Do you have the following in /etc/lilo.conf:
Code:
append=" vt.default_utf8=1"
?

And an appropriate entry in /etc/profile.d/lang.sh:
Code:
export LANG=ru_RU.UTF-8
?

(setenv LANG ru_RU.UTF-8 if you use a C shell.)

Last edited by Gerard Lally; 02-25-2017 at 02:14 PM.
 
Old 02-26-2017, 06:41 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Have you seen slint? It started out as a project for Slackware i18n, but recently the developer (Didier Spaier, a frequent forum poster here), decided to branch out a bit more to better support international users, and it was enough that it shouldn't continue being a "Slackware project". But it is still essentially Slackware, but with much better support for non-English languages.

He states Russian is supported:

Quote:
Slint is available, from installation, in Dutch, English, French, German, Greek, Italian, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, Turkish and Ukrainian
 
1 members found this post helpful.
Old 02-27-2017, 09:24 PM   #4
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Check out this for the Russian font setup:

https://www.slax.org/blog/19578-Cons...ymappings.html
 
Old 02-28-2017, 08:23 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Well, in a plain Linux console you can display a set of at most 512 glyphs (as provided by LatArCyrHeb-16 for instance), there is no way to overcome this limitation.

To display available glyphs in some font in a tty, load it then type "showconsolefont".

But you could use a framebuffer terminal like fbterm. Then you can display as many glyphs as you like, as under X. Run in a tty "fbterm -h" then for instance "fbterm -s 16". Ctrl+d or "exit" to go back to the standard tty.
 
1 members found this post helpful.
Old 03-01-2017, 07:19 AM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,901

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
One thing I've encountered in the past is that if you don't use setfont early enough in the boot then it only gets applied to the active virtual console. You can use setfont with the -C option in a loop to apply it to all consoles, but just moving it to an earlier point in the boot appears to make that unnecessary. I've started including it in the module load for the video driver like this:

Code:
# /etc/modprobe.d/i915.conf

# Use an install rule to make sure that the fonts are loaded
# when the video driver module is.
#  (If you use this, then you will want to chmod -x /etc/rc.d/rc.font)
#

install i915 /sbin/modprobe --first-time --ignore-install i915 $CMDLINE_OPTS  &&  /usr/bin/setfont ter-122b
The approach also works for nouveau.
 
  


Reply



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
Debian: No Screens/Gnome3 Fallback/Xorg/tty serious problems Sanzen Linux - Laptop and Netbook 3 12-11-2013 04:32 PM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
Problems with tty and framebuffer device jaakkop Linux - General 0 08-03-2004 09:49 AM
ATI Radeon 8500, problems with fglrx and tty's peter72 Linux - Hardware 3 11-08-2003 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:58 PM.

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