LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-11-2011, 09:04 PM   #1
patrick.h
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Rep: Reputation: 2
7.5 Configuring the Linux Console


Where do I look for an example of a North America U.S. keyboard? All I see are polish, german and bulgarian.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-11-2011, 10:58 PM   #2
patrick.h
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: 2
I think a North America USA console example would be as follows:


cat > /etc/sysconfig/console << "EOF"
# Begin /etc/sysconfig/console

UNICODE="1"
KEYMAP="us"
FONT="lat1-16 -m 8859-1"

# End /etc/sysconfig/console
EOF




I chose the keymap from directory:
/lib/kbd/keymaps/i386/qwerty/
I'm going to use us.map.gz which seems to be for USA hopefully.

I chose the font from /lib/kbd/consolefonts
I'm going to use lat1-16.psfu.gz
with 8859-1 from /lib/kbd/consolefonts/partialfonts

The UK example should be the same just with the keymap="uk" instead of "us"
 
2 members found this post helpful.
Old 05-06-2013, 05:11 AM   #3
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Rep: Reputation: 24
Hi!

I know this is an old thread, but wanted clarification as there was no other replies for the thread than that of the OP and I thought it best to build up on this topic than creating my own.

Is his/her following configuration correct?

Code:
cat > /etc/sysconfig/console << "EOF"
# Begin /etc/sysconfig/console

UNICODE="1"
KEYMAP="us"
FONT="lat1-16 -m 8859-1"

# End /etc/sysconfig/console
EOF
In the rc.site file I have the following as given in the book:

Code:
# Console parameters
#UNICODE=1
#KEYMAP="de-latin1"
#KEYMAP_CORRECTIONS="euro2"
#FONT="lat0-16 -m 8859-15"
#LEGACY_CHARSET=
Can this also be used?


My other question is a broader one regarding making LFS portable. I've noticed that in mainstream distros the user can choose from among keymaps at installation. Is the /etc/sysconfig/console automatically created depending on the user's choice or are there pre-created files for each and every language?

Last edited by DeeGee; 05-06-2013 at 05:29 AM.
 
Old 05-06-2013, 06:15 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by DeeGee View Post
Is his/her following configuration correct?

Code:
cat > /etc/sysconfig/console << "EOF"
# Begin /etc/sysconfig/console

UNICODE="1"
KEYMAP="us"
FONT="lat1-16 -m 8859-1"

# End /etc/sysconfig/console
EOF
That depends on what it is you want to accomplish.

The /etc/sysconfig/console isn't mandatory, if you do not create it (or leaver it empty) it will fall back to its defaults (POSIX).

If you need/want region specific non-ASCII characters to be shown in the console or you have a non-standard keyboard then you need to create one that fits your needs. Only you know what those "needs" could be (a specific non-standard keyboard, geographical location etc).

Also, the console file is only used for the console, it will not have any influence when an X session is started.

Quote:
In the rc.site file I have the following as given in the book:

Code:
# Console parameters
#UNICODE=1
#KEYMAP="de-latin1"
#KEYMAP_CORRECTIONS="euro2"
#FONT="lat0-16 -m 8859-15"
#LEGACY_CHARSET=
Can this also be used?
The examples in the LFS book are for non-standard situations. I would advise to not use a console file for now (assuming you have a standard keyboard). This file can always be created at a later time.

Quote:
My other question is a broader one regarding making LFS portable. I've noticed that in mainstream distros the user can choose from among keymaps at installation. Is the /etc/sysconfig/console automatically created depending on the user's choice or are there pre-created files for each and every language?
No, the /etc/sysconfig/console is static (created by you and not touched by automated processes). I do believe your observation is X related.
 
3 members found this post helpful.
Old 05-06-2013, 06:24 AM   #5
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Rep: Reputation: 24
Quote:
Originally Posted by druuna View Post
The examples in the LFS book are for non-standard situations. I would advise to not use a console file for now (assuming you have a standard keyboard). This file can always be created at a later time.

No, the /etc/sysconfig/console is static (created by you and not touched by automated processes). I do believe your observation is X related.
Thank you for the very informative answer.

I have a standard keyboard, So I'll leave it as it is.
 
  


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
Configuring a USB to Serial Cable to connect to a console port on a HP Procurve jamtech Linux - Networking 3 01-22-2008 07:30 AM
CONFIGURING USB Printer in CONSOLE drulz Linux - Hardware 1 07-01-2006 04:26 AM
How to Run Win32 Console App in linux Console Lokie Linux - Software 2 08-12-2004 10:00 PM
Configuring X Windows from console dkochan Red Hat 2 04-15-2004 06:58 AM
Configuring Network in Console intl99 Mandriva 2 03-12-2004 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:18 AM.

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