LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-12-2010, 12:18 AM   #1
frieza
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

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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?
 
Old 09-12-2010, 04:14 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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
 
Old 09-12-2010, 04:58 AM   #3
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
Hi,
Quote:
Originally Posted by frieza View Post
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.
 
Old 09-12-2010, 12:10 PM   #4
frieza
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
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
i tried hitting ctl-alt-f1-f7 but all i see (when in an xterminal) is $5Q5P5R etc...
 
Old 09-12-2010, 12:15 PM   #5
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
Hi,
Quote:
Originally Posted by frieza View Post
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.
 
Old 09-12-2010, 04:36 PM   #6
frieza
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
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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)
 
Old 09-13-2010, 02:51 AM   #7
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
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.
 
Old 09-13-2010, 10:23 AM   #8
frieza
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
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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.
 
Old 09-13-2010, 10:09 PM   #9
frieza
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
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
hmm it also seems the alt key doesn't behave as it is supposed to
 
Old 09-14-2010, 12:26 AM   #10
frieza
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
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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
 
Old 09-14-2010, 01:28 AM   #11
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
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?
 
Old 09-14-2010, 10:20 AM   #12
frieza
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
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
the framebuffer part helped
but i already HAD that line set to off when i posted it unless it should be on?
 
Old 09-14-2010, 10:26 AM   #13
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
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.
 
Old 09-14-2010, 11:44 AM   #14
frieza
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
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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
 
Old 09-14-2010, 12:00 PM   #15
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
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 02:46 PM. Reason: Fixed typo.
 
  


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
Running 12.2... A couple minor annoyances. berkough Slackware 8 04-20-2009 01:42 AM
Fedora 10 glitches: Graphics not working fine. crimsonflame123 Fedora 2 11-28-2008 07:58 AM
Couple Minor Default Ubuntu Annoyances GNewbie Ubuntu 2 04-07-2007 07:02 PM
A couple of things needing help with,,, longwolf Linux - Software 7 11-01-2004 08:06 AM
Just a couple of minor Boot questions... Bob Taylor Linux - General 3 03-17-2003 05:14 PM

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

All times are GMT -5. The time now is 09:14 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