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, then 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. Unity.If the Unity graphical environment is used (relevant only for Ubuntu), open the xserverrc configuration file:

sudo gedit /etc/X11/xinit/xserverrc

Replace the string:

exec /usr/bin/X -nolisten tcp "$@"

with:

exec /usr/bin/X "$@"

Open the lightdm.conf configuration file:

sudo gedit /etc/lightdm/lightdm.conf

Add the string to the end of the [SeatDefaults] group:

xserver-allow-tcp=true

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

sudo ln -s /home/foresight/.Xauthority /opt/Foresight/9.2/bin/.Xauthority

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

export DISPLAY=localhost:0.0

  1. It is necessary to add 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