-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes
44 lines (36 loc) · 1.64 KB
/
notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[lighta@localhost jbittorrentapi-v1.0] $ tree example
example
├── client1
│ ├── funvideo05.wmv
│ ├── funvideo.torrent
│ └── Thumbs.db
├── client2
│ └── funvideo.torrent
├── client3
│ └── funvideo.torrent
├── client4
└── tracker
├── files
│ ├── peers.xml
│ ├── torrentsFile
│ │ └── BE86A0C7D0451A235AFD517C74DC3EBFD86C55A4.torrent
│ └── torrents.xml
└── Mapper.xml
7 directories, 9 files
export JAVA_HOME=/opt/jdk1.8.0_51/
export PATH=$PATH:$JAVA_HOME/bin
#https://help.ubuntu.com/community/UbuntuTime
watch -n 0.5 'date +"%H:%M:%S %s"'
#git clone ssh://lighta@Lighta_fedo:/home/lighta/Documents/ETS/LOG735/
scp lighta@Lighta_fedo:/home/lighta/Documents/ETS/LOG735/jbittorrentapi-v1.0/torrent/* ./torrent/
scp lighta@Lighta_fedo:/home/lighta/Documents/ETS/LOG735/jbittorrentapi-v1.0/*.jar ./
mkdir torrent
#server
#open firewall 22,8081
java trackerBT.Tracker example_tracker_config.xml
java jBittorrentAPI.ExampleCreateTorrent torrent/The_Hobbit_5Armies.torrent http://Lighta_fedo:8081/announce 256 example/client1/The.Hobbit.The.Battle.of.the.Five.Armies.2014.FRENCH.BRRip.XviD-Slay3R.avi .. "Lighta" "LOG735 test dist vid"
java jBittorrentAPI.ExamplePublish torrent/The_Hobbit_5Armies.torrent http://Lighta_fedo:8081/upload none none "LOG735 dist vid"
java jBittorrentAPI.ExampleShareFiles torrent/The_Hobbit_5Armies.torrent example/client1/
#client
java jBittorrentAPI.ExampleDownloadFiles torrent/jdk_1.8.torrent
java jBittorrentAPI.ExampleDownloadFiles torrent/The_Hobbit_5Armies.torrent