LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2012, 12:50 PM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
reverse ssh howto force a new instance of either FF or Chrome


on the remote computer.

I have reverse ssh working from my house to the office. I can get applications like Putty or gedit to open without an issue, but when i try to open chrome or firefox i get a display error and a msg telling me it is already running, as it is, and that it will open a new screen on my work computer.

it never brings it to the home computer.

what options do i need to add to get /usr/bin/google-chrome to open on the computer at the house via ssh?
 
Old 08-20-2012, 12:56 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,011

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
I've not played with Chrome in this way but with Firefox you can only have one instance of each profile open at a time. So the only way to have Firefox open on two difference X displays is to open a different profile on each.
I'm being lazy so just googled quickly and found this:
http://www.callum-macdonald.com/abou...fox-instances/
The principals apply whenever you're running Firefox on different X servers though which includes remote ones.
You may also need to specify the DISPLAY variable to Firefox when opening remotely.

Last edited by 273; 08-20-2012 at 01:03 PM. Reason: Very bad fingers, as seen below.
 
1 members found this post helpful.
Old 08-20-2012, 12:58 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by 273 View Post
I've not played with Chrome in this way but with Firefox you acn only have one instance of each profile o
Chrome works the same way - the way around it is to make a second profile for these remote connections.
 
1 members found this post helpful.
Old 08-20-2012, 01:06 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,011

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
I don't have Chrome but Chromium does this
Code:
$ chromium
Created new window in existing browser session.
Meaning it opens another window on the same desktop as the first -- so running it remotely doesn't work (neither does it work on a monitor set as a separate X desktop). Perhaps if a DISPLAY is passed to it?
 
Old 08-20-2012, 01:29 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by 273 View Post
I don't have Chrome but Chromium does this
Code:
$ chromium
Created new window in existing browser session.
Meaning it opens another window on the same desktop as the first -- so running it remotely doesn't work (neither does it work on a monitor set as a separate X desktop). Perhaps if a DISPLAY is passed to it?
Tried that before, still doesn't work. The only solution I've found is to set up a new profile.

I run separate X desktops on my machine at work, and I have to have a separate profile for each. The launcher in the taskbar for one monitor is:
Code:
/opt/google/chrome/google-chrome %U
The other monitor is:
Code:
/opt/google/chrome/google-chrome %U --user-data-dir=~/.config/google-chrome0
It works fine, the only downside is you can't share bookmarks between them. So when I want to add a new bookmark, I have to add it to each of them separately.
 
2 members found this post helpful.
Old 08-20-2012, 01:33 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,011

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
Ah, so the same as Firefox then. Good to know, thanks.
 
Old 08-20-2012, 02:44 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
thanks all. glad it is something semi easy to resolve.
 
  


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
HOWTO : Disable Reverse Name Resolution Security Procedure at SSH Client End harmandeep Linux - Server 2 10-06-2011 05:28 PM
[SOLVED] is it possible to keep pan instance keep running remotely ssh matters Slackware 8 02-25-2011 09:54 AM
open an ssh session in a new instance of gnome-terminal? recomboDNA Programming 1 09-14-2010 09:49 PM
LXer: Howto setup Wireless on Chrome OS LXer Syndicated Linux News 0 12-01-2009 10:40 PM
Reverse Tunneling / Reverse port forwarding in SSH dynamics Linux - Networking 3 11-23-2009 11:31 AM


All times are GMT -5. The time now is 02:31 AM.

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