DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th October 2016
fvgit's Avatar
fvgit fvgit is offline
Fdisk Soldier
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 72
Default Is there a way to take a screenshot of the text console?

Some people apparently use a vga-splitter cable and a framegrabber card on a 2nd pc (e.g. to take BIOS or POST screenshots). The results are slick. If you have the required hardware, that is.

Then there's the analog route: Digital Camera > Display, but not very elegant.

Other than hooking up a serial cable and redirecting console output, are there any software solutions that work in OpenBSD?

I mean sth. like the Linux-centric fbdump (which grabs the Linux framebuffer device) or snapscreenshot (requires Linux /dev/vcs*).
Reply With Quote
  #2   (View Single Post)  
Old 6th October 2016
ibara's Avatar
ibara ibara is offline
WR Slowest SNOBOL4 laptop
 
Join Date: Jan 2014
Posts: 522
Default

I think I would fire up X and record an xterm window (using ffmpeg or some such).
Reply With Quote
  #3   (View Single Post)  
Old 6th October 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,277
Default

Quote:
Originally Posted by fvgit View Post
I mean sth. like the Linux-centric fbdump (which grabs the Linux framebuffer device) or snapscreenshot (requires Linux /dev/vcs*).
If all you are wanting is to capture screenshots, graphics/scrot may be worth your consideration.
Reply With Quote
  #4   (View Single Post)  
Old 6th October 2016
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 537
Default

I remember years ago, looking into this--I think I used it to get screenshots of a Dragonfly installation.

vidcontrol -p < /dev/ttyv0 > shot1.scr

No guarantees though, I haven't tried on OpenBSD.
Reply With Quote
  #5   (View Single Post)  
Old 6th October 2016
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 537
Default

Ah, going through my old notes, after that, one has to run scr2png.

Just tested on FreeBSD.
Code:
vidcontrol -p < /dev/ttyv1 > screen.scr
scr2png < screen.scr>screen.png
Which worked.
Again, don't know if OpenBSD has the same ability, will possibly put on a VM or laptop later to test.

Last edited by ocicat; 6th October 2016 at 02:36 PM. Reason: Add missing [/code] tag.
Reply With Quote
  #6   (View Single Post)  
Old 6th October 2016
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 537
Default

Sorry, just fired up OpenBSD in a VM and there doesn't seem to be a vidcontrol or scr2png package.
Reply With Quote
  #7   (View Single Post)  
Old 6th October 2016
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 763
Default

Quote:
Originally Posted by ocicat View Post
If all you are wanting is to capture screenshots, graphics/scrot may be worth your consideration.
Doesn't this only work under X ?
Reply With Quote
  #8   (View Single Post)  
Old 6th October 2016
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 143
Default

As per the page,
Quote:
Description
scrot is a commandline screen capture util like "import", but using
imlib2. It has lots of options for autogenerating filenames, and can
do fun stuff like taking screenshots of multiple displays and glueing
them together.
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #9   (View Single Post)  
Old 6th October 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,277
Default

Quote:
Originally Posted by IdOp View Post
Doesn't this only work under X ?
Yes, scrot is a simple screen capture utility which can capture xterm(1) output. I do not know if this entirely meets fvgit's needs or not, but perhaps it needs to be mentioned.

Having said that, if capturing all POST output (which may exceed what is displayed on a single screen...) is important, I would suggest connecting a serial cable to a second OpenBSD system & saving all output through cu(1) & script(1).
Reply With Quote
Old 9th October 2016
fvgit's Avatar
fvgit fvgit is offline
Fdisk Soldier
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 72
Default

Thanks for all the suggestions!

The idea was to find out if it's possible to take screencaptures of just the text console. That is the exact screen contents as they appear without X11. Basically what scottro described for FreeBSD in his posts above.

Capturing an xterm-Window is trivial, even the base-system includes that functionality with xwd(1). I'm using it with great success to snap pictures of my xdm-setups for later use.
I have even experimented with an fvwm-config where I can automatically e-mail window screenshots with a mouse-click: press button, enter email-address & confirm. And off it goes... Works like a charm on a simple base-install. Image format conversion would still need additional software like xv, of course. Cool nonetheless.

Scrot looks interesting, I will need to evaluate it.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Your OpenBSD screenshot xCipherx OpenBSD General 92 2 Weeks Ago 06:48 PM
Installing dependencies for Shutter Screenshot Tool bsd007 FreeBSD General 2 17th September 2014 03:42 PM
Your NetBSD Screenshot IdOp NetBSD General 3 2nd December 2010 06:33 PM
Fvwm - Desktop screenshot - impressive! aleunix Other BSD and UNIX/UNIX-like 16 5th September 2010 10:15 PM
X kills console text IdOp OpenBSD General 12 12th May 2009 06:12 PM


All times are GMT. The time now is 03:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick