Ubuntu – take a screenshot of a virtual console


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

Best Answer

There's an application called fbgrab provided by the fbcat package 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 fbcat
fbgrab screenshot.png

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

If you want to take a picture of another TTY, fbgrab takes a -c N argument (where N is replaced with the /dev/ttyN you're using).

So if you wanted tty1:

sudo fbgrab -c 1 Desktop/tty-screenshot.png