[修改版] 會自動Block迅雷嘅qBittorrent (2)
洛托姆圖鑑 2018-7-6 23:05:48
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c -s  libtorrent-rasterbar.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libtorrent-rasterbar.so.9.0.0 /usr/local/lib/libtorrent-rasterbar.so.9.0.0
libtool: install: strip --strip-unneeded /usr/local/lib/libtorrent-rasterbar.so.9.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libtorrent-rasterbar.so.9.0.0 libtorrent-rasterbar.so.9 || { rm -f libtorrent-rasterbar.so.9 && ln -s libtorrent-rasterbar.so.9.0.0 libtorrent-rasterbar.so.9; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libtorrent-rasterbar.so.9.0.0 libtorrent-rasterbar.so || { rm -f libtorrent-rasterbar.so && ln -s libtorrent-rasterbar.so.9.0.0 libtorrent-rasterbar.so; }; })
libtool: install: /usr/bin/install -c .libs/libtorrent-rasterbar.lai /usr/local/lib/libtorrent-rasterbar.la
libtool: install: /usr/bin/install -c .libs/libtorrent-rasterbar.a /usr/local/lib/libtorrent-rasterbar.a
libtool: install: strip --strip-debug /usr/local/lib/libtorrent-rasterbar.a
libtool: install: chmod 644 /usr/local/lib/libtorrent-rasterbar.a
libtool: install: ranlib /usr/local/lib/libtorrent-rasterbar.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib


qBittorrent 要 --prefix=/usr/local ?
又要compile多次
:^(
?

qbittorrent-nox: error while loading shared libraries: libtorrent-rasterbar.so.9: cannot open shared object file: No such file or directory

Ads

Husky 2018-7-6 23:08:36 我都唔記得qB有冇用到boost
:^(

因為好多boost include都放左係libtorrent
而我就直接拎libtorrent d function黎用 應該係咁
:^(
Husky 2018-7-6 23:15:05 呢個唔洗重新黎過
我自己就改左 ld config
https://github.com/qbittorrent/qBittorrent/issues/3622
or
export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}
洛托姆圖鑑 2018-7-6 23:17:13 已經重新compile緊
:^(
洛托姆圖鑑 2018-7-6 23:26:43 原來都係唔得
我諗要照你個方法搞
洛托姆圖鑑 2018-7-6 23:29:42 得咗啦
:^(
:^(
:^(
Husky 2018-7-7 00:47:40 congrats
:^(
油麻地占士金馬倫 2018-7-7 15:45:35 此回覆已被刪除
Husky 2018-7-7 16:59:34 ........關ipv6事
:^(

係香港開左佢都冇問題
:^(
洛托姆圖鑑 2018-7-8 00:29:22 想將qb整到開機自動run
https://qbforums.shiki.hu/index.php?topic=3840.0

抄考上面條link嘅做法
[Unit]
Description=qbittorrent-nox
Documentation=man:qbittorrent-nox
DefaultDependencies=yes
After=network-online.target nss-lookup.target
Before=multi-user.target

[Service]
User=*username*
Group=*group*
Type=simple
ExecStart=/usr/local/bin/qbittorrent-nox -d
Nice=10
StandardError=null
StandardOutput=null
TimeoutSec=360s

[Install]
WantedBy=multi-user.target


但係就得到呢個error

● qbittorrent.service - qbittorrent-nox
   Loaded: loaded (/etc/systemd/system/qbittorrent.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-07-08 00:07:58 HKT; 32s ago
     Docs: man:qbittorrent-nox
  Process: 3486 ExecStart=/usr/local/bin/qbittorrent-nox -d (code=exited, status=127)
 Main PID: 3486 (code=exited, status=127)

Jul 08 00:07:58 greybox systemd[1]: Started qbittorrent-nox.
Jul 08 00:07:58 greybox systemd[1]: qbittorrent.service: Main process exited, code=exited, status=127/n/a
Jul 08 00:07:58 greybox systemd[1]: qbittorrent.service: Unit entered failed state.
Jul 08 00:07:58 greybox systemd[1]: qbittorrent.service: Failed with result 'exit-code'.


status=127到底佢搵唔到啲乜?
之後發現原來service唔食我喺.bashrc set嘅env var
所以又搵唔到libtorrent

跟呢條link咁做
https://serverfault.com/questions/413397/how-to-set-environment-variable-in-systemd-service/413408


sudo systemctl edit qbittorrent


[Service]
Environment="LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}"


之後個service就可以正常運作
但係我突然諗起:我係咪兜咗個大圈
:^(
?
Husky 2018-7-8 00:33:04 所以我先會改ld config
:^(
:^(
:^(

Ads

洛托姆圖鑑 2018-7-8 10:17:36 喺邊度改cache size
:^(
:^(
:^(

WebUI唔見有
~/.config/qBittorrent/qBittorrent.conf 入面又搵唔到個variable
Husky 2018-7-8 16:57:48 好似真係冇
:^(


qBittorrent.conf
Downloads\DiskWriteCacheSize=1024
Downloads\DiskWriteCacheTTL=60
洛托姆圖鑑 2018-7-8 18:20:13
:^(
Husky 2018-7-9 12:40:44
:^(
我是菊佐臭太💨 2018-7-9 16:02:08 用ramdisk 係咪可以 set 唔洗cache
應該set邊個位?唔係好識睇
Husky 2018-7-9 19:00:28
:^(

Disk cache SET 0就ok
:^(
Husky 2018-7-10 11:56:29
:^(
Husky 2018-7-11 19:42:36
:^(
Husky 2018-7-12 16:21:24
:^(
Husky 2018-7-14 02:30:36
:^(

Ads

Husky 2018-7-15 04:52:56
:^(
Husky 2018-7-16 03:17:40
:^(
debugger; 2018-7-16 03:23:01 好想射精
Husky 2018-7-17 05:19:32 HEA打左篇野 略略講下Tracker既運作
:^(

http://telegra.ph/How-Bittorrent-Tracker-works-07-16