• 那是云首页
  • 快捷导航
  • 更多
    设为首页收藏本站
  • |

MBL装goagent

查看数: 13751 | 评论数: 17 | 收藏 4
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2014-4-17 21:34

正文摘要:

需要用到两个软件PUTTY和WinSCP自行百度去下载吧。 一: 打开PUTTY软件 按图片设置参数 IP根据你的MBL设置

回复

amwihgu 来自 中国上海 发表于 2014-5-25 19:40
ymjkk 发表于 2014-5-23 14:03
你这命令还是用的2.5的python所以不成功,你可以参考我另外专门写的帖子,或者直接执行python2.7 /goagen ...

OK。多谢。我会努力再研究的。
ymjkk 来自 中国四川成都 发表于 2014-5-23 14:03
本帖最后由 ymjkk 于 2014-5-23 14:07 编辑
amwihgu 发表于 2014-5-22 21:35
您好。
目前用您给的博客的方法,安装Python2.7成功,但是在Putty中输入运行Python运行的是2.5,得输入P ...

你这命令还是用的2.5的python所以不成功,你可以参考我另外专门写的帖子,或者直接执行python2.7 /goagent/local/proxy.py,不过这样不是后台运行,命令行会一直有输出,具体后台实现,我帖子有,就在置顶,另外一个安装python2.7的方法。
http://www.nasyun.com/thread-22938-1-1.html
amwihgu 来自 中国上海 发表于 2014-5-22 21:35
ymjkk 发表于 2014-5-19 09:39
你可以用我分享的另外一个办法来安装,我用APT安装的有很多问题,后来卸载还把MBL给搞崩溃了,幸好预先留 ...

您好。
目前用您给的博客的方法,安装Python2.7成功,但是在Putty中输入运行Python运行的是2.5,得输入Python2.7才运行这个版本,这是否正常?
以及,我将goagent放在<root>根目录中,然后试着运行它,结果如下:
Bryan-Server:~# python /goagent/local/proxy.py
  File "/goagent/local/proxy.py", line 253
    OpenSSL.crypto.X509Extension(b'basicConstraints', True, b'CA:TRUE'),
                                                   ^
SyntaxError: invalid syntax

不知是否给能点帮助?
谢谢。
ymjkk 来自 中国四川成都 发表于 2014-5-21 14:05
amwihgu 发表于 2014-5-21 08:50
感谢。
是的,我用你提供的博客安装Python成功了。后续的步骤还有待有空再尝试。至少成功了一半。
顺带 ...

是的,这个重装会完全保留。
amwihgu 来自 中国上海 发表于 2014-5-21 08:50
ymjkk 发表于 2014-5-19 09:39
你可以用我分享的另外一个办法来安装,我用APT安装的有很多问题,后来卸载还把MBL给搞崩溃了,幸好预先留 ...

感谢。
是的,我用你提供的博客安装Python成功了。后续的步骤还有待有空再尝试。至少成功了一半。
顺带请教一下:长按Reset键的恢复,数据是会完全保留的是吗?
ymjkk 来自 中国四川成都 发表于 2014-5-19 09:39
amwihgu 发表于 2014-5-17 22:40
Bryan-Server:~# sudo apt-get install python2.7
Reading package lists... Done
Building dependency ...

你可以用我分享的另外一个办法来安装,我用APT安装的有很多问题,后来卸载还把MBL给搞崩溃了,幸好预先留了一手可以通过reset恢复系统,恢复以后我用另外那个方法来安装就一点问题也没有了。
amwihgu 来自 中国上海 发表于 2014-5-17 22:40
ymjkk 发表于 2014-5-16 20:05
这个是APT的缓存不够,这个问题我遇到了,是通过注释掉其他源解决的,但是通过APT装问题很多,我建议另外 ...

Bryan-Server:~# sudo apt-get install python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libc6-ppc64: Depends: libc6 (= 2.18-6) but 2.11.2-2 is to be installed
  locales: Depends: glibc-2.18-1
  python2.7: Depends: python2.7-minimal (= 2.7.6-8) but it is not going to be in                    stalled
             Depends: libpython2.7-stdlib (= 2.7.6-8) but it is not going to be                     installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s                    olution).
Bryan-Server:~# sudo apt-get install libpython2.7-stdlib
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libc6-ppc64: Depends: libc6 (= 2.18-6) but 2.11.2-2 is to be installed
  libpython2.7-stdlib: Depends: libpython2.7-minimal (= 2.7.6-8) but it is not going to be installed
                       Depends: libc6 (>= 2.15) but 2.11.2-2 is to be installed
                       Depends: libdb5.3 but it is not going to be installed
                       Depends: libexpat1 (>= 2.1~beta3) but 2.0.1-4+lenny3 is to be installed
                       Depends: libffi6 (>= 3.0.4) but it is not going to be installed
                       Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
                       Depends: libtinfo5 but it is not going to be installed
  locales: Depends: glibc-2.18-1
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Bryan-Server:~# sudo apt-get install libpython2.7-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libc6-ppc64: Depends: libc6 (= 2.18-6) but 2.11.2-2 is to be installed
  locales: Depends: glibc-2.18-1
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Bryan-Server:~# sudo apt-get install libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 306 not upgraded.
2 not fully installed or removed.
Need to get 0B/4510kB of archives.
After this operation, 750kB disk space will be freed.
WARNING: The following packages cannot be authenticated!
  libc6
Install these packages without verification [y/N]? Y
Preconfiguring packages ...
dpkg: error processing /var/cache/apt/archives/libc6_2.18-6_powerpc.deb (--unpack):
parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 9 package 'libc6':
`Conflicts' field, invalid package name `libc6:hppa': character `:' not allowed (only letters, digits and characters `-+._')
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.18-6_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Bryan-Server:~#

现在的问题是这样的,我作为门外汉着实无从下手了。
您分离的博客里我看到有其它的Approach,我正在尝试,谢谢。
amwihgu 来自 中国上海 发表于 2014-5-17 22:22
ymjkk 发表于 2014-5-16 20:05
这个是APT的缓存不够,这个问题我遇到了,是通过注释掉其他源解决的,但是通过APT装问题很多,我建议另外 ...

您好,感谢。
APT缓存不够的问题我昨天其实通过Google解决了。
但是,后来遇到一个奇怪的“安装档案的子步骤中遇到命名不符合规范的文件”,然后Python的Depend的东西都没装上,无法继续。
ymjkk 来自 中国四川成都 发表于 2014-5-16 20:05
amwihgu 发表于 2014-5-16 18:27
现在的问题是这样的:
Bryan-Server:~# sudo apt-get install python2.7
Reading package lists... Err ...

这个是APT的缓存不够,这个问题我遇到了,是通过注释掉其他源解决的,但是通过APT装问题很多,我建议另外一种方式:
http://www.liy.name/?p=1380
参照这个教程装,装好的python在/OPT/BIN目录里面,你可以用下面这个代码来替换自带的2.5
  1. sudo rm /usr/bin/python
  2. sudo ln -s /opt/bin/python2.7 /usr/bin/python
复制代码


这是另外一个gaogent的教程,我是参照这个教程最后实现的后台服务。
http://www.liy.name/?p=794

这样就可以了,另外我启动代理的时候会报错,会报地址已经存在,但是不影响使用。
快速回复 返回列表 搜索 官方QQ群
懒人地图| 手机版|小黑屋| 智能生活 , 上那是云 |闽ICP备2020018196号-1 |网站地图