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 2018
new2BSDlol new2BSDlol is offline
Port Guard
 
Join Date: Jun 2018
Posts: 21
Default How to take screenshots?

What are you using to take screenshots in the 2nd image with the scrnshot-3 command? I like xfce4-screenshooter. Also, what command or program gives you that readout of your system specs alongside the puffy logo?
Reply With Quote
  #2   (View Single Post)  
Old 6th October 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

The program that gives the readout is called Neofetch
To make my screenshots I use the ImageMagick, 'import' command, " scrnshot-3" is just a script, the others, as well are ksh scripts, but named different because they are slightly different.
Code:
date
print -n "Enter Screen shot name: "; read name; print ""
if [ $name = "" ];then
#print "Your welcome, ${name}."
#elif [ $name = "" ];then
print "Your screenshot will be ${name}"
else
import ${name}
fi

for file in *png; do
    new_file=`echo $file | sed 's/.png$//'`
    convert -resize 25% $file $new_file-tmb.png
    #jpegoptim ... $new_file-tmb.png
#mv *.JPG-tmb.jpg tmb
scp *.png me@XXmyserverIP:/path/to/www/images/
#put *.gif
#mv *.png images/


done
The lines that are commented out caused me some problems, I had some help on this forum writing the script.
http://daemonforums.org/showthread.php?t=10470
Note: The 'scp' command ,
Code:
man scp
is munged, my username, and server IP, and the path to the images, that would vary any way depending on the server they are uploaded to. I am prompted for my password, when it uploads.
__________________
My best friends are parrots

Last edited by PapaParrot; 6th October 2018 at 07:49 AM.
Reply With Quote
  #3   (View Single Post)  
Old 6th October 2018
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Spam Deminer
 
Join Date: Sep 2014
Posts: 283
Default

Nice work with the script, but too much work for a lazy person like me. I just use scrot. Quick and easy.
Reply With Quote
  #4   (View Single Post)  
Old 6th October 2018
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by GarryR View Post
The program that gives the readout is called Neofetch
There's a port of this: sysutils/neofetch
Reply With Quote
  #5   (View Single Post)  
Old 7th October 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

Yes , "scrot" will work as well, I am mostly used to using the 'import' command, but it works the same using "scrot":
__________________
My best friends are parrots
Reply With Quote
  #6   (View Single Post)  
Old 7th October 2018
new2BSDlol new2BSDlol is offline
Port Guard
 
Join Date: Jun 2018
Posts: 21
Default

I had a look at the 7th comment here https://www.reddit.com/r/unixporn/co...random_images/ copied the raw "neofetch" script https://raw.githubusercontent.com/dy...aster/neofetch into a new document, installed bash..
$ which bash
/usr/local/bin/bash

..changed the first line of the script from "#!/usr/bin/env bash" to "#!/usr/local/bin/bash" and all good. I got some extra colours on the puffy logo too.
Attached Images
File Type: png neofetch Screenshot_2018-10-08_11-26-46.png (146.4 KB, 76 views)
Reply With Quote
  #7   (View Single Post)  
Old 8th October 2018
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Literally there is a package of neofetch that does exactly this.
Code:
$ doas pkg_add neofetch
(I was even directly cited as the importer in that comments thread.)
Reply With Quote
  #8   (View Single Post)  
Old 8th October 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

Well, that is good, those were the default colors on mine as well, but I did not like it that way, so I made some changes, I wanted it to stand out more , on a white background, so changed the yellow to black.
Any way, looks good.
__________________
My best friends are parrots
Reply With Quote
  #9   (View Single Post)  
Old 8th October 2018
new2BSDlol new2BSDlol is offline
Port Guard
 
Join Date: Jun 2018
Posts: 21
Default

Quote:
Originally Posted by ibara View Post
Literally there is a package of neofetch that does exactly this.
Yes I saw your other post and found it on ports.su http://ports.su/sysutils/neofetch but I don't seem to be able to install it with pkg_add..
$ doas pkg_add neofetch
doas (openbsd63user@i3.fritz.box) password:
quirks-2.414 signed on 2018-03-28T14:24:37Z
Can't find neofetch
Quote:
Originally Posted by GarryR View Post
so I made some changes, I wanted it to stand out more , on a white background, so changed the yellow to black.
Oh I see, I found that too

Last edited by new2BSDlol; 8th October 2018 at 04:15 AM.
Reply With Quote
Old 8th October 2018
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

There is a sysutils/screenfetch but no port for neofetch:

http://openports.se/search.php?so=neofetch

EDIT: or am I wrong about this? I'm running -current (updated 30 minutes ago) and I can't `pkg_add -D snap neofetch`.

I use this to take screenshots:
Code:
imlib2_grab scrot.png
`scrot` is bloat!
__________________
Are you infected with Wetiko?

Last edited by Head_on_a_Stick; 8th October 2018 at 06:03 AM. Reason: Added EDIT note
Reply With Quote
Old 8th October 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

Something I have all ways wondered is how to get a screen shot of the console window, before any xwindows or display manager has been started, like these, but these are on a VM , so I could take the screen shots from the host system.
How, if there is a way to do this on the host system ?

=============================================
__________________
My best friends are parrots

Last edited by PapaParrot; 8th October 2018 at 11:37 AM.
Reply With Quote
Old 8th October 2018
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

Quote:
Originally Posted by GarryR View Post
Something I have all ways wondered is how to get a screen shot of the console window, before any xwindows or display manager has been started, like these, but these are on a VM , so I could take the screen shots from the host system.
How, if there is a way to do this on the host system ?
I don't think that's possible:
http://daemonforums.org/showthread.php?t=9993

You can do it on Linux via the framebuffer, IIRC. But not on OpenBSD.

Quote:
Originally Posted by Head_on_a_Stick View Post
I use this to take screenshots:
Code:
imlib2_grab scrot.png
`scrot` is bloat!
Imlib2? Bloaty McBloatface!

This works in base. No packages/ports required:
Code:
xwd -out screenschot.xwd
Portability is for twats.
Reply With Quote
Old 8th October 2018
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by Head_on_a_Stick View Post
There is a sysutils/screenfetch but no port for neofetch:

http://openports.se/search.php?so=neofetch

EDIT: or am I wrong about this? I'm running -current (updated 30 minutes ago) and I can't `pkg_add -D snap neofetch`.
You are wrong about this. I would know, since I'm the one who imported neofetch.

Do not use openports.se to check on ports. We don't control it and it is wildly out of date and broken.

Code:
$ doas pkg_add -Dsnap neofetch
works just fine.
Reply With Quote
Old 8th October 2018
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 461
Default

Quote:
Originally Posted by ibara View Post
You are wrong about this.
Yes, I am, sorry about that, my mirror must have been slightly behind, it works now.

Thanks for the information about openports.se, that's good to know.

EDIT: @fvgit, that's beautiful, thanks!
__________________
Are you infected with Wetiko?
Reply With Quote
Old 8th October 2018
new2BSDlol new2BSDlol is offline
Port Guard
 
Join Date: Jun 2018
Posts: 21
Default

Quote:
Originally Posted by fvgit View Post
Code:
xwd -out screenschot.xwd
What do you use to transcode the xwd screenshot to jpg or png? I used to fire up GIMP and save as png or jpg but... obviously a bit time consuming. I imagine a script that automatically transcoded the screenshot could make xwd more usable.
(I use
$ xwd > screenshot.xwd
or
$ xwd -root > screenshot.xwd for a full screen capture)
Quote:
Originally Posted by ibara View Post
Code:
$ doas pkg_add -Dsnap neofetch
works just fine.
Thanks
Reply With Quote
Old 8th October 2018
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

Quote:
What do you use to transcode the xwd screenshot to jpg or png?
The 'convert' command worked fine for me, ( I think you need ImageMagick to be installed to have the convert command)
Code:
convert xwd-scrnshot.xwd xwd-scrnshot.png
====

======================================


=========== edit ======
If one prefers, GraphicsMagick , also uses the 'convert' command, but it needs "gm" in front, IE:
Code:
  gm convert  xwd-screenshot.xwd  xwd-scrn.png
__________________
My best friends are parrots

Last edited by PapaParrot; 8th October 2018 at 10:03 PM. Reason: additional note
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 FreeBSD Screenshots BSDKaffee FreeBSD General 181 26th November 2023 11:58 PM
Updating Wikipedia screenshots rpindy OpenBSD General 15 29th May 2011 09:14 PM
How to take a screenshots in xfce? aleunix OpenBSD Packages and Ports 11 2nd June 2008 04:42 AM


All times are GMT. The time now is 11:17 AM.


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