Artificial intelligent assistant

Manually install fontconfig, without root, for Java While installing Jenkins on a server without root access, I get the following: > AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true To bypass it, two things must be fixed. One is to run with `export JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"` as an environment variable. The second is a bit tricker. You need to install "fontconfig" as per this page. I've tested this on another box where I have root access `sudo apt-get install fontconfig` and it solves the issue. My question is, **how can I manually install`fontconfig` and how to tell `java` where to look for it**.

If your system doesn't have fonts installed, and you're running programs which need them, like Jenkins, the best solution is to update `$JAVA_HOME/lib` folder and add a file named `fontconfig.properties`.

You can copy the contents from this file < (remember to remove the .src extension when copying).

Then, on relevant entries like:


filename.Arial=ARIAL.TTF
filename.Arial_Bold=ARIALBD.TTF
filename.Arial_Italic=ARIALI.TTF
filename.Arial_Bold_Italic=ARIALBI.TTF


Just change them to something like


filename.Arial=/home/frankie/fonts/Arial.ttf
filename.Arial_Bold=/home/frankie/fonts/ArialBold.ttf
filename.Arial_Italic=/home/frankie/fonts/ArialItalic.ttf
filename.Arial_Bold_Italic=/home/frankie/fonts/ArialBoldItalic.ttf


And you're all set!

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy ebba89fa26a70087733a4f225d03f917