折腾了几个小时,总算是把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 创作,采用 知识共享署名4.0 国际许可协议进行许可。
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。