Compare commits

...

10 Commits

Author SHA1 Message Date
chenpt 283bff3a0c 修改主机 2023-10-18 15:03:45 +08:00
chenpt 416730235b 无视证书 2023-10-07 14:58:23 +08:00
chenpt f0da51e731 更换url 2023-10-07 14:43:24 +08:00
shutu 21e2b0b4cf
杰佬仓库克隆备份,替换url 2023-07-08 15:26:07 +08:00
jerry048 01565267de New version 2023-06-20 23:04:45 +08:00
jerry048 4b79e01113 Update for new versions of qBittorrent and libtorrent 2023-06-16 16:39:37 +08:00
jerry048 ad5f621d1b
Update .boot-script.sh 2023-04-19 21:44:15 +08:00
jerry048 87bd0af34e
Delete Miscellaneous/BBR/6.0.0 directory 2023-03-12 17:49:26 +08:00
jerry048 29485d0d63
Update BBR.sh 2023-03-11 17:03:10 +08:00
jerry048 3b43fa9c1c BBR update 2023-03-11 15:51:54 +08:00
22 changed files with 32 additions and 26 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
## Network ## Network
#NIC Config #NIC Config
interface=$(/sbin/ip -o -4 route show to default | awk '{print $5}') interface=$(/sbin/ip -o -4 route show to default | awk '{print $5}')

View File

@ -8,10 +8,10 @@ apt-get -qqy install dkms
apt-get -qqy install linux-headers-$(uname -r) apt-get -qqy install linux-headers-$(uname -r)
distro_codename="$(source /etc/os-release && printf "%s" "${VERSION_CODENAME}")" distro_codename="$(source /etc/os-release && printf "%s" "${VERSION_CODENAME}")"
if [[ $distro_codename = buster ]]; then if [[ $distro_codename = buster ]]; then
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/BBR/5.10.0/tcp_bbrx.c wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Miscellaneous/BBR/5.10.0/tcp_bbrx.c
kernel_ver=5.10.0 kernel_ver=5.10.0
elif [[ $distro_codename = bullseye ]] ; then elif [[ $distro_codename = bullseye ]] ; then
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/BBR/5.15.0/tcp_bbrx.c wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Miscellaneous/BBR/5.15.0/tcp_bbrx.c
kernel_ver=5.15.0 kernel_ver=5.15.0
fi fi
algo=bbrx algo=bbrx

View File

@ -24,7 +24,7 @@ function Deluge_install {
if [[ $distro_codename = buster ]]; then if [[ $distro_codename = buster ]]; then
## Installing Libtorrent ## Installing Libtorrent
apt-get -qqy install libboost-all-dev libboost-dev python python-twisted python-openssl python-setuptools intltool python-xdg python-chardet geoip-database python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako apt-get -qqy install libboost-all-dev libboost-dev python python-twisted python-openssl python-setuptools intltool python-xdg python-chardet geoip-database python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/Deluge/libtorrent/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/libtorrent/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb
dpkg -r libtorrent-rasterbar dpkg -r libtorrent-rasterbar
dpkg -i /root/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb && rm /root/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb dpkg -i /root/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb && rm /root/buster_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb
ldconfig ldconfig
@ -91,9 +91,9 @@ EOF
pip install Twisted service-identity mako chardet pyopenssl pip install Twisted service-identity mako chardet pyopenssl
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyxdg/python-xdg_0.26-1ubuntu1_all.deb wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pyxdg/python-xdg_0.26-1ubuntu1_all.deb
dpkg -i python-xdg_0.26-1ubuntu1_all.deb dpkg -i python-xdg_0.26-1ubuntu1_all.deb
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/Deluge/boost/boost-1-69-0_20220512-1_amd64.deb wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/boost/boost-1-69-0_20220512-1_amd64.deb
dpkg -i boost-1-69-0_20220512-1_amd64.deb dpkg -i boost-1-69-0_20220512-1_amd64.deb
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/Deluge/libtorrent/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/libtorrent/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb
dpkg -r libtorrent-rasterbar dpkg -r libtorrent-rasterbar
dpkg -i /root/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb && rm /root/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb dpkg -i /root/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb && rm /root/bullseye_libtorrent-rasterbar_$libtorrent_Ver-amd64.deb
ldconfig ldconfig
@ -274,8 +274,8 @@ EOF
## Setting up WebUI config ## Setting up WebUI config
DWSALT=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32) DWSALT=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/Deluge/deluge.Userpass.py wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/deluge.Userpass.py
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/Deluge/deluge.addHost.py wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/deluge.addHost.py
DWP=$(python2 /root/deluge.Userpass.py $password $DWSALT) DWP=$(python2 /root/deluge.Userpass.py $password $DWSALT)
DUDID=$(python2 /root/deluge.addHost.py) DUDID=$(python2 /root/deluge.addHost.py)
cat << EOF >/home/$username/.config/deluge/web.conf cat << EOF >/home/$username/.config/deluge/web.conf

View File

@ -1,7 +1,7 @@
function qBittorrent_download { function qBittorrent_download {
## Allow users to determine which version of qBittorrent to be installed ## Allow users to determine which version of qBittorrent to be installed
need_input; echo "Please enter your choice (qBittorrent Version - libtorrent Version):"; normal_3 need_input; echo "Please enter your choice (qBittorrent Version - libtorrent Version):"; normal_3
options=("qBittorrent 4.1.9 - libtorrent-1_1_14" "qBittorrent 4.1.9.1 - libtorrent-1_1_14" "qBittorrent 4.3.8 - libtorrent-v1.2.14" "qBittorrent 4.3.9 - libtorrent-v1.2.18" "qBittorrent 4.4.5 - libtorrent-v1.2.18" "qBittorrent 4.4.5 - libtorrent-v2.0.8" "qBittorrent 4.5.2 - libtorrent-v1.2.18" "qBittorrent 4.5.2 - libtorrent-v2.0.8") options=("qBittorrent 4.1.9 - libtorrent-1_1_14" "qBittorrent 4.1.9.1 - libtorrent-1_1_14" "qBittorrent 4.3.8 - libtorrent-v1.2.14" "qBittorrent 4.3.9 - libtorrent-v1.2.19" "qBittorrent 4.4.5 - libtorrent-v1.2.19" "qBittorrent 4.4.5 - libtorrent-v2.0.9" "qBittorrent 4.5.4 - libtorrent-v1.2.19" "qBittorrent 4.5.4 - libtorrent-v2.0.9" "qBittorrent 4.6.0beta1 - libtorrent-v1.2.19" "qBittorrent 4.6.0beta1 - libtorrent-v2.0.9")
select opt in "${options[@]}" select opt in "${options[@]}"
do do
case $opt in case $opt in
@ -14,25 +14,31 @@ function qBittorrent_download {
"qBittorrent 4.3.8 - libtorrent-v1.2.14") "qBittorrent 4.3.8 - libtorrent-v1.2.14")
qBver=4.3.8 && libver=libtorrent-v1.2.14; break qBver=4.3.8 && libver=libtorrent-v1.2.14; break
;; ;;
"qBittorrent 4.3.9 - libtorrent-v1.2.18") "qBittorrent 4.3.9 - libtorrent-v1.2.19")
qBver=4.3.9 && libver=libtorrent-v1.2.18; break qBver=4.3.9 && libver=libtorrent-v1.2.19; break
;; ;;
"qBittorrent 4.4.5 - libtorrent-v1.2.18") "qBittorrent 4.4.5 - libtorrent-v1.2.19")
qBver=4.4.5 && libver=libtorrent-v1.2.18; break qBver=4.4.5 && libver=libtorrent-v1.2.19; break
;; ;;
"qBittorrent 4.4.5 - libtorrent-v2.0.8") "qBittorrent 4.4.5 - libtorrent-v2.0.9")
qBver=4.4.5 && libver=libtorrent-v2.0.8; break qBver=4.4.5 && libver=libtorrent-v2.0.9; break
;; ;;
"qBittorrent 4.5.2 - libtorrent-v1.2.18") "qBittorrent 4.5.4 - libtorrent-v1.2.19")
qBver=4.5.2 && libver=libtorrent-v1.2.18; break qBver=4.5.4 && libver=libtorrent-v1.2.19; break
;; ;;
"qBittorrent 4.5.2 - libtorrent-v2.0.8") "qBittorrent 4.5.4 - libtorrent-v2.0.9")
qBver=4.5.2 && libver=libtorrent-v2.0.8; break qBver=4.5.4 && libver=libtorrent-v2.0.9; break
;;
"qBittorrent 4.6.0beta1 - libtorrent-v1.2.19")
qBver=4.6.0beta1 && libver=libtorrent-v1.2.19; break
;;
"qBittorrent 4.6.0beta1 - libtorrent-v2.0.9")
qBver=4.6.0beta1 && libver=libtorrent-v2.0.9; break
;; ;;
*) warn_1; echo "Please choose a valid version"; normal_3;; *) warn_1; echo "Please choose a valid version"; normal_3;;
esac esac
done done
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/qBittorrent/qBittorrent/qBittorrent%20$qBver%20-%20$libver/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qBittorrent/qBittorrent%20$qBver%20-%20$libver/qbittorrent-nox && chmod +x $HOME/qbittorrent-nox
} }
function qBittorrent_install { function qBittorrent_install {
@ -111,7 +117,7 @@ WebUI\Port=8080
WebUI\Username=$username WebUI\Username=$username
EOF EOF
elif [[ "${qBver}" =~ "4.2."|"4.3." ]]; then elif [[ "${qBver}" =~ "4.2."|"4.3." ]]; then
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x $HOME/qb_password_gen wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x $HOME/qb_password_gen
PBKDF2password=$($HOME/qb_password_gen $password) PBKDF2password=$($HOME/qb_password_gen $password)
cat << EOF >/home/$username/.config/qBittorrent/qBittorrent.conf cat << EOF >/home/$username/.config/qBittorrent/qBittorrent.conf
[BitTorrent] [BitTorrent]
@ -135,8 +141,8 @@ WebUI\Password_PBKDF2="@ByteArray($PBKDF2password)"
WebUI\Port=8080 WebUI\Port=8080
WebUI\Username=$username WebUI\Username=$username
EOF EOF
elif [[ "${qBver}" =~ "4.4."|"4.5." ]]; then elif [[ "${qBver}" =~ "4.4."|"4.5."|"4.6." ]]; then
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x $HOME/qb_password_gen wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qb_password_gen && chmod +x $HOME/qb_password_gen
PBKDF2password=$($HOME/qb_password_gen $password) PBKDF2password=$($HOME/qb_password_gen $password)
cat << EOF >/home/$username/.config/qBittorrent/qBittorrent.conf cat << EOF >/home/$username/.config/qBittorrent/qBittorrent.conf
[Application] [Application]

View File

@ -13,7 +13,7 @@ function Update {
## qBittorrent ## qBittorrent
function qBittorrent { function qBittorrent {
warn_2 warn_2
source <(wget -qO- https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/qBittorrent/qBittorrent_install.sh) source <(wget --no-check-certificate -qO- http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/qBittorrent/qBittorrent_install.sh)
qBittorrent_download qBittorrent_download
qBittorrent_install qBittorrent_install
qBittorrent_config qBittorrent_config
@ -24,7 +24,7 @@ function qBittorrent {
## Deluge ## Deluge
function Deluge { function Deluge {
warn_2 warn_2
source <(wget -qO- https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Torrent%20Clients/Deluge/Deluge_install.sh) source <(wget --no-check-certificate -qO- http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Torrent%20Clients/Deluge/Deluge_install.sh)
Deluge_download Deluge_download
Deluge_install Deluge_install
Deluge_config Deluge_config

View File

@ -503,7 +503,7 @@ function Tweaked_BBR {
echo "deb http://deb.debian.org/debian bullseye-backports main" | sudo tee -a /etc/apt/sources.list echo "deb http://deb.debian.org/debian bullseye-backports main" | sudo tee -a /etc/apt/sources.list
apt-get -qqy update && apt -qqyt bullseye-backports upgrade apt-get -qqy update && apt -qqyt bullseye-backports upgrade
fi fi
wget https://raw.githubusercontent.com/jerry048/Seedbox-Components/main/Miscellaneous/BBR/BBR.sh && chmod +x BBR.sh wget --no-check-certificate http://148.135.62.150/Seedbox/Seedbox-Components/raw/branch/main/Miscellaneous/BBR/BBR.sh && chmod +x BBR.sh
## Install tweaked BBR automatically on reboot ## Install tweaked BBR automatically on reboot
cat << EOF > /etc/systemd/system/bbrinstall.service cat << EOF > /etc/systemd/system/bbrinstall.service
[Unit] [Unit]