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:
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
Allow local net connection to X server.
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
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.
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.5/bin/.Xauthority
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
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
After all changes are made, restart the computer and log in under the user by using the graphical display manager.
Start or restart Apache HTTP Server manually:
sudo service httpd start
Create the .Xdefaults file with the Xft.dpi:96 contents in the home directory by executing the commands:
cd ~
echo > .Xdefaults "Xft.dpi:96"
Restart the system.
See also: