Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to see messages running on screen?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Wed Apr 09, 2014 10:11 am    Post subject: [SOLVED] How to see messages running on screen? Reply with quote

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
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1747

PostPosted: Wed Apr 09, 2014 10:55 am    Post subject: Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Wed Apr 09, 2014 1:59 pm    Post subject: Reply with quote

<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"

Code:
dmesg
displays boot messages
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Wed Apr 09, 2014 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Wed Apr 09, 2014 2:38 pm    Post subject: Reply with quote

Oh, what a nice responds...

I hope all my problems will be solved that elegant way :D

Thanks you all

EDIT: what editor from GUI open dmesg file?
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Wed Apr 09, 2014 4:09 pm    Post subject: Reply with quote

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.
:D
_________________
Paul
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3962
Location: Dallas area

PostPosted: Wed Apr 09, 2014 4:15 pm    Post subject: Reply with quote

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
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 1775
Location: Here and Away Again

PostPosted: Wed Apr 09, 2014 5:56 pm    Post subject: Reply with quote

Anon-E-moose wrote:
From the gui, open a term and type "dmesg|less"

Don't forget

Code:
dmesg --human (-H)

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!
_________________
Kind Regards,
~ The Noob Unlimited ~

Sore wa sore, kore wa kore.


Last edited by Chiitoo on Thu Apr 10, 2014 2:59 pm; edited 2 times in total
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Thu Apr 10, 2014 2:08 am    Post subject: Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Apr 10, 2014 2:50 am    Post subject: Reply with quote

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
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Thu Apr 10, 2014 6:04 am    Post subject: Reply with quote

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 :D - however - What does it mean?
Translation, please...

Thanks
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Apr 10, 2014 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Fri Apr 11, 2014 2:39 pm    Post subject: Reply with quote

Dear Khayyam,

Thanks for your helpful response!

I saw many times this 'Tux' and now I understand what is stand for... :D

I am quite disappointed to find out that 'my new title' is based on post number, but not on my significantly improvement knowledge... :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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