<?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>Digital Ambulation &#187; irssi</title>
	<atom:link href="http://www.alanbriolat.co.uk/tag/irssi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alanbriolat.co.uk</link>
	<description>Life, programming and general geekery</description>
	<lastBuildDate>Mon, 09 Jan 2012 12:07:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Persistent Remote irssi Session</title>
		<link>http://www.alanbriolat.co.uk/2009/03/persistent-remote-irssi-session/</link>
		<comments>http://www.alanbriolat.co.uk/2009/03/persistent-remote-irssi-session/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 15:03:57 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[irssi]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.alanbriolat.co.uk/?p=209</guid>
		<description><![CDATA[I&#8217;ve recently moved back to using irssi as my IRC client, because when combined with GNU screen it can be kept independent of a graphical session, or even better, of a particular client machine (if you have a server somewhere). Since I have a home fileserver at the moment, I want my IRC client to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently moved back to using irssi as my IRC client, because when combined with <a href="http://www.gnu.org/software/screen/">GNU screen</a> it can be kept independent of a graphical session, or even better, of a particular client machine (if you have a server somewhere).  Since I have a home fileserver at the moment, I want my IRC client to always be running there.  However, my usual workflow to do this is to open a terminal, SSH to the server, resume screen, move the window and resize it.  This is far from optimal for something I usually want open&#8230;</p>
<p>Instead, I pieced together a command that I can use as a panel shortcut to do it all for me:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ gnome-terminal <span style="color: #660033;">--geometry</span> 100x30-<span style="color: #000000;">0</span>-<span style="color: #000000;">0</span> <span style="color: #660033;">-x</span> \
        <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #c20cb9; font-weight: bold;">hostname</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #660033;">-t</span> <span style="color: #ff0000;">&quot;screen -D -RR -S irssi irssi&quot;</span></pre></div></div>

<dl>
<dt><tt>gnome-terminal --geometry 100x30-0-0 -x</tt></dt>
<dd>Open &#8220;gnome-terminal&#8221; at the bottom right of the screen with a size of 100 characters by 30.  Run the rest of the command inside the terminal.</dd>
<dt><tt>ssh &lt;hostname&gt; -t</tt></dt>
<dd>Connect to &lt;hostname&gt; and execute the supplied command in an interactive pseudo-TTY.</dd>
<dt><tt>screen -D -RR -S irssi irssi</tt></dt>
<dd>Do whatever necessary to gain control of the &#8220;irssi&#8221; screen session if it exists, otherwise create it and run irssi inside it.</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.alanbriolat.co.uk/2009/03/persistent-remote-irssi-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

