请选择 进入手机版 | 继续访问电脑版

GODIY 自己动手亲力亲为的DIY社区一起来吧--GODIY论坛

 找回密码
 注册

扫一扫,访问微社区

搜索
查看: 34465|回复: 65

[通用资料] 根据网友提示学会了SSH 趁着热乎就比对着网上文章把transmission装了

[复制链接]
发表于 2011-10-3 19:52:05 | 显示全部楼层 |阅读模式
本帖最后由 cccw 于 2011-10-3 21:01 编辑

我的NAS IP:192.168.1.90  在JAVE环境下:运行 CMD  
然后逐行运行代码:


java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -c "sed -i '/PermitRootLogin/s/no/yes/' /etc/sshd_config"
java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -c "sed -i '/PermitEmptyPasswords/s/^#//' /etc/sshd_config"
java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -c "sed -i '/PermitEmptyPasswords/s/no/yes/' /etc/sshd_config"
java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -c "usermod -p \"\" root"
java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -c "/etc/init.d/sshd.sh restart"

这样就删除了root的密码了。可以在SSh中 用 root   不许密码进入NAS
CMD 回显 供参考!!!!!
  1. C:\>java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -
  2. c "sed -i '/PermitRootLogin/s/no/yes/' /etc/sshd_config"
  3. ACP_commander out of the nas-central.org (linkstationwiki.net) project.
  4. Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
  5. WARNING: This is experimental software that might brick your linkstation!

  6. Using random connID value = D6DC99B54622
  7. Using target:   TS-XL038.lan/192.168.1.90
  8. Starting authentication procedure...
  9. Sending Discover packet...
  10. Found:  TS-XL038 (/192.168.1.90)        TS-XL/R5 (ID=003211)    mac: 00:1D:73:DF
  11. :30:38  Firmware=  1.540        Key=4001B936
  12. Trying to authenticate EnOneCmd...      ACP_STATE_OK
  13. Trying to authenticate with admin password...   ACP_STATE_OK
  14. >sed -i '/PermitRootLogin/s/no/yes/' /etc/sshd_config
  15. OK (ACP_STATE_OK)
  16. Changeing IP:   ACP_STATE_PASSWORD_ERROR
  17. Please note, that the current support for the change of the IP is currently very
  18. rudimentary.
  19. The IP has been set to the given, fixed IP, however DNS and gateway have not
  20. bee
  21. n set. Use the WebGUI to make appropriate settings.
  22. C:\>java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -
  23. c "sed -i '/PermitEmptyPasswords/s/^#//' /etc/sshd_config"
  24. ACP_commander out of the nas-central.org (linkstationwiki.net) project.
  25. Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
  26. WARNING: This is experimental software that might brick your linkstation!

  27. Using random connID value = C93F02761E46
  28. Using target:   TS-XL038.lan/192.168.1.90
  29. Starting authentication procedure...
  30. Sending Discover packet...
  31. Found:  TS-XL038 (/192.168.1.90)        TS-XL/R5 (ID=003211)    mac: 00:1D:73:DF
  32. :30:38  Firmware=  1.540        Key=767D76FE
  33. Trying to authenticate EnOneCmd...      ACP_STATE_OK
  34. Trying to authenticate with admin password...   ACP_STATE_OK
  35. >sed -i '/PermitEmptyPasswords/s/^#//' /etc/sshd_config
  36. OK (ACP_STATE_OK)
  37. Changeing IP:   ACP_STATE_PASSWORD_ERROR
  38. Please note, that the current support for the change of the IP is currently very
  39. rudimentary.
  40. The IP has been set to the given, fixed IP, however DNS and gateway have not
  41. bee
  42. n set. Use the WebGUI to make appropriate settings.
  43. C:\>java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -
  44. c "sed -i '/PermitEmptyPasswords/s/no/yes/' /etc/sshd_config"
  45. ACP_commander out of the nas-central.org (linkstationwiki.net) project.
  46. Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
  47. WARNING: This is experimental software that might brick your linkstation!

  48. Using random connID value = 2264A068B5F5
  49. Using target:   TS-XL038.lan/192.168.1.90
  50. Starting authentication procedure...
  51. Sending Discover packet...
  52. Found:  TS-XL038 (/192.168.1.90)        TS-XL/R5 (ID=003211)    mac: 00:1D:73:DF
  53. :30:38  Firmware=  1.540        Key=422EF3EB
  54. Trying to authenticate EnOneCmd...      ACP_STATE_OK
  55. Trying to authenticate with admin password...   ACP_STATE_OK
  56. >sed -i '/PermitEmptyPasswords/s/no/yes/' /etc/sshd_config
  57. OK (ACP_STATE_OK)
  58. Changeing IP:   ACP_STATE_PASSWORD_ERROR
  59. Please note, that the current support for the change of the IP is currently very
  60. rudimentary.
  61. The IP has been set to the given, fixed IP, however DNS and gateway have not
  62. bee
  63. n set. Use the WebGUI to make appropriate settings.
  64. C:\>java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -
  65. c "usermod -p "" root"
  66. ACP_commander out of the nas-central.org (linkstationwiki.net) project.
  67. Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
  68. WARNING: This is experimental software that might brick your linkstation!

  69. Using random connID value = 1A123076A342
  70. Using target:   TS-XL038.lan/192.168.1.90
  71. Starting authentication procedure...
  72. Sending Discover packet...
  73. Found:  TS-XL038 (/192.168.1.90)        TS-XL/R5 (ID=003211)    mac: 00:1D:73:DF
  74. :30:38  Firmware=  1.540        Key=58385CF5
  75. Trying to authenticate EnOneCmd...      ACP_STATE_OK
  76. Trying to authenticate with admin password...   ACP_STATE_OK
  77. >usermod -p "" root
  78. OK (ACP_STATE_OK)
  79. Changeing IP:   ACP_STATE_PASSWORD_ERROR
  80. Please note, that the current support for the change of the IP is currently very
  81. rudimentary.
  82. The IP has been set to the given, fixed IP, however DNS and gateway have not
  83. bee
  84. n set. Use the WebGUI to make appropriate settings.
  85. C:\>java -jar acp_commander.jar -t 192.168.1.90 -ip 192.168.1.110 -pw password -
  86. c "/etc/init.d/sshd.sh restart"
  87. ACP_commander out of the nas-central.org (linkstationwiki.net) project.
  88. Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
  89. WARNING: This is experimental software that might brick your linkstation!

  90. Using random connID value = 39963591AFFC
  91. Using target:   TS-XL038.lan/192.168.1.90
  92. Starting authentication procedure...
  93. Sending Discover packet...
  94. Found:  TS-XL038 (/192.168.1.90)        TS-XL/R5 (ID=003211)    mac: 00:1D:73:DF
  95. :30:38  Firmware=  1.540        Key=08D7A6CB
  96. Trying to authenticate EnOneCmd...      ACP_STATE_OK
  97. Trying to authenticate with admin password...   ACP_STATE_OK
  98. >/etc/init.d/sshd.sh restart
  99. load_info ItemValue = off
  100. LoadConfFileStringEx:key=[ad_dns] not found in /etc/melco/info.
  101. LoadConfFileStringEx:key=[array1] not found in /etc/melco/diskinfo.
  102. file:/etc/sftponly_config
  103. userinfo finished
  104. groupname admin
  105. groupname guest
  106. groupname hdusers
  107. file:/etc/pam.d/sshd
  108. Changeing IP:   ACP_STATE_PASSWORD_ERROR
  109. Please note, that the current support for the change of the IP is currently very
  110. rudimentary.
  111. The IP has been set to the given, fixed IP, however DNS and gateway have not
  112. bee
  113. n set. Use the WebGUI to make appropriate settings.
复制代码
 楼主| 发表于 2011-10-3 19:59:42 | 显示全部楼层
本帖最后由 cccw 于 2011-10-26 17:05 编辑

然后你可以登录到 SSh 安装软件了

su
mkdir /mnt/disk1/tmp     阵列5就改为:mkdir /mnt/array1/tmp
cd /mnt/disk1/tmp/         阵列5就改为:cd /mnt/array1/tmp/
wget http://ipkg.nslu2-linux.org/feed ... strap_1.2-7_arm.xsh
sh ./lspro-bootstrap_1.2-7_arm.xsh
ipkg update
ipkg upgrade
ipkg install openssh
ipkg install nano

二.改ssh登录密码,

接下来修改ssh密码
cd /opt/etc/openssh/
passwd
输入两遍新密码。
 楼主| 发表于 2011-10-3 20:11:08 | 显示全部楼层
本帖最后由 cccw 于 2011-10-27 00:59 编辑

安装transmission
cd /mnt/disk1/tmp/       阵列5就改为:cd /mnt/array1/tmp/
ipkg install transmission
transmission-daemon -f

这里, 需要你等待2分钟左右  等他自行创建配置文件。。。。。然后:ctrl + c 组合键 中断进程
接着输入:nano /root/.config/transmission-daemon/settings.json

展开配置文件后 用键盘 上下左右箭头  修改 这几项配置。。
"download-dir": "/root/Downloads",改成自己需要的路径!我的是"download-dir": "/mnt/disk4/public/Downloads",然后用网上邻居去NAS的共享目录建立Downloads的目录。    是阵列5就改为:"download-dir": "/mnt/array1/public/Downloads"  
所有操作和文件夹 都要 注意大小写
"rpc-whitelist": "127.0.0.1",改成"rpc-whitelist": "*.*.*.*"
Umask可以设成0,这样才能对下载回来的那些目录拥有最高的读写权限。。方便不少的

设置Transmission开机自启动
nano /opt/etc/init.d/S60startup
添加以下内容:
#!bin/sh
export HOME=/root
/opt/bin/transmission-daemon &
/opt/bin/mlnet &

保存退出。

cd /opt/etc/init.d/
输入命令修改这个文件权限:
chmod 775 S60startup

改好后输入reboot重新启动。

然后在浏览器输入:192.168.1.90:9091 就可以开始尽情下载电影了
 楼主| 发表于 2011-10-3 20:21:21 | 显示全部楼层
transmission 对PT文件的支持非常好。。速度也很快。。我今天  很智能的安装了 2.33最新版

PC机上 也可以用客户端控制 下载地址:http://code.google.com/p/transmi ... xe&can=2&q=

安装的时候选择语言中文  配置为自己 NAS的ip 即可中文化操作。。配置可以很方便的修改。。不再需要SSh
发表于 2011-10-3 20:41:12 | 显示全部楼层
我要OC 1.2G!!!!!!
 楼主| 发表于 2011-10-3 20:43:17 | 显示全部楼层
web管理模式
TRAN.JPG
tren.JPG

下面是客户端模式
客户端.JPG
发表于 2011-10-3 21:57:07 | 显示全部楼层
192.168.1.110这个是你的电脑的ip?
发表于 2011-10-3 22:07:43 | 显示全部楼层
第二个ip110是谁的地址?
发表于 2011-10-3 22:09:54 | 显示全部楼层
第二个ip110是谁的地址?
 楼主| 发表于 2011-10-3 22:43:35 | 显示全部楼层
第二个ip110是谁的地址?
xzg 发表于 2011-10-3 22:09



    哈哈  我抄袭的网上高手的。。。他原来就那样  

看链接:http://forum.buffalo.nas-central.org/viewtopic.php?f=77&t=23919
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|手机版|Archiver|GODIY论坛 ( 粤ICP备12089271号

GMT+8, 2018-8-22 14:01 , Processed in 0.139265 second(s), 9 queries , File On.

Powered by Godiy.net

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