刷了N1,装了entware , 装了transmission 装了aria2 发现竟然无法下载ed2k,怒了!遂谷歌之......
第一次玩amule ,边摸索边装踩了不少坑,大神请无视,轻喷
1、安装amule
opkg install amule
2、设置配置文件
安装之后找了半天没找到配置文件在哪里,最后发现是需要先启动一次生成配置文件
/opt/etc/init.d/S57amuled start
/opt/etc/init.d/S57amuled stop
配置文件如下,这个地方坑较多,花了我很久时间:
vi /opt/var/amule/amule.conf
[eMule]
AppVersion=SVN
Nick=http://www.aMule.org
QueueSizePref=50
MaxUpload=0
MaxDownload=0
SlotAllocation=2
Port=4662
UDPPort=4672
UDPEnable=1
Address=
Autoconnect=1
MaxSourcesPerFile=300
MaxConnections=500
MaxConnectionsPerFiveSeconds=20
RemoveDeadServer=1
DeadServerRetry=3
ServerKeepAliveTimeout=0
Reconnect=1
Scoresystem=1
Serverlist=0
AddServerListFromServer=0
AddServerListFromClient=0
SafeServerConnect=0
AutoConnectStaticOnly=0
UPnPEnabled=1
UPnPTCPPort=50000
SmartIdCheck=1
ConnectToKad=1
ConnectToED2K=1
#这个是缓存目录
TempDir=/storage/28400B5B400B2F5E/Torrent/Amule/Temp
#这个是下载目录
IncomingDir=/storage/28400B5B400B2F5E/Torrent/Amule/Incoming
ICH=1
AICHTrust=0
CheckDiskspace=1
MinFreeDiskSpace=1
AddNewFilesPaused=0
PreviewPrio=0
ManualHighPrio=0
StartNextFile=0
StartNextFileSameCat=0
StartNextFileAlpha=0
FileBufferSizePref=16
DAPPref=1
UAPPref=1
AllocateFullFile=0
OSDirectory=/opt/var/amule/
OnlineSignature=0
OnlineSignatureUpdate=5
EnableTrayIcon=0
MinToTray=0
ConfirmExit=1
StartupMinimized=0
3DDepth=10
ToolTipDelay=1
ShowOverhead=0
ShowInfoOnCatTabs=1
VerticalToolbar=0
GeoIPEnabled=1
VideoPlayer=
StatGraphsInterval=3
statsInterval=30
DownloadCapacity=300
UploadCapacity=100
StatsAverageMinutes=5
VariousStatisticsMaxValue=100
SeeShare=2
FilterLanIPs=1
ParanoidFiltering=1
IPFilterAutoLoad=1
IPFilterURL=
FilterLevel=127
IPFilterSystem=0
FilterMessages=1
FilterAllMessages=0
MessagesFromFriendsOnly=0
MessageFromValidSourcesOnly=1
FilterWordMessages=0
MessageFilter=
ShowMessagesInLog=1
FilterComments=0
CommentFilter=
ShareHiddenFiles=0
AutoSortDownloads=0
NewVersionCheck=1
AdvancedSpamFilter=1
MessageUseCaptchas=1
Language=
SplitterbarPosition=75
YourHostname=
DateTimeFormat=%A, %x, %X
AllcatType=0
ShowAllNotCats=0
SmartIdState=0
DropSlowSources=0
KadNodesUrl=http://upd.emule-security.org/nodes.dat
Ed2kServersUrl=http://upd.emule-security.org/server.met
ShowRatesOnTitle=0
GeoLiteCountryUpdateUrl=http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
StatsServerName=Shorty's ED2K stats
StatsServerURL=http://ed2k.shortypower.dyndns.org/?hash=
CreateSparseFiles=1
[Browser]
OpenPageInTab=1
CustomBrowserString=
[Proxy]
ProxyEnableProxy=0
ProxyType=0
ProxyName=
ProxyPort=1080
ProxyEnablePassword=0
ProxyUser=
ProxyPassword=
[ExternalConnect]
UseSrcSeeds=0
#这个不设置,amule无法启动远程连接
AcceptExternalConnections=1
ECAddress=
ECPort=4712
#设置密码 ,注意这里填写的327bc4e22b649d47c4546a3ec93f376b是真实密码的MD5值
echo -n 设置密码 | md5sum | cut -d ' ' -f 1
ECPassword=327bc4e22b649d47c4546a3ec93f376b
UPnPECEnabled=1
ShowProgressBar=1
ShowPercent=1
UseSecIdent=1
IpFilterClients=1
IpFilterServers=1
TransmitOnlyUploadingClients=0
[WebServer]
#设置成1
Enabled=1
#设置WEB访问密码 ,注意这里填写的327bc4e22b649d47c4546a3ec93f376b是真实密码的MD5值是真实密码的MD5值
echo -n 设置WEB访问的密码 | md5sum | cut -d ' ' -f 1 建议和上面一样
Password=327bc4e22b649d47c4546a3ec93f376b
PasswordLow=
Port=4711
WebUPnPTCPPort=50001
UPnPWebServerEnabled=1
UseGzip=1
UseLowRightsUser=0
PageRefreshTime=120
#这里需要填上
Template=default
Path=amuleweb
[GUI]
HideOnClose=0
[Razor_Preferences]
FastED2KLinksHandler=1
[SkinGUIOptions]
Skin=
[Statistics]
MaxClientVersions=0
[Obfuscation]
IsClientCryptLayerSupported=1
IsCryptLayerRequested=1
IsClientCryptLayerRequired=0
CryptoPaddingLenght=254
CryptoKadUDPKey=4074343783
[PowerManagement]
PreventSleepWhileDownloading=0
[UserEvents]
[UserEvents/DownloadCompleted]
CoreEnabled=0
CoreCommand=
GUIEnabled=0
GUICommand=
[UserEvents/NewChatSession]
CoreEnabled=0
CoreCommand=
GUIEnabled=0
GUICommand=
[UserEvents/OutOfDiskSpace]
CoreEnabled=0
CoreCommand=
GUIEnabled=0
GUICommand=
[UserEvents/ErrorOnCompletion]
CoreEnabled=0
CoreCommand=
GUIEnabled=0
GUICommand=
[HTTPDownload]
URL_1=
URL_2=http://upd.emule-security.org/server.met
3、保存配置启动服务
/opt/etc/init.d/S57amuled start
4、设置amule访问端口
访问地址,WEB访问端口默认是4711,输入刚才设置的密码,不是MD5值哦
http://替换成N1盒子IP:4711
5、amuleweb页面无法添加下载任务解决方法
还有一个大坑, 默认amuleweb页面无法添加下载任务!(如何增加ed2k任务开始下载啊,请指教!,开始猜测可能没装PHP,后来装了PHP7发现还是没用)
cd /opt/share/amule/webserver
wget https://codeload.github.com/MatteoRagni/AmuleWebUI-Reloaded/zip/master
unzip master
mv AmuleWebUI-Reloaded-master AmuleWebUI-Reloaded
中间有一个小坑,wget 不支持https,擦,填之
opkg install wget ca-certificates
6、替换模板,修改
/opt/etc/init.d/S57amuled stop
vi /opt/var/amule/amule.conf
Template=AmuleWebUI-Reloaded
7、再试试,这回真的可以了。
/opt/etc/init.d/S57amuled start
8、KAD Firewall 问题
先路由器上加防火墙,再在路由器上做端口转发给盒子就可以了。(盒子直接连公网IP的,直接在盒子上做)
/opt/etc/init.d/S57amuled start
/opt/etc/init.d/S57amuled stop0
路由器上做端口转发
再刷新看看!
9、web控制页面访问慢的原因发现了,是网页调用谷歌公共库导致的(感谢qianyufengfei)
修改 /opt/share/amule/webserver/AmuleWebUI-Reloaded/中的php文件,
含有 ajax.googleapis.com,用 ajax.lug.ustc.edu.cn 替换就好了
/opt/etc/init.d/S57amuled start
/opt/etc/init.d/S57amuled stop1
替换之后再访问速度确实快了很多。