找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1610|回复: 6

PADAVAN 安装 amule 参考huiguox的帖子

[复制链接]
发表于 2020-2-28 18:39 | 显示全部楼层 |阅读模式
本帖最后由 9394sky 于 2020-2-28 18:48 编辑

刷了N1,装了entware , 装了transmission 装了aria2 发现竟然无法下载ed2k,怒了!遂谷歌之......
第一次玩amule ,边摸索边装踩了不少坑,大神请无视,轻喷

1. 安装
  • opkg install amule

[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值哦
  • http://替换成N1盒子IP:4711

[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文件






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
 楼主| 发表于 2020-2-28 18:47 | 显示全部楼层
期望各位大神解决以下问题:

1:下载含中文的文件,Incoming文件夹会有命名为Unknown的文件

2:不能启动 KAD 网络

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
回复 支持 反对

使用道具 举报

发表于 2020-4-2 17:37 | 显示全部楼层
KAD 网络可以连接的,很正常。

点评

请问您是用哪个固件?  详情 回复 发表于 2020-4-3 02:44
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-4-3 02:44 | 显示全部楼层
alax 发表于 2020-4-2 17:37
KAD 网络可以连接的,很正常。

请问您是用哪个固件?
回复 支持 反对

使用道具 举报

发表于 2020-4-7 10:09 | 显示全部楼层
h大的固件amule 从这个源装 http://pkg.entware.net/binaries/mipsel/  

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

amulegui 麻烦给个地址,我找的。怎么不会弹出UI。  详情 回复 发表于 2021-9-5 02:46
回复 支持 反对

使用道具 举报

发表于 2020-4-7 10:10 | 显示全部楼层
这个源很慢,可以路由器开 ftp 把需要的包存下来 ,把源改到自己的ftp
回复 支持 反对

使用道具 举报

发表于 2021-9-5 02:46 | 显示全部楼层
alax 发表于 2020-4-7 10:09
h大的固件amule 从这个源装 http://pkg.entware.net/binaries/mipsel/

amulegui 麻烦给个地址,我找的。怎么不会弹出UI。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-4 04:49

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表