性价比服务器推荐
Q:756784772

Transmission 一键脚本 适用Debian8 Debian9

本人重新改的全自动脚本,装完即可用本地GUI连接

github地址:https://github.com/DeanJing/TransmissionForDebian

  • 自动配置setting文件,关闭DHT,关闭本地连接白名单;
  • 一键安装,可全部回车下一步,下一步;
  • 默认用户名:vpsoff.com;密码:vpsoff.com
apt-get update -y
wget --no-check-certificate https://raw.githubusercontent.com/DeanJing/TransmissionForDebian/master/TransmissionForDebian.sh
sh TransmissionForDebian.sh

装完后用Transmission Remote Gui连接即可

  • 默认关闭DHT
  • 默认开启允许远程连接
  • 端口:1989
  • 默认用户名:vpsoff.com
  • 默认用户名:vpsoff.com

代码备份

#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

echo -e "\033[31m =============================================================\033[0m"
echo -e "\033[33m  脚本名:  Transmission一键脚本 for Debian \033[0m"
echo -e "\033[33m *原作者:@http://dadi.me/ dadi.ME \033[0m"
echo -e "\033[33m *此脚本发布在 http://vpsoff.com \033[0m"
echo -e "\033[31m =============================================================\033[0m"
# http://dadi.me/ dadi.ME
# 2013.03.30
# Mod by zhujiwiki.com , 2018.07.06
# Transmission | Debian

# VERSION CHOICE
ver="latest"
echo "Which version(latest OR stable) do you want to install:"
read -p "Type latest or stable (latest):" ver
if [ "$ver" = "" ]; then
    ver="latest"
fi

# CONFIGURATION
username=""
read -p "Set username:" username
if [ "$username" = "" ]; then
    username="vpsoff.com"
fi

password=""
read -p "Set password:" password
if [ "$password" = "" ]; then
    password="vpsoff.com"
fi

port=""
read -p "Set port(1989):" port
if [ "$port" = "" ]; then
    port="1989"
fi

    get_char()
    {
    SAVEDSTTY=`stty -g`
    stty -echo
    stty cbreak
    dd if=/dev/tty bs=1 count=1 2> /dev/null
    stty -raw
    stty echo
    stty $SAVEDSTTY
    }
    echo ""
    echo "Press any key to start...or Press Ctrl+c to cancel"
    char=`get_char`

# START
apt-get update
apt-get -y install transmission-daemon

# SETTINGS.JSON
/etc/init.d/transmission-daemon stop
wget --no-check-certificate https://raw.githubusercontent.com/DeanJing/TransmissionForDebian/master/settings.json
chmod +x settings.json
mkdir -p /var/lib/transmission-daemon/info
mv -f settings.json /var/lib/transmission-daemon/info/
sed -i 's/^.*rpc-username.*/"rpc-username": "'$(echo $username)'",/' /var/lib/transmission-daemon/info/settings.json
sed -i 's/^.*rpc-password.*/"rpc-password": "'$(echo $password)'",/' /var/lib/transmission-daemon/info/settings.json
sed -i 's/^.*rpc-port.*/"rpc-port": '$(echo $port)',/' /var/lib/transmission-daemon/info/settings.json
/etc/init.d/transmission-daemon start

# mkdir -p /home/transmission/Downloads/
chmod -R 777 /var/lib/transmission-daemon/downloads

# END
clear
echo "Done."
echo " "
echo "Web GUI: http://your ip:$port/"
echo "username: $username"
echo "password: $password"
echo -e "\033[31m注意:请在VPS安全组以及BT面板里打开端口1989和51413\033[0m"
历史上的今天
八月
1
    哇哦~~~,历史上的今天没发表过文章哦
打赏
未经允许不得转载:VPS折扣网-VPS优惠码-性价比美国服务器推荐 » Transmission 一键脚本 适用Debian8 Debian9
分享到: 更多 (0)
标签:

评论 抢沙发

Hostflyte OpenVZ 1核1G/30G/2T/月/年付9.6刀

Hostflyte KVM 4核 4G 40G 8T/月,年付24刀Hostflyte KVM 2核 2G 20G 4T/月,年付12刀

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

×
订阅图标按钮
< img src="https://www.hostflyte.com/myaccount/aff.php?aff=85" width=0 height=0 / > < img src="https://bandwagonhost.com/aff.php?aff=45407" width=0 height=0 / > < img src="https://manage.hostdare.com/aff.php?aff=1579" width=0 height=0 / > < img src="https://billing.virmach.com/aff.php?aff=7167" width=0 height=0 / > < img src="https://billing.vpshared.com/aff.php?aff=7167" width=0 height=0 / > < img src="https://www.hostens.com/?affid=1068" width=0 height=0 / > < img src="https://ion.krypt.com/aff.php?aff=262" width=0 height=0 / >