having a couple minor glitches needing working out
Linux From ScratchThis 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.
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.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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
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
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?
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.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
Rep:
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)
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).
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
Rep:
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
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
Rep:
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
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.
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 druuna; 09-14-2010 at 03:46 PM.
Reason: Fixed typo.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.