Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

I'm running FreeBSD in a small VMWare image and I want to keep it headless. Is there a setting someplace that will guarantee I never pull in X as a dependency, or will I have to rely solely on eternal vigilance? Thanks.

See also: the same basic question on SuperUser

share|improve this question
@Maciej Piechotka Do you happen to remember what that is? – Hank Gay Oct 26 '10 at 14:03
Ups. Sorry for deleting - I posted what I found as an answer. – Maciej Piechotka Oct 26 '10 at 14:26
up vote 1 down vote accepted

You need to include -DWITHOUT_X11 as make argument. Depending on how you install ports you can 'include' it (sorry - I cannot find the details right now).

Alternatively there is a ports-mgmt/portconf package in which you can specify WITHOUT_X11, if I understand correctly, in such manner:


Please note that it will work only with optional X11 dependencies - installing KDE will still install X11.

share|improve this answer

According to the mailing list, you should set WITHOUT_X11=yes in /etc/make.conf.

share|improve this answer

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.