SSH [SOLVED]: Unable to start firefox on centOs 6 from iterm2 on mac

SSH [SOLVED]: Unable to start firefox on centOs 6 from iterm2 on mac

Home Forums SSH SSH [SOLVED]: Unable to start firefox on centOs 6 from iterm2 on mac

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36064

    Anonymous

    QuestionQuestion

    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?

    #36065

    Anonymous

    Accepted AnswerAnswer

    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&
    

    Source: https://stackoverflow.com/questions/47824617/unable-to-start-firefox-on-centos-6-from-iterm2-on-mac
    Author: c g
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.