LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 12-26-2012, 04:44 AM   #1
erkant
Member
 
Registered: Oct 2012
Posts: 51

Rep: Reputation: Disabled
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.
 
Old 12-26-2012, 04:51 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245
Hi

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

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

Last edited by spiky0011; 12-26-2012 at 04:55 AM. Reason: added link
 
Old 12-26-2012, 06:55 AM   #3
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 993

Rep: Reputation: 214Reputation: 214Reputation: 214
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!

Last edited by Keith Hedger; 12-26-2012 at 06:57 AM.
 
Old 12-26-2012, 07:05 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,651
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Building LFS in a virtual machine will also allow you to make screenshots easily.
 
Old 12-26-2012, 12:03 PM   #5
erkant
Member
 
Registered: Oct 2012
Posts: 51

Original Poster
Rep: Reputation: Disabled
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.

Last edited by erkant; 12-26-2012 at 12:28 PM.
 
Old 12-26-2012, 12:37 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245
Hi

An option the base lfs is text only you could copy paste from terminal, save the text to a file
 
Old 12-26-2012, 01:17 PM   #7
erkant
Member
 
Registered: Oct 2012
Posts: 51

Original Poster
Rep: Reputation: Disabled
I need the picture of it, not to copy and paste or retype the text to a file.
 
Old 12-26-2012, 01:46 PM   #8
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 993

Rep: Reputation: 214Reputation: 214Reputation: 214
Worse comes to worse just snap a pic of your screen with a phone.
 
Old 12-26-2012, 02:22 PM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245
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"

Last edited by spiky0011; 12-26-2012 at 02:39 PM.
 
1 members found this post helpful.
Old 12-26-2012, 03:28 PM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245
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
Attached Images
File Type: png snapshot.png (33.0 KB, 9 views)

Last edited by spiky0011; 12-26-2012 at 03:51 PM.
 
1 members found this post helpful.
Old 12-26-2012, 04:12 PM   #11
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245
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
 
Old 12-26-2012, 05:04 PM   #12
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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
 
Old 12-26-2012, 05:12 PM   #13
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,762
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245
Dose import work in tty ?
 
Old 12-26-2012, 05:46 PM   #14
erkant
Member
 
Registered: Oct 2012
Posts: 51

Original Poster
Rep: Reputation: Disabled
No it doesn't, I just tried. Btw thanks to all of you!
 
Old 12-26-2012, 06:23 PM   #15
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by erkant View Post
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
 
  


Reply

Tags
blfs, lfs, screenshots


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 03:26 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 09:13 PM


All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration