Showing posts with label torrent. Show all posts
Showing posts with label torrent. Show all posts

Sunday, October 30, 2011

deluged on a server

I want to move my (quite limited) torrenting from my laptop onto the server. Here's how to run headless deluge on a server, and connect to it from the deluge client. (Instructions).

Since my server (Debian 6.0.3) is at version 1.2.3, but my Laptop (Ubuntu 11.10) is at version 1.3.3, using the GTK client won't work. I tired and tried, but ultimately the incompatibility defeated me...

...so instead of the GTK client, we'll use the web client. (There's also a console client)





Setup and start the deluged server

1) Run the following on the server as root:
apt-get install deluged deluge-console deluge-web
# To set this for automatic startup at boot, 
# see http://dev.deluge-torrent.org/wiki/UserGuide/InitScript

2) Run the following on the server as a user (not root)
deluged         # Run as USER to create the .config directory
pkill deluged   # Stop deluged

#Add an entry to the /home/USERNAME/.config/deluged/auth file
echo "USERNAME:my__deluge-only_password:5" >> /home/USERNAME/.config/deluged/auth

# Use deluge-console to change the config setting, allowing remote access.
# (For some reason, if you change .config/deluge/core.conf, the change is not persistent!)
deluge-console
config -s allow_remote True
exit

# Start deluged and deluge-web to launch the server and the web socket
deluged
deluge-web --fork

Connect to the server from the laptop:
Open a web browser to the server, port 8112: http: me.myserver.org:8112
Use the same password as the auth file (the "my_deluge-only_password")

And you should be in!

Try it with a small torrent (like a Debian Businesscard .iso)

Tuesday, April 7, 2009

Using debtorrent to contribute to the community

Debtorrent is a way to download packages using a torrent instead of a mirror. It's also a way to contribute to the community by reducing the need for mirrors.
Installing debtorrent: (instructions)
  1. Install from the command line ( sudo apt-get install debtorrent apt-transport-debtorrent ), or synaptic.
  2. Edit the lines in /etc/apt/sources.list to take advantage of debtorrent
    deb http://ftp.us.debian.org/debian etch main contrib non-free                              #OLD
    deb debtorrent://localhost:9988/ftp.us.debian.org/debian etch main contrib non-free         #NEW
    # Do not modify deb-src lines
    
  3. Reload the package list with sudo apt-get update
Using debtorrent: Debtorrent runs in the background automatically. You don't need to start it or stop it. To check on what it's doing, use the web interface at http://localhost:9988/

Wednesday, July 16, 2008

Using aria2c for ftp, http, and torrent downloads

Trying aria2c as a command-line replacement for wget, curl, and torrents.

  • Use a new line for each file to download.
  • Use aria2c -D URI for daemon (background) downloads, and free up a terminal window.

Thursday, March 13, 2008

Deluge crash recovery

I just figured out that Deluge saves a quick-resume file in the same folder as the torrent (/home/me/.config/deluge/torrentfiles). I wondered how often it updates - now I suspect it updates every time Deulge successfully quits without an error.

If so, then a good idea is to quit and restart Deluge every 6 or 12 hours or so, thereby limiting the loss from a crash.

My external drive is NTFS, and likes to crash on occasion...so I might start setting my timer.