<?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>Michael Mayhew &#187; Linux</title>
	<atom:link href="http://blog.mmayhew.com/category/tech/linux-tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mmayhew.com</link>
	<description>A geek&#039;s perspective on technology and politics</description>
	<lastBuildDate>Tue, 13 Apr 2010 05:18:24 +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>Irssi: A Console Based IRC Client (Plus More!)</title>
		<link>http://blog.mmayhew.com/irssi-a-console-based-irc-client-plus-more/</link>
		<comments>http://blog.mmayhew.com/irssi-a-console-based-irc-client-plus-more/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 04:04:00 +0000</pubDate>
		<dc:creator>mmayhew</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[irssi]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[twirssi]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.mmayhew.com/?p=21</guid>
		<description><![CDATA[I&#8217;ve been using Irssi for several years and love it more than ever. It&#8217;s a CLI IRC client for Linux.
IMHO, the major benefit for using Irssi is coupling it with screen. Screen allows you to have a terminal session on a Linux server that you can detach from and reattach later.
If you have a Linux [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://irssi.org/">Irssi</a> for several years and love it more than ever. It&#8217;s a <a href="http://en.wikipedia.org/wiki/Command-line_interface">CLI</a> IRC client for Linux.</p>
<p>IMHO, the major benefit for using Irssi is coupling it with <a href="http://www.gnu.org/software/screen/">screen</a>. Screen allows you to have a terminal session on a Linux server that you can detach from and reattach later.</p>
<p>If you have a Linux server with SSH accessible to the Internet, this can become very powerful.  You launch Irssi within a screen session and leave it running 24/7. From wherever you are, you can SSH to your Linux server and reattach to the screen session.  Now you can see everything that happened while you were gone.</p>
<p>This is where it starts to get interesting. The plug-in support is one of my favorite features of Irssi. One plug-in works with screen and marks you away when you detach from your screen session.  Then when you re-attach, it marks you as being back and shows you any messages you received while you were gone.</p>
<p>My favorite plug-in is <a href="http://twirssi.com/">Twirssi</a>.  This is a <a href="http://www.twitter.com">Twitter</a> client that lives within Irssi. You can very easily view your time-line, replies and DM&#8217;s all in one window. Twirssi also makes replying, retweeting and tweeting very easy from command line.</p>
<p>The plug-ins for Irssi are wrote in Perl so it&#8217;s very easy to tweak the plug-in&#8217;s to your liking.  For instance, there was a nice notify script that wrote to a file when someone mentioned your name in a channel. I modified the script to e-mail me instead. That way, I could SSH to my server, attach my screen session and reply if I was available.</p>
<p>Of course, Irssi supports joining multiple networks, channels, etc. The key bindings are very similar to screen&#8217;s key bindings so they are easy to remember.</p>
<p>Below are some screen shots of Irssi running within a screen session, along with the Twirssi plug-in.</p>

<a href='http://blog.mmayhew.com/irssi-a-console-based-irc-client-plus-more/1-attach_screen/' title='Attaching to the Screen Session'><img width="150" height="150" src="http://blog.mmayhew.com/wp-content/uploads/2009/10/1-attach_screen-150x150.png" class="attachment-thumbnail" alt="" title="Attaching to the Screen Session" /></a>
<a href='http://blog.mmayhew.com/irssi-a-console-based-irc-client-plus-more/2-irssi-main/' title='Main Irssi Screen'><img width="150" height="150" src="http://blog.mmayhew.com/wp-content/uploads/2009/10/2-Irssi-Main-150x150.png" class="attachment-thumbnail" alt="" title="Main Irssi Screen" /></a>
<a href='http://blog.mmayhew.com/irssi-a-console-based-irc-client-plus-more/3-channel_view/' title='Channel View'><img width="150" height="150" src="http://blog.mmayhew.com/wp-content/uploads/2009/10/3-channel_view-150x150.png" class="attachment-thumbnail" alt="" title="Channel View" /></a>
<a href='http://blog.mmayhew.com/irssi-a-console-based-irc-client-plus-more/4-twirssi_view/' title='Twirssi'><img width="150" height="150" src="http://blog.mmayhew.com/wp-content/uploads/2009/10/4-twirssi_view-150x150.png" class="attachment-thumbnail" alt="" title="Twirssi" /></a>

<p>Helpful Links:</p>
<p>Main Irssi Site:  <a href="http://irssi.org/">http://irssi.org/</a></p>
<p>Using Irssi Efficiently: <a href="http://quadpoint.org/articles/irssi">http://quadpoint.org/articles/irssi</a></p>
<p>Screen: <a href="http://www.gnu.org/software/screen/">http://www.gnu.org/software/screen/</a></p>
<p>Twirssi: <a href="http://twirssi.com/">http://twirssi.com/</a></p>
<p>As always, if you have any questions or would like me to go in to more detail, leave a comment and I&#8217;ll be happy to oblige.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mmayhew.com/irssi-a-console-based-irc-client-plus-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use SSH as a Proxy Server</title>
		<link>http://blog.mmayhew.com/use-ssh-as-a-proxy-server/</link>
		<comments>http://blog.mmayhew.com/use-ssh-as-a-proxy-server/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 04:24:29 +0000</pubDate>
		<dc:creator>mmayhew</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[firewall avoidance]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[secure browsing]]></category>
		<category><![CDATA[socks proxy]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.mmayhew.com/?p=16</guid>
		<description><![CDATA[Not many people know you can easily create a SOCKS proxy with your SSH session, point your browser to it and browse securely on any network.
There are many different situations this may be handy:

You could be on a public network and not want your web traffic visible to snoopers.
You could be on a computer that [...]]]></description>
			<content:encoded><![CDATA[<p>Not many people know you can easily create a SOCKS proxy with your SSH session, point your browser to it and browse securely on any network.</p>
<p>There are many different situations this may be handy:</p>
<ul>
<li>You could be on a public network and not want your web traffic visible to snoopers.</li>
<li>You could be on a computer that doesn&#8217;t have direct access to the Internet but have SSH access to an Internet accessible computer.</li>
<li>You could be at work and not want your web traffic monitored. AKA: Firewall Avoidance.  I, of course, am not promoting firewall avoidance but it is definitely a possibility with SSH.</li>
</ul>
<p>Now let&#8217;s get down to how you do this:</p>
<p><strong>Windows</strong></p>
<p>I&#8217;m assuming you already know how to SSH using PuTTY.  If you need help with this, leave a comment and I&#8217;ll provide more detail.</p>
<p>In PuTTY, go to Connection -&gt; SSH -&gt; Tunnels.  Type any number in the &#8216;Source port&#8217; text field.  I like using 9999 myself.  Then select the &#8216;Dynamic&#8217; radio button.  Then click Add.</p>
<p>That&#8217;s the only change you need to make before connecting to your SSH host.  Now when you connect, you can use port 9999 locally as a SOCKS proxy.  I&#8217;ll explain how to use this after the Linux section.</p>
<p><strong>Linux</strong></p>
<p>Again, I&#8217;m assuming you already know how to SSH from command line.  All you have to do is add &#8220;-D &lt;port&gt;&#8221; to your SSH command.  If you were going to use port 9999 as your local SOCKS proxy, your command may look like:</p>
<blockquote><p>ssh -D 9999 username@hostname</p></blockquote>
<p>Once you connect, you will have a SOCKS proxy running locally on your specified port.</p>
<p><strong>OK, Now What?</strong></p>
<p>So now you have the SOCKS proxy running locally.  You can point your browser, IM client or any application that has SOCKS proxy support. Here are a few examples:</p>
<blockquote><p>Internet Explorer: Tools -&gt; Connections -&gt; LAN Settings -&gt; &#8220;Use a proxy server [...] &#8221; -&gt; Advanced -&gt; SOCKS</p>
<p>Firefox: Edit -&gt; Preferences -&gt; Advanced -&gt; Network -&gt; Settings -&gt; Manual proxy connection -&gt; SOCKS Host</p>
<p>Pidgin (gaim): Tools -&gt; Preferences -&gt; Network -&gt; Proxy type -&gt; SOCKS 5</p></blockquote>
<p>If you poke around other applications you&#8217;ll find many support a SOCKS proxy and many do not.</p>
<p>Tips:</p>
<blockquote><p>Even when using a SOCKS proxy, most applications will do DNS resolution before going through the proxy.  Many applications have settings for this.  In Firefox type &#8220;about:config&#8221; in the url bar and find the following setting&#8221;network.proxy.socks_remote_dns&#8221; and change it to true.  In Pidgin, there is a checkbox for &#8220;Use remote ..&#8221;</p>
<p>In Linux, if you are getting a permission issue, you must use a port higher than 1024 as the SOCKS proxy unless you are root</p></blockquote>
<p>Please post any questions in the comments area, and I&#8217;ll address them ASAP!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mmayhew.com/use-ssh-as-a-proxy-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
