Aug 04 2010

Torrent Client in linux server with web access

Hello

Why to create a server with a torrent client with web access? I live with other people that uses torrent too. I had a computer running a server with other services, so I decided to add this client (transmission-daemon) with web access, in this way we don’t need to let computers on. Just this one. Everybody have web access to it and it is so simple to use.

But wich client to use? I searched a little bit and found that exists some famous ones as w3btorrent and torrentflux. but they need a web-server running like apache. And I don’t want to setup it too, because I don’t need it. So I choosed transmission the native torrent client in Ubuntu.

So, to install it in Ubuntu server you use:

$ sudo apt-get install transmission-daemon

Now you need to setup it, my configuration file was in /home/user/.config/transmission-daemon/settings.json

The options are a lot but it is easy to understand them.

Read more »

Sep 17 2009

Send files using XML-RPC in Java

Hello

Tooday Jorge send me an e-mail asking how to send files using XML-RPC. So I did some modifications in Client and Server, Java XML-RPC to do this.

I implemented this and it wasn’t so hard. I read the documentation of Apache XML-RPC to see how to send bytes. They are send using an array of bytes (byte[]) in a Base64 codification.

To create the Base64 codification I used Java Base64 in public domain.

How to get an array of bytes from a file

How to create a file from a array of bytes

XML-RPC-Transfer-file

Matheus

PS: This is just an example, any file that client ask, the server will send. It WILL BE A SYSTEM VULNERABILITY!

May 16 2009

Client and Server, Java XML-RPC

Good night,

A few days ago I created a XML-RPC server to test some functions. What is XML-RPC? XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism.(wikipedia) To start using XML-RPC in Java I used apache xml-rpc.

Example client and server XML-RPC.

Best Regards,
Matheus