<?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>WiredRevolution.com &#187; gzip</title>
	<atom:link href="http://www.wiredrevolution.com/tag/gzip/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to X session forwarding over SSH</title>
		<link>http://www.wiredrevolution.com/system-administration/how-to-x-session-forwarding-over-ssh?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-x-session-forwarding-over-ssh</link>
		<comments>http://www.wiredrevolution.com/system-administration/how-to-x-session-forwarding-over-ssh#comments</comments>
		<pubDate>Thu, 04 Dec 2008 14:05:41 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[/etc/ssh/ssh_config]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[tunneling]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=807</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>SSH allows secure (encrypted and authenticated) connections between two hosts. These connections include terminal sessions, file transfers, TCP port forwarding, as well as X window forwarding which I will be covering here. X forwarding is a form of tunneling that allows you to run a GUI application on a remote machine but let you view [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p><strong>SSH</strong> allows secure (encrypted and authenticated) connections between two hosts.  These connections include terminal sessions, file transfers, TCP port forwarding, as well as X window forwarding which I will be covering here. X forwarding is a form of tunneling that allows you to run a GUI application on a remote machine but let you view and interact with it on your local machine.</p>
<p>To try this out you will need both <strong>X</strong> and <strong>SSH</strong> installed on your local and remote machines.  Make sure that you are able to log into the the remote machine over SSH before you continue.</p>
<p>Simple SSH command, ensure that this works before continuing.  You may have to enter a password for the user before it will allow you access.</p>
<pre>
$ ssh user@remotehost
</pre>
<p>The next step is to add the <strong>&#8216;-X</strong>&#8216; option.  This will turn on X forwarding and allow you to remotely run X programs. In this case we will run xclock.</p>
<pre>
$ ssh -X user@remotehost xclock
</pre>
<p>You should see the xclock window appear on your screen. You can interact with it like any other local application window. Close it when you are done.</p>
<p>If you have a slower connection you can turn on compression by adding the &#8216;<strong>-C</strong>&#8216; option to the command above. This will compress all data communications with the gzip algorithm.</p>
<pre>
$ ssh -C -X user@remotehost xclock
</pre>
<p>If you are experiencing any problems turn on verbose output with the &#8216;<strong>-v</strong>&#8216; option. This will give you a lot more output and tell you what is going on underneath.</p>
<pre>
$ ssh -v -X user@remotehost xclock
</pre>
<p>If you are still having issues look in the ssh configuration file here<strong>/etc/ssh/ssh_config</strong>, and make sure that you don&#8217;t have X forwarding settings disabled.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/how-to-x-session-forwarding-over-ssh/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using tar to archive files</title>
		<link>http://www.wiredrevolution.com/commands/using-tar-to-archive-files?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-tar-to-archive-files</link>
		<comments>http://www.wiredrevolution.com/commands/using-tar-to-archive-files#comments</comments>
		<pubDate>Tue, 07 Oct 2008 13:33:17 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[commands]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[bzip2]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tarball]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=234</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/>TAR is the GNU Tape ARchive utility. It is used to pack the contents of multiple files or directories in an archive file called a tarball. Tar can preserve directory organization including file ownership, permissions, links, as well as directory structure. To save space you can optionally enable compression with gzip, bzip2, or another external [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/determine-file-type-with-the-file-command' rel='bookmark' title='Permanent Link: Determine file type with the file command'>Determine file type with the file command</a></li>
<li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/red-hat/extract-the-contents-of-an-rpm-package' rel='bookmark' title='Permanent Link: Extract the contents of an RPM package'>Extract the contents of an RPM package</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/commands_icon.png" width="80" height="69" alt="" title="commands" /><br/><p>TAR is the GNU Tape ARchive utility. It is used to pack the contents of multiple files or directories in an archive file called a <strong>tarball</strong>. Tar can preserve directory organization including file ownership, permissions, links, as well as directory structure. To save space you can optionally enable compression with <strong>gzip</strong>, <strong>bzip2</strong>, or another external program.</p>
<p>For these examples I&#8217;m going to be using this sample directory which contains a few files.</p>
<pre>
/mydir
/mydir/script.sh
/mydir/picture.jpg
/mydir/document.txt
</pre>
<p>Lets create a tarball from this directory. Run the following command.</p>
<pre>
$ tar -cvf mydir.tar mydir
</pre>
<p>Lets go over these options.</p>
<p><strong>-c</strong> create tarball<br />
<strong>-v</strong> verbose<br />
<strong>-f</strong> output file </p>
<p>To extract this tarball.</p>
<pre>
$ tar -xvf mydir.tar
</pre>
<p>The new option &#8216;<strong>-x</strong>&#8216; instructs tar to extract the archive.</p>
<p>Add compression with <strong>gzip</strong> when creating the archive by including the <strong>-z</strong> option.</p>
<pre>
$ tar -cvzf mydir.tgz mydir
</pre>
<p>Extracting the archive is similar. Make sure to include the gzip option as well.</p>
<pre>
$ tar -xvzf mydir.tgz
</pre>
<p>You can also use the <strong>bzip2</strong> utility to compress the archive, use the <strong>-j</strong> option.</p>
<pre>
$ tar -cvjf mydir.tbz mydir
</pre>
<p>And extract it.</p>
<pre>
$ tar -xvjf mydir.tbz
</pre>
<p>To preserve permissions use &#8216;<strong>-p</strong>&#8216; when creating as well as extracting.</p>
<pre>
$ tar -cvzpf mydir.tgz mydir
</pre>
<pre>
$ tar -xvzpf mydir.tgz
</pre>
<p>You may have noticed the file extensions used on the archives are different. Here is a quick rundown on the naming conventions.  Understanding the extensions allows you to quickly figure out how to extract it.</p>
<p>*.tar (uncompressed tar archive)<br />
*.tgz or *.tar.gz (gzip compressed tar archive)<br />
*.tbz or *.tar.bz2 (bzip2 compressed tar archive)</p>
<p>You want to avoid including files in the current working directory when creating a tarball.  When extracted these files will be dumped into the user&#8217;s current working directory instead of its own subdirectory, potentially overwriting files and creating a big mess.</p>
<p>Another helpful option to use is &#8216;<strong>-C</strong> <directory>&#8216;.  This will extract a tarball in a specific directory.</p>
<pre>
$ tar -xvzf mydir.tgz -C /tmp/testdir
</pre>
<p>A good way to check for any problems with extraction or to see exactly a tarball contains is to execute tar with the <strong>-t</strong> option. This will list the contents of a tarball and show the location they will be extracted.</p>
<pre>
$ tar -tf mydir.tgz
</pre>
<pre>
mydir/
mydir/script.sh
mydir/picture.jpg
mydir/document.txt
</pre>
<p>This will also help you avoid situations where a tarball might use an absolute path (path starting at root &#8216;/&#8217;) when extracting instead of a relative path (path that is relative to your current directory) like the previous examples.  This is not necessarily a bad thing, but it can be dangerous if you don&#8217;t realize this before extracting, since an absolute path can install to anywhere on your system. </p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/determine-file-type-with-the-file-command' rel='bookmark' title='Permanent Link: Determine file type with the file command'>Determine file type with the file command</a></li>
<li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/red-hat/extract-the-contents-of-an-rpm-package' rel='bookmark' title='Permanent Link: Extract the contents of an RPM package'>Extract the contents of an RPM package</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/commands/using-tar-to-archive-files/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

