<?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>SoleSky &#187; Technique</title>
	<atom:link href="http://www.solesky.com/category/technique/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.solesky.com</link>
	<description>My love, My life,My soul</description>
	<lastBuildDate>Mon, 19 Dec 2011 03:38:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Ubuntu Default Wallpaper Collection</title>
		<link>http://www.solesky.com/2011/10/ubuntu-default-wallpaper-collection/</link>
		<comments>http://www.solesky.com/2011/10/ubuntu-default-wallpaper-collection/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 01:25:47 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1749</guid>
		<description><![CDATA[Ubuntu Default Wallpaper Collection (Wide screen version)： From Warty Warthog to Oneiric Ocelot  &#160; 2011-10-20]]></description>
			<content:encoded><![CDATA[<p><em>Ubuntu Default Wallpaper Collection (Wide screen version)： From Warty Warthog to Oneiric Ocelot </em></p>
<p>&nbsp;</p>
<table style="width: 194px;">
<tbody>
<tr>
<td style="height: 194px; background: url('https://picasaweb.google.com/s/c/transparent_album_background.gif') no-repeat left;" align="center"><a href="https://picasaweb.google.com/112926127312428371048/20111020?authuser=0&amp;feat=embedwebsite"><img style="margin: 1px 0 0 4px;" src="https://lh6.googleusercontent.com/-hGw1Fv_fcu0/TqDDbI7iMhE/AAAAAAAACg8/KFLjahsybR8/s160-c/20111020.jpg" alt="" width="160" height="160" /></a></td>
</tr>
<tr>
<td style="text-align: center; font-family: arial,sans-serif; font-size: 11px;"><a style="color: #4d4d4d; font-weight: bold; text-decoration: none;" href="https://picasaweb.google.com/112926127312428371048/20111020?authuser=0&amp;feat=embedwebsite">2011-10-20</a></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2011/10/ubuntu-default-wallpaper-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to MD5 a String</title>
		<link>http://www.solesky.com/2011/02/md5-a-string/</link>
		<comments>http://www.solesky.com/2011/02/md5-a-string/#comments</comments>
		<pubDate>Sat, 26 Feb 2011 01:06:40 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1702</guid>
		<description><![CDATA[As a Linux and Unix user, I think to do &#8220;md5sum&#8221; for your files is just a piece of cake. We always to use md5sum command to check various files, such as a OS  disk image. But today I come to a problem,  some web site use the md5 of the user ID as the [...]]]></description>
			<content:encoded><![CDATA[<p>As a Linux and Unix user, I think to do &#8220;md5sum&#8221; for your files is just a piece of cake. We always to use md5sum command to check various files, such as a OS  disk image. But today I come to a problem,  some web site use the md5 of the user ID as the &#8220;Invitation code&#8221;  <img src='http://www.solesky.com/wp-includes/images/smilies/icon_confused.gif' alt=':???:' class='wp-smiley' /> </p>
<p>I would like to take &#8220;calcifer&#8221; as the user ID, so how to generate the md5 code for such a string??</p>
<p>Let&#8217;s see the manual:</p>
<p>MD5SUM(1)                        User Commands                       MD5SUM(1)<br />
NAME<br />
md5sum &#8211; compute and check MD5 message digest<br />
SYNOPSIS<br />
md5sum [OPTION]&#8230; [FILE]&#8230;<br />
DESCRIPTION<br />
Print  or check MD5 (128-bit) checksums.  With no FILE, or when FILE is<br />
-, read standard input.<br />
-b, &#8211;binary<br />
read in binary mode<br />
-c, &#8211;check<br />
read MD5 sums from the FILEs and check them<br />
-t, &#8211;text<br />
read in text mode (default)<br />
MD5SUM(1)                        User Commands                       MD5SUM(1)<br />
NAME       md5sum &#8211; compute and check MD5 message digest<br />
SYNOPSIS       md5sum [OPTION]&#8230; [FILE]&#8230;<br />
DESCRIPTION       Print  or check MD5 (128-bit) checksums.  With no FILE, or when FILE is       -, read standard input.<br />
-b, &#8211;binary              read in binary mode<br />
-c, &#8211;check              read MD5 sums from the FILEs and check them<br />
-t, &#8211;text              read in text mode (default)</p>
<p>Obviously, we can&#8217;t make it as the usual way we used to do  &#8230;.<br />
So we have to do a litter small trick: using pipe ~</p>
<pre language="Shell" line="1">echo -n "calcifer" | md5sum - </pre>
<p>PS:  &#8221;-n&#8221; is to make sure we didn&#8217;t include the &#8220;new line&#8221; this invisible symbol .<br />
So here can to the result:</p>
<pre language="Shell" line="2">calcifer@calcifer-laptop:~/Desktop$ echo -n "calcifer" | md5sum -

3ba9c9546d5dcb7ce2ee47967a83e324  - </pre>
<p>That&#8217;s what we need~~<br />
And further more, it&#8217;s nautilus for some people to input the command like this:</p>
<pre language="Shell" line="1"> echo -n calcifer | md5sum </pre>
<p>In fact, the outcome is the same:</p>
<pre language="Shell" line="2">calcifer@calcifer-laptop:~/Desktop$ echo -n calcifer | md5sum -
3ba9c9546d5dcb7ce2ee47967a83e324  - </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2011/02/md5-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update the MSN certificates for Pidgin</title>
		<link>http://www.solesky.com/2010/11/update-the-msn-certificates-for-pidgin/</link>
		<comments>http://www.solesky.com/2010/11/update-the-msn-certificates-for-pidgin/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 00:26:43 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1664</guid>
		<description><![CDATA[If you are using MSN via Pidgin (ver &#60; 2.7.7), maybe you can&#8217;t get logged in MSN right now. The error message about &#8220;SSL Certificate Error&#8221; shows that we need a new certificate file for Pidgin to connect the MSN server. So to fix this problem, we need to update the certificate file. Use vi [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using MSN via Pidgin (ver &lt; 2.7.7), maybe you can&#8217;t get logged in MSN right now. The error message about &#8220;SSL Certificate Error&#8221; shows that we need a new certificate file for Pidgin to connect the MSN server.</p>
<p>So to fix this problem, we need to update the certificate file.</p>
<p>Use vi or gedit or any editor you like to open the file:  ~/.purple/certificates/x509/tls_peers/omega.contacts.msn.com<br />
(For Pidgin in Windows, the path and file should be C:\Program Files\Pidgin\ca-certs\Microsoft_Secure_Server_Authority.pem)</p>
<p>Then copy all the text blew to replace the old content:</p>
<p><code>-----BEGIN CERTIFICATE-----<br />
MIIGeDCCBWCgAwIBAgIKfdrgSQAIAAHIuTANBgkqhkiG9w0BAQUFADCBizETMBEG<br />
CgmSJomT8ixkARkWA2NvbTEZMBcGCgmSJomT8ixkARkWCW1pY3Jvc29mdDEUMBIG<br />
CgmSJomT8ixkARkWBGNvcnAxFzAVBgoJkiaJk/IsZAEZFgdyZWRtb25kMSowKAYD<br />
VQQDEyFNaWNyb3NvZnQgU2VjdXJlIFNlcnZlciBBdXRob3JpdHkwHhcNMTAxMTE1<br />
MjEyODE5WhcNMTIxMTE0MjEyODE5WjB2MQswCQYDVQQGEwJVUzELMAkGA1UECBMC<br />
V0ExEDAOBgNVBAcTB1JlZG1vbmQxDDAKBgNVBAoTA01TTjEdMBsGA1UECxMUTVNO<br />
IENvbnRhY3QgU2VydmljZXMxGzAZBgNVBAMMEiouY29udGFjdHMubXNuLmNvbTCC<br />
ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJnXhdENETaZ8YFfenWCuky3<br />
Fke/oWgUOEbgvaRuZusd2LnvoSiqH++2lkV0JJlIQ+7jLLN8MY7VhlHQmkLC3x44<br />
KZn2IktMVgTBGMKnvbyYVAnRsjt/rVhQrQeHVEQzv5WXx//3FKmXWAuJiuRj9PZ2<br />
KsNqPJgaaa5cuOu4oynO9fH5/ZtJIeUf7bC4Wu++o7jTu5zOhIa7R1buE9FXFF33<br />
vQ1vHi4p9zR2Pi/i2nUpEnzeNCLl/8F/Tf+658SvIC4EzxrYcj+fit6sAnNUfsOE<br />
1SIk9YLD+tS0fln1afbcDvH0ib5Xm7u2/o6ZmxQU0mrAkfQectsKpZLJj03neBsC<br />
AwEAAaOCAvAwggLsMAsGA1UdDwQEAwIEsDBEBgkqhkiG9w0BCQ8ENzA1MA4GCCqG<br />
SIb3DQMCAgIAgDAOBggqhkiG9w0DBAICAIAwBwYFKw4DAgcwCgYIKoZIhvcNAwcw<br />
HQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMB0GA1UdDgQWBBRciAVJ/Vsj<br />
sAlZoNG/Zs+rILsPNDAfBgNVHSMEGDAWgBQIQuPbThFm87UIxUDbVXwzRhGDODCC<br />
AQoGA1UdHwSCAQEwgf4wgfuggfiggfWGWGh0dHA6Ly9tc2NybC5taWNyb3NvZnQu<br />
Y29tL3BraS9tc2NvcnAvY3JsL01pY3Jvc29mdCUyMFNlY3VyZSUyMFNlcnZlciUy<br />
MEF1dGhvcml0eSg4KS5jcmyGVmh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2kv<br />
bXNjb3JwL2NybC9NaWNyb3NvZnQlMjBTZWN1cmUlMjBTZXJ2ZXIlMjBBdXRob3Jp<br />
dHkoOCkuY3JshkFodHRwOi8vY29ycHBraS9jcmwvTWljcm9zb2Z0JTIwU2VjdXJl<br />
JTIwU2VydmVyJTIwQXV0aG9yaXR5KDgpLmNybDCBvwYIKwYBBQUHAQEEgbIwga8w<br />
XgYIKwYBBQUHMAKGUmh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbS9wa2kvbXNjb3Jw<br />
L01pY3Jvc29mdCUyMFNlY3VyZSUyMFNlcnZlciUyMEF1dGhvcml0eSg4KS5jcnQw<br />
TQYIKwYBBQUHMAKGQWh0dHA6Ly9jb3JwcGtpL2FpYS9NaWNyb3NvZnQlMjBTZWN1<br />
cmUlMjBTZXJ2ZXIlMjBBdXRob3JpdHkoOCkuY3J0MD8GCSsGAQQBgjcVBwQyMDAG<br />
KCsGAQQBgjcVCIPPiU2t8gKFoZ8MgvrKfYHh+3SBT4PC7YUIjqnShWMCAWQCAQow<br />
JwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDAjAKBggrBgEFBQcDATANBgkqhkiG<br />
9w0BAQUFAAOCAQEAbbWUY/5r/Tv/kefqNUT5aGVejrkbG4229gnJLcv+uQTEg0Gg<br />
xfvLr77N1z2j57FameJwz6DeTRbK8MYVPoP+z5o4vM3F3GxLm7aBklYQ/7G0TIp/<br />
13z01a5aBGvZH8umzex3YrAnhJEcucSN5WaT6r9uwT7imdbsCgfFPdiIgS5iHdcl<br />
k/3QSpau+4/XZgh/8V/FMN9KEFYGvEhMb5EVzKJ8pqF9Jy9Mfzqev3BtSREiljCt<br />
lJuiRamxWgQoeNVTAI+J2YAsD8Qon1iZiHl08uHdgXWZiGDtLPcd9aIiL7/vi/+D<br />
7w3bhyHPFr+/13BCIWSfKnSRj/g6YoHnhF4gyQ==<br />
-----END CERTIFICATE-----</code><br />
Save the file and have a try~  <img src='http://www.solesky.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2010/11/update-the-msn-certificates-for-pidgin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install PPStream on 64bit Ubuntu&#8230;</title>
		<link>http://www.solesky.com/2010/11/install-ppstream-on-64bit-ubuntu/</link>
		<comments>http://www.solesky.com/2010/11/install-ppstream-on-64bit-ubuntu/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 01:00:45 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1629</guid>
		<description><![CDATA[PPStream is one of the biggest online TV in China. Now PPStream release a new client software on Linux. The first official release version is packaged as Ubuntu deb package and &#8230; only for 32bit system(x86). As the Ubuntu on my laptop is 64bit release and has be updated to 10.10, install such a 32 [...]]]></description>
			<content:encoded><![CDATA[<p>PPStream is one of the biggest online TV in China. Now PPStream release a new client software on Linux. The first official release version is packaged as Ubuntu deb package and &#8230; only for 32bit system(x86).</p>
<p>As the Ubuntu on my laptop is 64bit release and has be updated to 10.10, install such a 32 bit software is a god damn tough job. <img src='http://www.solesky.com/wp-includes/images/smilies/icon_evil.gif' alt=':evil:' class='wp-smiley' /> </p>
<p>As we know that to install a 32bit software on 64bit OS, the first step is to install 32bit libs :<br />
<code>sudo apt-get install ia32-libs </code><br />
and force to install without considering the architecture problem:<br />
<code>sudo dpkg -i --force-architecture somename.deb</code><br />
Then if there is still some missing &#8220;lib&#8221; problem, use tool &#8220;getlibs&#8221; to solve:<br />
<code>getlibs -i somelib </code><br />
And at the most of time, this problem has been solved at this step and we are happy to run the god damn 32bit on our OS.</p>
<p>But thanks to my upgraded Ubuntu 10.10, the tool &#8220;getlibs&#8221; didn&#8217;t work this time. And I tried to copy the missing libs for /usr/lib/ to /usr/lib32/ , only turn out a classical error message:</p>
<p><code><span style="color: #ff0000;">Library error: wrong ELF class: ELFCLASS64</span></code></p>
<p>Familiar? Yup, of course. This message is very common when you do some coding. It tells us that this library is not suitable. The reason is that those file I copied from is 64bit base software and their lib is also not suitable for 32bit software to use.</p>
<p>OK, it&#8217;s so suck that I can&#8217;t install 32bit lib just by typing apt-get command to fetched. And the stupid time started&#8230;</p>
<p>I went to http://packages.ubuntu.com/ to search those packages which contain lib file I needed. Then found the 32bit version to download.<br />
Due to the suck architecture difference, we can&#8217;t install those package directly of course. Then how to move the lib file to /usr/lib32?</p>
<p>Use this command:<br />
<code>sudo dpkg -x somepackage.deb</code></p>
<p>&#8220;man&#8221; the dpkg command you will found</p>
<blockquote><p>-x, &#8211;extract archive directory<br />
Extract the files contained by package.</p></blockquote>
<p>This command just extracted to deb file and didn&#8217;t do anything after all.<br />
Then you know how to do next:<br />
<code>sudo cp lib*.so.* /usr/lib32</code><br />
OK, we fixed one lib already. But my nightmare didn&#8217;t stop, because the god damn PPStream needs lots of extra libs to run. <img src='http://www.solesky.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> </p>
<p>Finally, the god damn thing works and I can have a little TV time before went to bed&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2010/11/install-ppstream-on-64bit-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Save the Energy, Save the World</title>
		<link>http://www.solesky.com/2010/05/save-the-energy-save-the-world/</link>
		<comments>http://www.solesky.com/2010/05/save-the-energy-save-the-world/#comments</comments>
		<pubDate>Sat, 08 May 2010 00:08:39 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1503</guid>
		<description><![CDATA[The sticky damn summer of Canton has come. My poor little laptop would face a serious problem about its own temperature which cause it closes itself directly. Yep, we can set the power performance manually. But there are only few fixed profile to choose: high performance, low performance and balance&#8230; Then I have to focus [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://grano.la/"><img alt="" src="http://grano.la/_IMAGES/granola_linux.png" title="granola gui" class="alignright" width="377" height="474" /></a>The sticky damn summer of Canton has come. My poor little laptop would face a serious problem about its own temperature which cause it closes itself directly.<br />
Yep, we can set the power performance manually. But there are only few fixed profile to choose: high performance, low performance and balance&#8230; Then I have to focus on the temperature&#8217;s changing and switch different setting among them.</p>
<p>Maybe <a href="http://grano.la/help/?download">Granola</a> is a good choice for me. It&#8217;s a smart automatically energy management software. That sounds cool~ Now I only have to install it and let it do the job for me. And beside, I can also install a GUI interface to see what it has done.</p>
<p>Make a notice for myself:</p>
<p>1 download and run the install script: <a href="http://grano.la/help/?download&#038;os=linux">here</a></p>
<p>2 install software and GUI interface:</p>
<blockquote><p>sudo apt-get install granola granola-gui</p></blockquote>
<p>and it&#8217;s done~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2010/05/save-the-energy-save-the-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to 32 bit Linux Flashplugin again&#8230;</title>
		<link>http://www.solesky.com/2010/04/back-to-32-bit-linux-flashplugin-again/</link>
		<comments>http://www.solesky.com/2010/04/back-to-32-bit-linux-flashplugin-again/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 12:25:29 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1489</guid>
		<description><![CDATA[After Adobe released its 64 bit flashplugin for Linux 64 bit OS , I switched to that 64 bit version at once and hope that the problems can be fixed forever. But I am so bored with its endless crashing and decided to turn back to the 32 bit version. Just make a record for [...]]]></description>
			<content:encoded><![CDATA[<p>After Adobe released its 64 bit flashplugin for Linux 64 bit OS , I switched to that 64 bit version at once and hope that the problems can be fixed forever. But I am so bored with its endless crashing and decided to turn back to the 32 bit version.</p>
<p>Just make a record for myself :</p>
<p>1st: Remove the gnash (If you have)</p>
<blockquote><p>sudo apt-get remove gnash</p></blockquote>
<p>2nd : Install nspluginwrapper and Flash 9:</p>
<blockquote><p>sudo apt-get install nspluginwrapper flashplugin-nonfree lib32nss-mdns</p></blockquote>
<p>3rd:  Flash 9 is not packaged, but the package installer script will fetch it from Adobe&#8217;s download site and install it. Now simply install nspluginwrapper as a Firefox plugin:</p>
<blockquote><p>sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/ sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-3.0/plugins/</p></blockquote>
<p>OK, Bye</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2010/04/back-to-32-bit-linux-flashplugin-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Play SSH Trick Freely Part 2</title>
		<link>http://www.solesky.com/2009/12/play-ssh-trick-freely-part-2/</link>
		<comments>http://www.solesky.com/2009/12/play-ssh-trick-freely-part-2/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 15:35:01 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1318</guid>
		<description><![CDATA[As we said, we can set up a secure Socket 5connection via SSH tool. Then we make our App. like browsers programs go through it. But,,, not all of the browsers support the Socket 5 proxy method. For example, the new generation Google web browser Chrome doesn&#8217;t support that. So we have to make it [...]]]></description>
			<content:encoded><![CDATA[<p>As we said, we can set up a secure Socket 5connection via SSH tool. Then we make our App. like browsers programs go through it. But,,, not all of the browsers support the Socket 5 proxy method. For example, the new generation Google web browser Chrome doesn&#8217;t support that.</p>
<p>So we have to make it through. First, the Chrome browser does support the common proxy way &#8212; Http proxy. And then, if we can &#8220;translate&#8221; the socket connection into the http connection, then it works!</p>
<p>The solution is to set up a http proxy in our localhost and let it do the job to help those App. to talk to the remote socket proxy. Then comes to the next tool we need, the Privoxy. Yep, we always use this software to help our Tor proxy services smarter. So we can also do it in this way:</p>
<p>Find the configure file of Privoxy : /etc/privoxy/config  (in Ubuntu)<br />
And add this line at the end of the file:</p>
<blockquote><p>forward-socks5 / 127.0.0.1:7070 .</p></blockquote>
<p>  (don&#8217;t miss the &#8220;.&#8221; at the end of line, that make this route complete)</p>
<p>Easy to see that all the date transfer through the 7070 port will &#8220;translate&#8221; into the SSH socket 5 proxy service<br />
Save and exit.</p>
<p>Restart the Privoxy : </p>
<blockquote><p>sudo /etc/init.d/privoxy restart </p></blockquote>
<p>   (in Ubuntu)</p>
<p>And finished&#8230;. All you have to do next is to set up your browser&#8217;s proxy as http proxy: 127.0.0.1:7070    <img src='http://www.solesky.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  </p>
<p>And BTW, the DNS pollution problem is still needed to be considered.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/12/play-ssh-trick-freely-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Play SSH Trick Freely</title>
		<link>http://www.solesky.com/2009/11/play-ssh-trick-freely/</link>
		<comments>http://www.solesky.com/2009/11/play-ssh-trick-freely/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 12:47:43 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1254</guid>
		<description><![CDATA[SSH is a very popular tool for remote control under Unix and Linux System. And ssh command is included in most Unix/Linux OS shell by default. SSH stands for &#8220;security Shell&#8221;, that&#8217;s to say it provides a security access to OS via a &#8220;SHELL&#8221; like interface. So before you wanna play SSH trick, you have [...]]]></description>
			<content:encoded><![CDATA[<p>SSH is a very popular tool for remote control under Unix and Linux System. And ssh command is included in most Unix/Linux OS shell by default.</p>
<p>SSH stands for &#8220;security Shell&#8221;, that&#8217;s to say it provides a security access to OS via a &#8220;SHELL&#8221; like interface. So before you wanna play SSH trick, you have to own a host as the remote host. Then we can use ssh to access our host safely and manage the machine just like you are in front of it(normally in TEXT mode, of course ).  But there is another way to use SSH tool, let it make a &#8220;tunnel&#8221; for our applications in local host. That means our applications like browsers can connect to the remote host via encrypted messages and the remote host will help them communicate with the destination sites. The result is that our communications become safer and the GFW can&#8217;t block us anymore~  <img src='http://www.solesky.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<p>Let&#8217;s go to own a host first. Be careful, not all the host or VPS provide SSH access. Make sure you are going to own a host with SSH function!  My friend tell me that<a href="http://host-blaster.com/"> host-blaster.com</a> provide free VPS with SSH access, so I visited it and registered a VPS.</p>
<p>Then the second step is to make SSH to dig a tunnel for us.<br />
Input such like command in our local shell terminal:</p>
<blockquote><p>ssh -qTfnN -D 7070 yourname@yourname.host-blaster.com</p></blockquote>
<p>Maybe you use the ssh command before, but those parameters would make you puzzled. Let&#8217;s make them clean first.</p>
<p><span id="more-1254"></span></p>
<p style="padding-left: 30px;">-q:    Quiet mode.  Causes most warning and diagnostic messages to be<br />
suppressed.  Only fatal errors are displayed.  If a second -q is<br />
given then even fatal errors are suppressed, except for those<br />
produced due solely to bad arguments.</p>
<p style="padding-left: 30px;">-T      Disable pseudo-tty allocation.</p>
<p style="padding-left: 30px;">-f      Requests ssh to go to background just before command execution.<br />
This is useful if ssh is going to ask for passwords or<br />
passphrases, but the user wants it in the background.  This<br />
implies -n.  The recommended way to start X11 programs at a<br />
remote site is with something like ssh -f host xterm.</p>
<p style="padding-left: 30px;">-n      Redirects stdin from /dev/null (actually, prevents reading from<br />
stdin).  This must be used when ssh is run in the background.  A<br />
common trick is to use this to run X11 programs on a remote<br />
machine.  For example, ssh -n shadows.cs.hut.fi emacs &amp; will<br />
start an emacs on shadows.cs.hut.fi, and the X11 connection will<br />
be automatically forwarded over an encrypted channel.  The ssh<br />
program will be put in the background.  (This does not work if<br />
ssh needs to ask for a password or passphrase; see also the -f<br />
option.)</p>
<p style="padding-left: 30px;">-N      Do not execute a remote command.  This is useful for just for‐<br />
warding ports (protocol version 2 only).</p>
<p style="padding-left: 30px;">-D [bind_address:]port<br />
Specifies a local “dynamic” application-level port forwarding.<br />
This works by allocating a socket to listen to port on the local<br />
side, optionally bound to the specified bind_address.  Whenever a<br />
connection is made to this port, the connection is forwarded over<br />
the secure channel, and the application protocol is then used to<br />
determine where to connect to from the remote machine.</p>
<p>After that, we have cleaned that mass, this command tell SSH to work in the background and served at 7070 port.</p>
<p>So we go to the final step, make our application work via SSH &#8220;tunnel&#8221; we made just now.</p>
<p>For example, we browse web with Firefox, that all we have to do is to set our proxy setting of FF use the SSH. Then we set the socket proxy setting as</p>
<p>IP: 127.0.0.1(you can use loaclhost too) port: 7070  and click the socket 5 option.</p>
<p>BTW, if the GFW block the sites by DNS pollution, you have to active the FF to use remote dns. Type about:config to active the network.proxy.socks_remote_dns option.</p>
<p>That&#8217;s all, happy SSH life <img src='http://www.solesky.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/11/play-ssh-trick-freely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a Small Lovely 2010 Asian Games Countdown in Your Site</title>
		<link>http://www.solesky.com/2009/11/add-a-small-lovely-2010-asian-games-countdown-in-your-site/</link>
		<comments>http://www.solesky.com/2009/11/add-a-small-lovely-2010-asian-games-countdown-in-your-site/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 01:45:03 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Asian Games]]></category>
		<category><![CDATA[Canton]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1214</guid>
		<description><![CDATA[There is less the one year left for the 16th Asian Games at Canton, 2010. To be a Cantonese, we have our duty to support it with our effort. I browse the official website of 16th Asian Games (http://www.gz2010.cn/en) which obviously found by the support of NetEase. In my opinion, this website is quite well [...]]]></description>
			<content:encoded><![CDATA[<p>There is less the one year left for the 16th Asian Games at Canton, 2010. To be a Cantonese, we have our duty to support it with our effort.</p>
<p>I browse the official website of 16th Asian Games (<a href="http://www.gz2010.cn/en" target="_blank">http://www.gz2010.cn/en</a>) which obviously found by the support of NetEase. In my opinion, this website is quite well and enough &#8220;official&#8221;. Maybe that is the reason why many web design fans blame it as no creation and passion. But integrally speaking, it&#8217;s quite simple(simple is the best) and has enough function as a news issue website.</p>
<p>The most attractive  thing caught my eyes is not those news and pictures, but a lovely countdown flash on the top of sider bar. It&#8217;s a small flash animation with a funny cartoon dragon board keeps rowing forward.</p>
<div class="flash">
    <script type="text/javascript">swf('http://swf.news.163.com/2010/yayun/lh/countDownEng.swf','378','200');</script>
</div>
<div>As I am so loved with this small flash animation, I decided to &#8220;steal&#8221; it to the side bar of my site. <img src='http://www.solesky.com/wp-includes/images/smilies/icon_twisted.gif' alt=':twisted:' class='wp-smiley' />  </div>
<div>After checking the source code in firebug, I found that piece of code quickly:</div>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;div<span style="color: #00AA00;">&gt;</span>&lt;object id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;Player1258246398430&quot;</span> classid<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot;</span>
      <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;257&quot;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;136&quot;</span> 
      codebase<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot;</span><span style="color: #00AA00;">&gt;</span>
              &lt;param name<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;src&quot;</span> value<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://swf.news.163.com/2010/yayun/lh/countDownEng.swf&quot;</span> /<span style="color: #00AA00;">&gt;</span>
              &lt;param name<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;wmode&quot;</span> value<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;transparent&quot;</span> /<span style="color: #00AA00;">&gt;</span>&lt;param name<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;quality&quot;</span> value<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> /<span style="color: #00AA00;">&gt;</span>
              &lt;embed id<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;Player1258246398430&quot;</span> type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;application/x-shockwave-flash&quot;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;257&quot;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;136&quot;</span>
                          src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://swf.news.163.com/2010/yayun/lh/countDownEng.swf&quot;</span> 
                          quality<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;high&quot;</span> wmode<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;transparent&quot;</span><span style="color: #00AA00;">&gt;</span>
               &lt;/embed<span style="color: #00AA00;">&gt;</span>
&lt;/object<span style="color: #00AA00;">&gt;</span>&lt;a title<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;www.gz2010.cn/en&quot;</span> href<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://www.gz2010.cn/en&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;/a<span style="color: #00AA00;">&gt;</span>
&lt;/div<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>PS: Remember to resize the width and height if you want to fix it into your site. And the value of width and height in the param tab is very important if you want it work perfect for Opera user.</p>
<p>At last, if you wanna use a Chinese version, just change </p>
<blockquote><p>value=&#8221;http://swf.news.163.com/2010/yayun/lh/countDownEng.swf&#8221; </p></blockquote>
<p>into </p>
<blockquote><p>value=&#8221;http://swf.news.163.com/2010/yayun/lh/countDown.swf&#8221;</p></blockquote>
<p>Then you will see :</p>
<div class="flash">
    <script type="text/javascript">swf('http://swf.news.163.com/2010/yayun/lh/countDown.swf','378','200');</script>
</div>
<p>If you use Worprss blog, it&#8217;s very easy to add this code in the &#8220;Widgets&#8221; Setting by adding a Text widgets and copy into it. That&#8217;s all <img src='http://www.solesky.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />   </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/11/add-a-small-lovely-2010-asian-games-countdown-in-your-site/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mice Hole</title>
		<link>http://www.solesky.com/2009/11/mice-hole/</link>
		<comments>http://www.solesky.com/2009/11/mice-hole/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 02:16:49 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tor]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1191</guid>
		<description><![CDATA[At the same day in 20 years ago,the Berlin Wall was torn down.Today,another higher invisible &#8220;Wall&#8221; is still standing in China.  ( tweeted by @icalcifer ) Today is the day that Berlin Wall crashed at 20 years ago. The fall of Berlin Wall is the symbol of democracy freedom. The West takes it as a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-1195" title="wall" src="http://www.solesky.com/wp-content/uploads/2009/11/wall-300x169.jpg" alt="wall" width="300" height="169" /></p>
<blockquote><p>At the same day in 20 years ago,the Berlin Wall was torn down.Today,another higher invisible &#8220;Wall&#8221; is still standing in China.  ( tweeted by @icalcifer )</p></blockquote>
<p>Today is the day that Berlin Wall crashed at 20 years ago. The fall of Berlin Wall is the symbol of democracy freedom. The West takes it as a great victory and the opposite side try to make it less attractive. However the fall of Berlin Wall takes the world into a new direction and will be remember forever.</p>
<p>Where there is a wall, there would be some mice hole on it. So the stories of the cat and the mouses will never stop until the day that wall crashed.</p>
<p><span id="more-1191"></span></p>
<p>There are tricks  for the mice to dig holes on the Wall, such as VPN, SSH, Proxy and so on. Tor is my favorite trick cause its untraceable and free to use. But unlucky it got a VIP treatment from the Wall and we have to do something to make it work again.</p>
<p>There is a small trick note for myself below. You can take it if you need it too.</p>
<blockquote><p>Step 1: Write a request letter to bridges@torproject.org via a reliable email service likes Gmail. (It&#8217;s especially important if you are behind the Wall) Then we would get a list likes &#8221; bridge 123.123.123.123 &#8221; .</p>
<p>Step 2: Edit the /etc/tor/torrc file as root. To add that list you have got to the &#8220;bridge relays&#8221; section at the bottom of the file. Save and exit.</p>
<p>Step 3: Restart the Tor and Privoxy(if you need) services by the commands:</p>
<p>sudo /etc/init.d/tor restart</p>
<p>sudo /etc/init.d/privoxy restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/11/mice-hole/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

