LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-02-2022, 04:07 AM   #1
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,074

Rep: Reputation: 149Reputation: 149
Unhappy pure (non-GUI) terminals after recent years' changes?


I hate to see what some login management software (PAM or is it elogind?) and even the Linux kernel did to the pure (non-GUI) terminals recent years.
        Often I setup my PC to have 12 pure terminals (if I could use certain newer Apple keyboards I'd make 20) and login to them all. Sometimes if you logout or maybe even login too fast (like on 12 w/no passwords) something detects an 'overload' and bans logins for maybe five minutes. Used to work fine to hold down <CTRL>d (^D) to logout but when 'mode con rates & delays' increased & decreased (respectively,) now logging out (sometimes even logging in) overloads. If I logout w/^D it goes faster than years ago, maybe making more than a page (at smallest text on 4K) logouts so something detects dozens logouts then bans logins. This might be relevant for servers, but typically not desktops: how would one disable this behaviour?
        I'm disappointed Linux kernel terminal/console scrollback was removed, and people suggest GNU screen (what about tmux?) to get scrollback (or can you compile scrollback back in?.) I see you get scrollback in screen with ^a or ^a ^[ or ^a ESC, but those seemed to do nothing. Are there any explanations/videos for screen novices/beginners how to get scrollback (or in tmux?)
        More & more SVGAlib but even fbdev things seem to stop working: I hope fbdev is still updated. I used to use pure terminal image viewers (fbi, fbv) and now one won't page down to next image anymore (10+ year old code.) Lately I even tried a terminal video player but seems fullscreen mode no longer works (or maybe doesn't enlarge 1080p to 4K.) I see there's also terminal PDF viewer, probably many other great programs.
        This is the main LQ place (in addition to LFS, Unix areas) many people still use pure terminals so I know I'm not only person disappointed to see less working on terminals as time passes.

Last edited by dchmelik; 04-02-2022 at 04:11 AM.
 
Old 04-02-2022, 05:38 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
I'm cheesed off about the disappearance of scrollback too. What's the point of a console you can't scroll? And I don't think it's much of an answer to say "Use screen". I don't use virtual consoles very often these days, but when I do, I want them to work.
 
8 members found this post helpful.
Old 04-02-2022, 06:42 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Screen put aside, workaround I use sometimes is pipe the output to a pager (less, more, most or even w3m).
 
1 members found this post helpful.
Old 04-02-2022, 07:35 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Piping to a pager isn't always an option.

fdisk /dev/sda
enter 'm' for a reminder of the menu options, and oops, much of it went off the top of the screen, and you can't use fdisk with less. tmux/screen can help with this, but it's clunky to use, and if you end up in the emergency shell of an initrd trying to fix things you're unlikely to have access to either.

Then there's the "how can you scroll back boot-time messages that appeared before the login prompt" issue: answer is you can't any more (and not everything that gets written to /dev/console is logged to /var/log/{messages,syslog} so that's not an option either.

It's seems a very small thing, but it's a major pain in the arse in many different situations.

Hazel is right, The virtual console's are now of very limited value because of this loss of functionality.

P.S. Unless I'm intending to use something ncurses-ish I often just use a M-x shell buffer in emacs.

Last edited by GazL; 04-02-2022 at 07:36 AM.
 
7 members found this post helpful.
Old 04-02-2022, 08:44 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
Then there's the "how can you scroll back boot-time messages that appeared before the login prompt" issue
Recording a video with a cell phone has worked for me.

When a low tech solution can capture information leakage, the perceived security risk reduction by removing scrollback seems nonsensical.
 
4 members found this post helpful.
Old 04-02-2022, 09:01 AM   #6
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,074

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by allend View Post
[...] When a low tech solution can capture information leakage, the perceived security risk reduction by removing scrollback seems nonsensical.
I didn't know that was a 'reason;' larger risks exist from not seeing scrollback--if something fails and you don't know--so anyone claiming it's a necessarily security risk on your own computer not being able to read scrollback is mentally challenged. Of course on most/all Unix (*BSD/*IllumOS) you still have all scrollback/logs...

Last edited by dchmelik; 04-02-2022 at 09:03 AM.
 
Old 04-02-2022, 09:18 AM   #7
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Quote:
Originally Posted by allend View Post
Recording a video with a cell phone has worked for me.

When a low tech solution can capture information leakage, the perceived security risk reduction by removing scrollback seems nonsensical.
A valid approach if you have a video recording capable cell phone to hand. I still use a clam-shell flip phone: I prefer the form factor as it fits easily in a pocket, is more robust than large screened smartphones, it goes a week between charging, and doesn't shout "high value device, please mug me!" to any passing miscreants.

I'm afraid your low tech solution is too high tech for me.
 
4 members found this post helpful.
Old 04-02-2022, 09:41 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,651
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
Quote:
Originally Posted by GazL View Post
I'm afraid your low tech solution is too high tech for me.
Ditto for me. I always thought the whole point of Linux was to be a practical working system and this makes it less practical. If you want toys, use an iPad.
 
6 members found this post helpful.
Old 04-02-2022, 07:56 PM   #9
notzed
Member
 
Registered: Dec 2020
Location: South Australia
Distribution: slackware64-current
Posts: 95

Rep: Reputation: Disabled
Well all the kernel stuff is in dmesg, but that doesn't cover init scripts I suppose. The vga console scrollback used the vga memory and had some pretty annoying quirks anyway like vanishing if you change virtual terminals. The impression I get is that the 'security issues' with the scrollback code were mostly just that it was unmaintained and abandoned.

I use screen a bit but never really use the scrollback thing as it's a bit clumsy since it's modal. [C-a ESC] turns on copy/scrollback mode, you can then just cursor around using the cursor keys or the page up/page down keys - that's probably why it appeared to do nothing (if you do it in an xterm the title gives you a hint that the mode has changed). [ESC] quits back to normal mode. While there you can copy text using some other keys like [return] as per the man page. Screen has some other niceties like being able to leave sessions running after you log out ([C-a d], and later 'screen -r'). Never used tmux but i presume it's more or less the same.

Another option if you're running simple (non-curses) programmes is running a shell from inside emacs via [M-x shell]. That gives you full scrollback and other normal emacs buffer things.
 
Old 04-02-2022, 09:51 PM   #10
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware64-15.0
Posts: 376
Blog Entries: 2

Rep: Reputation: 172Reputation: 172
It would be interesting to speculate why these changes are happening. For example, maybe few are using the console at all, and those who do are using it in an automated and virtualized way, not interactively.

GNU screen scrollback works fine for me. Or the script command. Or often a pipe to tee.
 
Old 04-03-2022, 09:20 AM   #11
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,074

Original Poster
Rep: Reputation: 149Reputation: 149
Thumbs down

Quote:
Originally Posted by notzed View Post
[...] [C-a ESC] turns on copy/scrollback mode, you can then just cursor around using the cursor keys or the page up/page down keys - that's probably why it appeared to do nothing (if you do it in an xterm the title gives you a hint that the mode has changed). [ESC] quits back to normal mode. [...]
Of course I didn't use xterm. On a real terminal the command just makes screen say empty buffer (even though I did something like 'ls -R' of a couple pages of hundreds thousands files, or 'yes haha' a couple pages) then page and arrow keys do nothing.

Last edited by dchmelik; 04-03-2022 at 09:21 AM.
 
Old 04-03-2022, 11:16 AM   #12
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
People, there's always KMSCON for you, and you can configure it as replacement for agetty entries on /etc/inittab, then you get it from login.

All shiny scroll-back features there, fancy hardware accelerated drawing and it have even support for Asian languages. You know, those Chinese or Japanese ideograms.

I tested it in the past and it works quite fine.

With a caveat: apparently it has no GPM (console mouse) support. At least I for one, I did not managed to make the mouse to work.

PS. Apparently, the fbdev is dead and the kernel's guys moves on fast forward to KMS. So, better to expect that this fbdev support will be removed soon, instead of being "updated" . Yeah, you beat a dead horse...

Last edited by LuckyCyborg; 04-03-2022 at 11:37 AM.
 
5 members found this post helpful.
Old 04-03-2022, 01:28 PM   #13
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
The whole point of using the consoles is they're implemented in the kernel with no external dependencies. KMSCON is a userspace terminal app that relies on pango/fontconfig/etc. It may have its niche, but I can't think of a reason why I'd choose to run KMSCON over just using a terminal emulator in a minimal X11 or a Wayland session.
 
3 members found this post helpful.
Old 04-03-2022, 04:55 PM   #14
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 917

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by BenCollver View Post
It would be interesting to speculate why these changes are happening. For example, maybe few are using the console at all, and those who do are using it in an automated and virtualized way, not interactively.
Looks like it started here:
https://github.com/torvalds/linux/co...a6928d9a6afd45

Lack of a maintainer seems to be the main reason. Anyone want to step up?

chris
 
6 members found this post helpful.
Old 04-03-2022, 07:57 PM   #15
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by chris.willing View Post
Looks like it started here:
https://github.com/torvalds/linux/co...a6928d9a6afd45

Lack of a maintainer seems to be the main reason. Anyone want to step up?

chris
Dang good Detective Work, chris !

Thanks

-- kjh ( I miss the console software scrollback support feature occasionally when I do Kernel and QT Updates at run level 3 )
 
2 members found this post helpful.
  


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
[SOLVED] all terminals (and only terminals) in xorg loading SLOWLY after upgrade (wheezy) pepperdreamteam Debian 2 02-03-2013 01:30 PM
Is it possible to run multiple terminals in a debian (non-gui) server installation? emdiesse Linux - Server 2 01-05-2012 12:02 PM
puppy thoughts after having a recent look see -- given recent developments .. jonyo Puppy 0 11-29-2011 08:45 PM
USB problem on linux terminals vie NComputing X300 terminals Aleks` Linux - General 1 12-04-2008 05:39 PM
Terminals - spying on local terminals with ssh BeatRyder Linux - Software 5 10-21-2004 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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