Thursday 8 December 2011

Remote firefox over ssh

To start firefox remotely on linux machines by forwarding "X" through ssh.

try running firefox as firefox -no-remote (setting MOZ_NO_REMOTE=1 as environment variable should work as well)

we can also use xvfb [ X virtual framebuffer that performs all graphical operations in memory, not showing any screen output to start X applications in background. This will be extremely useful in case of running selenium tests on a headless server.

 To install xvfb::

yum install xorg-x11-server-Xvfb.x86_64


Xvfb can be started as:

Xvfb :1 -screen 0 1024x768x24 &



References:

1) http://unix.stackexchange.com/questions/2794/starting-firefox-on-a-remote-host-over-ssh-opens-a-new-window-locally-what-is

2) http://www.theopensourcerer.com/2007/11/15/remote-firefox-over-xssh/

No comments:

Post a Comment