Hi, I'm trying to find a simple way to get the raw pixel data, or image of the screen. For example, I can run cat /dev/input0 (to get the mouse coordinates) or cat /dev/video0 (to get the webcam video). I've tried to run cat /dev/nvidia0 but it wont work. Any other ways that this can be done?

It can either be programatic, and as generic as possible (a.k.a it should something standard that exists in the linux shell commands). So if i were to run this on a very dumbed down linux system (not a distro like Ubuntu) it would still work.

P.S. This will later be used similar to a print screen function.

Cheers.