<?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>Matrix &#187; screen</title>
	<atom:link href="http://matrix.windhunter.net/blog/tag/screen/feed" rel="self" type="application/rss+xml" />
	<link>http://matrix.windhunter.net/blog</link>
	<description>Everything that Has a Beginning Has an End</description>
	<lastBuildDate>Tue, 17 Jan 2012 00:51:45 +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>HDChina开放注册</title>
		<link>http://matrix.windhunter.net/blog/2010/02/hdchina-open-register-126.html</link>
		<comments>http://matrix.windhunter.net/blog/2010/02/hdchina-open-register-126.html#comments</comments>
		<pubDate>Sun, 28 Feb 2010 23:55:15 +0000</pubDate>
		<dc:creator>matrix</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[hdchina]]></category>
		<category><![CDATA[rtorrent]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://matrix.windhunter.net/blog/?p=126</guid>
		<description><![CDATA[2月28号，HDChina的2周年生日，开放注册一天。下午2点28分开放注册之后，网站瞬间被挤爆。想注册账户，实在是难上加难。不过，难不住我们Linuxer. cURL是个好工具，可以模拟post数据。可惜，hdchina新的注册页面是带验证码的。去webarchive内找出了08年hdchina.org的注册页面。发现没有验证码识别。嘿嘿不错，直接用curl+POST搞定：(这里的USERNAME/PASSWORD/email都已抹去&#8230;) curl http://hdchina.org/takesignup.php -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/526.9 (KHTML, like Gecko) Version/4.0dp1 Safari/526.8" -v -d "wantusername=&#038;wantpassword=&#038;passagain=&#038;country=2&#038;email=&#038;faqverify=yes&#038;ageverify=yes&#038;rulesverify=yes" 在console里多按几次return就注册上了(本来还想丢crontab的&#8230;)： < HTTP/1.1 200 OK < Server: nginx/0.6.35 < Date: Sun, 28 Feb 2010 17:50:22 GMT < Content-Type: text/html < Transfer-Encoding: chunked < Connection: keep-alive < X-Powered-By: PHP/5.2.4-2ubuntu5.6 < Refresh: 0; url=ok.php?type=signup&#038;email=XXXXXXXXXXX 去邮箱激活账户。大功告成！ linux [...]]]></description>
			<content:encoded><![CDATA[<p>2月28号，HDChina的2周年生日，开放注册一天。下午2点28分开放注册之后，网站瞬间被挤爆。想注册账户，实在是难上加难。不过，难不住我们Linuxer.<br />
cURL是个好工具，可以模拟post数据。可惜，hdchina新的注册页面是带验证码的。去webarchive内找出了08年hdchina.org的注册页面。发现没有验证码识别。嘿嘿不错，直接用curl+POST搞定：(这里的USERNAME/PASSWORD/email都已抹去&#8230;)<br />
<span id="more-126"></span></p>
<blockquote><p><code>curl http://hdchina.org/takesignup.php -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/526.9 (KHTML, like Gecko) Version/4.0dp1 Safari/526.8" -v -d "wantusername=<USERNAME>&#038;wantpassword=<PASSWORD>&#038;passagain=<PASSWORD>&#038;country=2&#038;email=<EMAIL>&#038;faqverify=yes&#038;ageverify=yes&#038;rulesverify=yes"</code></p></blockquote>
<p>在console里多按几次return就注册上了(本来还想丢crontab的&#8230;)：</p>
<blockquote><p><code>< HTTP/1.1 200 OK<br />
< Server: nginx/0.6.35<br />
< Date: Sun, 28 Feb 2010 17:50:22 GMT<br />
< Content-Type: text/html<br />
< Transfer-Encoding: chunked<br />
< Connection: keep-alive<br />
< X-Powered-By: PHP/5.2.4-2ubuntu5.6<br />
< Refresh: 0; url=ok.php?type=signup&#038;email=XXXXXXXXXXX</code></p></blockquote>
<p>去邮箱激活账户。大功告成！</p>
<p>linux console里玩bt，绝配是rTorrent+screen. 熟练工就不废话了。这里只记录一下screen和rTorrent的快捷键备查。</p>
<blockquote><p>
添加和删除 torrents<br />
回退键 	用 URL 或者文件路径添加，采用 tab 键查看目录内容并自动完成，支持通配符，例如: ~/torrent/*<br />
回车键 	和回退键一样，但是添加的 torrent 保持非激活( inactive )状态 (用 ^s 激活)<br />
^o 	对选择的 torrent 设置新的下载目录，仅仅对还没有被激活过的 torrent<br />
^s 	开始下载，先运行 hash ，除非已经做过<br />
^d 	停止激活的下载，或者删除一个停止的下载<br />
^r 	初始化 torrent 的 hash 检查</p>
<p>注意： ^s 和 ^q 在 shell 里面经常用来控制屏幕的暂停，这会和 rTorrent 发生冲突，用 stty -a 来检查是否已经被使用，删除的办法是：</p>
<p>stty stop undef<br />
stty start undef</p>
<p>before running rTorrent (or reattaching to screen) to leave them undefined. You could also replace undef with some other code — ^p, say. ^d also usually sends end-of-file but ncurses passes this through to rTorrent. stty eof undef if you are worried.</p>
<p>To fix this, you may also toggle the flow control in screen with ^a ^f until screen displays “-flow” in the bottom left corner.<br />
修改带宽<br />
a/s/d 	增加上传带宽 1/5/50 KB.<br />
z/x/c 	降低上传带宽 1/5/50 KB.<br />
A/S/D 	增加下载带宽 1/5/50 KB.<br />
Z/X/C 	降低下载带宽 1/5/50 KB.<br />
Common Error Messages</p>
<p>Could not parse bencoded data<br />
    This message is caused by bad communication with the tracker, often caused by invalid client authentication (passkey, IP address, etc.)<br />
Could not create download, the input is not a valid torrent<br />
    This message is caused by a corrupted or otherwise non-valid .torrent file. You should redownload the .torrent file or possibly find a new source for it. </p>
<p>浏览<br />
Global Keys<br />
^q 	关闭 rTorrent，再按一次，强行关闭<br />
上下箭头 	选择 torrent<br />
左键 	回到前一个屏幕<br />
主屏幕视图操作<br />
向右键 	切换到下载视图<br />
^r 	检查 hash<br />
+/- 	修改优先度<br />
l 	查看日志，空格退出<br />
1 	显示所有下载<br />
2 	显示所有下载，按文件名排序<br />
3 	显示开始的下载<br />
4 	显示停止的下载<br />
5 	显示完成的下载<br />
6 	显示未完成的下载<br />
7 	显示正在 hash 的下载<br />
8 	显示正在做种的下载<br />
下载视图<br />
right 	Switch to selected view<br />
left 	Switch to view selection or back to main view<br />
1/2 	Adjust max uploads.<br />
3/4 	Adjust min peers.<br />
5/6 	Adjust max peers.<br />
p 	显示 peer<br />
o 	显示 torrent 信息<br />
i 	Display file list<br />
u 	Display tracker list<br />
t/T 	Initiate tracker request. Use capital T to force the request, ignoring the “min interval” set by the tracker.<br />
Peer list View Keys<br />
left 	Switch to view selection<br />
right 	Show peer details<br />
* 	Snub peer (stop uploading to this peer)<br />
k 	Kick peer (disconnect from peer)<br />
File list View Keys<br />
left 	Switch to view selection<br />
right 	Show file details<br />
space 	Change the file priority; applies recursively when done on a directory<br />
* 	Change the priority of all files<br />
/ 	Collapse directories. While collapsed, press right to expand the selected directory.</p>
<p>Priority options are blank (standard priority), hig (high priority) and off (not to be downloaded).<br />
Tracker list View Keys<br />
left 	Switch to view selection<br />
* 	Enable/disable tracker<br />
space 	Rotate trackers in a group
</p></blockquote>
<p>Screen的：</p>
<blockquote><p>
screen -S console_name 新建一个console<br />
Ctrl-a d         断开所有 screen 终端，返回 screen 执行前状态，但 screen 内所有终端的任务都在执行<br />
screen -ls     列出当前用户的所有 screen 实例，包括联接和断开的<br />
screen -R
<pid>    重新联接到已断开的 screen 实例，如果有多个已断开的 screen 实例，则用
<pid> 区分</p>
<p>Ctrl-a :screen <command>    新建 screen 终端，并运行命令<command><br />
Ctrl-a :resize <height>    改变当前窗口高度为<height><br />
Ctrl-a :quit              退出 screen，将关闭所有 screen 终端，结束其中所有任务</p>
<p>Ctrl-a <Esc>        进入选择模式<br />
<PageUp> 或 Ctrl-u      光标上移一页<br />
<PageDown> 或 Ctrl-d    光标下移一页<br />
<Left>  或 h        光标左移一格<br />
<Down> 或 j         光标下移一行<br />
<Up> 或 k           光标上移一行<br />
<Right> 或 l        光标右移一格<br />
<Space>             选择开始，选择结束<br />
<Esc>               退出选择模式
</p></blockquote>
<p>就这样吧.</p>
]]></content:encoded>
			<wfw:commentRss>http://matrix.windhunter.net/blog/2010/02/hdchina-open-register-126.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

