DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th February 2020
bsdun bsdun is offline
Real Name: Steve
Fdisk Soldier
 
Join Date: Feb 2020
Posts: 48
Default How to capture login screen screenshot?

Greetings!
How can I capture a login screen screenshot of xenodm on OpenBSD?

This method had no success:
1. Switch to ttyC0 with Ctrl-Alt-F1
2. Run this script:
Code:
#!/bin/sh

sleep 5;
xwd -root -out ~/sr.xwd
convert ~/sr.xwd ~/sr.png
rm ~/sr.xwd
3. Quickly switch back to xenodm Ctrl-Alt-F5
4. Err:
Code:
xwd: unable to open display ''
Reply With Quote
  #2   (View Single Post)  
Old 6th February 2020
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: 1,027
Default

Hello, and welcome to daemonforums!

I think the error message you report is a result of the DISPLAY environment variable not being set in the console (ttyC0). This would normally not be set there since it's a text display rather than graphic. xwd looks to that variable to find the display to use, and since it's unset it's reporting an empty string in the error message. So you could try setting it appropriately; for example in your shell script replace the line that runs xwd with something like:

DISPLAY=:0.0 xwd -root -out ~/sr.xwd

This will set the DISPLAY variable just for that line. Alternatively you could do an

export DISPLAY=:0.0

before the xwd command. Possibly you may need to adjust the value of DISPLAY from my example. Check what it is inside X and use that, if necessary.

Hope that helps.
Reply With Quote
  #3   (View Single Post)  
Old 9th February 2020
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

Another way is to put the following line at the end of /etc/X11/xenodm/Xsetup_0:

Code:
sleep 8 && xwd -out /tmp/xenodm.xwd -root &
This will automatically put an xwd-screengrab of your xenodm-screen into /tmp. The sleep timeout may not be necessary.
Reply With Quote
  #4   (View Single Post)  
Old 29th February 2020
ctac ctac is offline
New User
 
Join Date: Feb 2020
Posts: 5
Default

Hi.
If you want to get a screenshot of xenodm on OpenBSD, i think it's because you try to customize it.
I write a tutorial on that.
It's certainly not the best but you can take a look at it here.https://wiki.openbsd.fr.eu.org/doku....nodm-dynamique
Sorry, it's in french, but the code is the code.
Reply With Quote
Reply

Tags
xwd xenodm

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 NetBSD Screenshot IdOp NetBSD General 49 4th October 2023 11:58 AM
Your OpenBSD screenshot xCipherx OpenBSD General 171 6th October 2021 02:52 AM
Recent screenshot PapaParrot Off-Topic 2 6th April 2017 03:07 PM
hide ALL users from gnome login screen jjstorm OpenBSD Installation and Upgrading 3 10th March 2016 11:14 PM
capture serial communication with socat darktrym NetBSD General 3 10th January 2015 10:50 PM


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


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