<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<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/"
	>

<channel>
	<title>Dryice Liu's Blog &#187; usb_key</title>
	<link>http://dryice.name/blog</link>
	<description></description>
	<pubDate>Tue, 31 Aug 2010 12:01:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>portable anti virus software</title>
		<link>http://dryice.name/blog/usb_key/portable-anti-virus-software/</link>
		<comments>http://dryice.name/blog/usb_key/portable-anti-virus-software/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 12:23:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[usb_key]]></category>
<category>clamwin</category><category>portable</category><category>usb-key</category><category>virus</category>
		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/portable-anti-virus-software/</guid>
		<description><![CDATA[Well keeping an USB key with my is pretty convience. It is pretty convience for the virus to travel via my USB key too. So having an anti-virus software on my USB key is a must.
And what I found is portable clamwin. Like most anti-virus software it can download the latest virus definition file from [...]]]></description>
			<content:encoded><![CDATA[<p>Well keeping an USB key with my is pretty convience. It is pretty convience for the virus to travel via my USB key too. So having an anti-virus software on my USB key is a must.</p>
<p>And what I found is <a href="http://portableapps.com/apps/utilities/clamwin_portable">portable clamwin</a>. Like most anti-virus software it can download the latest virus definition file from the Internet, and can scan a drive for virus.</p>
<p>One think it doesn&#8217;t support is sitting on the background and check for virus in real time. However that&#8217;s not a big issue cause the only thing I want is to make sure my USB key is clean.</p>
<p>Though most of the Windows PCs have an anti virus software installed, it&#8217;s still a good idea to have one in hand, just in case.</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=666&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_666" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/usb_key/portable-anti-virus-software/feed/</wfw:commentRss>
		</item>
		<item>
		<title>pstart - starter for USB key</title>
		<link>http://dryice.name/blog/usb_key/pstart-starter-for-usb-key/</link>
		<comments>http://dryice.name/blog/usb_key/pstart-starter-for-usb-key/#comments</comments>
		<pubDate>Wed, 16 Aug 2006 10:28:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[usb_key]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/pstart-starter-for-usb-key/</guid>
		<description><![CDATA[Well it&#8217;s easy to get more and more apps with me on an USB key, it is not easy to start them: I&#8217;ll need to go through the folders and find the .exe that I want.
pstart fixed this. It is a program starter, and build with USB key in mind. Not only being portable itself, [...]]]></description>
			<content:encoded><![CDATA[<p>Well it&#8217;s easy to get more and more apps with me on an USB key, it is not easy to start them: I&#8217;ll need to go through the folders and find the .exe that I want.</p>
<p><a href="http://www.pegtop.de/start/">pstart</a> fixed this. It is a program starter, and build with USB key in mind. Not only being portable itself, it can remember relative pathes. So if I add programs on the same USB key, I can start the program from within pstart whichever machine I&#8217;m on.</p>
<p>It has some neat features for a keyboard user like me:</p>
<ul>
<li>It can be called by a hot key, so I don&#8217;t need to move the most to the little tray icon</li>
<li>It has a &#8220;search&#8221; tab, where I can just type the program names, and find out what I want.</li>
</ul>
<p>This becomes one of the &#8220;must have&#8221; on my USB key.</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=669&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_669" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/usb_key/pstart-starter-for-usb-key/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Damm Small Linux</title>
		<link>http://dryice.name/blog/usb_key/damm-small-linux/</link>
		<comments>http://dryice.name/blog/usb_key/damm-small-linux/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 08:05:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[usb_key]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/damm-small-linux/</guid>
		<description><![CDATA[I gave Damm Small Linux a try today. I&#8217;ve heard it before but this article makes me decided to try it out.
There are many ways to boot DSL, CD, USB, or from a host OS, as I&#8217;m still concerning the many old PCs that can&#8217;t boot from USB, I decided to give the embeded version [...]]]></description>
			<content:encoded><![CDATA[<p>I gave <a href="http://www.damnsmalllinux.org/" aiotitle="Damm Small Linux">Damm Small Linux</a> a try today. I&#8217;ve heard it before but <a href="http://www.linux.com/article.pl?sid=06/03/30/177205">this article</a> makes me decided to try it out.</p>
<p>There are many ways to boot DSL, CD, USB, or from a host OS, as I&#8217;m still concerning the many old PCs that can&#8217;t boot from USB, I decided to give the embeded version a try. That is, boot from a host OS.</p>
<p>The package comes with a binary <a href="http://fabrice.bellard.free.fr/qemu/">qemu</a> for Linux and a binary for windows, and scripts to start them. I modified the Linux script a little bit to use my <a href="http://www.freebsd.org">FreeBSD</a> version of qemu from the ports tree. It starts smoothly. However, on my CY1.7 box with 1G memory, it is painful slow. I also tried it on another 866 notebook running win2K, slow too.</p>
<p>I don&#8217;t think it fits my needs as a movable platform to maintain my servers, plus it doesn&#8217;t have <a href="http://dryice.name/blog/emacs/index.html">Emacs</a> in its package system. So I decided to give it up.</p>
<p>But it is a good idea to have something with familiar interface with me. Today I learned some 1G USB key costs me only 199 RMB (around $25). I think I&#8217;ll get one when more PCs could boot from USB and the USB keys get cheaper. I could make a live <a href="http://www.freebsd.org">FreeBSD</a> with me, there are already some tools in the ports tree.</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=697&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_697" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/usb_key/damm-small-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SSH client</title>
		<link>http://dryice.name/blog/usb_key/ssh-client/</link>
		<comments>http://dryice.name/blog/usb_key/ssh-client/#comments</comments>
		<pubDate>Mon, 10 Apr 2006 01:31:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[usb_key]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/ssh-client/</guid>
		<description><![CDATA[The first thought that I need a USB key is that I&#8217;ll need to maintain my servers in case of emergency, not in front of my desktop. As my servers are running FreeBSD, the most important thing I&#8217;ll need is a SSH client.
Among the open source clients, sshwindows and putty are the most popular two. [...]]]></description>
			<content:encoded><![CDATA[<p>The first thought that I need a USB key is that I&#8217;ll need to maintain my servers in case of emergency, not in front of my desktop. As my servers are running <a href="http://www.freebsd.org">FreeBSD</a>, the most important thing I&#8217;ll need is a SSH client.</p>
<p>Among the open source clients, <a href="http://sshwindows.sourceforge.net/">sshwindows</a> and <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">putty</a> are the most popular two. I choose putty because</p>
<ol>
<li>I don&#8217;t like the cygwin layer</li>
<li>I don&#8217;t need the server side thing</li>
<li>putty is more featureful</li>
</ol>
<p>Besides an SSh client, putty comes with many useful tools. The two I like most are</p>
<ol>
<li>pagent.exe that hold the key phase so that I don&#8217;t need to type it in again and again. It can work with other tools supporting SSH2 key auth, like <a href="http://filezilla.sourceforge.net/">filezilla</a>.</li>
<li>plink.exe works like a stream ssh client. It can be intergrated with many other tools that needs an external ssh client. I&#8217;ve got it running with win cvs and <a href="http://www.cis.upenn.edu/~bcpierce/unison/">unison</a>.</li>
</ol>
<p>However, <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">putty</a> is not a green software. It stores infomation in the registry. There are <a href="http://www.thiago.joi.com.br/andre/puttyconfer.html">puttyconfer</a> that could do the import and export thing, but it needs a .Net framework available on the PC. So I only keep it on my USB key to do config copy/mirror thing among my putty setups and using the reg file way to do config import/export on daily usage.</p>
<p>I found this solution somewhere on the net and hacked it on. Unfortunately I can&#8217;t find the original source. Here&#8217;s what I have:</p>
<p>start.bat:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">@ECHO OFF<br />
regedit /s putty.reg<br />
#regedit /s puttyrnd.reg</div>
<p>end.bat:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">regedit /ea new.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY<br />
copy new.reg putty.reg<br />
del new.reg<br />
regedit /s puttydel.reg</div>
<p>puttydel.reg</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">REGEDIT4</p>
<p>[-HKEY_CURRENT_USER\Software\SimonTatham\PuTTY]</p></div>
<p>For the first usage, run end.bat to get putty.reg on your desktop machine from the registry, and run start.bat to put them back. Then keep these files with putty. Whenever you are on a new machine, run start.bat to import the settings. If you change your settings on the new machine, run end.bat to get the new settings exported. This will also delete the info from the registry. If you don&#8217;t like that, comment the puttydel.reg line from end.bat.</p>
<p>And although <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">putty</a> can support CJK pretty good, we&#8217;ll still get trouble if there isn&#8217;t the font we set on the random box. <a href="http://www.csie.ntu.edu.tw/~piaip/pietty/">pietty</a> comes handy on this for CJK users. And one more feature I like most: It can detect links like <a href="http://">http://</a> or <a href="ftp://">ftp://</a> and I can click on it!</p>
<p>So most time when I get on a foreigh machine, run pagent.exe for my key, run start.bat to import my settings, run pietty for the work, and run end.bat to do the cleanup.</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=701&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_701" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/usb_key/ssh-client/feed/</wfw:commentRss>
		</item>
		<item>
		<title>portable Firefox</title>
		<link>http://dryice.name/blog/usb_key/portable-firefox/</link>
		<comments>http://dryice.name/blog/usb_key/portable-firefox/#comments</comments>
		<pubDate>Wed, 29 Mar 2006 09:01:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[usb_key]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/portable-firefox/</guid>
		<description><![CDATA[As most people who don&#8217;t use M$ windows as their desktop, Firefox is my favirot web browser. It is a good idea to keep one on my USB key.
Fortnately someone has done a binary build that suitable for a USB key, that is Portable Firefox. It is in pretty good shape so I have no [...]]]></description>
			<content:encoded><![CDATA[<p>As most people who don&#8217;t use M$ windows as their desktop, <a href="http://dryice.name/blog/firefox/index.html">Firefox</a> is my favirot web browser. It is a good idea to keep one on my USB key.</p>
<p>Fortnately someone has done a binary build that suitable for a USB key, that is <a href="http://portableapps.com/apps/internet/browsers/portable_firefox">Portable Firefox</a>. It is in pretty good shape so I have no problem install plugins or themes, though I don&#8217;t have as much plugins as on my desktop. Check out their <a href="http://portableapps.com/support/portable_firefox#plugins" aiotitle="instructions">instructions</a> for some special plugins.</p>
<p>One thing I must have is the <a href="https://addons.mozilla.org/extensions/moreinfo.php?id=125&amp;application=firefox">switch proxy</a> plugin. Because for some reasons I&#8217;ll need <a href="http://tor.eff.org/">tor</a> to access some sites band by some ISP. Tor is for anonymize web browsing and publishing, instant messaging, IRC, SSH, and other applications that use the TCP protocol. As said on their <a href="http://tor.eff.org">homepage</a>. It&#8217;s basicly a socks proxy for the end user, using P2P technology.</p>
<p>The official site of TOR doesn&#8217;t provide a USB friendly binary. Fortunately (again) someone made a USB friendly <a href="http://torpark.nfshost.com/">torpark</a> that includes tor and portable Firefox, and a wrapper. I don&#8217;t like the wrapper so I strim the TOR from it. It&#8217;s pretty easy: just delete everything except the tor directory.</p>
<p>One more thing to notice is that some common features like download history, browser history, form info, disk cache are disabled by default, to save disk space and life. If you don&#8217;t care too much about disk space and life like me, you could re-enable them in the options menu to get the familiar feeling.</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=707&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_707" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/usb_key/portable-firefox/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The choice of editor</title>
		<link>http://dryice.name/blog/usb_key/the-choice-of-editor/</link>
		<comments>http://dryice.name/blog/usb_key/the-choice-of-editor/#comments</comments>
		<pubDate>Wed, 22 Mar 2006 08:25:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[usb_key]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/the-choice-of-editor/</guid>
		<description><![CDATA[The first thing for my USB key is a good editor, and this turns out to be the hardest.
As I am an Emacs user, the idea thing is to bring Emacs with me. However, it is too laaaarge for a USB key. It&#8217;ll take half of my 256M key, and I&#8217;ll have severl MB of [...]]]></description>
			<content:encoded><![CDATA[<p>The first thing for my USB key is a good editor, and this turns out to be the hardest.</p>
<p>As I am an <a href="http://dryice.name/blog/emacs/index.html">Emacs</a> user, the idea thing is to bring Emacs with me. However, it is too laaaarge for a USB key. It&#8217;ll take half of my 256M key, and I&#8217;ll have severl MB of configure files and packages. And to get it fully working, I&#8217;ll need to find several windows binaries of open source software, and some of them won&#8217;t work like in <em>nix environment.</em></p>
<p><em>Too leave room for the other applications. I decide to find some replacement. My initial requirements are:</em></p>
<ol>
<li><em>Emacs like interface</em></li>
<li><em>support Chinese language</em></li>
<li><em>syntax highlight</em></li>
<li><em>available in both Windows and Unix</em></li>
<li><em>there is a dired-like mode</em></li>
</ol>
<p><em>After several hours searching on the Internet, the best fit I can find is <a href="http://www.notgnu.org/">notgnu</a>. A lightweight Emacs like editor. The only drawback is that it doesn&#8217;t support syntax highlight. First I think this doesn&#8217;t matter that much cause I won&#8217;t do too much text editing on a foreigh machine.</em></p>
<p><em>But I was wrong. One day I have to debug several dos/windows </em>.bat files and I missed syntax highlight!</p>
<p>As I&#8217;ve did a pretty hard search the first time, I decide to give up requirement (0). And an obvious answer comes out: <a href="http://www.vim.org">VIM</a>! I know the basic dozen of vim commands, but, God, I don&#8217;t want to learn another set of keybindings to use it efficiently just because I&#8217;ll use it causually on a foreigh machine, and deal with all the config files!</p>
<p>OK, I&#8217;ll need to give up some thing more&#8230;.</p>
<p>My current choice is <a href="http://www.pspad.com/">pspad</a>. It&#8217;s only for Windows though. But, damm, it&#8217;s so powerful, and easily configured, and less than 10M. Pretty much what I want.</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=711&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_711" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/usb_key/the-choice-of-editor/feed/</wfw:commentRss>
		</item>
		<item>
		<title>my usb key</title>
		<link>http://dryice.name/blog/usb_key/my-usb-key/</link>
		<comments>http://dryice.name/blog/usb_key/my-usb-key/#comments</comments>
		<pubDate>Tue, 14 Mar 2006 02:03:00 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[usb_key]]></category>

		<guid isPermaLink="false">http://dryice.name/wordpress/index.php/uncategorized/my-usb-key/</guid>
		<description><![CDATA[Well as my notebook is getting old, and pretty heavy, I&#8217;m trying to find out a way to do my work when I&#8217;m not in front of my desktop.
A USB key looks like the most light weight solution so late last year I&#8217;ve got my self a unibit 256M one. . The picture is taken [...]]]></description>
			<content:encoded><![CDATA[<p>Well as my notebook is getting old, and pretty heavy, I&#8217;m trying to find out a way to do my work when I&#8217;m not in front of my desktop.</p>
<p>A USB key looks like the most light weight solution so late last year I&#8217;ve got my self a unibit 256M one. <img src="http://dryice.name/wordpress/wp-content/uploads/2006/03/linglong.jpg" />. The picture is taken from the manufacture site at <a href="http://www.unibit.com.cn/products_show.asp?id=53">http://www.unibit.com.cn/products_show.asp?id=53</a>. It comes with a USB 2.0 interface so the speed is pretty good. What I like most is that it&#8217;s so thin that can perfectly fit into my wallet so I&#8217;ll take it everywhere I go and won&#8217;t worry about if I have it with me.</p>
<p>The next thing is to choose the software on it. As an open/free software fan I have 2 choices:</p>
<ol>
<li>build a mini *BSD on it.</li>
<li>have a set of windows software on it.</li>
</ol>
<p>The good thing for approach (1) is that I&#8217;ll have a full OS with me and a pretty familiar interface, especially if I build a mini <a href="http://www.freebsd.org">FreeBSD</a>. And I can have it running whatever OS is installed on the PC I borrowed.</p>
<p>However now adays there are still lots of PCs around with only a USB interface but not able to boot from a USB key. And in some network bars they may forbit me to change the BIOS settings to boot from USB.</p>
<p>Thinking it through I thing approach (2) is a more suitable choice for now. So in this category I&#8217;ll introduce some of the softwares I choose to install to the USB key and bring with me.</p>
<p>Some of the requirements for the softwares will be:</p>
<ul>
<li>Open software is most prefferred. Or at least free-to-use softwares. No commercial software.</li>
<li>Must be small. To fit in to my USB key and don&#8217;t take too much space of it.</li>
<li>Green software. That is, no registery writting, no dll installed to the system directory, and I can bring the settings with me on the key.</li>
</ul>
<p><hints id="hah_hints"><span id="hah_hint_144" name="hah_hint" style="border: 1px solid buttonshadow; padding: 0px 3px; z-index: 500; font-family: helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: x-small; line-height: normal; font-size-adjust: none; font-stretch: normal; color: buttontext; background-color: buttonface; -moz-border-radius-topleft: 0.3em; -moz-border-radius-topright: 0.3em; -moz-border-radius-bottomright: 0.3em; -moz-border-radius-bottomleft: 0.3em; position: absolute; display: inline; top: 99px; left: 132px">DDA</span><span id="hah_hint_145" name="hah_hint" style="border: 1px solid buttonshadow; padding: 0px 3px; z-index: 500; font-family: helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: x-small; line-height: normal; font-size-adjust: none; font-stretch: normal; color: buttontext; background-color: buttonface; -moz-border-radius-topleft: 0.3em; -moz-border-radius-topright: 0.3em; -moz-border-radius-bottomright: 0.3em; -moz-border-radius-bottomleft: 0.3em; position: absolute; display: inline; top: 120px; left: 8px">DDS</span></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=716&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_716" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/usb_key/my-usb-key/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

