Contents
Is the SSH display environment variable not set?
I am using a Amazon Linux 2 (a Fedora/Cent OS like distro) EC2 machine with the Deep Learning AMI (Amazon Linux 2) Version 30.1 AMI. I want to use xclip and gedit in the remote instance. But if I type in xclip I get I have added ForwardX11 yes in the client side’s ~/.ssh/config and X11Forwarding yes in the server side’s /etc/ssh/sshd_config
Why does X11 display not work through ssh login?
I have logged in to a remote server and am trying to display an x application (e.g. firefox). but an error message appears. the below are my attempts to open firefox Black@Black-PC ~ $ ssh -X kwagjj@$labserver -p 122 [kwagjj@James5 ~]$ firefox Error: no display specified [kwagjj@James5 ~]$ exit logout Connection to 143.248.146
Why do I get error no display environment variable specified?
But getting error Error: no DISPLAY environment variable specified on the Node machine. Don’t want to run it in headless mode. Thanks to all in advance. Just try to set environment variable DISPLAY please.
Why does Firefox say no display environment variable?
I have installed it and when I run firefox, it displays: Error: no DISPLAY environment variable specified. How can I fix this problem? Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.
Can you use environment variable in direct command run?
Since direct command run is not an interactive shell, your variable will not work there. source will run script in your current shell and make visible environment variables in that file to your script. I run some cron jobs using ssh connect a remote machine.
Can a ssh connect open a non interactive shell?
The ssh connect open an no-interactive shell. So it will load the environment variables for an non-interactive shell if you comment or delete this block codes. Alternatively, you can just put all of your required environment lines code above that line. Thanks for contributing an answer to Stack Overflow!
What happens when Bash is started non-interactively?
When bash is started non-interactively, to run a shell script, for example, it looks for the variable BASH_ENV in the environment, expands its value if it appears there, and uses the expanded value as the name of a file to read and execute.