-   Linux From Scratch (
-   -   Is it possible to take screenshots from LFS? (

erkant 12-26-2012 04: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 04:51 AM


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

Keith Hedger 12-26-2012 06: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 07:05 AM

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

erkant 12-26-2012 12:03 PM

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 12:37 PM


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

erkant 12-26-2012 01: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 01:46 PM

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

spiky0011 12-26-2012 02:22 PM

Hi ok found 2

They are old but worth a look

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

spiky0011 12-26-2012 03:28 PM

1 Attachment(s)

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 04:12 PM


Ok made some progress, in tty1 run

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 05: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:

import -window root

spiky0011 12-26-2012 05:12 PM

Dose import work in tty ?

erkant 12-26-2012 05:46 PM

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

ukiuki 12-26-2012 06:23 PM


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!


All times are GMT -5. The time now is 02:00 AM.