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 &




No comments:

Post a Comment