How to increase Scrollback lines in Ubuntu(14.04.2) server edition?
I can see only limited lines on terminal by using shift+ pageup. in Ubuntu desktop version, there is option to make scroll-back lines unlimited. how to do it in Ubuntu server version. please suggest.
Solution 1:
The best option would be to use a terminal multiplexer like screen
or tmux
, which are easier to configure.
The other way would be to configure the framebuffer console, by editing /etc/default/grub
and changing GRUB_CMDLINE_LINUX
to include fbcon=scrollback:<value>[k]
, where <value>
is the size in kilobytes you want to assign for the buffer. From the kernel docs:
C. Boot options
The framebuffer console has several, largely unknown, boot options
that can change its behavior.
1. fbcon=font:<name>
Select the initial font to use. The value 'name' can be any of the
compiled-in fonts: VGA8x16, 7x14, 10x18, VGA8x8, MINI4x6, RomanLarge,
SUN8x16, SUN12x22, ProFont6x11, Acorn8x8, PEARL8x8.
Note, not all drivers can handle font with widths not divisible by 8,
such as vga16fb.
2. fbcon=scrollback:<value>[k]
The scrollback buffer is memory that is used to preserve display
contents that has already scrolled past your view. This is accessed
by using the Shift-PageUp key combination. The value 'value' is any
integer. It defaults to 32KB. The 'k' suffix is optional, and will
multiply the 'value' by 1024.
If 32KB isn't sufficient, try 256k
. Or some other value. Trial and error, I guess.