“Drive not ready for command”错误

11月 9th, 2007 by admin

今天,当我将一张刻录盘放进光驱时,很幸运地遇到了“Drive not ready for command”错误,具体表现为:
机器几乎死机,一卡一卡的,硬盘灯常亮,按Ctrl+Alt+F1进入终端,都无法连续输入命令,不断提示:“hdb:Drive not read y for command”,hdb是我使用的光驱。

搜索了一下,没有什么准确答案,不过有个说法是可能光驱要完蛋了,这个是我比较认同的一个说法,因为只有这张光盘如此,放进其它光盘去,还可以正常运行,但只要这张光盘放进去,就会如此,可能这张光盘比较早,质量有所下降吧,而光驱也快不行了,所以才会冲突,出现这个错误。

在Ubuntu7.10 Compiz下添加快捷键

11月 2nd, 2007 by admin

当你在7.10下打开3D界面的情况下,你会发现你在metacity中设置的快捷键都失效了,这是因为系统使用了compiz代替了metacity窗口管理器的原因,这时你要么关闭特效返回使用metacity,或者在compiz中设置新的快捷键。

按Alt+F2打开运行窗口,输入执行

代码:
gconf-editor

在配置管理器中,找到/apps/compiz/general/allscreens/options/,在这里有许多键,可以修改相应的键值来设置快捷键,比如想把终端的快捷键设置为<Windows>键+R,可以修改run_command_terminal_key键为<Super>R,当然这时这个设置是和compiz的Ezoom插件的按键设置是冲突的,系统可能会提示,你在按下该快捷键时也会发现使用的是缩放桌面功能,你可以在Compiz中修改键设置或者干脆将这个插件关闭。
如果要添加自己想使用的自定义快捷键,也可以修改command0之类的键为自己想运行的命令,再修改相应的run_command0_button为自己想使用的快捷键,这样就OK了。

更直观的做法是:在CompizConfig配置管理器(Advanced Desktop Effects Setting)中,“高级搜索”──“动作”──“General Options”下设置。

系统默认没有安装CompizConfig配置管理器,但你可以在新立得中搜索compizconfig-settings-manager并安装它。或者直接在终端输入

代码:
sudo apt-get install compizconfig-settings-manager

来安装它。

为Thunderbird(雷鸟)添加带农历的日历

10月 29th, 2007 by admin

感谢Linuxtoy.org,它让我知道了Lighting这个Thunderbird日历插件(http://linuxtoy.org/archives/lightning.html)。
当时就想有没有支持农历的插件(官方叫扩展)呢?感谢Google,它让我找到了“Thunderbird的日历功能”(http://www.qings.com/web/index.php?categoryid=23&p2_articleid=459),同时向作者致以诚炙的谢意。

作者已经说得比较清楚了,我就厚颜无耻地再狗尾续貂,来个图文版的,直接点,再补充一个我操作过程中的一点经验。

这里总共要用到两个插件,一是Lighting,Thunderbird的日历插件,下载地址:
https://addons.mozilla.org/en-US/thunderbird/addon/2313

二是Provider for Google Calendar,允许双向访问Google Calendar,下载地址:
https://addons.mozilla.org/en-US/thunderbird/addon/4631

安装方法(网页上有,稍做翻译):
1、右键点击网页中的“Install Now”链接,选择“链接另存为”将其保存到硬盘上。
2、打开Thunderbird,选择“工具”──“附加软件”──“正在安装”,找到下载的插件,“打开”,会出现软件安装窗口,5秒倒计时后点击“安装”,安装完后会提示“重启Thunderbird”,将上述都两个扩展安装上。

安装后界面如下:


–>

注意了吗?左下角多了个日历哦,右边也多了个“事件与日历”栏,点击下方的日历按钮,出现我们将要使用的日历窗口。

虽然已经安装了扩展,这时还无法显示农历,也还不能与Google同步。需要小小设置一下:

1、访问Google Calendar:https://www.google.com/calendar
输入自己的Gmail帐号登录。

2、依次点击右上角的“设置”──“日历设置”中的“日历”标签页下的“农历”,在“农历 详细信息”中右键点击“日历网址”中的XML按钮,选择“属性”,复制它的地址(注意是上方的链接地址,而非下面的图片地址)。


–>


–>


–>


–>


–>

3、我们再回到Thunderbird,依次点击“文件”菜单──“新建”──“日历”,在出现的“创建新日历”窗口中选择“位于网络上”,点击“下一步”,选择格式为“Google日历”并在下方的文本框中粘贴上我们复制的地址,“下一步”,输入名称比如“农历”并为其选择一个自己喜欢的颜色,“下一步”,会提示输入Google Calendar用户名密码信息,这里要注意了,输入的信息是你的Google帐户信息,一般就是你的Gmail邮箱(全名),而不是使用原来默认的东东。如果懒得每次都输入密码,记得勾选下方的“使用密码管理器来记住这个密码”。OK,这样就完成了,我们已经可以使用带农历的日历了。


–>


–>


–>


–>


–>


–>

完美吗?当然还不,怎么能少了咱中国的节日呢?还是继续利用Google Calendar补全它。

4、在Google Calendar的“日历设置”的“日历”标签项,点击“添加日历”按钮,点击“浏览日历”,选择适合自己的节假日日历,大陆可以选择“中国节假日”,点击后面的“添加日历”即可。再重复第2步、第3步,只不过将操作对象换成了“中国节假日”。


–>


–>


–>

完成后效果图:


–>

两个语音库的比较

10月 28th, 2007 by admin

OtdRealPeopleTTS好像是把MP3转回wav格式,是16bit,Stereo,采样率是44100Hz,里面一共15860项,大小3GB。

WyabdcRealPeopleTTS是21085项,共166.8MB,8bit,Mono,采样率是11025Hz。

比如abhorrence一词WyabcdRealPeopleTTS中就有,而OtdRealPeopleTTS就没有。

而且两者的发音还不太一样,比如abhor一词,WyabdcRealPeopleTTS中发音时将h读出,而OtdRealPeopleTTS而没有读出,且重音也感觉不一样,W重音在h上,而O的重音在b上。

在7.10中的bug

10月 28th, 2007 by admin

1、Firefox中在回帖时输入汉字偶尔会出现吃字现象,最后的几个字看不见,光标无法移到最后一个字后面。
2、Gedit、Scribe中偶尔出现无法选择文本,能看见光标,但无法选择。
3、面板上的天气插件还是无法正常显示济南天气。总是显示雾,27度。

4、scribe中也出现无法选择的情况,与Gedit一样
5、stardict的一个bug,在取词时偶尔窗口成一小长条状,无法取词,已经看到有人说是bug了,而且也已经提供修复下载了,但貌似源里的这个还没有。

6、Exaile中虽然显示有“Edit track”但还是无法编辑信息,升级到0.2.11后解决。还有那个信息,点了后只在下面显示”Loading page”,可能是被wall挡了的缘故吧?
升级后,居然默认播放列表的列只显示音轨编号,其它都没有,还以为不支持中文呢。
============================
乱搞Exaile了一阵,想直接编译用bzr下载的源码,不想没成功,用sudo make uninstall卸载后重新从源里安装上,却发现出问题了,用命令行启动提示“You have entered an invalid option”,而且窗口只显示外面的框架,只有标题栏,没有菜单、工具栏和其它的东西。无奈之下只能重装了Amarok,结果下午启动机器进入Ubuntu时再次安装却没有问题了。奇怪。而且也可以保存编辑的音轨信息了。

网页访问Ubuntu的IRC记录

10月 28th, 2007 by admin

http://logs.ubuntu-eu.org/freenode/依次点击欲查看的日期,再找到自己想看的频道(ubuntu-cn),就可以了。

mldonkey系列之五──Mldonkey选项解释

10月 27th, 2007 by admin

本文译自:http://mldonkey.sourceforge.net/MLdonkeyCommandsExplained

MLDonkey behavior can be altered by many user definable settings, or “options”. All options are stored in .ini files located in MLdonkey startup folder. Those files also contain some comments for the options they contain.

GUIs usually provide a mean to edit a subset of the options, but as a last resort, you can use the set internal command, or even edit the options files (while the core isn’t running). In the later case inputs aren’t immediately validated, so be careful. Notice that options files syntax also do not always match the command interpreter syntax, especially for non-scalar values. See EnteringMultipleValues.

Modifying the value of an option can sometime trigger an action. That’s often used to check that the new value is acceptable, and revert it to something allowed if not; But in few cases more creative actions are triggered.

A lot of people have problems to configure mldonkey the right way, because there are so many options you can set. This page should help to understand all the different options, what their meaning is and what is a good value for them. Remark: default values are usually reasonable ones. Modifying options can decrease performance just as much as they can increase it. Double check what you’re doing, and when in doubt, keep track of what you’re doing so you can revert it later.

Let’s have a look:
Contents
[hide] [hide]

* 1 Not yet classified
* 2 Bandwidth
* 3 Upload
* 4 Download
* 5 Completed Files
* 6 Servers
* 7 GUI
* 8 Web & Telnet UI
* 9 Banning
* 10 Sources
* 11 Search
* 12 Chat
* 13 p2p Protocols
* 14 eDonkey
* 15 Overnet
* 16 Bittorrent
* 17 Security
* 18 Ports and IP binding addresses
* 19 Internal Options
* 20 Shell
* 21 Debug

[edit]
Not yet classified

o Allow or disallow MLdonkey to emulate sparse files on the filesystems that don’t have their native support

emulate_sparsefiles = false

o The md4-hash of this client:

client_md4 = “275EB15A200E020DC0ED6FF0D1B96F40″

o no description available:

retry_delay = 3600.000000

o The number of UDP packets you send every check_client_connections_delay:

max_udp_sends = 10

o This option defines a set of date at which some commands have to be executed:

calendar = []

o Use the IP specified by ‘client_ip’ instead of trying to determine it ourself. Don’t set this option to true if you have dynamic IP.

force_client_ip = false

o The last IP address used for this client:

client_ip = “192.168.0.2″

o Allow or disallow automatic discovery of the IP address on startup by connecting to http://ip.discoveryvip.com/ip.asp

discover_ip = true

o Name of program used for preview (first arg is local filename, second arg is name of file as searched on eDonkey:

previewer = mldonkey_previewer

o small name of client:

client_name = <your_nick>

[edit]
Bandwidth

o Maximal number of opened connections:

max_opened_connections = 156

o The size of the header of a TCP/IP packet on your connection (ppp adds 14 bytes sometimes, so modify to take that into account):

tcpip_packet_size = 40

o The size of the MTU of a TCP/IP packet on your connection

mtu_packet_size = 1500

o The size of the minimal packet you want mldonkey to send when data is available on the connection

minimal_packet_size = 600

o How many samples go into an estimate of transfer rates:

download_sample_size = 10

o The delay between one glance at a file and another:

download_sample_rate = 1.000000

[edit]
Upload

o Directories where files will be shared:

shared_directories = []

o A list of extensions of files that should be shared. Files with extensions not in the list will not be shared (except if the list is empty Smile:

shared_extensions = []

o Allow others to browse our share list (0 = none , 1 = friends only, 2=everyone)

allow_browse_share = 2

o The maximal upload rate you can tolerate on your link in kB/s (0 = no limit). The limit will apply on all your connections (clients and servers) and both control and data messages.:

max_hard_upload_rate = 0

o How many slots can be used for upload:

max_upload_slots = 10

o How many percent of upload slots can be used for downloading files tagged as release

max_release_slots = 20

o Set this to true if you want to have dynamic upload slot allocation (experimental)

dynamic_slots = false

o The weight of upload on a donkey connection compared to upload on other peer-to-peer networks. Setting it to 5 for example means that a donkey connection will be allowed to send 5 times more information per second than an Open Napster connection. This is done to favorise donkey connections over other networks, where upload is less efficient, without preventing upload from these networks.:

upload_power = 5

o How long can a silent client stay in the upload queue:

upload_timeout = 1800.000000

o How long a downloading client can stay in my upload queue (in minutes >5)

upload_lifetime = 90

o Each client upload lifetime depends on download-upload ratio

dynamic_upload_lifetime = false

o Uploaded zones (1 zone = 180 kBytes) needed to enable the dynamic upload lifetime

dynamic_upload_threshold = 10

o Set aside a single reserved slot to upload to friends

friends_upload_slot = true

o Maximum file size to benefit from the reserved slot for small files

small_files_slot_limit = 10240

[edit]
Download

o The maximal download rate you can tolerate on your link in kB/s (0 = no limit). The limit will apply on all your connections (clients and servers) and both control and data messages.:

max_hard_download_rate = 0

o The maximal number of files in Downloading state (other ones are Queued)

max_concurrent_downloads = 60

o Maximal number of incoming connections at any moment (default 10000 = unlimited Smile

max_indirect_connections = 10000

o The directory where temporary files should be put:

temp_directory = “/home/share/mldonkey/temp”

o The subdirectory of temp/ where files should be moved to:

commit_in_subdir = “”

o How many sources to use to download each chunk:

sources_per_chunk = 1

o Should we try to download chunks in random order (false = linearly) ?:

random_order_download = false

o Should mldonkey try to detect sources responsible for corruption and ban them

reliable_sources = false

o Are the cancelled files added to the old files list to prevent re-download ?:

keep_cancelled_in_old_files = false

o Set to true if you want all new downloads be paused immediatly, will be set to false on core start.

pause_new_downloads = false

[edit]
Completed Files

o Set to false if you don’t want mldonkey to automatically put completed files in incoming directory

auto_commit = true

o A command that is called when a file is completely downloaded. Arguments are: <file_name on disk> <md4-hash> <size>:

(At least in newer releases (2.04+) the order for the args is: <hash> <size> <name>)
file_completed_cmd = “”

o Your e-mail if you want to receive mails when downloads are completed:

mail = “”

o Does your mail-server need <…> around addresses

add_mail_brackets = false

o The port to use on the mail server (default 25):

smtp_port = 25

o The mail server you want to use (must be SMTP). Use hostname or IP address:

smtp_server = “127.0.0.1″

o Send filename in mail subject

filename_in_subject = true

o The files that were downloaded:

old_files = []

[edit]
Servers

o Set to true if you also want mldonkey to run as a server (experimental):

enable_server = false

o Set this option to false if you don’t want auto update of servers list:

update_server_list = true

o Minimal number of servers remaining after remove_old_servers:

min_left_servers = 200

o The minimal number of users for a server to be admitted as one of the 5 master servers:

master_server_min_users = 0

o The minimal number of users for a server to be stayed connected:

min_users_on_server = 0

o A list of lines to download on the WEB: each line has the format: (kind, period, url), where kind is either ’server.met’ (for a server.met file), or ‘comments.met’ for a file of comments, and period is the period between updates (in days), and url is the url of the file to download. IMPORTANT: Put the URL and the kind between quotes.

EXAMPLE:
web_infos = [('server.met', 1, 'http://www.primusnet.ch/users/komintern/ed2k/min/server.met')]

web_infos = [
("server.met", 1, "http://ocbmaurice.dyns.net/pl/slist.pl?download");
(ocl, 1, "http://members.lycos.co.uk/appbyhp2/~FlockHelpApp/contact-files/contact.ocl")]

o How often should we check all servers (minimum 4 hours, 0 to disable):

servers_walking_period = 6

o Number of servers that can be used to walk between servers:

max_walker_servers = 1

o Set this option to false if you don’t want mldonkey to change the master servers it is connected to:

keep_best_server = true

o max number of days after which an unconnected server is removed:

max_server_age = 2

o How long can a silent server stay connected:

connected_server_timeout = 1800.000000

o The number of servers you want to stay connected to:

max_connected_servers = 1

o no description available:

black_list = true

o A list of server IP to remove from server list. Servers on this list can’t be added, and will eventually be removed:

server_black_list = []

o A list of ports that specify servers to remove from server list. Servers with ports on this list can’t be added, and will eventually be removed:

port_black_list = []

o immediately close connection to ed2k-servers that don’t grant a High ID:

ED2K-force_high_id = false

o The version of the protocol that should be sent to servers (need restart) :

protocol_version = 61 (now hardcoded)

o The delay between server connection rounds:

check_connections_delay = 5.000000

o timeout when connecting to a server:

server_connection_timeout = 5.000000

o Initial delay after sending the first localisation queries to a server, before sending other localisation queries.:

files_queries_initial_delay = 20

o Maximal number of localisation queries that can be sent to one server per minute. Some servers kick clients when this value is greater than 1:

files_queries_per_minute = 1

o Initial score for a new server:

initial_score = 5

o Set to true if you want mldonkey client to connect to edonkey servers (enable_donkey must be true).:

enable_servers = true

[edit]
GUI

o Name of GUI to start:

mldonkey_gui = “/home/share/mldonkey/mldonkey_gui”

o Automatically Start the GUI:

start_gui = false

o Ask for GUI start:

ask_for_gui = true

o Delay between updates to the GUI:

update_gui_delay = 1.000000

o The size of the buffer between the client and its GUI. Can be useful to increase when the connection between them has a small bandwith:

interface_buffer = 1000000

[edit]
Web & Telnet UI

o The size long names will be shortened to in the interface:

max_name_len = 50

o The size long client names will be shortened to in the interface:

max_client_name_len = 25

o Is the default terminal an ANSI terminal (escape sequences can be used)

term_ansi = true

o URL where mldonkey can download update information on the network:

network_update_url = “http://savannah.nongnu.org/download/mldonkey/network/”

(Important note: the above URL is totally bogus (non-existent)! Does anyone know what the proper setting for this option should be? — conrads)

o The height of the command frame in pixel (depends on your screen and browser sizes):

commands_frame_height = 140

o This option controls whether the WEB interface should use frames or not:

use_html_frames = true

o Whether to use checkboxes in the WEB interface:

html_checkbox_file_list = true

o The delay between reloads of the vd output in the WEB interface:

vd_reload_delay = 120

o The prefix which is appended to options names when they are used in the telnet/WEB interfaces:

options_prefix = “”

o Message printed at startup (automatically downloaded from network_update_url:

motd_html = “Welcome to MLdonkey”

[edit]
Banning

o Set the number of hours you want client to remain banned:

ban_period = 1

o true if you want your client to ban clients that try queue jumping (3 reconnections faster than 9 minutes):

ban_queue_jumpers = true

o true if you want your mldonkey to lose some upload bandwidth sending messages to clients which are banned Smile:

send_warning_messages = false

o [Regexp] of messages to filter out, example: string1\||string2\||string3:

messages_filter = “Your client is connecting too fast”

o IP blocking list filename (peerguardian format), can also be in gz/bz2/zip format

Zip files must contain either a file named guarding.p2p or guarding_full.p2p.
ip_blocking = “”

o Keep IP blocking ranges descriptions in memory

ip_blocking_descriptions = false

o Space-seperated List of countries to block connections from/to (requires Geoip). Names are in ISO 3166 format, see http://www.maxmind.com/app/iso3166 You can also at your own risk use “Unknown”, for IPs Geoip won’t recognize.

ip_blocking_countries = “”

o Switch to use ip_blocking_countries as block list (false) or as white list (true)

ip_blocking_countries_block = false

[edit]
Sources

o Minimal number of sources for a file:

min_left_sources = 100

o Maximal number of sources for each file:

max_sources_per_file = 500

o clients that give ranks higher than good_client_rank fall is a scheduling queue with lower priority, so if you have lots of sources, connecting to those clients will be delayed (or not done altogether)

good client rank = 500

o Sources that have not been connected for this number of days are removed:

max_source_age = 3

o Allow mldonkey to propagate your sources to other donkey clients:

propagate_sources = true

o The minimal delay between two connections to the same client (in seconds):

min_reask_delay = 600

o The maximal delay between two connections to the same client:

max_reask_delay = 3600

o Maximal number of connections to sources per second:

max_clients_per_second = 5

o Delay used to request file sources:

check_client_connections_delay = 180.000000

o Timeout on client connections when not queued:

client_timeout = 120.000000

o How long should we wait in the queue of another client:

queued_timeout = 1800.000000

[edit]
Search

o Maximal number of results displayed for a search:

max_displayed_results = 1000

o Whether to display results already downloaded:

display_downloaded_results = true

o Max number of UDP packets per round for eXtended Search:

max_xs_packets = 30

o Minimal number of results for filter form to appear:

filter_table_threshold = 50

o filters on replies (replies will be kept).:

filters = “”

[edit]
Chat

o Max number of messages of Chat remembered:

max_dialog_history = 30

o use the chat to indicate when a file has been downloaded:

chat_warning_for_downloaded = true

o the id to use for communicating with the core console through chat interface:

chat_console_id = “donkey console”

o port used by the external chat application to use the core as a proxy:

chat_port = 4002

o hostname of the external chat application:

chat_app_host = localhost

o port of the external chat application:

chat_app_port = 5036

[edit]
p2p Protocols

o Set to true if you also want mldonkey to run as a donkey client:

enable_donkey = true

o Set to true if you also want mldonkey to run as a overnet client:

enable_overnet = true

o Set to true if you also want mldonkey to run as a kad client (since 2.5-23):

enable_kademlia = true

o Set to true if you also want mldonkey to run as a bittorrent client:

enable_bittorrent = true

o Set to true if you also want mldonkey to run as a FileTP client:

enable_filetp = true

o Set to true if you also want mldonkey to run as a OpenFT sub node (experimental):

enable_openft = false

o Set to true if you also want mldonkey to run as a direct-connect node (experimental):

enable_directconnect = false

o Set to true if you also want mldonkey to run as a gnutella sub node (experimental):

enable_gnutella = false

o Set to true if you also want mldonkey to run as a gnutella2 sub node (experimental):

enable_gnutella2 = false

o Set to true if you also want mldonkey to run as an audiogalaxy satellite (experimental):

enable_audiogalaxy = false

o Set to true if you also want mldonkey to run as a soulseek client (experimental):

enable_soulseek = false

o Set to true if you also want mldonkey to run as a napster client (experimental):

enable_opennap = false

[edit]
eDonkey

o Allow or disallow eDonkey module to collect statistics on eMule client flavors

emule_mods_count = false

o Allow or disallow MLDonkey to send exactly only one chunk every upload session, independently if it is empty or partial

ED2K-upload_complete_chunks = false

o Allow or disallow MLDonkey to send one chunk of data every upload session

ED2K-upload_full_chunks = true

o Switch the eDonkey protocol into firewalled mode. When in firewalled mode, the eDonkey cannot be reached directly. Turning this option on changes the handshake a bit when mldonkey connects to a client by identifying with the ID instead of the IP address. You should only turn this on when your client has a so called “low ID”.

firewalled_mode = true

[edit]
Overnet

o Max number of hits in a search on Overnet:

overnet_max_search_hits = 200

o Period between two queries in the overnet tree (should not be set under 5):

overnet_query_peer_period = 5.000000

o How long should a search on Overnet wait for the last answer before terminating:

overnet_search_timeout = 140

o allow extended search to search on overnet:

overnet_search_keyword = false

o maximal number of peers to keep overnet connected (should be >2048):

overnet_max_known_peers = 8192

o port for overnet:

overnet_port = 6517

o Size of the filename storage used to answer queries:

overnet_store_size = 2000

o Should overnet be verbose ?:

verbose_overnet = false

[edit]
Bittorrent

o Ask the tracker for new sources only if you have fewer than that number of sources:

BT-ask_tracker_threshold = 20

o The port to bind the client to

BT-client_port = 6881

o Timeout on client connections

BT-client_timeout = 90.

o The UID of this client

BT-client_uid = REGUYAAAG4XDKLIOWV7Z4SHW6W51C4JC

o Let you define a default comment for creating torrents

BT-default_comment = “”

o Let you define a default tracker for creating torrents (leave empty for mlnet tracker)

BT-default_tracker = “”

o Maximum number of uploaders for bittorrent

BT-max_bt_uploaders = 5

o The maximal number of tracked files (to prevend saturation attack)

BT-max_tracked_files = 100

o Maximum number of HTTP redirects before reaching the tracker – maximum 10, 0 to disable

BT-max_tracker_redirect = 1

o The maximal number of peers returned by the tracker

BT-max_tracker_reply = 20

o Maximum number of uploaders for one torrent

BT-max_uploaders_per_torrent = 5

o Minimum time in seconds to wait between asking the tracker for sources

BT-min_tracker_reask_interval = 300

o Number of peers to request from tracker (Negative # = let tracker decide)

BT-numwant = -1

o (internal option)

BT-options_version = 0

o Send client key to trackers

BT-send_key = true

o The tracker will check the torrent file is available if an announce request is received

BT-tracker_force_local_torrents = true

o The port to bind the tracker to

BT-tracker_port = 6881

o The tracker will check the client key to update ip if changed

BT-tracker_use_key = true

o User agent string (default = “default”)

BT-user_agent = “default”

[edit]
Security

o list of IP address allowed to control the client via telnet/GUI/WEB:

allowed_ips = [
"127.0.0.1"]

o The users that are defined on this core. The default user is called ‘admin’, and uses an empty password. To create new users, login as admin in mldonkey, and use the ‘add_user’ command.

users = [
(admin, "31D6CFE0D16AE931B73C59D7E0C089C0");]

o The password to access your client from the GUI (setting it disables the command-line client):

password = “”

o Your login when using a WEB browser:

http_password http_login = “”

o Your password when using a WEB browser:

http_password = “”

o The realm shown when connecting with a WEB browser:

http_password http_realm = MLdonkey

o The login of the user you want mldonkey to run as, after the ports have been bound (can be use not to run with root priviledges when a port < 1024 is needed):

run_as_user = “”

o The login of the user you want mldonkey to run as, after the ports have been bound (can be use not to run with root priviledges when a port < 1024 is needed):

run_as_useruid = “”

[edit]
Ports and IP binding addresses

o The port used for connection by other donkey clients.:

port = 4662

o port for user interaction:

telnet_port = 4000

o The port used to connect to your client with a WEB browser:

http_port = 4080

o port for user interaction:

gui_port = 4001

o port for GIFT GUI interaction:

gift_port = 1213

o The IP address used to bind the donkey client:

donkey_bind_addr = “0.0.0.0″

o The IP address used to bind the chat server:

chat_bind_addr = “0.0.0.0″

o The IP address used to bind the telnet server:

telnet_bind_addr = “0.0.0.0″

o The IP address used to bind the gui server:

gui_bind_addr = “0.0.0.0″

o The IP address used to bind the http server:

http_bind_addr = “0.0.0.0″

[edit]
Internal Options

o (internal option):

options_version = 1

o The percentage of free memory before a compaction is triggered:

compaction_overhead = 25

o Force compaction every <n> hours (in 1..24):

compaction_delay = 2

o The delay between two saves of the ‘downloads.ini’ file (default is 4 minutes):

save_options_delay = 900.000000

o Maximal size of the buffers of a client:

client_buffer_size = 500000

o Mininum free space in MB on core directory, minimum 20

hdd_coredir_minfree = 50

o If true core shuts down when free space on core dir is below hdd_coredir_minfree, otherwise all downloads are paused and a warning email is sent.

hdd_coredir_stop_core = true

o Send a warning mail each <interval> hours for each directory, 0 to deactivate mail warnings.

hdd_send_warning_interval = 1

o Mininum free space in MB on temp_directory, minimum 50

hdd_temp_minfree = 50

o If true core shuts down when free space on temp dir is below hdd_temp_minfree, otherwise all downloads are paused and a warning email is sent.

hdd_temp_stop_core = false

o Size of the minor heap in kB:

minor_heap_size = 32

o Directory where mldonkey binaries are installed:

mldonkey_bin = “/home/share/mldonkey”

[edit]
Shell

o List of shell commands that are allowed to be called from the interface.

allowed_commands = [
(df, df);
(ls, "ls incoming");]

o Override the restrictions set by allowed_commands (this is a major security risk!):

allow_any_command = false

[edit]
Debug

o The file in which you want mldonkey to log its debug messages. If you set this option, mldonkey will log this info in the file until you use the ‘close_log’ command. The log file may become very large. You can also enable logging in a file after startup using the ‘log_file’ command.

log_file = “”

o size of log in number of records

log_size = 300

o no description available:

log_clients_on_console = true

o A space-separated list of keywords. Each keyword triggers printing information on the corresponding messages:

* mc : debug client messages
* mct : debug client tags
* ms : debug server messages
* net : debug net
* verb : debug other
* sp : debug source propagation
* sm : debug source management
* do : some download warnings
* up : some upload warnings
* unk : unknown messages

verbosity = “”

mldonkey系列之四──Mldonkey命令解释

10月 27th, 2007 by admin

MLDonkey拥有一个简单的内部命令解释器。多数如telnet、Web或GUI这样Mldonkey的界面,都提供了输入命令的方法。通常它们都很方便,有时这是使用Mldonkey高级功能的唯一方法。

在Mldonkey中有许多命令可用,有些并不为人所知。本页试图详细地解释这些命令。

内容

1、用户命令
2、组命令
3、服务器命令
4、搜索命令
5、好友命令
6、下载命令
7、上传命令
8、全局Donkey命令
9、配置命令
10、Overnet命令
11、Kademlia命令
12、恢复命令
13、状态命令
14、调试测试命令
15、未分类的命令
16、旧命令

用户命令
auth <user> <password>: 登录(允许用户登录到mldonkey,如果不登录多数命令无法使用)

useradd <user> <passwd> [<mail>] : 添加新的mldonkey用户/修改用户密码
admin用户可以使用本命令建立一个新用户或修改前面用户的密码,普通用户可以修改自己的密码。
例如:

代码:
> whoami
admin> useradd Jimbo “Jimbos secret password”
User Jimbo added

> auth Jimbo “Jimbos secret password”
Full access enabled

> whoami
Jimbo

> useradd Jimbo newpassword
Password of user Jimbo changed

userdel <user> : (限admin使用)删除一个用户

users : (限admin使用)列出用户。

whoami : 列出登录的用户名

组命令

groupadd <group> <admin: true|false>

服务器命令

vm : 以如下格式列出连接的服务器:
[<网络> <服务器序号>] <IP地址>:<端口> <服务器名> <服务器上连接的节点数> <服务器上索引的文件数> <连接状态>

vma : 按以下格式列出所有已知的服务器:
[<网络> <服务器序号>] <IP地址>:<端口> <服务器名> <服务器上连接的节点数> <服务器上索引的文件数> <连接状态>

n <ip> [<port>] : 添加一个服务器到服务器列表,如果端口省略,默认使用4661端口。

server_banner <num> : 显示已连接服务器<num>的标题。

servers <filename> : 读取一个标准的server.met文件,将其中的服务器添加到你的服务器列表中。

c [<num>] : 若现有服务器连接数小于max_connected_servers的设定值,则连接到另一服务器。
若为<num>设定了值,则连接到vma列出的服务器号为<num>的服务器。

x <num> : 断开到服务器<num>的连接,<num>为vm显示的已连接服务器号之一。

id : 显示你的客户端在已连接的donkey服务器上分配的id,HighID以IP地址方式显示,LowID以单整数显示。

preferred <true/false> <ip> : 设置或重置指定IP的服务器的<preferred>标志。
Preferred服务器永远不会被清除,会更快地升级成主服务器,最后一个降级。它们会被放在服务器列表的最上端,因此也会成为Mldonkey首批试连接的服务器。

例如:

代码:
preferred true 195.245.244.243

bs <ip1> [<ip2> ...] : 将指定IP地址添加到服务器黑名单中。MLdonkey不会尝试连接黑名单中的服务器。但是,黑名单中的服务器只会在定期自动清除中从服务器列表中删除。清除也可由发出remove_old_servers命令强制执行。

bp <port1> [<port2> ...] :
将指定端口添加到端口黑名单列表中,MLdonkey不会尝试连接这些端口上的服务器或节点,但是,使用了黑名单列表中端口的服务器只会在定期自动清除中从服务器列表中删除。清除也可由发出remove_old_servers命令强制执行。
端口4662默认列入服务器的黑名单中。

例如:

代码:
bp 9999

rem <serv1> [<serv2> ...] :
删除多日未连接的服务器。
从服务器列表中删除服务器(使用参数“all”删除全部服务器)。
remove_old_servers : 强制MLdonkey执行服务器列表清除操作。那些超过max_server_age天数的服务器、黑名单列表中的IP地址的服务器、使用端口黑名单中端口的服务器会被从服务器列表中删除。

服务器列表清除会按一定周期自动执行,所以本命令只是在使用了bp或bs命令后用一用。

搜索命令

s <query> :
在所有网络上搜索文件(指定搜索参数)。
本命令用一个指定查询发起一次网络搜索。但是,它不会显示搜索结果;使用vr命令获取结果列表。同时要知道,搜索是异步执行,可能要花很长时间。
在eDonkey网络中,只有当前连接的服务器会被查询。要查询服务器列表中的所有服务器,请使用server list命令。
另外要注意,经常用ExternalSearchUtilities(外部搜索工具)替代MLdonkey内部整合的搜索功能似乎要更可信。更有效,节约你的内存和网络资源。

例如:

代码:
> s “Bill Gates – Win 98 crash on live TV”
Query 1 Sent to 5> vr
Result of search 1
Reinitialising download selectors
2 results (1 waiting)
[[ Num ]] Size Avail Names Tags MD4
[[ 1]] 57624032 2 Bill Gates – Win 98 crash on live TV – EXTR…mpeg 1:00:01 128 1 urn:ed2k:4D70B5FD1ED1F73CA8A71167BD7C1C36
[[ 2]] 5231324 3 Bill Gates – Win 98 crash on live TV – EXTR….mpg 0:29 y41p 1 urn:ed2k:D6426A3138D3952CCA0C49BAB9B64C62

xs : 扩展搜索
本命令将由s命令发起的搜索扩展到服务器列表中的eDonkey服务器上。

要执行扩展搜索,客户将UDP请求发送给不只是主要连接的服务器。这些请求被服务器以比连接客户发来的TCP请求低的优先级进行处理。

本命令花费时间长,质量不高,但结果多。

一次只可运行一个扩展搜索。

例如:

代码:
> s \”Bill Gates – Win 98 crash on live TV\”
Query 1 Sent to 5> vr
Result of search 1
Reinitialising download selectors
2 results (1 waiting)
[[ Num ]] Size Avail Names Tags MD4
[[ 1]] 57624032 2 Bill Gates – Win 98 crash on live TV – EXTR…mpeg 1:00:01 128 1 urn:ed2k:4D70B5FD1ED1F73CA8A71167BD7C1C36
[[ 2]] 5231324 3 Bill Gates – Win 98 crash on live TV – EXTR….mpg 0:29 y41p 1 urn:ed2k:D6426A3138D3952CCA0C49BAB9B64C62

> xs
extended search started

> vr
Result of search 1
Reinitialising download selectors
5 results (done)
[[ Num ]] Size Avail Names Tags MD4
[[ 1]] 57624032 2 Bill Gates – Win 98 crash on live TV – EXTR…mpeg 1:00:01 128 1 urn:ed2k:4D70B5FD1ED1F73CA8A71167BD7C1C36
[[ 2]] 5231324 3 Bill Gates – Win 98 crash on live TV – EXTR….mpg 0:29 y41p 1 urn:ed2k:D6426A3138D3952CCA0C49BAB9B64C62
[[ 3]] 5231324 1 Bill Gates – Win 98 crash on live TV.mpg 0:29 y41p 1 urn:ed2k:EAFD996A305387A9308A21F283C7FC23
[[ 4]] 2558989 1 comedy – bill gates – win 98 crash on live …mpeg 0:29 y41p 1 urn:ed2k:99374B3732EC81538ADB7B48D8528054
[[ 5]] 2557956 19 Funny- Bill Gates – Win 98 crash on live TV…mpeg 0:29 y41p 112 29 250 mpeg Video urn:ed2k:5634E0FAE4140DA96039ABD902DD5C47

vs : 查看所有查询

vr <num> : 查看某一搜索的结果
显示指定搜索或上次搜索(无参数时)的结果。
使用vs查看搜索序号。

view_custom_queries : 查看定制查询
查看定制搜索表/查询的号
如果你是通过telnet连接,你只能看到定制搜索查询的号和名字,如果你通过webgui连接,你就还可以选择你想使用的某一查询。

forget <num1> [<num2> ...] : 放弃搜索<num1> <num2> …
丢弃参数和指定搜索序号的结果。搜索序号由vs命令查看。

好友命令

friends : 显示全部好友
显示全部好友及他们各自ID号的列表。它对窄带终端(narrow terminal)有用。但通常,你会更希望使用vfr命令,打的更少,信息更多。

files <client num> : 显示<client num>好友共享的文件。
查看好友ID,请使用friends或vfr命令。

vfr : 显示好友
显示一张所有好友和他们的ID、IP地址及等级的列表。这只是friends的另一个版本,打得更少,信息更多。

gfr <friend_num> : 从好友那儿取回共享的文件列表,你就可以用vfr查看那个列表。查看好友ID,请使用friends或vfr命令。

friend_add <client_num> : 添加指定ID号为<client num>的节点到好友列表。

friend_remove <client_num> : 删除好友(使用”all”参数删除全部好友)
将指定ID号的好友从好友列表中删除。

message [<client num> <msg>] : 发送信息给指定ID号为<client num>的节点。

下载命令

d <num> : 本命令用来下载一个或多个由s命令找到的文件。例如:

代码:
> s bill gates
Query 1 Sent to 5> vr
Result of search 1
Reinitialising download selectors
143 results (-288 waiting)
[[ Num ]] Size Avail Names Tags MD4
[[ 1]] 734935040 1 Billl Gates.avi urn:ed2k:94D83FACEC47A4297C03335566583E62
[[ 2]] 673210368 3 Los.Piratas.De.Silicon.Valley.La…..AVI 1:33:13 div3 846 5 urn:ed2k:CB6608E4FA57454F08F38C5A161E3EBE
[[ 3]] 457358204 4 Bill Gates – Biografia.mpeg 43:11 y41p 224 2 urn:ed2k:24CBF480D82D47345789BE7890C87553
293 sources, total available 20.64G

> d 1 3
download started
download started

dllink <link> : 下载ed2k、sig2dat、torrent或其它链接。
部分浏览器会在链接末尾添加一个斜线,MLdonkey并不受影响。

dllinks <file> : 下载包含在文件中的所有链接。
每个链接独立一行,允许空行。

dd <size> <md4> : 本命令用来发起一个文件的下载,如果你知道它的字节大小和md4-hash。

http <url> <referer> : 从HTTP、FTP或SSH URL下载文件。当前用FileTP实现还处于实验阶段。只提供了基本功能,特别是对SSH传输。(译注:这个信息比较早,是2004年的wiki,版本是2.5.9)

mirror <num> <url> <referer> : 添加URL作为HTTP或FTP下载文件<num>的镜像。
例如:

代码:
> http http://www.bar.com/test.zip
download started> vd
Downloaded 0/1 files
[[ Num ]] File % Done Size Left Old Active Rate Prio
[[F 75]] test.zip 0.1 7.2kb 10.4mb 10.4mb 0:- 1/1 3.6 0

Downloaded 0 files

> mirror 75 http://www.foo.net/test.zip
mirror added

merge <file num1> <file num2> : 尝试合并下载文件<num2> (次要的)到文件<num1> (主要的)
允许从不同网络同时下载相同文件。

force_download : 强制下载一个已经下载过的文件。
如果你已经下载了一个文件,但想要再下载一次(可能你意外删除了它),mldonkey告诉你“文件已经下载”,在此之后,输入’force_download’。
例如:

代码:
~> dllink ed2k://….file already downloaded

~> force_download

(下载还是开始了)

mldonkey使用old_files列表检测已经下载的文件。所以,要想不使用force_download,你可以在核心没有运行时从那个列表中删除hashes。
如果你使用web界面,如果你在搜索结果中点击链接你无法使用force_download(即使错误信息显示了)。而是,你必须指明ed2k-URL(从搜索窗口你怎么做?),在输入框中输入:

代码:
dllink <the URL>

然后在输入框中使用force_download,

vd [<num>] : 查看文件信息
不带参数时,显示下载队列中所有文件的列表。字段如下:
[<网络> <序号>] <名字> <下载百分比> <已下载字节> <文件大小> <列表中的天数>:<days since last complete seen> <下载速度>

如果给定参数,就会显示指定序号的下载文件的详细信息,例如:文件名、md4-hash、全部/已下载字节、已下载块、替代名字、来源数。
例如:

代码:
> vdDown: 1.7 KB/s ( 106 + 1440 ) || Up: 6.2 KB/s ( 950 + 5373 ) || Shared: 22/543.5M
Num File % Done Size Avail Old Active Rate Prio
[D 17] SampleDownloadFile1.dat 99.9 699.5mb 699.8mb 100% 20:0 56/515 – 0
[D 18] SampleDownloadFile2.dat 96.4 672.9mb 698.2mb 100% 20:0 40/509 1.7 10
Downloaded 0 files

> vd 17

[Donkey 17] E8A6A3D5E6579CD244876DEF201337A9 733479324 9728000
priority 0 dst-share <default>
Chunks: [300000000000000000000000000000000000]
(E8A6A3D5E6579CD244876DEF201337A9)
(SampleDownloadFile1.dat)
(SampleDownloadFile1AlternativeNameFromTheClients1.dat)
(SampleDownloadFile1AlternativeNameFromTheClients2.dat)
3 sources:
[8530] (last_ok <never>)
[6648] JohnDoe (last_ok <03:50 Wed 26 Jan>)
[7378] JaneDoe (last_ok <16:15 Wed 26 Jan>)

pause <num> : 暂停一个下载(使用参数’all’暂停全部文件)
暂停一个下载,暂停的下载不会产生网络流量。文件序号<num>可以用vd找到。如果用’all’替换<num>,所有下载会被暂停。

resume <num> : 续传暂停的下载(使用参数’all’续传所有文件)
续传一个被pause或因磁盘已满暂停的下载。文件号<num>可用vd找到。如果用’all’替换<num>,所有下载会被续传。

tracker <num> <url> [<url>...] :添加URLs作为文件<num>的trackers。

cancel <num> : 取消下载(使用参数’all’取消全部下载)
cancel停止下载并删除临时文件,在此前会要求你确认。
下载号可用vd命令列出。
例如:

代码:
> cancel 77
Files to be cancelled:
[Donkey 77]
Bill Gates vs pie.avi
urn:ed2k:D8A3B060E6F7C90517A5F145492F194A
Total 2601928
Partial 20015
priority 0
Chunks: [0]
Probable name: Bill Gates vs pie.avi
(Bill Gates vs pie.avi)
0 sources:
Type ‘confirm yes/no’ to cancel them> confirm yes
Files cancelled

priority <priority> <file num 1> [<file num 2> ...] : 改变文件优先级
新的MLdonkey使用不同的优先级参数,它决定着哪个文件活跃下载,哪个文件发送到等待队列中去。参数max_concurrent_downloads决定可同时下载的文件数量。
优先级可以设置为-100到100。除非你使用~=<abslevel>语法,<level>是个相对值;所以如果你的文件(优先级)已经是30,你输入40,就变成了70(30+40)。如果你输入-20,就变成了10(30-20),等等。

要在Gtk GUI界面中显示优先级,右击某列标题/在列后添加……>优先级,但是,好像优先级没有更新,在此修复前,你不得不mldonkey内核以更新它们。另外它可以只设置它们成高/中/低,分别代表优先级10、0、-10。用命令行界面,你可以自由地设置优先级,它显示在vd输出的最后一列。

优先级对我有效,但不要幻想一个高优先级的稀有文件比低优先级的流行文件下载得更快。它影响发往服务器的命令请求。

rename <num> “<new name>” : 重命名正在下载的文件。
改变一个正在下载的文件的名字。<num>是文件的序号,<new name>是你想重命名的名字。
你可以使用vd查看正在下载的文件的序号。
它对fasttrack的文件无效,但对eDonkey的文件有效。
例如:

代码:
~> rename 3 newname.avi

commit : 移动已下载的文件到incoming目录。
当文件传输完成后,应该执行一下commit操作,以便把文件从Temp_directory(临时目录)移动到Shared_directories(共享目录)。虽然commit默认自动执行,手动commit在特定配置中会有用的。比如,如果Shared_directories和Temp_directory在不同的磁盘或文件系统。这种情况下,移动文件会占用相当的时间和CPU资源,最好你能手动控制何时发生。

要关闭自动交付,使用commit命令,你需要关掉auto_commit选项。
例如:

代码:
> vd
[ Num ] File Size MD4
[Donkey 99 ] SAMPLE_file.rar 188256 ABCD567890ABCDEFF6161713761822E0
Use ‘commit’ to move downloaded files to the incoming directory> commit
Commited

startbt <URL|file> : 启动BT下载

上传命令

compute_torrent <filename> <comment> : 生成<filename>.torrent文件做种。

nu <m> : 在<m>分钟内关闭上传(5的倍数)

reshare : check shared files for removal

reshare_torrents : recheck torrents/* directories for changes

seeded_torrents : 显示本服务器上所有做种的.torrent文件

shares : 显示共享目录

unshare <dirname> : 删除一个共享目录

全局Donkey命令

version : 显示mldonkey版本

q : 关闭telnet

save <”options”|”sources”|”backup”> : 保存选项/源/备份(empty for options and sources)

kill : 保存并杀掉服务器

! command : 远程运行Shell命令

close_fds : 关闭所有文件 (use to free space on disk after remove)

close_all_sockets : 关闭所有打开的sockets

activity <minutes> : 显示最后<minutes>分钟的活动

配置命令

alias : 添加命令别名。例如: “alias ca cancel all” 做了一个执行”cancel all”的别名”ca”

ansi <bool> : 切换telnet界面ANSI序列开关

disable <num> : 关闭特定的网络

enable <num> : 打开特定网络

html_mods : 切换html_mods

html_mods_style : 选择html_mods_style <#>

html_theme <theme> : 选择html_theme

import <dirname> : 从<dirname>导入配置

port <port> : 改变ED2K端口

set <option_name> <option_value> : 改变选项值

share <priority> <dir> [<strategy>] : 以优先级<priority>共享目录<dir>(共享策略<strategy>)

unalias : 删除一个命令别名,例如: “unalias ca”

urladd <kind> <url> : 从网上载入这个文件,类型也可以是server.met(如果下载文件是一个server.met)

urlremove <url> : 从web_infos中删除<url>

vo : 显示基本选项

voo [<regexp | num>]: 显示所有选项,匹配表达式(比如”ED2K*”)或 视图号(限web界面)。

options : 按节(section)显示选项

reset_md4 : 随机重置client_md4/client_private_key

Overnet命令

ov_boot <ip> <port> : 添加一个Overnet节点

ov_boots : print boot peers显示启动节点

ov_dump_bucket <bucket_nr> : dumps a bucket

ov_dump_known_peers : 转存已知节点dumps known_peers

ov_link <fhalink> : 下载fha:// 链接

ov_load <filename> : 从contact.dat文件中载入节点

ov_md4 : 获取Overnet/Kademlia网络上客户的MD4地址。get client MD4 address on the Overnet/Kademlia network

ov_send_udp : 发送UDP信息(<ip> <port> <msg in hex>)

ov_store : dump the Overnet File Store

ov_view_stats_cmds : Overnet状态命令

ov_web <urls> : 下载.ocl URLS (默认不载入参数no arg load default)

Kademlia命令

kad_boot <ip> <port> : 添加一个Kademlia节点

kad_dump_bucket <bucket_nr> : dumps a bucket

kad_dump_known_peers : 转存已知节点dumps known_peers

kad_link <fhalink> :下载fha://链接

kad_load <filename> : 从一个contact.dat文件载入节点

kad_md4 : 获取Overnet/Kademlia网络上的客户MD4地址get client MD4 address on the Overnet/Kademlia network

kad_send_udp : 发送UDP信息 (<ip> <port> <msg in hex>)

kad_store : dump the Kademlia File Store

kad_view_stats_cmds : Kademlia状态命令

kad_web <urls> : 下载.ocl URLs (默认不载入参数no arg load default)

恢复命令

import_temp <temp_dir> : 导入eDonkey/eMule/lMule临时目录

scan_temp : 显示临时目录内容

recover_bytes <file1> [< file2> ...] : 尝试以字符级恢复这些文件try to recover these files at byte level

recover_temp : 从临时目录中恢复丢失的文件recover lost files from temp directory

verify_chunks <num> : 校验文件<num> 的文件块

状态命令

block_list : 显示符合拦截IP范围的列表display the list of blocked IP ranges that were hit

downloaders : 显示下载者列表display downloaders list

buildinfo : 显示mldonkey核心编译信息print mldonkey core build information

bw_stats : 显示带宽数据show bandwidth statistics

cs : 按ED2K客户种类显示下载上传表show table of download/upload by ED2K clients brand

csbt : 按BT客户种类显示下载上传表show table of download/upload by BT clients brand

csm 按eMule MODs显示下载上传表show table of download/upload by eMule MODs

client_stats : 按客户种类显示下载上传表show breakdown of download/upload by clients brand

client_stats_bt : 按客户种类显示下载上传分析show breakdown of download/upload by clients brand

diskinfo : 显示mldonkey磁盘信息print mldonkey disk information

gdstats : 显示图形传输数据display graphical transfer statistics

kad_boots : 显示启动节点print boot peers

kad_buckets : 显示存储桶表状态print buckets table status

kad_stats : Kademlia状态

links : 列出共享文件的链接 list links of shared files

ov_buckets : 显示存储桶表状态print buckets table status

ov_stats : Overnet状态

runinfo : 显示mldonkey运行时信息print mldonkey runtime information

sources : 显示现在已知源show sources currently known

sysinfo : 显示mldonkey核心编译、运行时和磁盘信息print mldonkey core build, runtime and disk information

upstats : 上传的数据statistics on upload

reset_stats : 重置会话数据reset session statistics

stats : 显示传输数据display transfer statistics

torrents : 显示这个服务器上所有.torrent文件print all .torrent files on this server

uploaders : 显示当前正在上传的用户show users currently uploading

uptime : 核心的uptime core uptime

vu : 查看上传信用view upload credits

portinfo : 显示mldonkey端口使用信息print mldonkey port usage information

调试实验命令

这些命令可能未经通知就消失或改变。请保持关注。

block_test <ip> : 检查一个IP是否被拦截。check whether an IP is blocked

clear_debug : 清除正在调试的用户表clear the table of clients being debugged

clear_log : 清除日志文件clear log_file

close_log : 停止发送核心信息到文件stop sending core messages to a file

debug_client <client num1> [<client num2> ...] : 记录特定客户的活动log specific clients activity

debug_disk <disk> : 调试命令debug command (example: disk .)

debug_file <client nums> : 调试文件状态debug file state

debug_fileinfo : 调试命令debug command (example: file .)

debug_rlimit : 调试命令debug command

debug_socks : 限调试for debugging only

dump_heap : 转存堆栈用于调试dump heap for debug

dump_reliability : 转存源的评估依赖dump the evaluated reliability of sources

log : 转存当前日志状态到控制台dump current log state to console

log_file <file> : 输出核心信息到文件output core messages to a file

mem_stats : 显示内在状态print memory stats

networks : 显示所有网络print all networks

open_log : 打开日志记录到文件enable logging to file

tsources : 显示源存储桶list source buckets

test_recover <num> : 显示文件中下载的段print the segments downloaded in file

use_poll <bool> : use poll instead of select

update_sources : 重新计算连接到源的顺序recompute order of connections to sources(experimental)

stdout <true|false> : 重新激活日志到标准输出reactivate log to stdout

未分类命令

vc <num> : 显示客户view client

add_url <kind> <url> : 从网上载入这个文件。类型也可以是server.met(如果下载的文件是一个server.met)load this file from the web. kind is either server.met (if the downloaded file is a server.met)

calendar_add <hour> “<command>” : 添加到每日被执行的命令add a command to be executed every day

vwi : 显示web_infos选项print web_infos options

confirm <yes|no|what> : 确认取消confirm cancellation

gdremove : 删除图形传输数据文件remove graphical transfer statistics files

message_log : 信息日志[刷新延迟以秒计]message_log [refresh delay in seconds]

preview <file number> : 开始预览文件<file number>start previewer for file <file number>

reload_messages : 重新载入信息文件reload messages file

rm_old_torrents : 删除所有老的.torrent文件remove all old .torrent files

rss : 显示RSS种子print RSS feeds

vcal : 显示日历print calendar

view_custom_queries : 显示定制查询view custom queries

老式命令

add_user, remove_user, add_url, commit_to, set_brothers

mldonkey系列之三──Ini文件

10月 27th, 2007 by admin

.ini文件

当mldonkey首次启动时,建立了许多文件。本页将解释这些文件是干什么的:
对每一个mldonkey能连接上的网络,它都建议了一个.ini文件保存一些值:
audiogal.ini

保存有关audiogalaxy网络的值。mldonkey不再支持这个网络。所以不再建议这个文件……

directconnect.ini
存储有关Direct Connect网络的值。

downloads.ini
保存通用的mldonkey值,及有关edonkey2000和overnet网络的值。这是主要配置文件。

file_sources.ini
保存你连接到的源。

files.ini
保存所有正在下载文件的md4-hash。

friends.ini
保存朋友的名字和IP地址。

limewire.ini
保存有关limewire即gnutella网络的值。

openft.ini
保存有关openFT (giFT的主要协议)网络的值。

opennap.ini
保存有关Open Napster网络的值。

searches.ini
保存你自定义的搜索查询。
server.ini
保存有关整合在mldonkey中的edonkey-server的值。

servers.ini
保存一个你可以连接到的服务器列表。

shared_files.ini
保存你共享的文件的md4-hashes和文件名。

soulseek.ini
保存有关Soulseek网络的值。

这些文件都是文本格式。当使用来自另一mldonkey版本的文件时,丢失的参数会使用默认值,无法识别的参数将被丢弃(删除)。这基本上不会造成损失,所以你可以通过替换可执行文件(内核,GUI……)来转换到另一个mldonkey版本。– Gui列表(gui_donkey_options_panel, gui_overnet_options_panel,…)是不是正确?如果我更新前没有清除它们会不会丢失部分界面改变? /Pango_

注:由于这些文件会在核心(core)运行时被更新数据周期性覆盖,你需要在修改它们前先停止核心。 几乎所有的设置都可以在运行时(on the fly)使用mldonkey的set命令进行修改。

mldonkey系列之二──词汇表

10月 27th, 2007 by admin

A

1. [[availability|]] 可用来源数

    availability : 一个文件的已知源的数量

B

1. [[banned|]]

    banned : (说一个节点或IP地址)拒绝任何文件传输。连接、聊天等等还是被允许的。 参考black listed 。

2. [[black listed|]] 黑名单列表

    black listed : (指一个节点或IP地址) 拒绝连接。到黑名单列表地址的连接是无效的,来自黑名单列表地址的连接会被立刻关闭。参考banned 。