Can I emulate a graphics card using software, and use it for mining? My name is Ben and I'm working with a server technician called Fab.
We are using Team-viewer to work together on this question to make it as concise and to the point as possible.

We have set up a Ubuntu 13.10 VPS server

Next we downloaded http://www.forked.net/~apex/cgmon/cgmon.tcl (a .Tcl script found on this forum page: https://bitcointalk.org/index.php?topic=353436.0

(Fab:)We managed to install X Server and Lite KDE Desktop environment, and we can successfully connect via VNC to the VPS desktop.


(Fab:) So now: what we would like to understand is whether the host machine where the VPS container is sitting must have a graphics card or if mining using a VPS server could be achieved even without the host server having a physical card, perhaps in a different/emulated way?
The Theory
Now we also want to hook this all up to Cairo grahics lib http://cairographics.org/ (this is a pure c++ graphic processing library for pre-generating images on the server side so there should be no need for a graphics card).
My personal line of thought (Ben's) is that a hash has binary data.
UFUYFYF*^R&amp;^R*IYG*R*FUYFUYFUDKYTDLUFU...

but much longer...
now go and get any image from your desktop and open it with a text editor and you will see some thing like this:
ÿØÿà JFIF  H H  ÿÛ C ...

The difference is not much (in my opinion) because graphics cards are made to process images such as .jpg / .png/ .gif/ .bmp, etc. They do this very fast because the start of the file or maybe even the extension is telling the graphics card how to decrypt; where as a hash is the same, only the description method is a secret that must be tried with many variations of description (hence the term hashing refers to multiple attempts).
Now If you read the wiki link above it explains that Tcl was originally &quot;born out of frustration&quot; and If you scroll down the Wiki to Features one listed is: Extensibility, via C, C++, Java, and Tcl.
So, seen as libcairo is pure c++ and Tcl can run C++ commands, what I would like to know is how can we link the two...
Chances are there is no GPU in the physical host server, servers don't need them. 

You could CPU mine, but it would be pointless for Bitcoin, Litecoin and most of the Alt-coins because you just wouldn't have enough processing power to generate anything but dust.

Sorry it's not a helpful answer, but it's better than no answer!