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

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

 找回密码
 注册

扫一扫,访问微社区

搜索
楼主: cccw

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

[复制链接]
发表于 2011-11-4 20:50:55 | 显示全部楼层
楼主这是我的XL 操作回显,请教指教:我新建tmp目录,我已经安装一次了,可能重复了主要看下面那儿出了问题 ...
ffjcctv 发表于 2011-11-4 20:32



    这些英文已经明确告诉你了,你以前安装过ipkg包了,所以要先删除文件夹:
rm -rf /mnt/disk1/.optware
  rm -rf /usr/lib/ipkg
然后再:
sh /mnt/array1/tmp/lspro-bootstrap_1.2-7_arm.xsh
发表于 2011-11-4 21:15:43 | 显示全部楼层
谢谢,楼上,照你说的操作,我好像可又继续了。
 楼主| 发表于 2011-11-8 16:03:39 | 显示全部楼层
本帖最后由 cccw 于 2011-11-8 16:06 编辑
  1. 2011-11-04 20:27:38 (297 KB/s) - `index.html.2' saved [10735/10735]

  2. FINISHED --2011-11-04 20:27:38--
  3. Downloaded: 1 files, 10K in 0.04s (297 KB/s)
  4. sh-3.2# sh ./lspro-bootstrap_1.2-7_arm.xsh
  5. Optware Bootstrap for lspro.
  6. Extracting archive... please wait
  7. bootstrap/
  8. bootstrap/bootstrap.sh
  9. bootstrap/ipkg-opt.ipk
  10. bootstrap/ipkg.sh
  11. bootstrap/optware-bootstrap.ipk
  12. bootstrap/wget.ipk
  13. 1248+1 records in
  14. 1248+1 records out
  15. Backup your configuration settings, then type:
  16.   rm -rf /mnt/disk1/.optware
  17.   rm -rf /usr/lib/ipkg
  18. This will remove all existing optware packages.
复制代码
楼上回答正确
发表于 2011-11-8 17:08:22 | 显示全部楼层
回复 51# pt880


    谢谢,你说的太对了,按照你说的操作,我安装成功了,非常感谢!
 楼主| 发表于 2011-11-14 21:25:39 | 显示全部楼层
Last login: Wed Oct 26 17:18:35 2011 from cccw-down.lan
root@TS-XL038:~# cd /opt/etc/openssh/
-sh: cd: /opt/etc/openssh/: No such file or directory
root@TS-XL038:~# su
Last login: Mon Nov 14 21:17:34 CST 2011 from cccw-down.lan on pts/0
sh-3.2# mkdir /mnt/array1/tmp                                                  
sh-3.2# cd /mnt/array1/tmp/
<oss/stable/lspro-bootstrap_1.2-7_arm.xsh         
--2011-11-14 21:20:25--  http://ipkg.nslu2-linux.org/feed ... strap_1.2-7_arm.xsh
Resolving ipkg.nslu2-linux.org... 140.211.169.161
Connecting to ipkg.nslu2-linux.org|140.211.169.161|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 251214 (245K) [text/plain]
Saving to: `lspro-bootstrap_1.2-7_arm.xsh'

100%[=========>] 251,214      123K/s   in 2.0s   

2011-11-14 21:20:29 (123 KB/s) - `lspro-bootstrap_1.2-7_arm.xsh' saved [251214/251214]

sh-3.2# sh ./lspro-bootstrap_1.2-7_arm.xsh
Optware Bootstrap for lspro.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
1248+1 records in
1248+1 records out
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
Creating temporary ipkg repository...
Installing optware-bootstrap package...
Unpacking optware-bootstrap.ipk...Done.
Configuring optware-bootstrap.ipk...Modifying /etc/init.d/rcS
Done.
Installing ipkg...
Unpacking ipkg-opt.ipk...Done.
Configuring ipkg-opt.ipk...Done.
Removing temporary ipkg repository...
Installing wget...
Installing wget (1.12-2) to root...
Configuring wget
Successfully terminated.
Creating /opt/etc/ipkg/cross-feed.conf...
Setup complete.
root@TS-XL038:/mnt/array1/tmp# ipkg update
Downloading http://ipkg.nslu2-linux.org/feed ... /stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feed ... /stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/cross
Successfully terminated.
root@TS-XL038:/mnt/array1/tmp# ipkg upgrade
Nothing to be done
Successfully terminated.
</array1/tmp# ipkg install openssh              
Installing openssh (5.9p1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... ssh_5.9p1-1_arm.ipk
Installing openssl (0.9.7m-5) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... sl_0.9.7m-5_arm.ipk
Installing zlib (1.2.5-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... lib_1.2.5-1_arm.ipk
Configuring openssh
update-alternatives: Linking //opt/bin/scp to /opt/bin/openssh-scp
update-alternatives: Linking //opt/bin/ssh to /opt/bin/openssh-ssh

Generating RSA Key...
Generating public/private rsa1 key pair.
Your identification has been saved in /opt/etc/openssh/ssh_host_key.
Your public key has been saved in /opt/etc/openssh/ssh_host_key.pub.
The key fingerprint is:
60:b5:37:a1:37:89:38:90:c7:46:b6:87:cd:d9:c2:86
The key's randomart image is:
+--[RSA1 2048]----+
|    .+o . .      |
|    .o+X * o     |
|     oE % B      |
|     . = + o     |
|        S        |
|                 |
|                 |
|                 |
|                 |
+-----------------+
Generating RSA Key...
Generating public/private rsa key pair.
Your identification has been saved in /opt/etc/openssh/ssh_host_rsa_key.
Your public key has been saved in /opt/etc/openssh/ssh_host_rsa_key.pub.
The key fingerprint is:
af:64:0e:62:76:60:cc:79:20:54:af:d8:71:c2:76:56
The key's randomart image is:
+--[ RSA 2048]----+
|  ...   E        |
| . . . .         |
|  . * =          |
|   B X           |
|  . O . S        |
|   . o   .       |
|    + o o .      |
|   o o = .       |
|        o        |
+-----------------+
Generating DSA Key...
Generating public/private dsa key pair.
Your identification has been saved in /opt/etc/openssh/ssh_host_dsa_key.
Your public key has been saved in /opt/etc/openssh/ssh_host_dsa_key.pub.
The key fingerprint is:
28:41:72:79:07:01:f1:bc:86:4c:66:9a:71:66:9a:10
The key's randomart image is:
+--[ DSA 1024]----+
|E . =+oo         |
| . +.o. .        |
|. . O.o.         |
| . # o o         |
|  = + + S        |
|     o           |
|                 |
|                 |
|                 |
+-----------------+
Fixing permissions on the /tmp directory...
killall: /opt/sbin/sshd: no process killed
Configuring openssl
Configuring zlib
Successfully terminated.
root@TS-XL038:/mnt/array1/tmp# ipkg install nano
Installing nano (2.2.6-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... ano_2.2.6-1_arm.ipk
Installing ncurses (5.7-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... urses_5.7-1_arm.ipk
Configuring nano
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Successfully terminated.
</array1/tmp# cd /opt/etc/openssh/              
root@TS-XL038:/opt/etc/openssh# gc960723
sh: gc960723: command not found
root@TS-XL038:/opt/etc/openssh# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@TS-XL038:/opt/etc/openssh#
 楼主| 发表于 2011-11-14 21:40:20 | 显示全部楼层
Last login: Wed Oct 26 17:18:35 2011 from cccw-down.lan
root@TS-XL038:~# cd /opt/etc/openssh/
-sh: cd: /opt/etc/openssh/: No such file or directory
root@TS-XL038:~# su
Last login: Mon Nov 14 21:17:34 CST 2011 from cccw-down.lan on pts/0
sh-3.2# mkdir /mnt/array1/tmp                                                  
sh-3.2# cd /mnt/array1/tmp/
<oss/stable/lspro-bootstrap_1.2-7_arm.xsh         
--2011-11-14 21:20:25--  http://ipkg.nslu2-linux.org/feed ... strap_1.2-7_arm.xsh
Resolving ipkg.nslu2-linux.org... 140.211.169.161
Connecting to ipkg.nslu2-linux.org|140.211.169.161|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 251214 (245K) [text/plain]
Saving to: `lspro-bootstrap_1.2-7_arm.xsh'

100%[=========>] 251,214      123K/s   in 2.0s   

2011-11-14 21:20:29 (123 KB/s) - `lspro-bootstrap_1.2-7_arm.xsh' saved [251214/251214]

sh-3.2# sh ./lspro-bootstrap_1.2-7_arm.xsh
Optware Bootstrap for lspro.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
1248+1 records in
1248+1 records out
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
Creating temporary ipkg repository...
Installing optware-bootstrap package...
Unpacking optware-bootstrap.ipk...Done.
Configuring optware-bootstrap.ipk...Modifying /etc/init.d/rcS
Done.
Installing ipkg...
Unpacking ipkg-opt.ipk...Done.
Configuring ipkg-opt.ipk...Done.
Removing temporary ipkg repository...
Installing wget...
Installing wget (1.12-2) to root...
Configuring wget
Successfully terminated.
Creating /opt/etc/ipkg/cross-feed.conf...
Setup complete.
root@TS-XL038:/mnt/array1/tmp# ipkg update
Downloading http://ipkg.nslu2-linux.org/feed ... /stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feed ... /stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/cross
Successfully terminated.
root@TS-XL038:/mnt/array1/tmp# ipkg upgrade
Nothing to be done
Successfully terminated.
</array1/tmp# ipkg install openssh              
Installing openssh (5.9p1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... ssh_5.9p1-1_arm.ipk
Installing openssl (0.9.7m-5) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... sl_0.9.7m-5_arm.ipk
Installing zlib (1.2.5-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... lib_1.2.5-1_arm.ipk
Configuring openssh
update-alternatives: Linking //opt/bin/scp to /opt/bin/openssh-scp
update-alternatives: Linking //opt/bin/ssh to /opt/bin/openssh-ssh

Generating RSA Key...
Generating public/private rsa1 key pair.
Your identification has been saved in /opt/etc/openssh/ssh_host_key.
Your public key has been saved in /opt/etc/openssh/ssh_host_key.pub.
The key fingerprint is:
60:b5:37:a1:37:89:38:90:c7:46:b6:87:cd:d9:c2:86
The key's randomart image is:
+--[RSA1 2048]----+
|    .+o . .      |
|    .o+X * o     |
|     oE % B      |
|     . = + o     |
|        S        |
|                 |
|                 |
|                 |
|                 |
+-----------------+
Generating RSA Key...
Generating public/private rsa key pair.
Your identification has been saved in /opt/etc/openssh/ssh_host_rsa_key.
Your public key has been saved in /opt/etc/openssh/ssh_host_rsa_key.pub.
The key fingerprint is:
af:64:0e:62:76:60:cc:79:20:54:af:d8:71:c2:76:56
The key's randomart image is:
+--[ RSA 2048]----+
|  ...   E        |
| . . . .         |
|  . * =          |
|   B X           |
|  . O . S        |
|   . o   .       |
|    + o o .      |
|   o o = .       |
|        o        |
+-----------------+
Generating DSA Key...
Generating public/private dsa key pair.
Your identification has been saved in /opt/etc/openssh/ssh_host_dsa_key.
Your public key has been saved in /opt/etc/openssh/ssh_host_dsa_key.pub.
The key fingerprint is:
28:41:72:79:07:01:f1:bc:86:4c:66:9a:71:66:9a:10
The key's randomart image is:
+--[ DSA 1024]----+
|E . =+oo         |
| . +.o. .        |
|. . O.o.         |
| . # o o         |
|  = + + S        |
|     o           |
|                 |
|                 |
|                 |
+-----------------+
Fixing permissions on the /tmp directory...
killall: /opt/sbin/sshd: no process killed
Configuring openssl
Configuring zlib
Successfully terminated.
root@TS-XL038:/mnt/array1/tmp# ipkg install nano
Installing nano (2.2.6-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... ano_2.2.6-1_arm.ipk
Installing ncurses (5.7-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... urses_5.7-1_arm.ipk
Configuring nano
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Successfully terminated.
</array1/tmp# cd /opt/etc/openssh/              
root@TS-XL038:/opt/etc/openssh# gc960723
sh: gc960723: command not found
root@TS-XL038:/opt/etc/openssh# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@TS-XL038:/opt/etc/openssh#



















Last login: Mon Nov 14 21:18:42 2011
root@TS-XL038:~# cd /mnt/array1/tmp/
</array1/tmp# ipkg install transmission         
Installing transmission (2.41-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... sion_2.41-1_arm.ipk
Installing libcurl (7.21.7-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... rl_7.21.7-1_arm.ipk
Installing libevent (2.0.11-1) to root...
Downloading http://ipkg.nslu2-linux.org/feed ... nt_2.0.11-1_arm.ipk
Configuring libcurl
Configuring libevent
Configuring transmission
Successfully terminated.
</array1/tmp# transmission-daemon -f            

[21:28:07.138] Transmission 2.41 (12957) started (session.c:718)
[21:28:07.139] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:803)
[21:28:07.139] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:997)
[21:28:07.139] RPC Server Whitelist enabled (rpc-server.c:1001)
[21:28:07.139] UDP Failed to set receive buffer: requested 4194304, got 262142 (tr-udp.c:75)
[21:28:07.139] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:80)
[21:28:07.139] UDP Failed to set send buffer: requested 1048576, got 262142 (tr-udp.c:86)
[21:28:07.139] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:91)
[21:28:07.139] DHT Generating new id (tr-dht.c:309)
[21:28:07.139] Using settings from "/root/.config/transmission-daemon" (daemon.c:488)
[21:28:07.139] Saved "/root/.config/transmission-daemon/settings.json" (bencode.c:1721)
[21:28:07.139] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72)
[21:28:07.139] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:72)
[21:28:09.158] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.1.254:80/upnp/control/igd/wanpppcInternet" (upnp.c:113)
[21:28:09.158] Port Forwarding (UPnP) Local Address is "192.168.1.90" (upnp.c:115)
[21:28:09.158] Port Forwarding (UPnP) Port forwarding through "http://192.168.1.254:80/upnp/control/igd/wanpppcInternet", service "urn:schemas-upnp-org:service:WANPPPConnection:1". (local address: 192.168.1.90:51413) (upnp.c:221)
[21:28:09.159] Port Forwarding (UPnP) Port forwarding successful! (upnp.c:224)
[21:28:09.159] Port Forwarding State changed from "Not forwarded" to "Forwarded" (port-forwarding.c:93)
[21:28:44.508] DHT Attempting bootstrap from dht.transmissionbt.com (tr-dht.c:247)
^C[21:30:09.749] Saved "/root/.config/transmission-daemon/settings.json" (bencode.c:1721)
[21:30:09.749] DHT Not saving nodes, DHT not ready (tr-dht.c:356)
[21:30:09.749] Port Forwarding Stopped (port-forwarding.c:181)
[21:30:09.749] Port Forwarding (UPnP) Stopping port forwarding through "http://192.168.1.254:80/upnp/control/igd/wanpppcInternet", service "urn:schemas-upnp-org:service:WANPPPConnection:1" (upnp.c:169)
[21:30:09.749] Port Forwarding State changed from "Forwarded" to "Starting" (port-forwarding.c:93)
Closing transmission session... done.

<ansmission-daemon/settings.json               

  GNU nano 2.2.6File: ...n/settings.json           

    "rename-partial-files": true,   
    "rpc-authentication-required": false,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,                           
    "rpc-password": "{c99ae86dea152d39a19c769273ab$
    "rpc-port": 9091,               
    "rpc-url": "/transmission/",      
    "rpc-username": "",            
    "rpc-whitelist": "127.0.0.1",   
    "rpc-whitelist-enabled": true,      
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,         
    "script-torrent-done-filename": "",            
    "seed-queue-enabled": false,   
                [ Wrote 65 lines ]                 

<ansmission-daemon/settings.json               

,
  GNU nano 2.2.6File: ...n/settings.json           

    "speed-limit-down": 100,      
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,               
    "speed-limit-up-enabled": false,      
    "start-added-torrents": true,        
    "trash-original-torrent-files": false,         
    "umask": 0,                     
    "upload-slots-per-torrent": 14,   
    "utp-enabled": true            
}




                [ Wrote 66 lines ]                 

</array1/tmp# nano /opt/etc/init.d/S60startup   

  GNU nano 2.2.6File: ...it.d/S60startup           

#!bin/sh
export HOME=/root
/opt/bin/transmission-daemon &











                 [ Wrote 4 lines ]                 

</array1/tmp# cd /opt/etc/init.d/               
</etc/init.d# chmod 775 S60startup              
root@TS-XL038:/opt/etc/init.d# reboot
root@TS-XL038:/opt/etc/init.d#
Message from syslogd@TS-XL038 at Mon Nov 14 21:39:35 2011 ...
TS-XL038 clientUtil_server[3916]: ap_serv_exit() exit ap_servd. code=15

Message from syslogd@TS-XL038 at Mon Nov 14 21:39:35 2011 ...
TS-XL038 clientUtil_server[3913]: ap_serv_exit() exit ap_servd. code=15
发表于 2012-1-31 23:06:13 | 显示全部楼层
本帖最后由 horny 于 2012-1-31 23:24 编辑
然后你可以登录到 SSh 安装软件了

su
mkdir /mnt/disk1/tmp     阵列5就改为:mkdir /mnt/array1/tmp
c ...
cccw 发表于 2011-10-3 19:59


从文件名看ts系列的话好像应该下这个安装optware
  
  1. wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/teraprov2-bootstrap_1.2-7_arm.xsh
复制代码
发表于 2012-8-3 09:53:39 | 显示全部楼层
广州求安装transmission,请吃饭加路费,顺便交个朋友!
发表于 2012-8-14 22:21:37 | 显示全部楼层
继续等!求助版主!
发表于 2012-8-16 09:30:58 | 显示全部楼层
继续求助!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2018-10-22 19:02 , Processed in 0.077177 second(s), 7 queries , File On.

Powered by Godiy.net

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