a little more about what I'm attempting to do.
I'm trying to make a website thumbnailer, so when someone adds a link, I take a screenshot and thumbnail, similar to snap.com or alexa.
so, I installed scrot on the server, but need to have X server running. Since it is a webserver only it is in runlevel 3. I changed the runlevel to 5. I did not have to reboot. Startx caused all kinds of errors, and would never start. I think it is already running...
so then I try to run scrot, I get this error:
giblib error: Can't open X display. It *is* running, yeah?
I find out that the DISPLAY needs to be set...
so I run "export DISPLAY=:5" to add to environment
I run scrot again. it works, it takes a screenshot of an ugly screen...no window decoration at all, just light green with an xterm window... cool, it somewhat works
Now I try to start a window application to see if I can take a screenshot... I try xeyes. So I run "xeyes &" then scrot again
scrot just hangs and does not take a screenshot anymore.
I have found that the .Xauthority file has a lot to do with it. even after I kill xeyes, I cannot take a screenshot. I have to delete the .Xauthority file and then copy the root .Xauthority file to home directory to take screenshots again.
So, I think when I run xeyes, or any other app like xterm it takes control of the .Xauthority file and then scrot cannot get permission to take a screenshot
Any suggestions?