Linux, run deluge-console as deluge user?

General support for problems installing or using Deluge
Post Reply
jamesmehorter
New User
New User
Posts: 2
Joined: Sun May 14, 2017 2:48 am

Linux, run deluge-console as deluge user?

Post by jamesmehorter »

Hi all :)

This may be more of a Linux question than a Deluge question.. I'm on Ubuntu 16 and have deluge, deluged, deluge-web, and deluge-console all working well. Installed via:
sudo apt-get install deluge deluged deluge-web deluge-console

Though, I'm only able to run deluge-console as sudo, i.e. sudo deluge-console, This works.

I have deluged running as a service, owned by a 'deluge' user (per the instructions here http://dev.deluge-torrent.org/wiki/User ... ce/systemd), and likewise I also have 'deluge' user group.

deluge user is in the deluge group

Code: Select all

➜  / groups deluge
deluge : deluge

Code: Select all

➜  / cat /etc/systemd/system/deluged.service
[Unit]
Description=Deluge Bittorrent Client Daemon
After=network-online.target

[Service]
Type=simple
User=deluge
Group=deluge
UMask=007
...
I've set deluge-console to be accessible by users in the deluge group:

Code: Select all

➜  / ls -al /usr/bin | grep deluge
-rwxr-xr-x  1 root   deluge       292 Mar  6 12:45 deluge
-rwxr-xr-x  1 root   deluge       316 Mar  6 12:45 deluge-console
-rwxr-xr-x  1 root   deluge       302 Mar  6 12:45 deluged
-rwxr-xr-x  1 root   deluge       300 Mar  6 12:45 deluge-gtk
-rwxr-xr-x  1 root   deluge       308 Mar  6 12:45 deluge-web
However, I'm unable to run deluge-console as the deluge user, and receive the following error:

Code: Select all

➜  / whoami
deluge
➜  / deluge-console
Traceback (most recent call last):
  File "/usr/bin/deluge-console", line 9, in <module>
    load_entry_point('deluge==1.3.14', 'console_scripts', 'deluge-console')()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 75, in start
    Console().start()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 72, in start
    ConsoleUI(self.args)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 200, in __init__
    d = self.do_command(connect_cmd)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 346, in do_command
    self.write("{!error!}" + str(e))
  File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 290, in write
    self.screen.add_line(line, not self.batch_write)
AttributeError: 'ConsoleUI' object has no attribute 'screen'

Any ideas what I'm missing? Thanks!
Last edited by jamesmehorter on Mon May 15, 2017 1:18 am, edited 4 times in total.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Linux, run deluge-console as deluge user?

Post by Cas »

See thinclient guide
jamesmehorter
New User
New User
Posts: 2
Joined: Sun May 14, 2017 2:48 am

Re: Linux, run deluge-console as deluge user?

Post by jamesmehorter »

Hi Cas, thanks—this one? http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient

I've read through that a number of times, not sure where I'm falling short. Any help would be appreciated!
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Linux, run deluge-console as deluge user?

Post by shamael »

Not very similar but I set the deluge user with no shell access so to use the command I first becomes root (regular user not able to access the binary) and launch the sudo as deluge user

logon as my regular user
sudo bash
sudo -u deluge deluge-console

I can remove steps to ease the process but I doesn't bother me this way
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Linux, run deluge-console as deluge user?

Post by Cas »

Post Reply