Hi all,
is there anyway I can perform a screen capture, or screen shot?
This is for a Ubuntu server, with no GUI.
Can I get a code example?
Hi all,
is there anyway I can perform a screen capture, or screen shot?
This is for a Ubuntu server, with no GUI.
Can I get a code example?
~Conradin~
What are you trying to capture. A screen capture without a GUI doesn't seem to make sense to me. Perhaps you're trying to log what happens in a terminal window - if so, then I use vi, and execute the commands from there (eg :r! date to get date/time) so I can record a sequence.
HTH
Derek
Well, it depends what you want to do. You could use script to capture a terminal session. See man script (or post back).
Or if you want an actual screenshot use fbgrab something like this
You can run that from tty2 and it will grab tty1 after a five second delay.Code:fbgrab -c 1 -s 5 screenshot.png
Then view it with fbi
Code:fbi screenshot.png
Last edited by nothingspecial; May 26th, 2011 at 09:51 AM.
I triedwhat I got is the attached image.Code:sudo fbgrab -c 5 term5.png
its all chopped, an look like its not synching.
The man page to fbgrab says not to use the -s option in conjunction with -c so I didnt.
~Conradin~
If you don't mind, what is on the screen that you are trying to capture?
fbgrab works perfectly for me, even when playing videos.
It could be something to do with permissions on the framebuffer. Do you get any errors when running fbgrab?
I do have to use sudo to get fbgrab to work.
The only error is the output is screwy. I can see the red white and blue in the horizontal shifting lines there so its getting something related to the screen capture. No other errors that I see.
I also installed fbi, that works fine, just like any otehr image viewer.
~Conradin~
I doubt a screen cap will work without X running.
Bookmarks