Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ubuntu Jaunty (9.04) Server

I need to do some server-side image scripting that apparently only GIMP is able to do.

I'd hate to install X Window and GTK only for that.

Is there a way to install GIMP without all that bloat, so it may work from command-line only?

(A silly question, I know, but perhaps there is a hope?)

share|improve this question
up vote 1 down vote accepted

There is a difference between installing an actual X server, and just the libraries involved (libgtk, Xlib, etc.). I have tried to compile GIMP, and while I can do it without an X server installed, I do still need libgtk, Xlib, and all that installed for it to compile, despite playing with several ./configure flags. ./configure does not recognise flags such as --without-gegl or --without-x11.

I have come to the conclusion that the answer to this question is that it is not possible. However, I don't think it's as bad as it sounds. Chances are you already have a server application running that uses GLib or something.

share|improve this answer
Thanks. I'm probably fine with installing X server as long as I do not have to actually run it... I admit I'm a bit unsure on the subject. – Alexander Gladysh Aug 1 '09 at 10:56

GIMP Batch Mode

The install steps here for the Hardy Ubuntu are on command line.
However, I am not quite sure you can get by without a GTK install... Is that necessary?

Actually, there seems to be a nogtk install option. Have not tried it.

As an extreme alternative, have you considered the portable gimp on a flash drive
maybe used from a separate windows installation for the purpose?

share|improve this answer
I know that it is possible to run and control Gimp from command-line. But is it possible to install it without X Window and GTK? – Alexander Gladysh Jul 31 '09 at 7:59
Yes, I'd like to avoid installing X Window and GTK on my server. – Alexander Gladysh Aug 1 '09 at 10:22
Also: what do you mean by "a separate Windows installation"? – Alexander Gladysh Aug 1 '09 at 10:23
But a 'separate Windows installation', i meant you could copy the data across to another windows system where you could even use a portable GIMP edition to work. You have the install on your flash drive and none on either of the machines. I don't think you can have a flash installation of GIMP usable in Linux easily (that is the reason for the separate Windows reference). – nik Aug 2 '09 at 2:20

It's not quite what you asked but have you looked into ImageMagik. It has always been my solution of choice for command-line editing of image (specially for batch processing).

Here is the reference for installing it in ubuntu

share|improve this answer
If you read the supplied link, you can see he's already tried ImageMagik. – Coops Aug 1 '09 at 7:59
Thanks, but it seems that ImageMagick can'd do what I need:… – Alexander Gladysh Aug 1 '09 at 10:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.