republican-creole
site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Uniqs:
4857
Share Topic
Posting?
Post a:
Post a:
Links: ·Forum FAQ ·Attitude Adjustment ·Linux docs ·DistroWatch ·OPLM ·FreeBSD Handbook
AuthorAll Replies


IhatemyISP
MM2 Corbski
Premium
join:2003-01-27
Japan
Reviews:
·JCOM Cable

Xvfb, Firefox, and screenshots

I'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"


evilghost
Premium
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



IhatemyISP
MM2 Corbski
Premium
join:2003-01-27
Japan
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.


Maxo
Your 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.



IhatemyISP
MM2 Corbski
Premium
join:2003-01-27
Japan
Reviews:
·JCOM Cable

Thanks, I'll give it a shot.

Saturday, 11-Feb 17:11:25 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online! © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics