Forum Discussion
OstbergM
10 years agoStaff
Hey again Patrick,
It looks as if your automation-script is not picking up the environment variable, and it depends on where you export your environment variable.
There are of course many ways to do it but if you do it only from the command-line then that environment variable is only active for your SSH session.
If you want to set variables for your session each time you logon then you can add the export to bashrc.
If you want the system to pick it up on startup then i suggest you add it to rc.local which is run on system boot.
or similar file of your distribution version if they changed it recently.
There's also an option of putting it as a standalone script that is called by /etc/profile or /etc/bashrc
I think that should resolve your trouble.
Best of luck!
Mikael
It looks as if your automation-script is not picking up the environment variable, and it depends on where you export your environment variable.
export DISPLAY=:99.0
There are of course many ways to do it but if you do it only from the command-line then that environment variable is only active for your SSH session.
If you want to set variables for your session each time you logon then you can add the export to bashrc.
~/.bashrc
If you want the system to pick it up on startup then i suggest you add it to rc.local which is run on system boot.
/etc/rc.d/rc.local
or similar file of your distribution version if they changed it recently.
There's also an option of putting it as a standalone script that is called by /etc/profile or /etc/bashrc
/etc/profile.d
/etc/bashrc.d
I think that should resolve your trouble.
Best of luck!
Mikael