LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 11:50 AM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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, 11:56 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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 12:03 PM. Reason: Very bad fingers, as seen below.
 
1 members found this post helpful.
Old 08-20-2012, 11:58 AM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 12:06 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 12:29 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 12:33 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:14 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
Open Source Consulting | Domain Registration