找回密码
 新注册用户
搜索
查看: 3609|回复: 4

Linux下CMD模式如何设代理?

[复制链接]
发表于 2005-10-18 10:47:57 | 显示全部楼层 |阅读模式
我想在LINUX下用CMD模式算SETI(一切都是为了效率!),但我不会设代理,请帮忙.我看了说明,但还是不会.
Usage: ./cmd [options]
    -version               show version info
    -exit_when_idle        Get/process/report work, then exit
    -show_projects         show attached projects
    -return_results_immediately   contact server when have results
    -detach_project URL    detach from a project
    -reset_project URL     reset (clear) a project
    -attach_project        attach to a project (will prompt for URL, account key)
    -update_prefs URL      contact a project to update preferences
    -run_cpu_benchmarks    run the CPU benchmarks
    -check_all_logins      check input from remote users
    -allow_remote_gui_rpc  allow remote GUI RPC connections

从它的HELP看,好像没有讲代理服务器的设置.
version: 4.19 i686-pc-linux-gnu

[ Last edited by Youth on 2005-10-18 at 11:40 ]
回复

使用道具 举报

发表于 2005-10-18 11:43:00 | 显示全部楼层
无责任转载.... ;-)

http://boinc-doc.net/boinc-wiki/index.php?title=BOINC_FAQ:_Running_BOINC_On_Linux

将下列代码加入client_state.xml文件中:

  1. <use_http_proxy/>
  2. <proxy_server_name>;your.ip.address.here</proxy_server_name>
  3. <proxy_server_port>yourproxyport</proxy_server_port>
复制代码


如果不行的话,还可以试试:


  1. <proxy_info>
  2. <use_http_proxy/>
  3. <socks_version>5</socks_version>
  4. <socks_server_name></socks_server_name>
  5. <socks_server_port>80</socks_server_port>
  6. <http_server_name>YOUR PROXY SERVER</http_server_name>
  7. <http_server_port>8080</http_server_port>
  8. <socks5_user_name></socks5_user_name>
  9. <socks5_user_passwd></socks5_user_passwd>
  10. <http_user_name></http_user_name>
  11. <http_user_passwd></http_user_passwd>
  12. </proxy_info>
复制代码
回复

使用道具 举报

 楼主| 发表于 2005-10-18 12:00:04 | 显示全部楼层
你所讲的方法都 试过的,不行啊.

2005-10-18 12:01:37 [http://setiathome.berkeley.edu/] Project prefs: using your defaults
2005-10-18 12:01:37 [http://setiathome.berkeley.edu/] Host ID not assigned yet
2005-10-18 12:01:37 [---] No general preferences found - using BOINC defaults
2005-10-18 12:01:37 [---] Insufficient work; requesting more
2005-10-18 12:01:37 [---] Can't resolve hostname setiathome.berkeley.edu (host n ot found or server failure)
2005-10-18 12:01:37 [---] Can't resolve hostname setiathome.berkeley.edu (host n ot found or server failure)
2005-10-18 12:01:37 [http://setiathome.berkeley.edu/] Couldn't read master page for http://setiathome.berkeley.edu/: error -113
2005-10-18 12:01:37 [http://setiathome.berkeley.edu/] Couldn't read master page for http://setiathome.berkeley.edu/: error -113
2005-10-18 12:01:37 [http://setiathome.berkeley.edu/] Detaching from project - c heck for URL error
2005-10-18 12:01:37 [http://setiathome.berkeley.edu/] Detaching from project - c heck for URL error
BOINC couldn't get main page for http://setiathome.berkeley.edu/.
Please check the URL and try again.
2005-10-18 12:01:37 [http://setiathome.berkeley.edu/] Resetting project
2005-10-18 12:01:37 [http://setiathome.berkeley.edu/] Detaching from project

[ Last edited by dengshiyou on 2005-10-18 at 12:04 ]
回复

使用道具 举报

发表于 2005-10-18 12:27:59 | 显示全部楼层
我用的是4.45的win版,我的client_state.xml最后是这样的:


  1. <proxy_info>
  2.     <use_http_proxy/>
  3.     <socks_version>5</socks_version>
  4.     <socks_server_name></socks_server_name>
  5.     <socks_server_port>80</socks_server_port>
  6.     <http_server_name>192.168.0.214</http_server_name>
  7.     <http_server_port>8080</http_server_port>
  8.     <socks5_user_name></socks5_user_name>
  9.     <socks5_user_passwd></socks5_user_passwd>
  10.     <http_user_name></http_user_name>
  11.     <http_user_passwd></http_user_passwd>
  12. </proxy_info>
  13. </client_state>
复制代码


好像和上面第二种方法差不多

你如果用4.43的linux版的话,可以跑成cmd模式吗?

[ Last edited by Youth on 2005-10-18 at 12:30 ]
回复

使用道具 举报

 楼主| 发表于 2005-10-18 23:10:08 | 显示全部楼层
成功了.原来我只顾着加IP 和PORT,没注意到那句<use_http_proxy/>真粗心,呵呵.

[ Last edited by dengshiyou on 2005-10-18 at 23:23 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 新注册用户

本版积分规则

论坛官方淘宝店开业啦~

Archiver|手机版|小黑屋|中国分布式计算总站 ( 沪ICP备05042587号 )

GMT+8, 2024-6-1 12:39

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表