Matrix
Everything that Has a Beginning Has an End
Browse: Home / 2010 / 2月 / HDChina开放注册

HDChina开放注册

By matrix on 2010/02/28

2月28号,HDChina的2周年生日,开放注册一天。下午2点28分开放注册之后,网站瞬间被挤爆。想注册账户,实在是难上加难。不过,难不住我们Linuxer.
cURL是个好工具,可以模拟post数据。可惜,hdchina新的注册页面是带验证码的。去webarchive内找出了08年hdchina.org的注册页面。发现没有验证码识别。嘿嘿不错,直接用curl+POST搞定:(这里的USERNAME/PASSWORD/email都已抹去…)

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=&wantpassword=&passagain=&country=2&email=&faqverify=yes&ageverify=yes&rulesverify=yes"

在console里多按几次return就注册上了(本来还想丢crontab的…):

< 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&email=XXXXXXXXXXX

去邮箱激活账户。大功告成!

linux console里玩bt,绝配是rTorrent+screen. 熟练工就不废话了。这里只记录一下screen和rTorrent的快捷键备查。

添加和删除 torrents
回退键 用 URL 或者文件路径添加,采用 tab 键查看目录内容并自动完成,支持通配符,例如: ~/torrent/*
回车键 和回退键一样,但是添加的 torrent 保持非激活( inactive )状态 (用 ^s 激活)
^o 对选择的 torrent 设置新的下载目录,仅仅对还没有被激活过的 torrent
^s 开始下载,先运行 hash ,除非已经做过
^d 停止激活的下载,或者删除一个停止的下载
^r 初始化 torrent 的 hash 检查

注意: ^s 和 ^q 在 shell 里面经常用来控制屏幕的暂停,这会和 rTorrent 发生冲突,用 stty -a 来检查是否已经被使用,删除的办法是:

stty stop undef
stty start undef

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.

To fix this, you may also toggle the flow control in screen with ^a ^f until screen displays “-flow” in the bottom left corner.
修改带宽
a/s/d 增加上传带宽 1/5/50 KB.
z/x/c 降低上传带宽 1/5/50 KB.
A/S/D 增加下载带宽 1/5/50 KB.
Z/X/C 降低下载带宽 1/5/50 KB.
Common Error Messages

Could not parse bencoded data
This message is caused by bad communication with the tracker, often caused by invalid client authentication (passkey, IP address, etc.)
Could not create download, the input is not a valid torrent
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.

浏览
Global Keys
^q 关闭 rTorrent,再按一次,强行关闭
上下箭头 选择 torrent
左键 回到前一个屏幕
主屏幕视图操作
向右键 切换到下载视图
^r 检查 hash
+/- 修改优先度
l 查看日志,空格退出
1 显示所有下载
2 显示所有下载,按文件名排序
3 显示开始的下载
4 显示停止的下载
5 显示完成的下载
6 显示未完成的下载
7 显示正在 hash 的下载
8 显示正在做种的下载
下载视图
right Switch to selected view
left Switch to view selection or back to main view
1/2 Adjust max uploads.
3/4 Adjust min peers.
5/6 Adjust max peers.
p 显示 peer
o 显示 torrent 信息
i Display file list
u Display tracker list
t/T Initiate tracker request. Use capital T to force the request, ignoring the “min interval” set by the tracker.
Peer list View Keys
left Switch to view selection
right Show peer details
* Snub peer (stop uploading to this peer)
k Kick peer (disconnect from peer)
File list View Keys
left Switch to view selection
right Show file details
space Change the file priority; applies recursively when done on a directory
* Change the priority of all files
/ Collapse directories. While collapsed, press right to expand the selected directory.

Priority options are blank (standard priority), hig (high priority) and off (not to be downloaded).
Tracker list View Keys
left Switch to view selection
* Enable/disable tracker
space Rotate trackers in a group

Screen的:

screen -S console_name 新建一个console
Ctrl-a d 断开所有 screen 终端,返回 screen 执行前状态,但 screen 内所有终端的任务都在执行
screen -ls 列出当前用户的所有 screen 实例,包括联接和断开的
screen -R 重新联接到已断开的 screen 实例,如果有多个已断开的 screen 实例,则用 区分

Ctrl-a :screen 新建 screen 终端,并运行命令
Ctrl-a :resize 改变当前窗口高度为
Ctrl-a :quit 退出 screen,将关闭所有 screen 终端,结束其中所有任务

Ctrl-a 进入选择模式
或 Ctrl-u 光标上移一页
或 Ctrl-d 光标下移一页
或 h 光标左移一格
或 j 光标下移一行
或 k 光标上移一行
或 l 光标右移一格
选择开始,选择结束
退出选择模式

就这样吧.

Posted in Linux | Tagged curl, hdchina, Linux, rtorrent, screen

« Previous Next »

Copyright © 2023 Matrix.

Powered by WordPress and Hybrid.