I'm SSH-ing to my PC from my phone, and I have to run export DISPLAY=:0.0
every time. Is there any way I can set it on my PC so that I don't have to do it on my phone?
You can write at the end of your .bashrc
file:
export DISPLAY=:0.0
You can also have a condition for ssh
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_CONNECTION" ]; then
export DISPLAY=:0.0
fi
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments