Shift, a new web UI - UPDATE 2017.04.22
Posted: Sat Apr 22, 2017 12:07 pm
Changelog
- Do not render pieces data when torrent data not complete.
A Fast, Easy, and Free BitTorrent client
https://forum.transmissionbt.com/
Code: Select all
USER=debian-transmission
# Added this line into: /etc/init.d/transmission-daemon
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
Code: Select all
developer@LINUXFS01:~$ ls /usr/share/transmission/Shift/
base.css prototype.js shift.css shift.json touch.css
index.html README.md shift.js terminal.css
Code: Select all
developer@LINUXFS01:/usr/share/transmission/Shift$ getfacl /usr/share/transmission/Shift/
getfacl: Removing leading '/' from absolute path names
# file: usr/share/transmission/Shift/
# owner: debian-transmission
# group: debian-transmission
user::rwx
group::rwx
other::r-x
Code: Select all
./system/multi-user.target.wants/transmission-daemon.service
Code: Select all
$ cd /usr/share/transmission/
$ git clone https://github.com/killemov/Shift.git
Code: Select all
$ nano /etc/init.d/transmission-deamon
Code: Select all
export PATH="${PATH:+$PATH:}/sbin"
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
Code: Select all
$ nano /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
Code: Select all
[Service]
Environment=TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
Code: Select all
$ systemctl daemon-reload
Code: Select all
#!/bin/sh
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
Code: Select all
me@srv ~ $ ls /usr/share/transmission/Shift
base.css images index.html javascript prototype.js README.md shift.css shift.js shift.json style terminal.css touch.css
# Should not be used
me@srv ~ $ ls -l /usr/share/transmission/web
lrwxrwxrwx 1 root root 5 juil. 4 22:41 /usr/share/transmission/web -> Shift
bdr@srv ~ $ ls /usr/share/transmission/web/
base.css images index.html javascript prototype.js README.md shift.css shift.js shift.json style terminal.css touch.css
# Should not be used
me@srv ~ $ grep TRANSMISSION /etc/init.d/transmission-daemon
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
me@srv ~ $ grep TRANSMISSION /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
Environment=TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
me@srv ~ $ sudo systemctl daemon-reload
me@srv ~ $ sudo systemctl restart transmission-daemon
Code: Select all
me@srv~ $ sudo -u debian-transmission transmission-daemon -f --log-debug
[...]
[2017-07-07 22:05:17.906] Saved "/etc/transmission-daemon/settings.json" (variant.c:1266)
[2017-07-07 22:05:21.906] Searching for web interface file "/var/lib/transmission-daemon/.local/share/transmission/web/index.html" (platform.c:430)
[2017-07-07 22:05:21.906] Searching for web interface file "/usr/share/transmission/web/index.html" (platform.c:430)
[2017-07-07 22:05:21.906] Blocklist "blocklist.bin" contains 227850 entries (blocklist.c:100)
me@srv ~ $ cat /tmp/test.sh
#!/bin/bash
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
echo '---'
env | grep TRANSMISSION -C1
echo '---'
transmission-daemon -f --log-debug
me@srv ~ $ sudo -u debian-transmission /tmp/test.sh
---
TERM=xterm-256color
TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
SHLVL=1
---
[2017-07-07 22:34:22.894] Transmission 2.92 (14714) started (session.c:738)
[2017-07-07 22:34:22.895] Cache Maximum cache size set to 16.00 MiB (1024 blocks) (cache.c:261)
[2017-07-07 22:34:22.895] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:903)
[2017-07-07 22:34:22.895] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:1110)
[2017-07-07 22:34:22.895] RPC Server Started listening on 127.0.0.1:9091 (rpc-server.c:780)
[2017-07-07 22:34:22.895] Bound socket 16 to port 64636 on 0.0.0.0 (net.c:388)
[2017-07-07 22:34:22.895] Bound socket 17 to port 64636 on :: (net.c:388)
[2017-07-07 22:34:22.895] Port Forwarding Stopped (port-forwarding.c:180)
[2017-07-07 22:34:22.895] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:84)
[2017-07-07 22:34:22.895] UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:89)
[2017-07-07 22:34:22.895] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:95)
[2017-07-07 22:34:22.895] UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:100)
[2017-07-07 22:34:22.895] DHT Initializing DHT (tr-dht.c:278)
[2017-07-07 22:34:22.895] DHT Reusing old id (tr-dht.c:307)
[2017-07-07 22:34:22.895] DHT DHT initialized (tr-dht.c:332)
[2017-07-07 22:34:22.895] DHT Bootstrapping from 48 IPv4 nodes (tr-dht.c:156)
[2017-07-07 22:34:22.895] Using settings from "/var/lib/transmission-daemon/.config/transmission-daemon" (daemon.c:528)
[2017-07-07 22:34:22.895] Saved "/etc/transmission-daemon/settings.json" (variant.c:1266)
[2017-07-07 22:34:25.895] Blocklist "blocklist.bin" contains 227850 entries (blocklist.c:100)
The problem is users dist-upgrading Debian and having no clue that the init-system has changed completely and the configuration in /etc/init.d has become obsolete.bl0ndasse wrote:...
Does someone know what is the problem ?
Thanks in advance.
Code: Select all
me@srv ~ $ grep TRANSMISSION /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
Environment=TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
Code: Select all
me@srv ~ $ cat /tmp/test.sh
#!/bin/bash
export TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
echo '---'
env | grep TRANSMISSION -C1
echo '---'
transmission-daemon -f --log-debug
me@srv ~ $ sudo -u debian-transmission /tmp/test.sh
---
TERM=xterm-256color
TRANSMISSION_WEB_HOME=/usr/share/transmission/Shift
SHLVL=1
---
[...]
# always the same old interface...
Is it possible to change the files location in Shift 0.9.9 / Transmission 2.92 ?killemov wrote:Check https://trac.transmissionbt.com/browser ... c-spec.txt at the end. I will implement the 2.80+ features soon.larsen161 wrote:I see that I can set the download location when adding a torrent. How can I change the location once I've added it? When I go to the details page the downloadDir key value is just a static field. Something that can be changed in the default transmission client.
It has been a while but expect an update before 2019. Please report issues or request features on the github site. If you, ANY of you people, don't give me any feedback to go on I will just implement whatever I want.powermta wrote:I hope you never stop updating this
The upcoming update will include changing the target root for the payload as a whole.swabeer wrote:Is it possible to change the files location in Shift 0.9.9 / Transmission 2.92 ?
Shift is a web UI. It says so in the titles of all posts in this topic. That means the interface only needs a browser, preferably Firefox, to function. It is just HTML, CSS and JavaScript that communicates with Transmission. That said, it is usually used as the front-end of transmission-daemon that usually runs headless (no native GUI) on a Linux machine. But if you can see the stock web UI served by any Windows build, you can probably configure that to use Shift instead. You should try to get the stock web UI up and running first before you guess another web UI isn't for Windows.miniL wrote:Is this usable with Windows? Or just Linux?
Unsure since it was mentioned somewhere else by someone for windows, but no where else can I find windows references for it, nor can I find the mentioned locations in the guide.
Guess this isn't for windows?
Ah yes, assumptions, I should know better than to assume things before more thorough investigation.killemov wrote:Shift is a web UI. It says so in the titles of all posts in this topic. That means the interface only needs a browser, preferably Firefox, to function. It is just HTML, CSS and JavaScript that communicates with Transmission. That said, it is usually used as the front-end of transmission-daemon that usually runs headless (no native GUI) on a Linux machine. But if you can see the stock web UI served by any Windows build, you can probably configure that to use Shift instead. You should try to get the stock web UI up and running first before you guess another web UI isn't for Windows.miniL wrote:Is this usable with Windows? Or just Linux?
Unsure since it was mentioned somewhere else by someone for windows, but no where else can I find windows references for it, nor can I find the mentioned locations in the guide.
Guess this isn't for windows?