Ref:
http://livedig.com/tag/nexenta
==========================================
option expert_mode = 1
!bash
把下面这几个源加到 /etc/apt/sources.list 当中应当是可行的:
deb http://apt.dilos.org/dilos dilos-unstable main contrib non-free
deb http://apt.dilos.org/dilos dilos-testing main contrib non-free
导入 dilos 的公钥以验证该 source 的签名
gpg --keyserver subkeys.pgp.net --recv-keys 74DA7924C5513486
gpg --export 74DA7924C5513486 | apt-key add -
更新系统:
root@nas:~#
apt-get update
apt-get install curl
apt-get install unzip
同样,我们通过 apt-get install transmission 来完成 Transmission 基本软件包的安装。
root@nas:~#
apt-get install transmission
查看 Transmission 版本,2.73,不是最新也尚可:
root@nas:~# transmission-cli --version
transmission-cli 2.73 (13592)
创建一个新用户 torrentd,用于替换 root 来运行 Transmission 服务进程。
root@nas:~#
mkdir -p /export/home/torrentd
cd /export/home/
useradd -d /export/home/torrentd -s /bin/false torrentd
chown torrentd:other torrentd/
ls -la
创建 BT 使用的存储目录。NexentaStor 下无疑你希望用上自己的 ZFS 池。
root@nas:~#
mkdir -p /volumes/vol1/btdownloads/
chown -R torrentd:other /volumes/vol1/btdownloads/
mkdir /var/transmission/
#startup daemon
transmission-daemon --config-dir /var/transmission -f
cd /var/transmission/
chown -R torrentd:other /var/transmission
cp /var/transmission/settings.json /var/transmission/settings.json.org
vi /var/transmission/settings.json
"download-dir": "/volumes/vol1/btdownloads",
"incomplete-dir": "/volumes/vol1/incomp-btdownloads/",
"rpc-whitelist": "127.0.0.1,192.168.2.112",
"speed-limit-down": 2100,
"speed-limit-up": 40,
unzip transmission.zip
Archive: transmission.zip
inflating: transmission-daemon
inflating: transmission-daemon.xml
root@nas:/tmp# mv transmission-daemon /lib/svc/method/
root@nas:/tmp# chmod +x /lib/svc/method/transmission-daemon
root@nas:/tmp# chown root:bin /lib/svc/method/transmission-daemon
root@nas:/tmp# svccfg import -V transmission-daemon.xml
相关命令:
svcadm enable transmission-daemon
svcadm disable transmission-daemon
以下步骤将启用 Transmission 服务,并检查其状态。
root@nas:/tmp# svcadm enable transmission-daemon
root@nas:/tmp# svcs -x transmission-daemon
svc:/application/transmission-daemon:default (Transmission BitTorrent Client (Daemon))
State: online since February 8, 2013 01:33:33 AM PST
See: transmission-daemon(1)
See: http://www.transmissionbt.org
See: /var/svc/log/application-transmission-daemon:default.log
Impact: None.
最後修改了 /etc/system, 新增如下, 放大open files, tcp buffer
set rlim_fd_max=65536
set rlim_fd_cur=65536
set tcp_close_wait_interval=60000
set tcp_time_wait_interval=60000
set tcp_conn_req_max_q=1024
set tcp_conn_req_max_q0=4096
set tcp_xmit_hiwat=32768
set tcp_recv_hiwat=32768
set tcp_recv_hiwat=32768
==========================================
option expert_mode = 1
!bash
把下面这几个源加到 /etc/apt/sources.list 当中应当是可行的:
deb http://apt.dilos.org/dilos dilos-unstable main contrib non-free
deb http://apt.dilos.org/dilos dilos-testing main contrib non-free
导入 dilos 的公钥以验证该 source 的签名
gpg --keyserver subkeys.pgp.net --recv-keys 74DA7924C5513486
gpg --export 74DA7924C5513486 | apt-key add -
更新系统:
root@nas:~#
apt-get update
apt-get install curl
apt-get install unzip
同样,我们通过 apt-get install transmission 来完成 Transmission 基本软件包的安装。
root@nas:~#
apt-get install transmission
查看 Transmission 版本,2.73,不是最新也尚可:
root@nas:~# transmission-cli --version
transmission-cli 2.73 (13592)
创建一个新用户 torrentd,用于替换 root 来运行 Transmission 服务进程。
root@nas:~#
mkdir -p /export/home/torrentd
cd /export/home/
useradd -d /export/home/torrentd -s /bin/false torrentd
chown torrentd:other torrentd/
ls -la
创建 BT 使用的存储目录。NexentaStor 下无疑你希望用上自己的 ZFS 池。
root@nas:~#
mkdir -p /volumes/vol1/btdownloads/
chown -R torrentd:other /volumes/vol1/btdownloads/
mkdir /var/transmission/
#startup daemon
transmission-daemon --config-dir /var/transmission -f
cd /var/transmission/
chown -R torrentd:other /var/transmission
cp /var/transmission/settings.json /var/transmission/settings.json.org
vi /var/transmission/settings.json
"download-dir": "/volumes/vol1/btdownloads",
"incomplete-dir": "/volumes/vol1/incomp-btdownloads/",
"rpc-whitelist": "127.0.0.1,192.168.2.112",
"speed-limit-down": 2100,
"speed-limit-up": 40,
unzip transmission.zip
Archive: transmission.zip
inflating: transmission-daemon
inflating: transmission-daemon.xml
root@nas:/tmp# mv transmission-daemon /lib/svc/method/
root@nas:/tmp# chmod +x /lib/svc/method/transmission-daemon
root@nas:/tmp# chown root:bin /lib/svc/method/transmission-daemon
root@nas:/tmp# svccfg import -V transmission-daemon.xml
相关命令:
svcadm enable transmission-daemon
svcadm disable transmission-daemon
以下步骤将启用 Transmission 服务,并检查其状态。
root@nas:/tmp# svcadm enable transmission-daemon
root@nas:/tmp# svcs -x transmission-daemon
svc:/application/transmission-daemon:default (Transmission BitTorrent Client (Daemon))
State: online since February 8, 2013 01:33:33 AM PST
See: transmission-daemon(1)
See: http://www.transmissionbt.org
See: /var/svc/log/application-transmission-daemon:default.log
Impact: None.
最後修改了 /etc/system, 新增如下, 放大open files, tcp buffer
set rlim_fd_max=65536
set rlim_fd_cur=65536
set tcp_close_wait_interval=60000
set tcp_time_wait_interval=60000
set tcp_conn_req_max_q=1024
set tcp_conn_req_max_q0=4096
set tcp_xmit_hiwat=32768
set tcp_recv_hiwat=32768
set tcp_recv_hiwat=32768
沒有留言:
張貼留言