HostHatct存储机10T挂PT折腾笔记二

HostHatct存储机10T挂PT折腾笔记二

先DD个Ubuntu20.04

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -u 20.04 -v 64 -a -p 自定义密码 -firmware --mirror https://mirrors.xtom.com/ubuntu/

D好后:

apt-get update
apt-get install wget curl vim sudo python
tune2fs -O "^has_journal" /dev/vda3
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/GRUB_CMDLINE_LINUX_DEFAULT="noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off /g' /etc/default/grub
tune2fs -m 1 /dev/vda3

打开 /etc/fstab 编辑 在errors=remount-ro的前面添加:

noatime,nodiratime,barrier=0,

下载替换/etc/sysctl.conf参数优化TCP等,里面有注释,来自:https://github.com/jerry048/Dedicated-Seedbox

sysctl -p

重启后开始安装qbittorrent

sudo apt install build-essential pkg-config automake libtool git zlib1g-dev libssl-dev libgeoip-dev
sudo apt install libboost-dev libboost-system-dev libboost-chrono-dev libboost-random-dev
sudo apt install qtbase5-dev qttools5-dev libqt5svg5-dev
wget https://github.com/arvidn/libtorrent/releases/download/v1.2.12/libtorrent-rasterbar-1.2.12.tar.gz
tar xf libtorrent-rasterbar-1.2.12.tar.gz
cd libtorrent-rasterbar-1.2.12
./configure --disable-debug --enable-encryption --with-libgeoip=system CXXFLAGS=-std=c++17
make -j$(nproc)
make install
ldconfig
cd
wget https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-4.3.5.tar.gz
tar zxvf release-4.3.5.tar.gz
cd qBittorrent-release-4.3.5
./configure --disable-gui --disable-debug
make -j$(nproc)
make install
cd
qbittorrent-nox

按 y 确认,接着按 Ctrl+c 退出

cat << "EOF" > /etc/systemd/system/qbittorrent.service
[Unit]
Description=qBittorrent Daemon Service
After=network.target

[Service]
LimitNOFILE=512000
User=root
ExecStart=/usr/local/bin/qbittorrent-nox
ExecStop=/usr/bin/killall -w qbittorrent-nox

[Install]
WantedBy=multi-user.target
EOF
systemctl enable qbittorrent.service
systemctl start qbittorrent.service
访问 WebUI:

http://你的IP:8080/

默认用户名:admin
默认密码:adminadmin

由于这台机器CPU性能拉跨,防止卡死,设置可以参考

4 Comments

  1. Pingback: buy viagra gold
  2. Pingback: buy cialis overnight
  3. Pingback: how do you get cialis

发表评论

必填项已用*标注