 Reviews:
·JCOM Cable
| Xvfb, Firefox, and screenshotsI've been fighting getting this to work for about 2 hours now, and I just can't figure it out.
killall firefox Xvfb
Xvfb :2 -screen 0 1024x768x24 -fbdir /tmp -nolisten inet6 &
sleep 10
DISPLAY=:2.0 firefox -width 1024 -height 768 http://www.google.com &
sleep 10
xwd -display :2.0 -root -out shot.xwd
xwdtopnm shot.xwd > shot.pnm
pnmscale -xysize 200 150 shot.pnm > shotsmall.pnm
pnmtojpeg shotsmall.pnm > shot_thumb.jpg
pnmtojpeg shot.pnm > shot.jpg
cp *.jpg /home/sites/lan.ihatemyisp.net/web/
rm shot.pnm shot.xwd shotsmall.pnm
The output: 
Notice that Firefox isn't maximized? I can't for the life of me get it to start mazimized. I'd also like to get rid of all the menubars (address, bookmarks, file) but can be tollerated for now...
I've tried with Dillo, and fullscreen works, but Dillo doesn't do CSS to well.
Any ideas?
I've got the sleep commands in there because this is a very low end machine ;)
-- Machinists Mates "We screw, nut, and bolt" |
|
 evilghostPremium join:2003-11-22 Springville, AL | What about starting with the -ProfileManager option, create a new profile without any toolbars, and then script it to use -P [profile]
Pretty stupid of me to hit the FQDN extracted from /home/sites/lan.ihatemyisp.net/web/ as it's NSFW |
|
 Reviews:
·JCOM Cable
| said by evilghost:What about starting with the -ProfileManager option, create a new profile without any toolbars, and then script it to use -P [profile] Pretty stupid of me to hit the FQDN extracted from /home/sites/lan.ihatemyisp.net/web/ as it's NSFW This is a headless machine...but thanks for the tip. |
|
 MaxoYour tax dollars at work.Premium,VIP join:2002-11-04 Tallahassee, FL | reply to IhatemyISP »addons.mozilla.org/en-US/firefox/addon/1659 may do the trick. |
|
|
|
 Reviews:
·JCOM Cable
| Thanks, I'll give it a shot. |
|