• 搜索
  • 夜间模式
    ©2015-2025  Ethan's Blog Theme by OneBlog
    搜索
    标签
    # Amule # Gargoyle # LUCI # VIM # Python # Nginx # 反代 # Ansible # Apache # LNMP
  • 首页>
  • Linux>
  • 正文
  • CentOS7编译Amule

    2018年03月14日 65 阅读 0 评论 3489 字

    折腾了几个小时,总算是把Amule弄出来了,现在下载服务器Aria2c、Transmission、Amule都齐全了,不过Amule下载速度实在感人,将就用着吧,把编译和启动过程做个简单记录,以便日后需要的时候还能看看。

    先安装必须的编译组件

    yum install -y make automake autoconf gettext zlib-devel wxGTK-devel gcc gcc-c++ kernel-headers binutils-devel libupnp-devel bison

    然后准备编译所需的一些东东,wxWidgets这个东西是必须的,而且版本不能高于3.0.3,因为Amule不支持

    wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.3/wxWidgets-3.0.3.tar.bz2
    tar -jxvf wxWidgets-3.0.3.tar.bz2
    cd wxWidgets-3.03
    ./autogen.sh 
    ./configure --enable-unicode
    make -j4 && make install

    clone 一份crtptopp

    wget https://github.com/weidai11/cryptopp/archive/CRYPTOPP_5_6_5.tar.gz
    tar -zxvf CRYPTOPP_5_6_5.tar.gz
    cd cryptopp-CRYPTOPP_5_6_5/
    make && make install

    只能用5.6.5版本,因为6.0改变了API,编译的时候会报错

    下载Amule源码

    wget https://github.com/amule-project/amule/archive/2.3.2.tar.gz
    tar -zxvf 2.3.2.tar.gz
    cd amule-2.3.2
    ./autogen.sh
    ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --prefix=/usr/
    make -j4 && make install
    export LD_LIBRARY_PATH=/usr/local/lib

    实在懒得写,直接照抄官方wiki了:
    Installation of the aMule daemon
    Extract and run

    $ ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --prefix=/usr/bin/
    $ make
    $ make install
    where the –prefix= parameter is to be replaced with the path of where amule is to be installed.

    If you wish to install the client system-wide, rather that the user’s own home directory, the ‘–prefix=’ parameter can be removed.

    Configuration of the aMule-daemon
    Go to the path where aMule was installed, which in our case is ~/bin and run ./amuled. When this is done, the configuration file ~/.aMule/amule.conf is created.
    Quit the daemon again. Find and replace the follwoing lines in ~/.aMule/amule.conf.

    AcceptExternalConnections=1 #<-- To let aMule listen to external connections.
    ECPassword=56f491c56340a6fa5c158863c6bfb39f #<-- MD5 of the password you wish to use
    Use the command md5sum to create a MD5-string of a password:

    $ echo -n password | md5sum
    56f491c56340a6fa5c158863c6bfb39f -

    Configuration of the aMule web interface
    The program amuleweb is used to get the web interface running. To create a configuration file for this program, the following parameters are used, where –password is the password used in the amule daemon configuration and –admin-pass is the password to access the web interface itself.

    $ ./amuleweb --write-config --host=localhost --password=password --admin-pass=anotherpassword

    Then you just have to start amuleweb, and you’re done. Be aware that the amule daemon must be running.

    $ /usr/bin/amuled
    $ /usr/bin/amuleweb

    开机脚本:

    [Unit]
    Description=amuled service
    After=network.target
    [Service]
    User=lonny
    Group=users
    Type=simple
    Environment="LD_LIBRARY_PATH=/usr/local/lib"
    ExecStart=/usr/bin/amuled
    ExecReload=/bin/kill -s HUP $MAINPID
    [Install]
    WantedBy=multi-user.target
    [Unit]
    Description=amuleweb service
    After=network.target amuled.target
    [Service]
    User=lonny
    Group=users
    Type=simple
    Environment="LD_LIBRARY_PATH=/usr/local/lib"
    ExecStart=/usr/bin/amuleweb
    ExecReload=/bin/kill -s HUP $MAINPID
    [Install]
    WantedBy=multi-user.target

    原文链接:http://wiki.amule.org/wiki/HowTo_get_aMule_web_interface

    本文著作权归作者 [ Ethan ] 享有,未经作者书面授权,禁止转载,封面图片来源于 [ 互联网 ] ,本文仅供个人学习、研究和欣赏使用。如有异议,请联系博主及时处理。
    Amule
    — END —
    Copyright©2015-2025  All Rights Reserved.  Load:0.006 s
    Theme by OneBlog V3.6.3
    夜间模式

    开源不易,请尊重作者版权,保留基本的版权信息。