Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Increasing console buffer size
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Tue May 06, 2003 3:23 am    Post subject: Increasing console buffer size Reply with quote

Is there a way to increase the size of the console buffer? I am trying to troubleshoot something but there are too many lines in the output. It does not all get captured by the buffer, so that when I use Shift-PgUp to go back, I am missing the first part of the output.
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Tue May 06, 2003 4:06 am    Post subject: Reply with quote

is this a terminal within an x session, or from the straight Command Line?
Back to top
View user's profile Send private message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Tue May 06, 2003 10:18 am    Post subject: Reply with quote

Actually, I'd be interested in how to do this in either situation.
Back to top
View user's profile Send private message
Steffen
Apprentice
Apprentice


Joined: 14 Jul 2002
Posts: 159

PostPosted: Tue May 06, 2003 12:04 pm    Post subject: Reply with quote

In Konsole you can achieve this by clicking on "Settings > History". Another way is to redirect the output into a file, for example:

Code:
emerge kde | tee kde_log.txt
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Tue May 06, 2003 1:35 pm    Post subject: Reply with quote

For xterm rxvt and most other terminals buffer size is a command line option. Ccheck out the amn page for the knosole you're using. For regular consoles I typically pipe the output to less. Though for somenting with as much output as an emerge redirecting to a file is probably better.
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Tue May 06, 2003 2:48 pm    Post subject: Reply with quote

for aterm(and i think eterm) change the startup command (from whichever start menu or icon you use) to include:

Code:

aterm -sl 10000


that makes the buffer damn large, but you can change that number to whatever you see fit...
Back to top
View user's profile Send private message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Tue May 06, 2003 3:58 pm    Post subject: Reply with quote

Is there a way to increase the size for the scrollback buffer when the computer first boots up? I know that dmesg will print some of the output, but it does not capture the output from the scripts that are run at boot.

And is there a way to dump that buffer to a file?
Back to top
View user's profile Send private message
MathFreak
Apprentice
Apprentice


Joined: 07 Jul 2002
Posts: 217
Location: Bethlehem, PA

PostPosted: Tue May 06, 2003 4:08 pm    Post subject: Reply with quote

You could also use screen (awesome program regardless) and enable logging to capture everything. The tee program will also allow you to send the standard input to a file as well as back to standard input. This should do the trick (as long as the debug info goes to standard output and not the stderr)
Code:
<command> | tee <logfile>


As for the output from initscripts, the only thing I could possibly think of would be log files. I'm not certain how to increase the buffer size or dump the output to log files (if it's even possible). Maybe use use a framebuffer screenshot program :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum