LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Is it possible to take screenshots from LFS? (https://www.linuxquestions.org/questions/linux-from-scratch-13/is-it-possible-to-take-screenshots-from-lfs-4175442966/)

erkant 12-26-2012 03:44 AM

Is it possible to take screenshots from LFS?
 
I had to done LFS and something regarding BLFS for a project in my university. The point is that I need to write a report and include screenshots from the system. Is it possible to somehow take screenshots from LFS/BLFS system? Note that I have dual-booted my laptop, and I have Windows 7, Linux Ubuntu, and my LFS/BLFS system.

spiky0011 12-26-2012 03:51 AM

Hi

I have used a program called scrot which can be used in console mode

http://en.wikipedia.org/wiki/Scrot

Keith Hedger 12-26-2012 05:55 AM

Most desktops have a screenshot app somewhere, the xfce one is called "xfce4-screenshooter" for instance.

There are also plenty of independent screenshot apps around try googling!

TobiSGD 12-26-2012 06:05 AM

Building LFS in a virtual machine will also allow you to make screenshots easily.

erkant 12-26-2012 11:03 AM

Well, I installed both scrot (for which I first needed to install imlib2 and giblib), and also Ksnapshot for my KDE. From my KDE environment I took the screenshots using Ksnapshot. Because in my LFS system if I type startx as root, it will open the KDE system, but when I type startx as a normal user it opens xterm, and there I can change to root user and take screenshots using scrot, but unfortunately if I change to normal user I cannot take screenshots. On the other hand, the worst thing is that, when my LFS system boots up and I log in either as a normal user or root and if I try to take screenshots inside LFS, I get the following error:

giblib error: Can't open X display. It *is* running, yeah?

If someone can help me overcome this, and help me take a few screenshots from my LFS system I would be glad. I'm done with screenshots regarding KDE and Xterm, but I also need screenshots form my base LFS systems to finish my report. Unfortunately, as I have said I have dual-booted (in this case triple-booted), so I haven't installed LFS from a virtual machine, and I don't have time to install it again from a virtual machine. Looking forward to your advices.

spiky0011 12-26-2012 11:37 AM

Hi

An option the base lfs is text only you could copy paste from terminal, save the text to a file

erkant 12-26-2012 12:17 PM

I need the picture of it, not to copy and paste or retype the text to a file.

Keith Hedger 12-26-2012 12:46 PM

Worse comes to worse just snap a pic of your screen with a phone.

spiky0011 12-26-2012 01:22 PM

Hi ok found 2

http://hem.bredband.net/gmogmo/fbgrab/

http://bisqwit.iki.fi/source/snapscreenshot.html

They are old but worth a look

Enlarge Xterm full screen take a snap "bend the rules"

spiky0011 12-26-2012 02:28 PM

1 Attachment(s)
Hi

Snapscreenshot not that good
Had to load into gimp then enlarge

Cant get fbgrab to install sorry best I can do
Not much call for tty screenshots

spiky0011 12-26-2012 03:12 PM

Hi

Ok made some progress, in tty1 run
Code:

sudo /path/to/snapscreenshot -c1 -x1 > ~/Pictures/img.tga
That was the best i could get

Any more help on this let me know

ukiuki 12-26-2012 04:04 PM

The command "import" from the terminal can take screen shots, there are some options that you will have to add to the command, for more details read the man. By the way dimensions(800x600, 1400x900, etc) wont work for virtual machines.
The very bacic of it is:
Code:

import -window root
Regards

spiky0011 12-26-2012 04:12 PM

Dose import work in tty ?

erkant 12-26-2012 04:46 PM

No it doesn't, I just tried. Btw thanks to all of you!

ukiuki 12-26-2012 05:23 PM

Quote:

Originally Posted by erkant (Post 4857334)
No it doesn't, I just tried. Btw thanks to all of you!

Did you do just the way i post the code? Or did you read the man before doing anything?
That is just the very basic of it, not the entire command, it does work in the tty, IF you do it right.
Here you can see it!

Regards


All times are GMT -5. The time now is 03:35 PM.