actually you can use azureus entirely without X. you need to install the swing-ui plugin for it, and then start azureus via

Code:

java -jar /path/to/Azureus2.jar --ui=console

you will need to install and copy a couple of java libraries into the directory where Azureus2.jar is. the errors will hint you (that's the way i figured it out) . (it was mentioned somewhere on the forums).

so i guess it's possible to combine it with your method and have azureus as a regular daemon which you can connect to via web interface ( http://localhost:6883 )

okay, this plugin is called "swing web interface". there are also different plugins, like telnet access, or html web ui for azureus. i didn't try them yet.

the drawback is that the swingweb needs a browser with java, because it launches an applet.

maybe the php interface, or telnet one would be more convenient here, so that the user would not need to run X just to add some downloads. [well, you can always configure azureus to watch a specific directory for torrents to do that]_________________~amd64
shrink your /usr/portage with squashfs+aufs

The "xhost LOCAL:" is not needed anymore, because we now use proper X11 authentication
Now only the p2p user (ie: Azureus) can interact with your X11 session. Other local users cannot, and that's much better.

Here it goes: (steps 1-3 must be done as root)

1 - Create a file named "/home/p2p/run-azureus" with the following contents: