View previous topic :: View next topic |
Author |
Message |
pmam Veteran
Joined: 30 Dec 2013 Posts: 1145
|
Posted: Wed Apr 09, 2014 10:11 am Post subject: [SOLVED] How to see messages running on screen? |
|
|
Hi,
In case of many messages running on screen, like during booting,
or for instance, after command: 'emerge --search app-name' -
How can I see all messages, but not just the last ones?
In case of booting - they entirely disappear...
Last edited by pmam on Mon May 05, 2014 6:02 am; edited 1 time in total |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3105
|
Posted: Wed Apr 09, 2014 10:55 am Post subject: |
|
|
Well, one option is to pipe output into pager like `more` or `less`.
If you want to be able to scroll back to previous output in text mode terminal (not terminal emulator) you have to enable scrollback buffer (or something like that) in kernel and then recompile it |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Apr 09, 2014 1:59 pm Post subject: |
|
|
<shift><page up>
<shift><page down>
Code: | "some command" > "file" | yields blank (or almost blank) screen with commands output saved in "file"
Code: | "some command" | tee "file" | output shows in screen and saved in "file"
displays boot messages _________________ Defund the FCC. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Wed Apr 09, 2014 2:24 pm Post subject: |
|
|
The "tee" command will handle redirection once the system is running, but for
the initial boot sequence there's really only dmesg.
Will |
|
Back to top |
|
|
pmam Veteran
Joined: 30 Dec 2013 Posts: 1145
|
Posted: Wed Apr 09, 2014 2:38 pm Post subject: |
|
|
Oh, what a nice responds...
I hope all my problems will be solved that elegant way
Thanks you all
EDIT: what editor from GUI open dmesg file? |
|
Back to top |
|
|
Logicien Veteran
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Wed Apr 09, 2014 4:09 pm Post subject: |
|
|
To be able to see the last screen output before the login prompt, you can tell agetty to not clear the screen in /etc/inittab.
Code: | c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux |
For the complete kernel and services logs, everything is in the /var/log directory.
_________________ Paul |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6095 Location: Dallas area
|
Posted: Wed Apr 09, 2014 4:15 pm Post subject: |
|
|
pmam wrote: | what editor from GUI open dmesg file? |
From the gui, open a term and type "dmesg|less"
Or if using syslog "less /var/log/dmesg" to see only the boot stuff (minus a few things that don't use the dmesg buffer)
or "less /var/log/messages" depending on how syslog is set up.
For ebuild stuff /var/log/portage/elog _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2551 Location: Here and Away Again
|
Posted: Wed Apr 09, 2014 5:56 pm Post subject: |
|
|
Anon-E-moose wrote: | From the gui, open a term and type "dmesg|less" |
Don't forget
for a similar effect, with some extra perks as a bonus. ^^
Edit:
Forgot to mention that it's (at the time of writing) not available for in stable, as explained below.
Sorry about that! _________________ Kindest of regardses.
Last edited by Chiitoo on Thu Apr 10, 2014 2:59 pm; edited 2 times in total |
|
Back to top |
|
|
Logicien Veteran
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Thu Apr 10, 2014 2:08 am Post subject: |
|
|
I do not see the --human (-H) option in the manual and the help (-h) of dmesg. The option do not work. Do I have to set a USE flag to util-linux to have this option? _________________ Paul |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Apr 10, 2014 2:50 am Post subject: |
|
|
Logicien wrote: | I do not see the --human (-H) option in the manual and the help (-h) of dmesg. The option do not work. Do I have to set a USE flag to util-linux to have this option? |
Logicien ... no, you need >= 2.23.x (so the current ~arch ... 2.24.1-r2).
v2.23-ReleaseNotes wrote: | - supports new command line options --bytes and --human |
best ... khay |
|
Back to top |
|
|
pmam Veteran
Joined: 30 Dec 2013 Posts: 1145
|
Posted: Thu Apr 10, 2014 6:04 am Post subject: |
|
|
Hi,
How can I change to 2.23 in order to have --human - ?
I am quite new in gentoo so please try to be more detailed.
EDIT: BTW - I see that I promoted from 'noob' to 'Tux's lil' helper' -
I am quite proud from the great honor - however - What does it mean?
Translation, please...
Thanks |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Apr 10, 2014 11:33 am Post subject: |
|
|
pmam wrote: | How can I change to 2.23 in order to have --human? I am quite new in gentoo so please try to be more detailed. |
pman ... you would "keyword" the package like so ...
/etc/portage/package.accept_keywords
Code: | =sys-apps/util-linux-2.24.1-r2 |
... the "=" states, equal to but not above, a "sys-apps/util-linux" would keyword all packages regardless of versioning, a ">=" would equate to greater than or equal to. The Gentoo Handbook section on mixing software branches explains this in more detail.
pmam wrote: | EDIT: BTW - I see that I promoted from 'noob' to 'Tux's lil' helper' - I am quite proud from the great honor :D - however - What does it mean? Translation, please... |
It's asigned based on post number. "Tux" is the mascot of linux (a penguin), "lil" being an abreviation of "little" ... and helper ... its a reference to Santa (who also is said to have "little helpers").
best ... khay |
|
Back to top |
|
|
pmam Veteran
Joined: 30 Dec 2013 Posts: 1145
|
Posted: Fri Apr 11, 2014 2:39 pm Post subject: |
|
|
Dear Khayyam,
Thanks for your helpful response!
I saw many times this 'Tux' and now I understand what is stand for...
I am quite disappointed to find out that 'my new title' is based on post number, but not on my significantly improvement knowledge... |
|
Back to top |
|
|
|