LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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/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, 12:56 PM   #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 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,573

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

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
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: 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, 02: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


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
Reverse Tunneling / Reverse port forwarding in SSH dynamics Linux - Networking 5 02-07-2017 08:19 AM
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

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

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