Outputting Graphics via X.org Physical Display

On setting up BI server, it is recommenced to display graphics via virtual Xvfb. The X.org physical display can be used as alternative option. Execute the following actions to set it up:

  1. Grant access to DISPLAY 0.0. To do this, open the X0.hosts file by executing the command in the terminal:

sudo nano /etc/X0.hosts

Add the string in the file that opens:

localhost

  1. Allow local net connection to X server.

    1. GNOME.If the system uses the GNOME graphical environment, open the custom.conf file by executing the command in the terminal:

sudo nano /etc/gdm/custom.conf

Add the strings in the file that opens:

[security]

DisallowTCP=false

    1. KDE.If the KDE graphical environment is used, open the /etc/kde/kdm/kdmrc file by executing the command in the terminal:

sudo nano /etc/kde/kdm/kdmrc

Find the ServerArgsLocal= parameter in the [X-:*-Core] section of opened file and remove the -nolisten tcp arguments from its value.

  1. Execute the command (the .Xauthority file is created when the user logs in the graphical interface from physical console, X11 must be started not from root):

sudo ln -s /home/foresight/.Xauthority /opt/foresight/10.4/bin/.Xauthority

  1. Redetermine the DISPLAY variable in /opt/foresight/fp10.x-biserver/etc/envvars and specify number of the 0 display, which corresponds by default to the X.org physical display (X11, X server):

export DISPLAY=localhost:0.0

  1. It is necessary to add an environment variable specifying user session file at the X server to the variable file of the Apache HTTP Server environment:

export XAUTHORITY=/home/foresight/.Xauthority

  1. After all changes are made, restart the computer and log in under the user by using the graphical display manager.

  2. Start or restart Apache HTTP Server manually:

sudo service httpd start

Installing DPI

  1. Create the .Xdefaults file with the Xft.dpi:96 contents in the home directory by executing the commands:

cd ~

echo > .Xdefaults "Xft.dpi:96"

  1. Restart the system.

See also:

Advanced Settings