<?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>1.4.all &#187; Linux</title>
	<atom:link href="http://www.explain-it.org/wordpress/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.explain-it.org/wordpress</link>
	<description>my humble  thoughts about some things</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:25:01 +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>how to jail break with git</title>
		<link>http://www.explain-it.org/wordpress/2011/12/02/how-to-jail-break-with-git/</link>
		<comments>http://www.explain-it.org/wordpress/2011/12/02/how-to-jail-break-with-git/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 14:44:15 +0000</pubDate>
		<dc:creator>falko</dc:creator>
				<category><![CDATA[digital]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.explain-it.org/wordpress/?p=1188</guid>
		<description><![CDATA[Certainly quite a few people suffer from too restrictive networks where you need to use proxy servers to reach outside world. Often applications support using HTTP or FTP proxies. But only few applications do also support SOCKS proxy for arbitrary protocols. Guess what.. there are tricks to circumvent that   Ingredients existing SOCKS proxy reachable [...]]]></description>
			<content:encoded><![CDATA[<p>Certainly quite a few people suffer from too restrictive networks where you need to use proxy servers to reach outside world. Often applications support using HTTP or FTP proxies. But only few applications do also support SOCKS proxy for arbitrary protocols.</p>
<p>Guess what.. there are tricks to circumvent that <img src='http://www.explain-it.org/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p> </p>
<p>Ingredients</p>
<ul>
<li>existing SOCKS proxy reachable on the network</li>
<li><a href="http://netcat.sourceforge.net/">netcat </a></li>
</ul>
<p>As an example I'll describe how to connect with git to a remote repository via netcat through a SOCKS proxy. Git command line client itself doesn't support SOCKS proxies directly. But it does support a proxy command. So we abuse netcat to do the conversion for git.</p>
<p>1.) Step - create a shell script</p>
<p>As git can only handle a proxy command without any parameter we create a small shell script to act as that command:</p>
<pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; border-image: initial; font-size: 16px; font: inherit; vertical-align: baseline; font-family: monospace; white-space: pre-wrap; word-wrap: break-word; color: #586e75; color-profile: srgb; background-color: #fdf6e3; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; padding: 15px; border: 0px initial initial;"><code style="border-image: initial; font-size: 16px; font: inherit; vertical-align: baseline; font-family: monospace; color: #657b83; color-profile: srgb; padding: 0px; margin: 0px; border: 0px initial initial;">#!/bin/bash
nc -xproxy.mydomain.com:1080 -X5 $*</code></pre>
<p>Save this as proxy_command.sh and give it execution rights.</p>
<p>Now export an environment variable for GIT to make use of this proxy command:</p>
<pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; border-image: initial; font-size: 16px; font: inherit; vertical-align: baseline; font-family: monospace; white-space: pre-wrap; word-wrap: break-word; color: #586e75; color-profile: srgb; background-color: #fdf6e3; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; padding: 15px; border: 0px initial initial;"><code style="border-image: initial; font-size: 16px; font: inherit; vertical-align: baseline; font-family: monospace; color: #657b83; color-profile: srgb; padding: 0px; margin: 0px; border: 0px initial initial;">export GIT_PROXY_COMMAND=/Volumes/Repositories/explain-it-tools/proxy_command.sh</code></pre>
<p> </p>
<p>And now you can use git as you would without network restrictions:</p>
<pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; border-image: initial; font-size: 16px; font: inherit; vertical-align: baseline; font-family: monospace; white-space: pre-wrap; word-wrap: break-word; color: #586e75; color-profile: srgb; background-color: #fdf6e3; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; padding: 15px; border: 0px initial initial;"><code style="border-image: initial; font-size: 16px; font: inherit; vertical-align: baseline; font-family: monospace; color: #657b83; color-profile: srgb; padding: 0px; margin: 0px; border: 0px initial initial;">git clone git://github.com/altercation/solarized.git</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.explain-it.org/wordpress/2011/12/02/how-to-jail-break-with-git/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Update der GPG Signatur bei Ubuntu Hardy Heron</title>
		<link>http://www.explain-it.org/wordpress/2009/03/11/update-der-gpg-signatur-bei-ubuntu-hardy-heron/</link>
		<comments>http://www.explain-it.org/wordpress/2009/03/11/update-der-gpg-signatur-bei-ubuntu-hardy-heron/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 13:55:18 +0000</pubDate>
		<dc:creator>falko</dc:creator>
				<category><![CDATA[digital]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.explain-it.org/wordpress/2009/03/11/update-der-gpg-signatur-bei-ubuntu-hardy-heron/</guid>
		<description><![CDATA[ Seit einigen Wochen bekomme ich beim System-Update auf meinem Server immer eine Fehlermeldung wegen eines fehlenden GPG-Sch&#252;ssels:   aptitude update .... ....   Reading package lists...   Done W: GPG error: http://ppa.launchpad.net hardy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 35CC62D2200CBE07   W: You may want to run apt-get update to correct these problems  Die angebotene L&#246;sung mit apt-get update funktioniert leider nicht.    Nach einigen Recherchen habe ich jetzt folgenden Weg gefunden um den fehlenden Schl&#252;ssel f&#252;r aptitude verf&#252;gbar zu machen:  Zuerst muss der Schl&#252;ssel geholt werden.   Das geht mit gpg:  gpg --recv-keys 35CC62D2200CBE07  Dann diesen Schl&#252;ssel in eine Datei exportieren:  gpg -a --export 200CBE07 &#62; newsite.key.gpg  Und letztlich aptitude den neuen Schl&#252;ssel mitteilen:  apt-key add newsite.key.gpg  Schon funktioniert aptitude update wieder ohne Fehlermeldungen. ]]></description>
			<content:encoded><![CDATA[<p>Seit einigen Wochen bekomme ich beim System-Update auf meinem Server immer eine Fehlermeldung wegen eines fehlenden GPG-Sch&#252;ssels:</p>
<p><code>aptitude update .... .... Reading package lists... Done W: GPG error: http://ppa.launchpad.net hardy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 35CC62D2200CBE07</code></p>
<p><code>W: You may want to run apt-get update to correct these problems</code></p>
<p>Die angebotene L&#246;sung mit apt-get update funktioniert leider nicht.</p>
<p>Nach einigen Recherchen habe ich jetzt folgenden Weg gefunden um den fehlenden Schl&#252;ssel f&#252;r aptitude verf&#252;gbar zu machen:</p>
<p>Zuerst muss der Schl&#252;ssel geholt werden. Das geht mit gpg:</p>
<p><code>gpg --recv-keys 35CC62D2200CBE07</code></p>
<p>Dann diesen Schl&#252;ssel in eine Datei exportieren:</p>
<p><code>gpg -a --export 200CBE07 &gt; newsite.key.gpg</code></p>
<p>Und letztlich aptitude den neuen Schl&#252;ssel mitteilen:</p>
<p><code>apt-key add newsite.key.gpg</code></p>
<p>Schon funktioniert aptitude update wieder ohne Fehlermeldungen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.explain-it.org/wordpress/2009/03/11/update-der-gpg-signatur-bei-ubuntu-hardy-heron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

