Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way for me to take a screenshot in a virtual console?

share|improve this question
add comment

2 Answers

up vote 9 down vote accepted

There's an application called fbgrab that (as the name might suggest) grabs a shot of the current framebuffer. This might not work on newer KMS setups.

sudo apt-get install fbgrab
fbgrab screenshot.png

If that fails, you could always use a VM in VirtualBox.

share|improve this answer
    
When I try fbgrab foo.png it says Error: Couldn't open /dev/fb0.. Any idea why? –  trusktr Nov 19 '12 at 22:24
1  
@trusktr I know this is late, but it may be because you aren't in the video group. Try editing the file /etc/group, and adding your username to the end of the line that starts with "video". If that doesn't work, try using the app as root –  B1KMusic Jan 1 at 2:42
    
@B1KMusic Thanks, I'll have to try it when my new laptop arrives next week. I have Windows in the interim. –  trusktr Jan 19 at 5:29
add comment

To take a screenshot of the first virtual console and save it to a file called "screenshot"

sudo cat /dev/vcs1 > screenshot

Using this method, the screenshots are saved in the text format, you cannot take the screenshot of a virtual console when graphics is enabled.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.