MXBLOG - transmission
type: channel
link: https://moonjer.com/tag/transmission/
items: 更换transmission的UI界面
items: 使用docker安装transmission并使用增强版UI

更换transmission的UI界面
type: item
date: 2022-04-10T00:13:00+08:00
description: 通过终端登录工具登录到transmission安装的设备，可以通过 xshell 、 putty 等连接进入到transmission安装目录，然后下载新UI安装脚本文件，执行下载命令：sudo wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control.sh非root用户需要高级权限才能下载，所以加上sudo。若下载github网站文件网络连接不太容易，可以直接复制以下脚本，然后用vi命令保存到xx.sh文件中。{collapse}{collapse-item label=" install-tr-control.sh 脚本 摘自2022-04-10 星期日"}#!/bin/bash # 获取第一个参数 ARG1="$1" ROOT_FOLDER="" SCRIPT_NAME="$0" SCRIPT_VERSION="1.2.3" VERSION="" WEB_FOLDER="" ORG_INDEX_FILE="index.original.html" INDEX_FILE="index.html" TMP_FOLDER="/tmp/tr-web-control" PACK_NAME="master.tar.gz" WEB_HOST="https://github.com/ronggang/transmission-web-control/archive/" DOWNLOAD_URL="$WEB_HOST$PACK_NAME" # 安装类型 # 1 安装至当前 Transmission Web 所在目录 # 2 安装至 TRANSMISSION_WEB_HOME 环境变量指定的目录，参考：https://github.com/transmission/transmission/wiki/Environment-Variables#transmission-specific-variables # 使用环境变量时，如果 transmission 不是当前用户运行的，则需要将 TRANSMISSION_WEB_HOME 添加至 /etc/profile 文件，以达到“永久”的目的 # 3 用户指定参数做为目录，如 sh install-tr-control.sh /usr/local/transmission/share/transmission INSTALL_TYPE=-1 SKIP_SEARCH=0 AUTOINSTALL=0 if which whoami 2>/dev/null; then USER=`whoami` fi #========================================================== MSG_TR_WORK_FOLDER="Transmission Web Path: " MSG_SPECIFIED_VERSION="You are using the specified version to install, version:" MSG_SEARCHING_TR_FOLDER="Searching Transmission Web Folder..." MSG_THE_SPECIFIED_DIRECTORY_DOES_NOT_EXIST="Folder not found. Will search the entire /. This will take a while..." MSG_USE_WEB_HOME="Use TRANSMISSION_WEB_HOME Variable: $TRANSMISSION_WEB_HOME" MSG_AVAILABLE="Available" MSG_TRY_SPECIFIED_VERSION="Attempting to specify version: " MSG_PACK_COPYING="Copying installation package..." MSG_WEB_PATH_IS_MISSING="ERROR : Transmisson WEB UI Folder is missing, Please confirm Transmisson is installed." MSG_PACK_IS_EXIST=" Already exist, whether to download again? (y/n)" MSG_SIKP_DOWNLOAD="\nSkip download, preparing to install" MSG_DOWNLOADING="Transmission …

使用docker安装transmission并使用增强版UI
type: item
date: 2022-04-08T22:14:00+08:00
description: 一、docker安装命令{hide}一行命令：docker run -d --name=11013-trans -e USERNAME=username -e PASSWORD=password -p 9091:9091 -p 51413:51413 -p 51413:51413/udp -v /<Your save path>/downloads:/root/Downloads -v /<Your config path>/config:/root/.config/transmission-daemon --restart=always helloz/transmission分行命令：docker run -d --name="transmission" \ -e USERNAME=username \ -e PASSWORD=password \ -p 9091:9091 \ -p 51413:51413 \ -p 51413:51413/udp \ -v /<Your save path>/downloads:/root/Downloads \ -v /<Your config path>/config:/root/.config/transmission-daemon \ --restart=always \ helloz/transmission{/hide}二、界面展示汉化UI：移动端UI：新UI源码：ronggang / transmission-web-control