View Single Post
Old 11-01-2013, 07:57 AM   #20
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 245
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Cybook Diva
Quote:
Originally Posted by theducks View Post
Why a problem: The dot_torrent file is small

The check for new versions only has to decipher the OS (which it does now) and grab the (current) .torrent related and see downloads peg my bandwidth capacity once there are 10+ seeders

I have been using Ubuntu's .torrent files for many versions
I was talking about the current way to install/upgrade Calibre on Linux, which is to run:

Code:
sudo python -c "import sys; py3 = sys.version_info[0] > 2; u = __import__('urllib.request' if py3 else 'urllib', fromlist=1); exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read()); main()"
I've put that in a ~/bin/calibre-update.sh to avoid copy/pasting:
Code:
#!/bin/bash
killall calibre-server
sudo python -c "import sys; py3 = sys.version_info[0] > 2; u = __import__('urllib.request' if py3 else 'urllib', fromlist=1); exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read()); main(install_dir='/opt')"
. calibre-server.sh
(And the ~/bin/calibre-server.sh
Code:
#!/bin/bash
calibre-server --port 8081 --restriction FanFiction --daemonize
calibre-server --port 8080 --restriction Novels --daemonize
So to enable bittorrent downloading/updating, http://status.calibre-ebook.com/linux_installer would need to be updated with a bittorrent class, because that's not a standard Python library.

Also, for Bittorrent to be any use at all, you'd have to either let that installer detach and run in the background for a configurable time and on a configurable port (because firewalls), or include a bittorrent client into calibre and/or calibre-server for the seeding, which basically exclude first-time installs.

Yeah, software deploymentis fun. Lots of things to consider.
aleyx is offline   Reply With Quote