LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2013, 05:07 PM   #1
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Rep: Reputation: 16
Remote Firefox session


I do all of my work for users remotely. Most of the time it is simply an ssh session. Occasionally I need to open some X software and have it display back to my machine. If for example I open an xterm, I will get directories on the remote machine. But if I open a Firefox session, it is looking at the machine I logged in from. I want to open an html file on the remote machine.
 
Old 12-12-2013, 05:39 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,316
Blog Entries: 11

Rep: Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286
In the simplest case, you should be able to do this...

First, on the LOCAL machine - where you are sitting, add the remote maching to your xhosts:

Code:
xhost name_or_IP_of_remote_machine
Then on the REMOTE machine via SSH login:

Code:
export DISPLAY=name_or_IP_of LOCAL_machine:0
firefox
You should not have a local instance of firefox open when you do this, or start the remote firefox with firefox -no-remote.

Last edited by astrogeek; 12-12-2013 at 06:01 PM.
 
2 members found this post helpful.
Old 12-12-2013, 09:08 PM   #3
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Original Poster
Rep: Reputation: 16
I guess I did not make myself clear. I know how to do the above setup, but what happen is when I want to browse files, Firefox is looking at the local machine, not the remote machine. There were html help file located on the remote machine I was after and Firefox kept looking in my home directory on the local machine. I kept searching and found something I never knew about, even though I have used this setup for years. When starting firefox on the remote machine type:

firefox -no-remote

That allowed me to browse to the directory on the remote machine that had the help files.
 
Old 12-12-2013, 09:54 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,316
Blog Entries: 11

Rep: Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286
I think that is what I said... but glad you got it working!
 
Old 12-13-2013, 09:23 AM   #5
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Original Poster
Rep: Reputation: 16
The key to the fix is starting firefox with '-no-remote'

Quote:
Originally Posted by astrogeek View Post
I think that is what I said... but glad you got it working!
The key to the fix was starting firefox with the '-no-remote', otherwise I was still getting my local directory and not the remote directory. I did not see the '-no-remote' in your directions. At any rate, problem solved.
 
Old 12-13-2013, 09:57 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,428

Rep: Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999
I get the feeling I saw this a few days ago. Astrogeek did a great job of suggesting a solution and at the time I felt complete.

One of the ideas was this "or start the remote firefox with firefox -no-remote." See Post #2

I'll give him a help point, you should too.
 
1 members found this post helpful.
Old 12-13-2013, 10:24 PM   #7
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jefro View Post
I get the feeling I saw this a few days ago. Astrogeek did a great job of suggesting a solution and at the time I felt complete.

One of the ideas was this "or start the remote firefox with firefox -no-remote." See Post #2

I'll give him a help point, you should too.
Ah, I completely missed that last sentence. Sorry to everyone. When I read the first part, I thought I had already explained that exactly what was happening. I did not see the '-no-remote'. My apologies to everyone, and at the top of that apology list is Astrogeek.
 
Old 12-14-2013, 03:03 AM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,316
Blog Entries: 11

Rep: Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286
Quote:
Originally Posted by brownwrap View Post
Ah, I completely missed that last sentence. Sorry to everyone. When I read the first part, I thought I had already explained that exactly what was happening. I did not see the '-no-remote'. My apologies to everyone, and at the top of that apology list is Astrogeek.
No apology necessary, thanks for the thought!

Glad that worked and you are welcome!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trying to kill a Firefox window through remote ssh session JimiSc Linux - Software 8 06-26-2012 02:12 AM
Mozilla Firefox v 3.0.11 - Changes to Bookmarks disappear from session to session. Dennola4 Slackware 2 07-19-2009 07:09 PM
Remote X Session Help jmikeneedham Linux - Desktop 1 05-26-2009 04:19 PM
Remote X Session ComputerErik Red Hat 2 06-05-2008 10:15 PM
Remote X Session Help implant25 Linux - Software 1 09-05-2005 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration