NAS/Bittorrent client e UPnP A/V Media Server com Linux

D.I.Y.  |    20/09/2009   |   10212 hits   |   J. Ricardo Simões Rodrigues
Aqui descrevo meus experimentos cum GNU/Linux Ubuntu Server como NAS, cliente Bittorrent e UPnP Media server. É um trabalho em andamento, assim, este texto está em permanente modificação.

Atualmente meu NAS passou para o status de Servidor multimídia doméstico: Vídeo, Música e Live TV.


O hardware
Trata-se de uma antiga placa-mãe Gigabyte GA-7S748-L com um microprocessador AMD Sempron 2400+ com downclock e 512 MB de RAM. O espaço em disco é restrito, pois é um equipamento de teste. O equipamento conta com apenas um HD Samsung de 200GB espetado na interface IDE paralela.

O software

O sistema base é um Ubuntu Server Edition. As demais aplicações foram instaladas utilizando-se do apt-get.

Segui o excelente roteiro de instalação instalação HOWTO: Home made NAS server with Ubuntu 8.04.1 – Part I. Trata-se de um excelente tutorial, com um passo-a-passo bem detalhado.

O software base é o seguinte:
Ubuntu Server Edition
http://www.ubuntu.com/products/whatIsubuntu/serveredition

The Ubuntu Server Edition - built on the solid foundation of Debian which is known for its robust server installations — has a strong heritage for reliable performance and predictable evolution.

The Ubuntu Server Edition is changing the server market for businesses by delivering the best of free software on a stable, fully supported and secure platform. In the two years since initial launch Ubuntu can now be found in hundreds of organisations across the world delivering key services reliably, predictably and economically. Ubuntu Server Edition is an energy efficient, low memory and disk footprint operating system that helps build server functions that respect our environment with no compromise on agility and versatility.

SSH
http://www.openssh.com/
OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.

Samba
http://www.samba.org/
Samba is the standard Windows interoperability suite of programs for Linux and Unix.Samba is Free Software licensed under the GNU General Public License, the Samba project is a member of the Software Freedom Conservancy.Since 1992, Samba has provided secure, stable and fast file and print services for all clients using the SMB/CIFS protocol, such as all versions of DOS and Windows, OS/2, Linux and many others.
Torrentflux-b4rt
http://tf-b4rt.berlios.de/
Torrentflux-b4rt is a web based transfer control client.Torrentflux-b4rt allows you to control your internet downloads / transfers from anywhere using a highly configurable web based front end.

Além das aplicações sugeridas pelo autor do tutorial (HOWTO: Home made NAS server with Ubuntu 8.04.1 – Part I) acima, instalei também os aplicativos abaixo, para minha conveniência e personalização de meu sistema

Webmin
http://www.webmin.com/
Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.

Ushare
uShare is a UPnP A/V & DLNA Media Server. It implements the server component that provides UPnP media devices with information on available multimedia files. uShare uses the built-in http server of libupnp to stream the files to clients.

LCDproc
http://lcdproc.omnipotent.net/
LCDproc is a piece of software that displays real-time system information from your Linux/*BSD box on a LCD. The server supports several serial devices: Matrix Orbital, CrystalFontz, Bayrad, LB216, LCDM001 (kernelconcepts.de), Wirz-SLI, Cwlinux(.com) and PIC-an-LCD; and some devices connected to the LPT port: HD44780, STV5730, T6963, SED1520 and SED1330. Various clients are available that display things like CPU load, system load, memory usage, uptime, and a lot more.

Para exibição de estatísticas do cliente de bittorrent, no caso Torrentflux-b4rt, utilizei um script em php, que pode ser encontrado no artigo LCDTorrents.
FreeNAS
http://www.freenas.org/
FreeNAS is a free NAS (Network-Attached Storage) server, supporting: CIFS (samba), FTP, NFS, AFP, RSYNC, iSCSI protocols, S.M.A.R.T., local user authentication, Software RAID (0,1,5) with a Full WEB configuration interface.
Última edição concluída em 24/12/2012 por J. Ricardo Simões Rodrigues.