[巴法络] Buffalo LS-WXL/LS-QVL等LS系列新手改机攻略,固件1.62以下,Raid均可 |
不错的教程,照着步骤来基本上没啥难度! 感谢楼主码字! LS-QVL 使用中! 基本上想要的功能都可以实现!还不错!
|
改机好,在disk1下多了一个tmp的根目录,里面有个文件 lspro-bootstrap_1.2-7_arm.xsh
请问这个根目录能删除吗? |
另外再请问下那个S95transmission文件到底可以用吗,我现在其他都OK了,就是不能自动启动。。。
|
我的怎么弄也不成功,总是 mountd is NOT running.
求高手指点 root@DanielNas:/mnt/array1/share# exportfs -rv exporting *:/mnt/array1/share root@DanielNas:/mnt/array1/share# /opt/etc/init.d/S55portmap start root@DanielNas:/mnt/array1/share# /opt/etc/init.d/S99nfs start root@DanielNas:/mnt/array1/share# /opt/etc/init.d/S99nfs status portmap is running. mountd is NOT running. root@DanielNas:/mnt/array1/share# |
7. 建立自动化脚本,使transmission服务能随系统开机自动运行,关机前自动停止
echo '/opt/bin/transmission-daemon -g /root/.config/transmission-daemon' >/opt/etc/init.d/S95transmission.sh chmod 755 /opt/etc/init.d/S95transmission.sh echo 'killall /opt/bin/transmission-daemon' >/etc/rc.d/extensions.d/K05transmission.sh chmod 755 /etc/rc.d/extensions.d/K05transmission.sh 这个是论坛上找到的,可行否? |
Last login: Sat Oct 20 23:55:48 2012 root@LS-WXL933:~# su Last login: Sun Oct 21 00:03:01 JST 2012 from 192.168.1.101 on pts/0 bash-3.2# mkdir /mnt/disk1/tmp mkdir: cannot create directory '/mnt/disk1/tmp': File exists bash-3.2# cd /mnt/disk1/tmp/ <are/cs05q3armel/cross/stable/lspro-bootstrap_1.2-7_arm.xsh --2012-10-21 00:03:43-- 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: 251199 (245K) [text/plain] Saving to: `lspro-bootstrap_1.2-7_arm.xsh.2' 100%[======================================>] 251,199 3.65K/s in 1m 41s 2012-10-21 00:05:26 (2.44 KB/s) - `lspro-bootstrap_1.2-7_arm.xsh.2' saved [251199/251199] bash-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 Backup your configuration settings, then type: rm -rf /mnt/disk1/.optware rm -rf /usr/lib/ipkg This will remove all existing optware packages. You must *reboot* and then restart the bootstrap script. root@LS-WXL933:/mnt/disk1/tmp/bootstrap# 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@LS-WXL933:/mnt/disk1/tmp/bootstrap# ipkg upgrade Nothing to be done Successfully terminated. root@LS-WXL933:/mnt/disk1/tmp/bootstrap# 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-6) to root... Downloading http://ipkg.nslu2-linux.org/feed ... sl_0.9.7m-6_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: 1e:86:1c:98:48:72:6e:08:5b:66:be:55:f5:b1:5a:bd The key's randomart image is: +--[RSA1 2048]----+ |o * ... . | |.% . + . + | |o = + . + . | | . o . o o . | | . o S E | | o . | | . | | | | | +-----------------+ 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: 3f:8f:cc:04:88:74:78:d4:e8:1b:18:3f:08:00:36:02 The key's randomart image is: +--[ RSA 2048]----+ |E+ .o | |o o .o. . | | .o*o | | .o+=. | | . .+S | | . 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: 63:52:61:c8:07:9d:dc:cb:e2:cb:9b:9a:cf:d5:e0:0b The key's randomart image is: +--[ DSA 1024]----+ | ..=oo | | o.=.. | | ... . | | .. o | | ..S.. | | o.o o | | .E.o . | | oo+ . | | oo=.. | +-----------------+ Fixing permissions on the /tmp directory... /opt/sbin/sshd: no process killed Configuring openssl Configuring zlib Successfully terminated. root@LS-WXL933:/mnt/disk1/tmp/bootstrap# 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. root@LS-WXL933:/mnt/disk1/tmp/bootstrap# cd /opt/etc/openssh/ root@LS-WXL933:/opt/etc/openssh# passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully root@LS-WXL933:/opt/etc/openssh# cd /mnt/disk1/tmp/ root@LS-WXL933:/mnt/disk1/tmp# ipkg install transmission Installing transmission (2.61-1) to root... Downloading http://ipkg.nslu2-linux.org/feed ... sion_2.61-1_arm.ipk Installing libcurl (7.24.0-1) to root... Downloading http://ipkg.nslu2-linux.org/feed ... rl_7.24.0-1_arm.ipk Installing libevent (2.0.20-1) to root... Downloading http://ipkg.nslu2-linux.org/feed ... nt_2.0.20-1_arm.ipk Configuring libcurl Configuring libevent Configuring transmission Successfully terminated. root@LS-WXL933:/mnt/disk1/tmp# transmission-daemon -f [00:29:07.730] Transmission 2.61 (13407) started (session.c:720) [00:29:07.731] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:803) [00:29:07.731] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:997) [00:29:07.731] RPC Server Whitelist enabled (rpc-server.c:1001) [00:29:07.731] UDP Failed to set receive buffer: requested 4194304, got 327680 (tr-udp.c:77) [00:29:07.731] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:82) [00:29:07.731] UDP Failed to set send buffer: requested 1048576, got 327680 (tr-udp.c:88) [00:29:07.731] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:93) [00:29:07.731] DHT Generating new id (tr-dht.c:309) [00:29:07.732] Using settings from "/root/.config/transmission-daemon" (daemon.c:517) [00:29:07.732] Saved "/root/.config/transmission-daemon/settings.json" (bencode.c:1731) [00:29:07.732] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72) [00:29:07.732] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:72) [00:29:07.732] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.1.1:1900/ipc" (upnp.c:202) [00:29:07.732] Port Forwarding (UPnP) Local Address is "192.168.1.102" (upnp.c:204) [00:29:08.740] Port Forwarding (UPnP) Port forwarding through "http://192.168.1.1:1900/ipc", service "urn:schemas-upnp-org:service:WANIPConnection:1". (local address: 192.168.1.102:51413) (upnp.c:279) [00:29:08.740] Port Forwarding (UPnP) Port forwarding successful! (upnp.c:282) [00:29:08.740] Port Forwarding State changed from "Not forwarded" to "Forwarded" (port-forwarding.c:93) [00:29:32.980] DHT Attempting bootstrap from dht.transmissionbt.com (tr-dht.c:247) ^C[00:35:27.940] Saved "/root/.config/transmission-daemon/settings.json" (bencode.c:1731) [00:35:27.940] DHT Not saving nodes, DHT not ready (tr-dht.c:356) [00:35:27.941] Port Forwarding Stopped (port-forwarding.c:181) [00:35:27.941] Port Forwarding (UPnP) Stopping port forwarding through "http://192.168.1.1:1900/ipc", service "urn:schemas-upnp-org:service:WANIPConnection:1" (upnp.c:245) [00:35:27.941] Port Forwarding State changed from "Forwarded" to "Not forwarded" (port-forwarding.c:93) Closing transmission session... done. root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/Downloads mkdir: cannot create directory '/mnt/disk1/share/Downloads': No such file or directory root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/downloads root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/Downloads chmod: /mnt/disk1/share/Downloads: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/Downloads chmod: /mnt/disk1/share/Downloads: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/downloads mkdir: cannot create directory '/mnt/disk1/share/downloads': File exists root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/Downloads chmod: /mnt/disk1/share/Downloads: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/shareDownloads chmod: /mnt/disk1/shareDownloads: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/downloads root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/Downloads/incomplete mkdir: cannot create directory '/mnt/disk1/share/Downloads/incomplete': No such file or directory root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/downloads/incomplete root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/Downloads/incompl> chmod: /mnt/disk1/share/Downloads/incomplete: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/downloads/incompl> root@LS-WXL933:/mnt/disk1/tmp# reboot root@LS-WXL933:/mnt/disk1/tmp# |
Last login: Sat Oct 20 23:55:48 2012
root@LS-WXL933:~# su Last login: Sun Oct 21 00:03:01 JST 2012 from 192.168.1.101 on pts/0 bash-3.2# mkdir /mnt/disk1/tmp mkdir: cannot create directory '/mnt/disk1/tmp': File exists bash-3.2# cd /mnt/disk1/tmp/ <are/cs05q3armel/cross/stable/lspro-bootstrap_1.2-7_arm.xsh --2012-10-21 00:03:43-- 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: 251199 (245K) [text/plain] Saving to: `lspro-bootstrap_1.2-7_arm.xsh.2' 100%[======================================>] 251,199 3.65K/s in 1m 41s 2012-10-21 00:05:26 (2.44 KB/s) - `lspro-bootstrap_1.2-7_arm.xsh.2' saved [251199/251199] bash-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 Backup your configuration settings, then type: rm -rf /mnt/disk1/.optware rm -rf /usr/lib/ipkg This will remove all existing optware packages. You must *reboot* and then restart the bootstrap script. root@LS-WXL933:/mnt/disk1/tmp/bootstrap# 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@LS-WXL933:/mnt/disk1/tmp/bootstrap# ipkg upgrade Nothing to be done Successfully terminated. root@LS-WXL933:/mnt/disk1/tmp/bootstrap# 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-6) to root... Downloading http://ipkg.nslu2-linux.org/feed ... sl_0.9.7m-6_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: 1e:86:1c:98:48:72:6e:08:5b:66:be:55:f5:b1:5a:bd The key's randomart image is: +--[RSA1 2048]----+ |o * ... . | |.% . + . + | |o = + . + . | | . o . o o . | | . o S E | | o . | | . | | | | | +-----------------+ 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: 3f:8f:cc:04:88:74:78:d4:e8:1b:18:3f:08:00:36:02 The key's randomart image is: +--[ RSA 2048]----+ |E+ .o | |o o .o. . | | .o*o | | .o+=. | | . .+S | | . 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: 63:52:61:c8:07:9d:dc:cb:e2:cb:9b:9a:cf:d5:e0:0b The key's randomart image is: +--[ DSA 1024]----+ | ..=oo | | o.=.. | | ... . | | .. o | | ..S.. | | o.o o | | .E.o . | | oo+ . | | oo=.. | +-----------------+ Fixing permissions on the /tmp directory... /opt/sbin/sshd: no process killed Configuring openssl Configuring zlib Successfully terminated. root@LS-WXL933:/mnt/disk1/tmp/bootstrap# 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. root@LS-WXL933:/mnt/disk1/tmp/bootstrap# cd /opt/etc/openssh/ root@LS-WXL933:/opt/etc/openssh# passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully root@LS-WXL933:/opt/etc/openssh# cd /mnt/disk1/tmp/ root@LS-WXL933:/mnt/disk1/tmp# ipkg install transmission Installing transmission (2.61-1) to root... Downloading http://ipkg.nslu2-linux.org/feed ... sion_2.61-1_arm.ipk Installing libcurl (7.24.0-1) to root... Downloading http://ipkg.nslu2-linux.org/feed ... rl_7.24.0-1_arm.ipk Installing libevent (2.0.20-1) to root... Downloading http://ipkg.nslu2-linux.org/feed ... nt_2.0.20-1_arm.ipk Configuring libcurl Configuring libevent Configuring transmission Successfully terminated. root@LS-WXL933:/mnt/disk1/tmp# transmission-daemon -f [00:29:07.730] Transmission 2.61 (13407) started (session.c:720) [00:29:07.731] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:803) [00:29:07.731] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:997) [00:29:07.731] RPC Server Whitelist enabled (rpc-server.c:1001) [00:29:07.731] UDP Failed to set receive buffer: requested 4194304, got 327680 (tr-udp.c:77) [00:29:07.731] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:82) [00:29:07.731] UDP Failed to set send buffer: requested 1048576, got 327680 (tr-udp.c:88) [00:29:07.731] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:93) [00:29:07.731] DHT Generating new id (tr-dht.c:309) [00:29:07.732] Using settings from "/root/.config/transmission-daemon" (daemon.c:517) [00:29:07.732] Saved "/root/.config/transmission-daemon/settings.json" (bencode.c:1731) [00:29:07.732] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:72) [00:29:07.732] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:72) [00:29:07.732] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.1.1:1900/ipc" (upnp.c:202) [00:29:07.732] Port Forwarding (UPnP) Local Address is "192.168.1.102" (upnp.c:204) [00:29:08.740] Port Forwarding (UPnP) Port forwarding through "http://192.168.1.1:1900/ipc", service "urn:schemas-upnp-org:service:WANIPConnection:1". (local address: 192.168.1.102:51413) (upnp.c:279) [00:29:08.740] Port Forwarding (UPnP) Port forwarding successful! (upnp.c:282) [00:29:08.740] Port Forwarding State changed from "Not forwarded" to "Forwarded" (port-forwarding.c:93) [00:29:32.980] DHT Attempting bootstrap from dht.transmissionbt.com (tr-dht.c:247) ^C[00:35:27.940] Saved "/root/.config/transmission-daemon/settings.json" (bencode.c:1731) [00:35:27.940] DHT Not saving nodes, DHT not ready (tr-dht.c:356) [00:35:27.941] Port Forwarding Stopped (port-forwarding.c:181) [00:35:27.941] Port Forwarding (UPnP) Stopping port forwarding through "http://192.168.1.1:1900/ipc", service "urn:schemas-upnp-org:service:WANIPConnection:1" (upnp.c:245) [00:35:27.941] Port Forwarding State changed from "Forwarded" to "Not forwarded" (port-forwarding.c:93) Closing transmission session... done. root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/Downloads mkdir: cannot create directory '/mnt/disk1/share/Downloads': No such file or directory root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/downloads root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/Downloads chmod: /mnt/disk1/share/Downloads: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/Downloads chmod: /mnt/disk1/share/Downloads: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/downloads mkdir: cannot create directory '/mnt/disk1/share/downloads': File exists root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/Downloads chmod: /mnt/disk1/share/Downloads: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/shareDownloads chmod: /mnt/disk1/shareDownloads: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/downloads root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/Downloads/incomplete mkdir: cannot create directory '/mnt/disk1/share/Downloads/incomplete': No such file or directory root@LS-WXL933:/mnt/disk1/tmp# mkdir /mnt/disk1/share/downloads/incomplete root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/Downloads/incompl> chmod: /mnt/disk1/share/Downloads/incomplete: No such file or directory root@LS-WXL933:/mnt/disk1/tmp# chmod -R 777 /mnt/disk1/share/downloads/incompl> root@LS-WXL933:/mnt/disk1/tmp# reboot root@LS-WXL933:/mnt/disk1/tmp# |