I have recently set up Xvfb on Centos 7 machine.
It is working absolutely fine.
Only problem is that if I quit putty session (remote access) it would keep running Xvfb in background but display will be gone.
So next time when I take remote access via putty first I have to type
export DISPLAY=:99
again, then I start my tests.
How can I make it permanent? I don't see solution to my problem in this thread https://unix.stackexchange.com/questions/14594/how-to-make-exported-shell-variables-permanent
**Update:**
.profile contents:
export M3_HOME=/home/aditi.a/apache-maven-3.5.4/bin
export PATH=$PATH:$M3_HOME
export JMETER_HOME=/home/aditi.a/apache-jmeter-5.0/bin
export PATH=$PATH:$JMETER_HOME
export JAVA_HOME=/usr/java/jdk1.8.0_192-amd64
export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export DISPLAY=:99
**echo variables output:**
$ echo $JAVA_HOME
/usr/java/jdk1.8.0_192-amd64
$ echo $M3_HOME
/home/adit.a/apache-maven-3.5.4/bin
$ echo $DISPLAY
$
*which shell I am running*
$ ps -p $$
PID TTY TIME CMD
30678 pts/14 00:00:00 sh
Asked by Aditi Apte
(25 rep)
Oct 30, 2018, 10:07 AM
Last activity: Oct 31, 2018, 04:48 PM
Last activity: Oct 31, 2018, 04:48 PM