[教學] Deluge web start as a service

本帖最後由 quintus 於 2010-2-16 11:27 編輯

-- edit: change to use the script from http://dev.deluge-torrent.org/wiki/UserGuide/InitScript --

To start the deluge-web as a service, a sysvinit script (for Debian/Ubuntu) is needed.
I have downloaded the script to:
http://www.hkpcug.org/~quintus/L ... uge-daemon.sysvinit
(I am using Debian sid which now gets deluge 1.2.0)

To use it,
  1. sudo aptitude install deluge deluge-common deluge-torrent deluge-webui deluged
  2. sudo adduser deluge
  3. sudo chsh deluge
  4. # and change it to /bin/false to deny console login
  5. cd /tmp
  6. wget http://www.hkpcug.org/~quintus/Linux/deluge-web/deluge-daemon.sysvinit
  7. wget http://www.hkpcug.org/~quintus/Linux/deluge-web/deluge-daemon.default
  8. sudo mv deluge-daemon.sysvinit /etc/init.d/deluge-daemon
  9. sudo mv deluge-daemon.default /etc/default/deluge-daemon
  10. sudo update-rc.d deluge-daemon defaults
  11. sudo /etc/init.d/deluge-daemon start
複製代碼
Then, if everything alright, you will see the web UI at
http://$HOST:8112/, e.g.
http://127.0.0.1:8112/
Login with password 'deluge' and enjoy the software.


You can change the password as well as other preferences in the web UI.

n.b. To use the latest deluge (1.2.0), try this PPA in Ubuntu
https://launchpad.net/~deluge-team/+archive/ppa

thanks quintus

Deluge 好似靚左wor

TOP

我用緊 ppa, 唔記得 1.1.8 定 1.1.9 開始係呢個 ui
不過佢 reload data 都幾密下

TOP

sorry but ubuntu 9.10 can't apt-get the package deluge-web & deluged?

TOP

sorry but ubuntu 9.10 can't apt-get the package deluge-web & deluged?
daigorho 發表於 2010-2-15 20:01


Thanks for the information.
deluged is in deluge-core of Ubuntu 9.10 universe repository.
In Ubuntu deluge-web is named deluge-webui.
Thus, for Ubuntu 9.10 (karmic), try this to install the packages
  1. sudo aptitude install deluge deluge-common deluge-torrent deluge-webui deluge-core
複製代碼
For 10.04 (lucid), try this
  1. sudo aptitude install deluge deluge-common deluge-torrent deluge-webui deluged
複製代碼
I am not sure if the sysvinit script works well with 1.1.9 ( in 9.10 ).  Please let me know if you encounter any issue.

TOP

thanks quintus

Deluge 好似靚左wor
howdy 發表於 2010-2-15 17:50


佢個 web 用咗 ExtJS (AJAX 嘢來嘅),好方便。用落同用 GUI 差無幾。

另外想提一提,deluge 係可以以 client-server 咁行,即係你响部機開個 deluged (daemon), 再用另一部機個 deluge GUI connect 去個 daemon 睇番同一堆 jobs, 詳情可以參考
http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient
我個 init script 會 start deluged, 所以只要响 server 部機加番 remote username & password, 可以同時用 web & GUI 管理 BT download jobs.

附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

Oops.. just find that there is already such an init script in deluge's wiki.  This is a better approach.  Please get it at
http://dev.deluge-torrent.org/wiki/UserGuide/InitScript

TOP

I try to install it in my januty server but following errors pop out!
server:/tmp$ deluge
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
1.1.6
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/queuedtorrents.py:60: Warning: invalid (NULL) pointer instance
  "glade/queuedtorrents.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/queuedtorrents.py:60: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  "glade/queuedtorrents.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/queuedtorrents.py:60: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  "glade/queuedtorrents.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/queuedtorrents.py:60: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  "glade/queuedtorrents.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/queuedtorrents.py:76: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  gtk.TreeViewColumn(_("Torrent"), gtk.CellRendererText(), text=0))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/queuedtorrents.py:76: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  gtk.TreeViewColumn(_("Torrent"), gtk.CellRendererText(), text=0))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: Warning: invalid (NULL) pointer instance
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gdk_display_get_window_at_pointer: assertion `GDK_IS_DISPLAY (display)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: PangoWarning: pango_context_set_font_description: assertion `context != NULL' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: PangoWarning: pango_context_set_base_dir: assertion `context != NULL' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: PangoWarning: pango_context_set_language: assertion `context != NULL' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: PangoWarning: pango_layout_new: assertion `context != NULL' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: PangoWarning: pango_layout_set_attributes: assertion `layout != NULL' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: PangoWarning: pango_layout_set_text: assertion `layout != NULL' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: PangoWarning: pango_layout_get_unknown_glyphs_count: assertion `PANGO_IS_LAYOUT (layout)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed
  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: Invalid icon size 1

  "glade/main_window.glade"))
/usr/lib/pymodules/python2.6/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
  "glade/main_window.glade"))
Segmentation fault

Anyone can help? thanks!

TOP

回復 8# daigorho

Try this PPA:
https://launchpad.net/~deluge-team/+archive/ppa

TOP

回復 9# quintus

thanks for your reply but it doesn't help... same errors happened. What I had done so far:
1. add the source in source.list
2. apt-get update
3. apt-get purge python
4. apt-get autoremove
5. apt-get install deluge deluge-common deluge-torrent deluge-webui
6. start deluge but same errors.........

anymore clues? thanks!

TOP