Re: starting remote firefox via SSH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



aha...

ok.. think i've got a partial solution.

as root
 xhost +
 --not exactly sure what this does -- need to reseach,
   but it appears to allow other users/processes access to the
   x env.. (this explanation is prob waaaaay wrong!!)

login as user foo
  su - foo

do a 'firefox -p -no-remote"
 -create a "new" profile to use as user foo, check the box to use this when
  firing up firefox
 -save

from the cmdline
 do "export DISPLAY=:0"

you can now from a term for user foo...
 simply do
   firefox & and it should display

Need to check the bashrc (or whatever gets used at startup) to have this
 done each time ssh is used/foo is logged in..

On Wed, Oct 19, 2016 at 6:29 AM, Gary Stainburn
<gary.stainburn@xxxxxxxxxxxxxx> wrote:
> There are many pages on SSH X forwarding. I'd suggest a quick Google to find
> them.
>
> However, very quickly, you need to ensure that you have
>
> X11Forwarding yes
>
> in your /etc/ssh/sshd_config file on the remote box
>
> Be aware though that Firefox seems to try to be clever.  I use this technique
> from home to access intranet web sites by first making an inbound SSH
> connection. However, if I already have Firefox running locally, then try to
> start a remote Firefox via the SSH connection, it seems to want to action it
> via the local Firefox instance
>
> On Wednesday 19 October 2016 11:23:32 bruce wrote:
>> Hi.
>>
>> This is a "continuation" of the issue of starting firefox for a diff
>> user on a box.
>>
>> If one logs into (SSH) into a remote box, and wants to start firefox
>> on the remote machine, such that all firefox operations occur on the
>> remote machine..
>>
>> Different sites suggest setting the DISPLAY var, as well as xauth,
>> etc.. none of which seem to work.
>>
>> The local/remote are both centos/fed.
>>
>> The goal:
>>   To be able to SSH into a remote box, and run a py script that
>> initiates a py/selenium binding/process to use firefox.
>>   -This requires that the remote box be able to start/run firefox
>>     for the user that the SSH session was started as/under.
>>
>> The SSH/Firefox issue:
>>  -How to SSH into the box, and start firefox?
>>
>>  (Already set up the keys, to allow ssh into the box vai ssh 192.168.1.4)
>>
>>  Tried:
>>  ssh 192.168.1.4
>>   foo@box1# DISPLAY=0: firefox
>>    ---ERROR: cannot open display: 0:
>>
>>
>>   foo@box1# export DISPLAY=0:
>>   foo@box1# firefox
>>   ---No protocol specified
>>  ---ERROR: cannot open display: 0:
>>
>> This has to be simple!
>>
>> Any thoughts??
>> _______________________________________________
>> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
>> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>
>
>
> --
> Gary Stainburn
> Group I.T. Manager
> Ringways Garages
> http://www.ringways.co.uk
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux