作者: quintus 時間: 2010-2-14 22:35 標題: 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,
- sudo aptitude install deluge deluge-common deluge-torrent deluge-webui deluged
- sudo adduser deluge
- sudo chsh deluge
- # and change it to /bin/false to deny console login
- cd /tmp
- wget http://www.hkpcug.org/~quintus/Linux/deluge-web/deluge-daemon.sysvinit
- wget http://www.hkpcug.org/~quintus/Linux/deluge-web/deluge-daemon.default
- sudo mv deluge-daemon.sysvinit /etc/init.d/deluge-daemon
- sudo mv deluge-daemon.default /etc/default/deluge-daemon
- sudo update-rc.d deluge-daemon defaults
- sudo /etc/init.d/deluge-daemon start
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
作者: howdy 時間: 2010-2-15 17:50
thanks quintus
Deluge 好似靚左wor

作者: netter 時間: 2010-2-15 18:06
我用緊 ppa, 唔記得 1.1.8 定 1.1.9 開始係呢個 ui
不過佢 reload data 都幾密下
作者: daigorho 時間: 2010-2-15 20:01
sorry but ubuntu 9.10 can't apt-get the package deluge-web & deluged?
作者: quintus 時間: 2010-2-15 20:50
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
- sudo aptitude install deluge deluge-common deluge-torrent deluge-webui deluge-core
- sudo aptitude install deluge deluge-common deluge-torrent deluge-webui deluged
作者: quintus 時間: 2010-2-15 21:26
佢個 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.
[attach]1002382[/attach]
作者: quintus 時間: 2010-2-15 21:36
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
作者: daigorho 時間: 2010-2-16 11:14
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!
作者: quintus 時間: 2010-2-16 11:18
回復 8# daigorho
Try this PPA:
https://launchpad.net/~deluge-team/+archive/ppa
作者: daigorho 時間: 2010-2-16 11:25
回復 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!
作者: quintus 時間: 2010-2-16 11:36
回復 10# daigorho
could not open display
Oh.. do you have X in that server? deluge by default launch itself as a GUI.
作者: daigorho 時間: 2010-2-16 11:41
回復 11# quintus
oh.. no X was installed... but what I want to do is starting deluge as daemon and admin it by my desktop through webui. Should I start deluge in console mode? thanks.
作者: quintus 時間: 2010-2-16 11:46
回復 quintus
oh.. no X was installed... but what I want to do is starting deluge as daemon and ad ...
daigorho 發表於 2010-2-16 11:41
Try to run deluged first. If it runs without problem, try the steps I mentioned in my first post in this thread.
(You will have to kill the deluged before start the service by the sysvinit script.)
作者: netter 時間: 2010-2-16 11:54
其實 1.2.0 開始唔洗 start daemon 先了
我依加係
deluge -u web&
然後係個 web ui 先 start daemon 再 connect 佢

