Hello All,
Well being from non-CSE background does hamper me many times and here it is again.
I am simply trying to write a script, which will take screenshots of the websites gives as input parameter to it.
Well the algorithm is simple:
1. Open site on your browser
2. Take a screenshot
3. Save the screenshot
Now I tried this on my local Ubuntu (running using VMWare) and here is what i tried:
Code:
sleep 10; xwd -root | convert - screenshot.jpg
and it gives me a screenshot of the screen. (I open up my browse while it was in sleep for 10 seconds).
Now I wanted this to be reproduced on my VPS (Debian, text only with no monitor/screen). So i went and tried, xwd which was not installed on by default.
So I installed the xbase-clients package. But now when I try to run xwd, it says :
Code:
xwd: unable to open display ''
Now I am unable to understand what's wrong. I typed
and it hung my shell.
Can someone kindly guide me through this? Is it really not possible to do this on my VPS, which I was doing with ease on my Ubuntu box.
Regards,
Imoracle