Hi
I'm trying to set up deluge on a debian lenny headless server.
I used this webpage as guidance http://propellerheadadmin.com/tutorials ... ith-deluge
however installed deluge using apt-get install deluge-torrent
that went okay.
Than I create a file deluge-daemon
and put it in /etc/init.d
I put the startup script inhere and added my normal username (jeroen)
#!/bin/sh
# created by mambang
# Headless deluge startup script
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DELUGE="/usr/bin/deluge"
DELUGE_OPTIONS="-u web"
USER="jeroen" ###########Change this to your username
DELUGEDAEMON="/usr/bin/deluged"
DESC1="Deluge Daemon"
DESC2="WebUi"
NAME1="deluged"
NAME2="Deluge webserver"
set -e
case "$1" in
start)
echo -n "Starting $DESC1 : "
start-stop-daemon -c $USER --start --background --quiet --exec $DELUGEDAEM$
echo "$NAME1"
sleep 2
echo -n "Starting $DESC2 : "
start-stop-daemon -c $USER --start --background --quiet --exec $DELUGE -- $
echo "$NAME2"
;;
stop)
echo -n "Stopping $DESC1 : "
PIDDELUGE=`ps ax |grep deluged |sed -n 1p |awk '{print $1}'`
kill $PIDDELUGE
echo "$NAME1."
echo -n "Stopping $DESC2 : "
PIDWEB=`ps ax |grep deluge |sed -n 2p |awk '{print $1}'`
kill $PIDWEB
echo "$NAME2."
;;
*)
N=deluge-daemon
echo "Usage: $N {start|stop|restart}" >&2
exit 1
;;
esac
exit 0
I continued with the steps on the above website :
I ran: chmod +x /etc/init.d/deluge-daemon
than : update-rc.d -f deluge-daemon defaults
that's bassically it,
when i run
deluge --ui web
I get
BP6:/etc/init.d# deluge --ui web
/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Usage: deluge [options] [torrents to add]
deluge: error: no such option: --ui
So I get stuck any help ?
the idea is to get a bittorent client running so that ultimately I can use a different computer find bittorent files with that computer and transfer them to my server that will download this....... any one got it set up this way ?
problems getting deluge running (newbie)
Re: problems getting deluge running (newbie)
it's
and yes many people have this setup, it's referred to as a thin client and there's a userguide on it: http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient
Code: Select all
deluge -u web
Re: problems getting deluge running (newbie)
this gets me
both as normal user and as root
jeroen@BP6:/root$ deluge -u web
/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Usage: deluge [options] [torrents to add]
deluge: error: no such option: -u
both as normal user and as root
jeroen@BP6:/root$ deluge -u web
/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Usage: deluge [options] [torrents to add]
deluge: error: no such option: -u
Re: problems getting deluge running (newbie)
don't ever run deluge as root.
I must have skipped over the part where you said you installed it from apt-get; that version doesn't support running on headless servers.
You need to get the latest version (1.1.7) if you want to do that.
I must have skipped over the part where you said you installed it from apt-get; that version doesn't support running on headless servers.
You need to get the latest version (1.1.7) if you want to do that.
Re: problems getting deluge running (newbie)
is there any way I can get this latest version using apt ?
Re: problems getting deluge running (newbie)
there's 1.1.6 in sid: http://packages.debian.org/sid/deluge
for lenny, you would have to either compile it yourself or find a .deb somewhere.
for lenny, you would have to either compile it yourself or find a .deb somewhere.
Re: problems getting deluge running (newbie)
I have removed the old version and installed the one from the link I got.
If I run it now as normal user I get the following message
jeroen@BP6:/root$ deluge -u web
[ERROR ] 16:30:30 ui:84 No module named webui.webui
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/deluge/ui/ui.py", line 69, in __init__
from deluge.ui.webui.webui import WebUI
ImportError: No module named webui.webui
[ERROR ] 16:30:30 ui:85 There was an error whilst launching the request UI: web
[ERROR ] 16:30:30 ui:86 Look at the traceback above for more information.
any idea ?
If I run it now as normal user I get the following message
jeroen@BP6:/root$ deluge -u web
[ERROR ] 16:30:30 ui:84 No module named webui.webui
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/deluge/ui/ui.py", line 69, in __init__
from deluge.ui.webui.webui import WebUI
ImportError: No module named webui.webui
[ERROR ] 16:30:30 ui:85 There was an error whilst launching the request UI: web
[ERROR ] 16:30:30 ui:86 Look at the traceback above for more information.
any idea ?
Re: problems getting deluge running (newbie)
Yea, install the web ui.jp73 wrote:I have removed the old version and installed the one from the link I got.
If I run it now as normal user I get the following message
jeroen@BP6:/root$ deluge -u web
[ERROR ] 16:30:30 ui:84 No module named webui.webui
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/deluge/ui/ui.py", line 69, in __init__
from deluge.ui.webui.webui import WebUI
ImportError: No module named webui.webui
[ERROR ] 16:30:30 ui:85 There was an error whilst launching the request UI: web
[ERROR ] 16:30:30 ui:86 Look at the traceback above for more information.
any idea ?
Re: problems getting deluge running (newbie)
Can't find anything in the faq how to do this, I installed 1.1.6 from http://packages.debian.org/sid/deluge
I was under the impression that this contains everything ?
I was under the impression that this contains everything ?
Re: problems getting deluge running (newbie)
I'm surprised you didn't see this there..jp73 wrote:Can't find anything in the faq how to do this, I installed 1.1.6 from http://packages.debian.org/sid/deluge
I was under the impression that this contains everything ?
http://packages.debian.org/search?keywords=deluge-webui