|
本帖最后由 9394sky 于 2020-2-28 18:48 编辑
刷了N1,装了entware , 装了transmission 装了aria2 发现竟然无法下载ed2k,怒了!遂谷歌之......
第一次玩amule ,边摸索边装踩了不少坑,大神请无视,轻喷
1. 安装
[color=rgb(51, 102, 153) !important]复制代码
如果出现安装不成功用已下方法
下载:http://bin.entware.net/mipselsf-k3.4/amule_2.3.2-1_mipsel-3.4.ipk
用winscp连接路由 然后上传amule_2.3.2-1_mipsel-3.4.ipk 到/tmp/下
opkg update
opkg install /tmp/amule_2.3.2-1_mipsel-3.4.ipk
2.安装之后找了半天没找到配置文件在哪里,最后发现是需要先启动一次生成配置文件(启动了就关闭,连续分步操作)
- /opt/etc/init.d/S57amuled start
- /opt/etc/init.d/S57amuled stop
[color=rgb(51, 102, 153) !important]复制代码
配置文件如下,这个地方坑较多,花了我很久时间:
- vi /opt/var/amule/amule.conf
[color=rgb(51, 102, 153) !important]复制代码
[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=/media/AiDisk_a5/amule/Temp
#这个是下载目录
IncomingDir=/media/AiDisk_a5/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
[color=rgb(51, 102, 153) !important]复制代码
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 建议和上面一样
[color=rgb(51, 102, 153) !important]复制代码
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
[color=rgb(51, 102, 153) !important]复制代码
4.访问地址,WEB访问端口默认是4711,输入刚才设置的密码,不是MD5值哦
[color=rgb(51, 102, 153) !important]复制代码
5. 还有一个大坑, 默认amuleweb页面无法添加下载任务!(如何增加ed2k任务开始下载啊,请指教!,开始猜测可能没装PHP,后来装了PHP7发现还是没用)
6.遂继续搜寻,经过一番搜索,大坑已填,在git上找到一个新的前端,https://github.com/MatteoRagni/AmuleWebUI-Reloaded遂下载之。
[color=rgb(51, 102, 153) !important]复制代码
中间有一个小坑,wget 不支持https,擦,填之
- opkg install wget ca-certificates
[color=rgb(51, 102, 153) !important]复制代码
7.替换模板,修改
- /opt/etc/init.d/S57amuled stop
- vi /opt/var/amule/amule.conf
[color=rgb(51, 102, 153) !important]复制代码
Template=AmuleWebUI-Reloaded
8.再试试,这回真的可以了。
- /opt/etc/init.d/S57amuled start
[color=rgb(51, 102, 153) !important]复制代码
9. KAD Firewall 问题,先路由器上加防火墙,再在路由器上做端口转发给盒子就可以了。
- #!/bin/sh
- sleep 60
- # 路由器上防护墙设置,对应上面绿色的端口
- iptables -t filter -A INPUT -m state --state NEW -m tcp -p tcp --dport 4662 -j ACCEPT
- iptables -t filter -A INPUT -m state --state NEW -m udp -p udp --dport 4665 -j ACCEPT
- iptables -t filter -A INPUT -m state --state NEW -m udp -p udp --dport 4672 -j ACCEPT
- iptables -t filter -A INPUT -m state --state NEW -m tcp -p tcp --dport 50000 -j ACCEPT
[color=rgb(51, 102, 153) !important]复制代码
路由器上做端口转发
再刷新看看!
10. web控制页面访问慢的原因发现了,是网页调用谷歌公共库导致的(感谢qianyufengfei)
修改 /opt/share/amule/webserver/AmuleWebUI-Reloaded/中的php文件,
含有 ajax.googleapis.com,用 ajax.lug.ustc.edu.cn 替换就好了
- cd /opt/share/amule/webserver/AmuleWebUI-Reloaded
- grep "ajax.googleapis.com" ./*.php
- sed -i s/"ajax.googleapis.com"/"ajax.lug.ustc.edu.cn"/g ./*.php
- grep "ajax.googleapis.com" ./*.php
[color=rgb(51, 102, 153) !important]复制代码
替换之后再访问速度确实快了很多。
但是好像没有更新服务器列表,我就人工添加
下载server.me文件 http://ed2k.2x4u.de/index.html
放到/opt/var/amule 覆盖旧server.me文件
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|