找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: cy256***

K3 扶墙PUTTY显示权限不够

[复制链接]
发表于 2017-8-21 23:07 来自手机 | 显示全部楼层
很明显 你代码有问题了,认真对比,或者直接复制粘贴进去
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 02:19 | 显示全部楼层
wjman的教程,不依赖任何entware ipk(wget不记得是不是官改自带的)。如果仅仅FQ,只需要下载那个FQDNS就好了,其余5条规则全是去广告的。

点评

去哪里下呢  详情 回复 发表于 2017-8-22 15:45
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 08:30 | 显示全部楼层
cy25634840 发表于 2017-8-21 23:04
他说Windows找不到文件cat

在putty里面啊

点评

[K3 /tmp/media/nand]# cat /opt/etc/fqad_update #!/bin/sh mkdir -p /tmp/dns /opt/etc/dnsmasq.d rm -f /opt/etc/dnsmasq.d/* cd /tmp/dns # dnsmasq wget --no-check-certificate -qO fq.txt https://raw.git  详情 回复 发表于 2017-8-22 15:46
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 15:45 | 显示全部楼层
child9527 发表于 2017-8-22 02:19
wjman的教程,不依赖任何entware ipk(wget不记得是不是官改自带的)。如果仅仅FQ,只需要下载那个FQDNS就 ...

去哪里下呢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 15:46 | 显示全部楼层

[K3 /tmp/media/nand]# cat /opt/etc/fqad_update
#!/bin/sh  mkdir -p /tmp/dns /opt/etc/dnsmasq.d rm -f /opt/etc/dnsmasq.d/* cd /tmp/dns  # dnsmasq wget --no-check-certificate -qO fq.txt https://raw.githubusercontent.co ... aster/dnsmasq/dnsfq wget --no-check-certificate -qO ad.txt https://raw.githubusercontent.co ... /dnsmasq/union.conf wget --no-check-certificate -qO easylistchina.txt https://c.nnjsx.cn/GL/dnsmasq/update/adblock/easylistchina.txt cat fq.txt ad.txt easylistchina.txt > fqad.txt sort fqad.txt | uniq > /opt/etc/dnsmasq.d/fqad.conf  # hosts echo "addn-hosts=/opt/etc/hosts_noad" > /opt/etc/dnsmasq.d/dnsmasq.conf wget --no-check-certificate -qO yhosts.txt https://raw.githubusercontent.com/vokins/yhosts/master/hosts wget --no-check-certificate -qO malwaredomainlist.txt http://www.malwaredomainlist.com/hostslist/hosts.txt wget --no-check-certificate -qO adaway.txt http://77l5b4.com1.z0.glb.clouddn.com/hosts.txt cat yhosts.txt adaway.txt malwaredomainlist.txt > noad.txt sort noad.txt | uniq > /opt/etc/hosts_noad sed -i '/^@/d;/^:/d' /opt/etc/hosts_noad  rm -f /tmp/dns/*.txt killall dnsmasq

点评

果然是你格式的问题, 命令都没有换行 重新编辑一下, 按照那个帖子的格式, 一个命令一行  详情 回复 发表于 2017-8-22 17:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 17:01 | 显示全部楼层
cy25634840 发表于 2017-8-22 15:46
[K3 /tmp/media/nand]# cat /opt/etc/fqad_update
#!/bin/sh  mkdir -p /tmp/dns /opt/etc/dnsmasq.d rm ...

果然是你格式的问题, 命令都没有换行

重新编辑一下,  按照那个帖子的格式, 一个命令一行

点评

好的 非常感谢您 那请问他有几行是空白的 也要空出来吗  详情 回复 发表于 2017-8-22 18:58
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 18:58 | 显示全部楼层
xi452686571 发表于 2017-8-22 17:01
果然是你格式的问题, 命令都没有换行

重新编辑一下,  按照那个帖子的格式, 一个命令一行

好的 非常感谢您 那请问他有几行是空白的 也要空出来吗

点评

空白行无所谓, 空不空都行  详情 回复 发表于 2017-8-22 19:10
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-8-22 19:10 | 显示全部楼层
cy25634840 发表于 2017-8-22 18:58
好的 非常感谢您 那请问他有几行是空白的 也要空出来吗

空白行无所谓, 空不空都行

点评

-sh: /opt/etc/fq_update: Permission denied 这个出现权限不够  详情 回复 发表于 2017-8-22 20:30
我这次都弄了,输入指令后,就什么都没有,但是好像还是FQ不了 请问下你觉得这是个什么原因呢  详情 回复 发表于 2017-8-22 19:12
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 19:12 | 显示全部楼层
xi452686571 发表于 2017-8-22 19:10
空白行无所谓, 空不空都行

我这次都弄了,输入指令后,就什么都没有,但是好像还是FQ不了 请问下你觉得这是个什么原因呢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-8-22 20:30 | 显示全部楼层
xi452686571 发表于 2017-8-22 19:10
空白行无所谓, 空不空都行

-sh: /opt/etc/fq_update: Permission denied
这个出现权限不够
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 18:52

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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