I have CentOS 7 in the cloud where I can do only remotely ssh root@docean.com
.
But remotely, how can I run a session of Google Chrome or Chromium on it and see the GUI remotely to browse remotely?
I have already tried all the references but none solve it. I am connecting from OSX 10.12x to CentOS 7.
Step 1:
$ which xauth
/usr/bin/xauth
$ cat /etc/ssh/sshd_config | grep X11
X11Forwarding yes
X11DisplayOffset 10
#X11UseLocalhost yes
#X11Forwarding no
$ systemctl restart sshd.service
$ systemctl stop iptables.service
Step 2: Failing?
$ echo $DISPLAY
$ ssh -v -X root@docean.com
...
debug1: X11 forwarding requested but DISPLAY not set
...
$ export DISPLAY=:0.0 && xclock
xclock Error: Can't open display:
$ chromium-browser https://icanhazip.com
[28207:28207:0323/200459.551890:ERROR:browser_main_loop.cc(272)] Gtk: Locale not supported by C library.
Using the fallback 'C' locale.
[28207:28207:0323/200459.557234:ERROR:browser_main_loop.cc(272)] Gtk: cannot open display:
ssh -X
and chromium is the only application opening on the wrong display, xterm or firefox open in the correct one, as if chromium isn't honouring the environmentDISPLAY
– Alex Dec 21 '18 at 00:01