-2

I have installed firefox and xauth on the centOs 6.6 server as follows:

sudo yum install firefox
sudo yum install xauth

On my mac, I am using iTerm2
On my iTerm2 session, I also exported my display as follows:

export DISPLAY=192.168.0.3:0.0

Then from my iTerm2 session I ssh to this centOs 6.6 server as follows

ssh -Y server

Then in my centOs 6.6 server I try to start firefox as follows:

firefox&

Then I get after a long time the connection timed out error as follows:

$ firefox&
[1] 56352
$ connect 192.168.0.3 port 6000: Operation timed out

Can someone please help me fix this so that I can start firefox on centOs 6.6 using from iTerm2 on mac using ssh?

c g
  • 389
  • 1
  • 4
  • 11
  • Stackoverflow is for help with software development. You should consider asking this on [su], [unix.se], or maybe [apple.se]. – Kenster Dec 15 '17 at 02:28
  • This is for software development purpose. I provided info just focusing on issue and steps I tried to fix, instead of writing everything. It would have been helpful to get answer, if anyone knows. Instead of comment which does not help. – c g Dec 15 '17 at 04:44
  • Same question and answer on [superuser](https://superuser.com/q/1277318/54530), [unix & linux](https://unix.stackexchange.com/q/410988/41659), and [ask different](https://apple.stackexchange.com/q/309077/5029). – Kenster Dec 15 '17 at 14:50

1 Answers1

0

Able to open firefox now.
But it is extremely slow
Anything I type in URL, it shows getting typed after big lag.
Same is for any form input values.
I wanted to use it for automation suite.
So probably its useless for any practical purpose.

Following steps worked for me:

1) On centOs server:

sudo yum install firefox
sudo yum install xauth

2) On Mac - installed XQuartz and opened its terminal.
Basically followed this link https://uisapp2.iu.edu/confluence-prd/pages/viewpage.action?pageId=280461906

Did not export DISPLAY this time on xterm on mac.

3) xhost +

4) ssh into the centos server from the xterm (from quartz) not iterm2:

ssh -Y server

5) Started firefox in centos from xterm:

firefox&
c g
  • 389
  • 1
  • 4
  • 11