各種安裝不如源碼來得直接性宏,終于還是選擇源碼編譯安裝
數(shù)據(jù)不用遷移,只需要復制一份現(xiàn)有的文件
新版本安裝后直接copy過去即可~~~
這有點像utorrent有備份的種子文件崇堰、配置文件就行一樣的
安裝環(huán)境:debian 7
參考鏈接:
- https://github.com/transmission/transmission
- https://wp.madjack.info/linux/debian-8-ubuntu-16-04-%E6%BA%90%E7%A2%BC%E7%B7%A8%E8%AD%AF-transmission-2-93.html
-
https://blog.rhilip.info/archives/787/
安裝:
apt-get update
wget https://github.com/transmission/transmission-releases/raw/master/transmission-2.93.tar.xz
tar xf transmission-2.93.tar.xz
cd transmission-2.93
其實這里和官方的沒多少差異衡创,重點在下面
./configure
make
make install
好了婉商,我從./configure這里開始就一路報錯,缺少各種東西...
為什么不在一開始直接apt-get install build-essential xxx來解決缺少的東西呢项钮?我認為這樣可能會導致各種類型的奇怪錯誤扇苞,不如直接./configure然后提示差什么就安裝什么,因為每個人的系統(tǒng)安裝的東西不太一樣寄纵,比如我這個源下安裝最多是2.52的版本...下面是我執(zhí)行./configure遇到的報錯:
checking for pkg-config... no
checking for LIBCURL... configure: error: in `/root/transmission-2.93':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables LIBCURL_CFLAGS
and LIBCURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
See `config.log' for more details
安裝缺少的pkg-config(如果安裝失敗請在install后加上-y鳖敷,第二行):
apt-get install -f
apt-get install pkg-config
再次執(zhí)行./configure還有如下的錯誤:
checking for LIBCURL... configure: error: Package requirements (libcurl >= 7.15.4) were not met:
No package 'libcurl' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBCURL_CFLAGS
and LIBCURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
少啥安裝啥
apt-get install libcurl4-openssl-dev
繼續(xù)編譯
checking for LIBEVENT... configure: error: Package requirements (libevent >= 2.0.10) were not met:
No package 'libevent' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBEVENT_CFLAGS
and LIBEVENT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
安裝libevent
apt-get install libevent-dev
也許缺少intltool,安裝
apt-get install intltool
然后./configure編譯成功了
繼續(xù)執(zhí)行
make
make install
make成功
make install成功
然后是這個(雖然我并不知道這個具體是什么程拭,但是必須做這個)
但是從PPA源安裝舊版本并升級到2.93的用戶,原先使用的是init.d進行管理的,并不是systemctl定踱。而且原來的管理用戶是debian-transmission,而現(xiàn)在變成了transmission
——https://blog.rhilip.info/archives/787/
新建一個文件
vi /etc/systemd/system/transmission.service
寫入以下內(nèi)容
[Unit]
Description=Transmission BitTorrent Daemon
After=network.target
[Service]
User=root
LimitNOFILE=100000
ExecStart=/usr/local/bin/transmission-daemon -f --log-error -g /usr/local/share/transmission
[Install]
WantedBy=multi-user.target
然后應該執(zhí)行
systemctl daemon-reload
但是我這提示木有systemctl
安裝systemctl
apt-get install systemd-sysv
然后重啟(這里操作看自己,我這必須重啟命令才生效)
reboot
然后你可以執(zhí)行下面這個命令來檢查是不是正常了
systemctl status ssh.service
正常結(jié)果
現(xiàn)在執(zhí)行下面的命令生成初始設定
systemctl daemon-reload
systemctl start transmission.service
systemctl stop transmission.service
然后修改配置文件(你可以直接copy原來的配置文件過來)
vi /usr/local/share/transmission/settings.json
詳細配置略過恃鞋,可參考官方的崖媚,也可以看這里的
https://wp.madjack.info/linux/debian-8-ubuntu-16-04-%E6%BA%90%E7%A2%BC%E7%B7%A8%E8%AD%AF-transmission-2-93.html
現(xiàn)在還需要將原來的數(shù)據(jù)記錄備份過來
請找到你原來安裝的數(shù)據(jù)存放的地方
比如我是這里
/var/lib/transmission-daemon/
這個目錄下有兩個文件夾,一個是downloads一個是info恤浪,需要將info中的resume文件夾和torrents文件夾覆蓋/usr/local/share/transmission/下對應文件夾
這里不需要更改downloads目錄畅哑,因為resume中的記錄的文件保存路徑依然是這個,所以不需要移動文件水由。
當然你可以在對/etc/systemd/system/transmission.service寫入配置時更改ExecStart這一行-g后的目錄參數(shù)為原有的目錄荠呐,比如我這里是/var/lib/transmission-daemon/info/這樣不用移動resume和torrents文件夾。采用前面的設置砂客,將無法使用一鍵web美化泥张,可以嘗試這里說的更改目錄為原目錄,或者手動替換~
現(xiàn)在可以正式啟動了
systemctl start transmission.service
systemctl enable transmission.service
停止命令是
systemctl stop transmission.service
web界面一覽
Windows GUI(新版的好像不那么卡了)