建造基于Ubuntu的NAS服务器(ftp samba Apache, PHP MySQL(3)

Uncomment and change the following lines (removes the “#”in front of the entry) :
找到以下各行,去掉注释并改值:

anonymous_enable=YES
local_enable=YES
write_enable=YES
data_connection_timeout=120
chroot_local_user=YES

If you are behind a router or firewall, you need to add the following lines at the end of the file :
如果你在路由器或防火墙后面,需要在文件最后加入以下行:

pasv_enable=YES
pasv_promiscuous=YES
pasv_min_port=50000
pasv_max_port=50100
pasv_address=192.168.0.15

Change the ports 50000-50100 at your desire and add this port range to the router’s port forwarding section or virtual server section. The pasv_address should be the IP address of your server (yours may different from me).
按照你自己的要求设置端口范围50000-50100,并把这个端口范围加到路由器的端口转发或虚拟服务器设置。pasv_address设置的是你的服务器IP地址(和我的地址应该不一样)。

Remember to forward port 20 and 21 out at your router.
记住在路由器设置20和21端口,允许向外转发。

Anonymous users can download files from /home/ftp and you can put some files there for them to download.
匿名用户可以从/home/ftp目录中下载文件,你可以准备一些公共文件供下载。

To restart your vsFTPd :
重启动vsFTPd:

sudo /etc/init.d/vsftpd restart


HOWTO : Home made NAS server with Ubuntu 8.04.1 – Part IV
[HOWTO] 用Ubuntu 8.04.1搭建NAS服务器 – Part IV

Your Samba server and vsFTPd server are running smoothly. Now, we are discussing the installation of remote BitTorrent feature.
你的Samba和vsFTPd服务已经运行了。现在,说一下远程BT的安装。

You can access your remote BitTorrent server anywhere at anytime. The server requires Apache, PHP and MySQL. They have been installed when you install your Ubuntu Server that selecting the LAMP option.
你可以在任何时间任何地方控制你的BT下载服务。BT下载服务需要Apache, PHP and MySQL的支持。这些内容在安装Ubuntu服务器时,已经选择LAMP安装了。

BitTorrent

sudo apt-get install torrentflux bittornado

You will asked for MySQL root password, it is the same as the one when you install the Ubuntu Server. TorrentFlux Administration password to be entered in the same as the MySQL and Ubuntu user password in my case. (for easy remembering).
要求你提供MySQL的root用户口令,就是安装Ubuntu Server时设置的。我是把TorrentFlux的管理口令设置成与MySQL、Ubuntu一样(容易记住)。

Run the TorrentFlux server at your desktop computer with Firefox :
在客户端FireFox浏览器上运行TorrentFlux server

Enter the Log in name as “root” and the password as what you had entered during the installation (TorrentFlux Administration password).
输入root用户名,口令是安装时设置的TorrentFlux管理口令。

You can replace the “your_server_ip” with your domain name or the IP that provided by your ISP (or say, the real IP).
你可以把“your_server_ip”部分换成你的域名或者ISP提供给你的IP地址。

Updated on 2008-AUG-13 :
Someone complained that the Torrentflux with Bittornado eats a lot of CPU resources. I confirmed that it is. I am looking for an alternative solution - BitTornado (backend) and Torrentflux-b4rt (front end). The title for the tutorial is at HOWTO : Home made NAS server with Ubuntu 8.04.1 - Part IV (a).
2008-AUG-13更新:
很多人抱怨说Torrentflux with Bittornado消耗大量CPU资源。经过确认情况属实。我找了一个替换方案: BitTornado (backend) 和 Torrentflux-b4rt (front end)。

linux

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyfzgs.html