<?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>Make Tech Easier &#187; networking</title>
	<atom:link href="http://maketecheasier.com/tag/networking/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Sat, 20 Mar 2010 12:00:48 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to use SSH X-forwarding to Run Remote Apps</title>
		<link>http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22</link>
		<comments>http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22#comments</comments>
		<pubDate>Mon, 22 Jun 2009 12:12:06 +0000</pubDate>
		<dc:creator>Tavis J. Hampton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=5429</guid>
		<description><![CDATA[There are times when it is just quicker, easier or even necessary to use a graphical application, and there are also times when you might be away from the computer that has your crucial applications installed. Whatever the scenario, Linux and other operating systems running an X server have the ability to forward a graphical [...]<p><strong><a href="http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22">How to use SSH X-forwarding to Run Remote Apps</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-5431" src="http://images.maketecheasier.com/2009/06/200x-org.jpg" alt="200x-org" width="200" height="160" />There are times when it is just quicker, easier or even necessary to use a graphical application, and there are also times when you might be away from the computer that has your crucial applications installed. Whatever the scenario, Linux and other operating systems running an X server have the ability to forward a graphical application through SSH. Following a few simple steps, you can run a remote application in all of its full graphical glory.</p>
<h3>Installation and setup</h3>
<p>Before you begin you need to make sure that SSH client and server are installed on the correct computers. The host computer that will have the actual running applications needs to have SSH server running. On Ubuntu, it is not installed by default. Look for the packaged called &#8220;<em>openssh-server</em>&#8221; and install it. On the client computer, you will need &#8220;<em>openssh-client</em>&#8220;.</p>
<p>The other important preliminary step is to make sure both computers are connected to a network and that you can reach them via SSH. If the computers are in the same building, it will be easy. If not, you might have to configure the host computer to receive SSH connections through the firewall. See your router&#8217;s documentation for the correct method of port forwarding.</p>
<h3>Connecting</h3>
<p><strong>1.</strong> Open a terminal emulator: Gnome terminal, Konsole or something similar.</p>
<p><strong>2.</strong> Now connect to the host computer. As an example, if the host IP address is 192.168.254.76 and the host username is &#8220;bobolina&#8221;, you would type the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-X</span> <span style="color: #660033;">-lbobolina</span> 192.168.254.76</pre></div></div>

<p>This tells SSH to forward the X server calls to the client computer.</p>
<p><strong>3.</strong> At the password prompt, enter the password.</p>
<p><strong>4.</strong> Run the application. For example, if you want to run Kwrite, just type the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dbus-launch kwrite <span style="color: #000000; font-weight: bold;">&amp;</span></pre></div></div>

<p>(Note: you will need to have &#8220;dbus-launch&#8221; before KDE 4 applications. Other applications that do not require D-Bus should work without it).</p>
<h3>Other Considerations</h3>
<p>That is all it takes.  You should now be able to run remote X applications at will. This can be very helpful if, for example, you are running a computer with a very small hard drive, no hard drive at all or even one without a CD-ROM drive, all of which are common with many netbooks and low-cost mini desktops.</p>
<p>To automate this process, you could setup <a href="http://ubuntuforums.org/showthread.php?t=30709" target="_blank">SSH public keys</a> to connect without passwords and write an executable script. Also, if you need a full X session forwarded, you can use NX technology, available with the commercial NoMachine NX or with <a href="http://freenx.berlios.de/" target="_blank">FreeNX</a> (a free and open source alternative).</p>
<p>As with any network solution, security is always a concern. Using SSH provides a secure connection, but it does little good if your password is easy to guess and your firewall allows anyone to gain access to it. Once you have a secure plan in place, remote X forwarding is an excellent way load remote applications on demand and manage remote machines. The possibilities are only as limited to your imagination and the speed of your network connection. Experiment with different techniques, and let us know what you discover.</p>
<p><!--adsense#468x60--></p>
<p><strong><a href="http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22">How to use SSH X-forwarding to Run Remote Apps</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Understanding Home Networking</title>
		<link>http://maketecheasier.com/understanding-home-networking/2009/05/04</link>
		<comments>http://maketecheasier.com/understanding-home-networking/2009/05/04#comments</comments>
		<pubDate>Mon, 04 May 2009 12:22:51 +0000</pubDate>
		<dc:creator>Joshua Price</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[PC Hardware]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[Port forwarding]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=4238</guid>
		<description><![CDATA[These days, broadband internet is just about everywhere.  Hospitals, restaurants, hotels, and of course homes are all connected with these nice, fast pipes.  The problem is that your internet provider likely just gives you a single connection with a single address, no matter how many people or devices plan to use that internet [...]<p><strong><a href="http://maketecheasier.com/understanding-home-networking/2009/05/04">Understanding Home Networking</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-4279" src="http://images.maketecheasier.com/2009/04/switch.jpg" alt="switch" width="150" height="120" />These days, broadband internet is just about everywhere.  Hospitals, restaurants, hotels, and of course homes are all connected with these nice, fast pipes.  The problem is that your internet provider likely just gives you a single connection with a single address, no matter how many people or devices plan to use that internet connection.  Here, we enter the world of home networking.</p>
<p>Often, just the words &#8220;computer network&#8221; are enough to draw up images of some complicated mess of cables and boxes with blinking lights.  People see acronyms like LAN, WAN, TCP/IP and a host of others, and think this whole network thing must be the domain of pocket-protector wielding geeks.  The truth is, once you get the basic idea of how it all fits together, you&#8217;ll find that it&#8217;s really not that complicated, and home networking can be done by just about anyone.</p>
<h3>IP Addressing</h3>
<p>Way back in the day, when I first switched from dialup to broadband, I was thrilled.  Not only did everything go so much faster, but I had heard that my computer and my family&#8217;s computer could be online <strong>at the same time</strong>!  Gasp!  So naturally, on the day it was hooked up, I tried to get both computers online.  To my surprise, it didn&#8217;t work.  Each one could get online when they were the only computer connected, but as soon as I tried connecting both through a hub, it failed.</p>
<p>It was then that I began learning the world of IP addresses.  Every device on the internet, from desktop computers to cell phones to smart toasters, has an IP address.  Typically, this is a unique number assigned to each of those devices.  IP addresses come in the form of &#8220;x.x.x.x&#8221;, each x being a number from 0 to 254.  For example, the server that&#8217;s hosting Google.com has an IP address of <em>74.125.45.100</em>.  If you were to type that number into your web browser&#8217;s address bar, you&#8217;d get the Google homepage.</p>
<p>Places like Google, Yahoo, and of course MakeTechEasier.com keep the same IP address all the time.  This is because they&#8217;re providing content to the world, and we want to make it as easy as possible for people and devices to find us.</p>
<p>Your home computer, on the other hand, is probably not serving web pages or providing some kind of content to the outside world.  This means that your internet provider does not have to worry about giving you the same address every time you connect.  Each time you connect to the internet, your computer asks your ISP for an address to use.  Most of the time, it&#8217;s <strong>not</strong> the same one you had a few days, weeks, or months earlier.  They see your computer&#8217;s request for an address, search in their system for an available one, and assign you the first unused address they have.  For the sake of simplicity in this article, I&#8217;m going to use &#8220;9.9.9.1&#8243; to represent the IP address given to you by your ISP.</p>
<p>Back to my old internet sharing problem:  what was going on was that my internet provider was only giving me ONE address.  I could hook up 2, 10, or 700 computers but my ISP was still only giving me ONE address.  Well how in the world was I to hook up all my computers when I only have 1 address to use?  Network Address Translation.</p>
<h3>Network Address Translation</h3>
<p>It&#8217;s a fancy name for a pretty simple concept.  NAT basically means converting that one, single, internet address (9.9.9.1 in our example) into seperate addresses for your home network.  To make this easier to understand, I&#8217;m going to compare internet routing to the existing postal system here in the US.</p>
<p><img class="aligncenter size-full wp-image-4323" src="http://images.maketecheasier.com/2009/04/postal.png" alt="postal" width="550" height="189" /></p>
<p>In the preceding example picture, we have College University as the destination for our letter.  Even though the college is split into multiple buildings, it has a single street address.  When the mail room gets a letter, it checks the letter to see which building it should go to, and which department in that building.  Compare that to a similar example of an incoming internet data packet:</p>
<p><img class="aligncenter size-full wp-image-4320" src="http://images.maketecheasier.com/2009/04/net.png" alt="net" width="550" height="173" /></p>
<p>As you can see, it follows a very similar method to the postal example.  The outside world sees every computer in your home only under your &#8220;main&#8221; IP address, in this case &#8220;9.9.9.1&#8243;.  The router, which equates to the Mail Room in our example, checks all the incoming data to figure out which computer it should go to.</p>
<blockquote><p>Note:  I won&#8217;t be covering exactly how it figures that out, as that&#8217;s a bit beyond the scope of what I&#8217;m covering here, and the postal-to-internet analogy isn&#8217;t a perfect 1:1 comparison</p></blockquote>
<p>You may be wondering about the IP addresses shown in the example.  As I said earlier, every device on the internet has an IP address, but your ISP usually only gives you one at a time.  Where did these other ones come from?</p>
<p>In short, IP addresses starting with &#8220;192.168.x.x&#8221; are <em>private</em> addresses.  They only exist inside your home network.  This is the key part of NAT.  Even though you only have one &#8220;real&#8221; IP address of 9.9.9.1, your router basically &#8220;makes up&#8221; new ones for all your computers.</p>
<p>I know, I know, we&#8217;re getting into the complicated stuff and I said it wouldn&#8217;t be complicated.  Essentially, what happens is that all the websites you visit or people you chat with on AIM/Yahoo/Skype/etc only see that your &#8220;street address&#8221;, your real IP of 9.9.9.1.  When they send you a message, they send it to 9.9.9.1.  It&#8217;s your router that knows, when it gets that message, which computer to send it to.  The rest of the world doesn&#8217;t need to know anything but your main outside IP address.   All the 192.168.x.x addresses are completely private and nothing but your router knows, or cares, that they exist.</p>
<p><!--adsense#468x60--></p>
<p><strong><a href="http://maketecheasier.com/understanding-home-networking/2009/05/04">Understanding Home Networking</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/understanding-home-networking/2009/05/04/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
