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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
09-12-2010, 12:18 AM
|
#1
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
|
having a couple minor glitches needing working out
three questions, first
i have put in the default inputrc from chapter 7.7
Code:
# Begin /etc/inputrc
# Modified by Chris Lynn <roryo@roryo.dynup.net>
# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off
# Enable 8bit input
set meta-flag On
set input-meta On
# Turns off 8th bit stripping
set convert-meta Off
# Keep the 8th bit for display
set output-meta On
# none, visible or audible
set bell-style none
# All of the following map the escape sequence of the value
# contained in the 1st argument to the readline specific functions
"\eOd": backward-word
"\eOc": forward-word
# for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for Konsole
"\e[H": beginning-of-line
"\e[F": end-of-line
# End /etc/inputrc
this line is supposed to allow the terminal to wrap
Code:
# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off
but it doesn't
second i can't switch virtual consoles by hitting ctl-alt-X or ctl-X nor does clt-alt-backspace work when running X
third how do i enable the framebuffer console?
|
|
|
09-12-2010, 04:14 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
I don't really understand your first 2 questions but to enable the framebuffer you need to recompile your kernel. In menuconfig go to:
Device Drivers --->
Graphics support --->
Console display driver support --->
[ ] Framebuffer Console support
You may need to enable some of the other options under Graphics support, it all depends on your hardware. If you have hardware that supports kernel mode setting and you enable it you should get a framebuffer console by default
|
|
|
09-12-2010, 04:58 AM
|
#3
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
Quote:
Originally Posted by frieza
three questions, first
i have put in the default inputrc from chapter 7.7
this line is supposed to allow the terminal to wrap
Code:
# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off
but it doesn't
|
If this options is set to Off the line will rap when it reaches the right border. If it is set to On it will not and keep scrolling to the right. This works on the console and in X. If you change this or any other setting you need to re-login before it will become active.
Quote:
second i can't switch virtual consoles by hitting ctl-alt-X or ctl-X nor does clt-alt-backspace work when running X
|
I don't know what you tried, but ctrl-alt-F1 should get you to a console (F1 can be anything from F1 to F6). alt-F7 should bring back X. You do use the left alt and ctrl?
Quote:
third how do i enable the framebuffer console?
|
See Andrew Benton's answer.
Hope this helps.
|
|
|
09-12-2010, 12:10 PM
|
#4
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
|
i tried hitting ctl-alt-f1-f7 but all i see (when in an xterminal) is $5Q5P5R etc...
|
|
|
09-12-2010, 12:15 PM
|
#5
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
Quote:
Originally Posted by frieza
i tried hitting ctl-alt-f1-f7 but all i see (when in an xterminal) is $5Q5P5R etc...
|
I assume correctly that $5Q5P5R is shown in the xterminal? Maybe that particular terminal type catches the key-combo? xterm doesn't catch them (on my box that is  ).
When X is up and running you don't need to be in a (x)terminal to use those key-combo's.
Hope this helps.
|
|
|
09-12-2010, 04:36 PM
|
#6
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
|
no it seems my keyboard is mapped incorrectly or something because at a virtual console typing f1-57 simply gives ABCDE~~ respectively (one character per fkey)
|
|
|
09-13-2010, 02:51 AM
|
#7
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
I am curious about something: You mention doing LFS chapter 7.7 (the inputrc file) and you talk about X. X is part of BLFS (One of the later chapters). Did you build LFS and BLFS?
If BLFS was done, you might want to have a look at X Window System Components, especially the Setting up Keyboards part (XkbModel and XkbLayout).
And these 2 links could also be of help:
- The XKB Configuration Guide
- How to further enhance XKB configuration
You answer "no" to this question:
Quote:
I assume correctly that $5Q5P5R is shown in the xterminal? Maybe that particular terminal type catches the key-combo?
|
But where do you see these characters like $5Q5P5R and ABCDE~~???
Hope this helps.
|
|
|
09-13-2010, 10:23 AM
|
#8
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
|
yes i built lfs and am working on blfs
its just now i have Xorg built and im just now noticing the problem
as for the command prompt not wrapping like its supposed to i've known about it but havnt really cared until now
as for where i see the characters they appear at a bash prompt when i hit the fkeys
Last edited by frieza; 09-13-2010 at 12:13 PM.
|
|
|
09-13-2010, 10:09 PM
|
#9
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
|
hmm it also seems the alt key doesn't behave as it is supposed to
|
|
|
09-14-2010, 12:26 AM
|
#10
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
|
grr... now i feel like a partial idiot, i got my ctl-alt problem fixed, i had a broken keyboard
still havnt figured out though while the shell isn't wrapping like it should
|
|
|
09-14-2010, 01:28 AM
|
#11
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi again,
Quote:
still havnt figured out though while the shell isn't wrapping like it should
|
My answer from post #3 didn't help you in any way?
|
|
|
09-14-2010, 10:20 AM
|
#12
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
|
the framebuffer part helped
but i already HAD that line set to off when i posted it unless it should be on?
|
|
|
09-14-2010, 10:26 AM
|
#13
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
The framebuffer wasn't what you were talking about in post #10......
Quote:
still havnt figured out though while the shell isn't wrapping like it should
|
My answer from post #3:
Quote:
If this options is set to Off the line will rap when it reaches the right border. If it is set to On it will not and keep scrolling to the right. This works on the console and in X. If you change this or any other setting you need to re-login before it will become active.
|
So depending on what you want yourself you need to set it to On or Off.
|
|
|
09-14-2010, 11:44 AM
|
#14
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
|
yeah i get that, but it seems to be ignoring that file because it IS set to off and behaving like it is set to ON that is the problem
|
|
|
09-14-2010, 12:00 PM
|
#15
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
Off is the default value (assuming the LFS book was followed). This should make the line wrap (at least in the console and xterm, I checked).
Are the permissions of the file correct (644 / rw-r--r--)?
I'm not sure what you have tried in the mean time, but if you change the file you do need to re-log in and if it was done from X you need to stop X as well.
What does set | grep -i input show? If you see a line like INPUTRC=/etc/inputrc you can be sure that it was seen and loaded by bash.
Hope this helps.
Last edited by anon237; 09-14-2010 at 02:46 PM.
Reason: Fixed typo.
|
|
|
All times are GMT -5. The time now is 01:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|