Dave Elkins

Search It!

Setting up Headless XServer and CutyCapt on Ubuntu

April 10th, 2009 · 3 Comments

This is a list of steps I took to setup a headless XServer and CutyCapt on Ubuntu. Please let me know if you run into any issues using these steps.

The first set of steps is to get the requirements for CutyCapt installed and the Headless XServer setup.


sudo apt-get update
sudo apt-get -y install build-essential
sudo apt-get install xvfb
sudo apt-get install xfs xfonts-scalable xfonts-100dpi
sudo apt-get install libgl1-mesa-dri
sudo apt-get install subversion libqt4-webkit libqt4-dev g++

Now lets download and install CutyCapt. Then we will run a couple of tests to make sure it is working properly.


svn co https://cutycapt.svn.sourceforge.net/svnroot/cutycapt
cd cutycapt/CutyCapt
qmake
make
xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://www.google.com --out=example.png
xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://www.google.com --out=example.html --out-format=html

I hope this helped and let me know if you have any feedback.

update: Per Paul’s comment, you may need to enable the aptitude backports repository in /etc/apt/sources.list, as this is off by default, to get the libqt4 libraries.

references

http://corpocrat.com/2008/08/19/how-to-install-xvfb-x11-server-in-linux-server/

http://cutycapt.sourceforge.net/

http://www.wonko.be/2008/01

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • DZone
  • Wists
  • BlinkList
  • blogmarks
  • Ma.gnolia
  • NewsVine
  • Slashdot
  • StumbleUpon
  • Technorati
  • Facebook
  • TwitThis

Tags: code · install · web

3 responses so far ↓

  • 1 Paul Danter // May 4, 2009 at 10:16 am

    Hi Dave,

    Great instructions. The only thing I’d add is that you also need to enable the aptitude backports repository in /etc/apt/sources.list as this is off by default. This enables you to get the libqt4 packages.

    -Paul

  • 2 Website Screenshots von der Linux Consolen mit CutyCapt » Server » Debian Root // Apr 18, 2010 at 8:05 am

    [...] wie man es auf einem Debian Server hin bekommt. Heute hatte ich dann etwas Zeit und habe diese Anleitung für Ubuntu auf einem Debian Lenny ausprobiert. Ich war überrascht das ich nach nur 5 Minuten ein [...]

  • 3 web development // Jun 25, 2010 at 9:49 pm

    at first, it’s working perfectly, but right now i’m getting this error

    Xlib: connection to “:99.0″ refused by server
    Xlib: Invalid MIT-MAGIC-COOKIE-1 key
    CutyCapt: cannot connect to X server :99
    /usr/bin/xvfb-run: line 173: kill: (12088) – No such process

Leave a Comment