<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Beyond Syntax &#187; firefox</title>
	<atom:link href="http://www.beyond-syntax.com/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beyond-syntax.com</link>
	<description>Looking beyond syntactical meaning</description>
	<lastBuildDate>Thu, 01 Jul 2010 22:45:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Remote Instance of Firefox via SSH -X</title>
		<link>http://www.beyond-syntax.com/2009/07/remote-instance-of-firefox-via-ssh-x/</link>
		<comments>http://www.beyond-syntax.com/2009/07/remote-instance-of-firefox-via-ssh-x/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 18:46:57 +0000</pubDate>
		<dc:creator>Michael Schultz</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.beyond-syntax.com/?p=95</guid>
		<description><![CDATA[Firefox is a pretty decent web browser.  However, it can be a bit more clever than I want it at times.  For example, if I want to SSH into a remote machine and launch a instance of Firefox &#8212; to take on the remote machine&#8217;s IP address or access localhost &#8212; I would have to [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Read about the Firefox web browser" href="http://www.getfirefox.com/">Firefox</a> is a pretty decent web browser.  However, it can be a bit more clever than I want it at times.  For example, if I want to SSH into a remote machine and launch a instance of Firefox &#8212; to take on the remote machine&#8217;s IP address or access localhost &#8212; I would have to close the local instance then launch the remote instance.  That is annoying and unacceptable behaviour.</p>
<p>Luckily, the solution is fairly straightforward.  Once you have SSH&#8217;d into a remote host (using <code>ssh -X</code>), you simply need to run <code>firefox -no-remote</code>.  Of course you may want to tack on <code>&gt; /dev/null</code> and an ampersand <code>&amp;</code> to ignore the output and background the task. (Thanks to <a href="http://www.theopensourcerer.com/2007/11/15/remote-firefox-over-xssh/">The Open Sourcer</a>.)</p>
<p>With Firefox 2.x this behaviour was somewhat undocumented, but with Firefox 3.x, running <code>firefox --help</code> from the command line shows the <code>-no-remote</code> option.  It also seems that the default (i.e. <code>-remote</code>), is &#8220;documented&#8221; on Mozilla&#8217;s site for <a href="http://www.mozilla.org/unix/remote.html">Remote Control of UNIX Mozilla</a>.</p>
<p>If you wanted to make the <code>-no-remote</code> behaviour the default when SSH&#8217;d into remote machines, you could simply add a few lines to your bash profile to alias the <code>firefox</code> command.</p>
<pre># If we're forwarding X over SSH, make firefox execute on this machine
if [ -n "$SSH_CONNECTION" -a -n "$DISPLAY" ]; then
    alias firefox='firefox -no-remote'
fi</pre>
<p>At least that is what I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beyond-syntax.com/2009/07/remote-instance-of-firefox-via-ssh-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
