°Ô½Ã¹° 1,369°Ç
   
BitTorrent·Î ISO ÆÄÀÏ ´Ù¿î·Îµå - command line
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2014-11-03 (¿ù) 13:26 Á¶È¸ : 5277
±ÛÁÖ¼Ò :
                                
ÃÖ±Ù¿¡´Â ISO ÆÄÀÏÀ» ISO ¿øº»ÆÄÀÏ°ú ÇÔ²² Åä·»Åä·Î ¹èÆ÷Çϴµ¥ ¸®´ª½º¿¡¼­ Ä¿¸Çµå¶óÀÎÀ» ÀÌ¿ëÇؼ­ ´Ù¿î·Îµå ¹Þ´Â ¹æ¹ýÀ» ¼Ò°³ÇÕ´Ï´Ù.
º»¹®¿¡¼­´Â ÃÖ±Ù¹èÆ÷µÈ Ubuntu 14.10 À̹ÌÁö¸¦ ¸®´ª½º»ó CMD·Î BitTorrent¸¦ ÀÌ¿ëÇؼ­ ´Ù¿î·Îµå ¹Þ´Â ¹æ¹ýÀ̸ç CLI ºñÆ®Åä·»Åä Ŭ¶óÀ̾ðÆ® transmission-cli ¸¦ ÀÌ¿ëÇÏ¿´½À´Ï´Ù.


Install
Ubuntu
# apt-get install transmission-cli

Fedora & RHEL(CentOS)
# yum install transmission-cli

# wget http://releases.ubuntu.com/14.10/ubuntu-14.10-desktop-amd64.iso.torrent
# transmission-cli ubuntu-14.10-desktop-amd64.iso.torrent
[14:45:01.418] Transmission 2.77 (14031) started
[14:45:01.418] RPC Server: Adding address to whitelist: 127.0.0.1
[14:45:01.419] UDP: Failed to set receive buffer: requested 4194304, got 425984
[14:45:01.419] UDP: Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf
[14:45:01.419] UDP: Failed to set send buffer: requested 1048576, got 425984
[14:45:01.419] UDP: Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf
[14:45:01.419] DHT: Generating new id
[14:45:01.519] Saved "/root/.config/transmission/torrents/ubuntu-14.10-desktop-amd64.iso.b415c913643e5ff4.torrent"
[14:45:01.752] Port Forwarding (NAT-PMP): initnatpmp succeeded (0)
[14:45:01.752] Port Forwarding (NAT-PMP): sendpublicaddressrequest succeeded (2)
Progress: 0.0%, dl from 0 of 0 peers (0 kB/s), ul to 0 (0 kB/s) [None]    [14:45:09.760] Port Forwarding: State changed from "Not forwarded" to "Starting"
Progress: 0.0%, dl from 0 of 1 peers (0 kB/s)
[14:45:11.828] ubuntu-14.10-desktop-amd64.iso: Could not connect to tracker
[14:45:11.828] ubuntu-14.10-desktop-amd64.iso: Retrying announce in 313 seconds.
Progress: 0.4%, dl from 8 of 46 peers (2.54 MB/s), ul to 0 (0 kB/s) [0.00]      
[14:45:28.001] ubuntu-14.10-desktop-amd64.iso: Starting IPv4 DHT announce (poor, 18 nodes)
Progress: 3.5%, dl from 17 of 62 peers (7.15 MB/s), ul to 0 (0 kB/s) [0.00]     
[14:45:32.341] ubuntu-14.10-desktop-amd64.iso: Scrape error: Could not connect to tracker
[14:45:32.341] ubuntu-14.10-desktop-amd64.iso: Retrying scrape in 957 seconds.
Progress: 5.9%, dl from 26 of 60 peers (12.08 MB/s), ul to 0 (0 kB/s) [0.00]
        --> ´Ù¿î·ÎµåÁß

´Ù¿î·Îµå°¡ ¿Ï·áµÇ¸é ¿Ï·áµÇ¾ú´Ù´Â ¸Þ¼¼Áö°¡ ³ª¿É´Ï´Ù.
Progress: 99.9%, dl from 46 of 60 peers (397 kB/s), ul to 2 (0 kB/s) [0.00]     
[14:46:52.201] ubuntu-14.10-desktop-amd64.iso: State changed from "Incomplete" to "Complete"

´Ù¿î·Îµå°¡ ¿Ï·á µÇ¸é ¾÷·Î´õ·Î Á¦°øÇÒ Àǻ簡 ¾ø´Ù¸é Ctrl + C¸¦ ´­·¯¼­ ³ª¿É´Ï´Ù.
¶ÇÇÑ ÀÚµ¿À¸·Î ´Ù¿î·Îµå ¿Ï·áÈÄ ²ö¾î¹ö¸±·Á¸é -f ¿É¼ÇÀ» ÀÌ¿ëÇؼ­ ½ºÅ©¸³Æ®¸¦ ¿¬°áÇÏ¸é µË´Ï´Ù.

example) 
torrent-down.sh
#!/bin/bash
sleep 5
killall transmission-cli

transmission-cli -f torrent-down.sh ubuntu-14.10-desktop-amd64.iso.torrent
´Ù¿î·ÎµåµÈ ÆÄÀÏ¿¡ À§Ä¡´Â ~/Downloads/
Àú´Â root °èÁ¤À¸·Î ·Î±×ÀÎÇؼ­ ÀÛ¾÷ÇÏ¿´±â¿¡ Á¦ ÆÄÀÏ´Ù¿î·Îµå À§Ä¡´Â /root/Downloads/ubuntu-14.10-desktop-amd64.iso

¼¼ºÎÀûÀÎ ¿É¼Ç »ç¿ëÀº ¾Æ·¡ºÎºÐÀ» Âü°íÇϼ¼¿ä.
# transmission-cli  --help
transmission-cli 2.77 (14031)
A fast and easy BitTorrent client

Usage: transmission-cli [options] <file|url|magnet>
Options:
 -h  --help                          Display this help page and exit
 -b  --blocklist                     Enable peer blocklists
 -B  --no-blocklist                  Disable peer blocklists
 -d  --downlimit            <speed>  Set max download speed in kB/s
 -D  --no-downlimit                  Don't limit the download speed
 -er --encryption-required           Encrypt all peer connections
 -ep --encryption-preferred          Prefer encrypted peer connections
 -et --encryption-tolerated          Prefer unencrypted peer connections
 -f  --finish               <script> Run a script when the torrent finishes   :: ´Ù¿î·Îµå ¿Ï·áÀÌÈÄ ½ºÅ©¸³Æ® ½ÇÇà
 -g  --config-dir           <path>   Where to find configuration files
 -m  --portmap                       Enable portmapping via NAT-PMP or UPnP
 -M  --no-portmap                    Disable portmapping
 -p  --port                 <port>   Port for incoming peers (Default: 51413)
 -t  --tos                  <tos>    Peer socket TOS (0 to 255,
                                     default=default)
 -u  --uplimit              <speed>  Set max upload speed in kB/s  :: ¾÷·Îµå Á¦ÇÑ
 -U  --no-uplimit                    Don't limit the upload speed
 -v  --verify                        Verify the specified torrent
 -V  --version                       Show version number and exit
 -w  --download-dir         <path>   Where to save downloaded data


¡Ú Çʵ¶))
Åä·»Åä ½Ãµå»ó¿¡¼­´Â ¿ö³« ¸¹Àº À¯ÇØÆÄÀϵéÀÌ µ¹¾Æ´Ù´Ï±â¿¡ Åä·»Å並 ÀÌ¿ëÇؼ­ ´Ù¿î·Îµå ÀÌÀü¿¡´Â ¹Ýµå½Ã ÆÄÀÏ¿¡ ¹«°á¼º°Ë»ç¸¦ üũÇغ¸½Ã±â ¹Ù¸³´Ï´Ù. ¹æ¹ýÀº ¾Æ·¡¿Í °°½À´Ï´Ù.


# wget http://releases.ubuntu.com/14.10/SHA256SUMS
# wget http://releases.ubuntu.com/14.10/SHA256SUMS.gpg
# yum install -y gpg

# gpg --verify SHA256SUMS.gpg SHA256SUMS
gpg: Signature made Thu Oct 23 22:36:00 2014 KST using DSA key ID FBB75451
gpg: Can't check signature: public key not found

À§¿Í°°Àº ¿¡·¯°¡ ¹ß»ýÇÏ´Â °æ¿ì´Â ¼­¸íÀ» »ç¿ëÇÒ¶§ °ø°³Å°¸¦ °¡Á®¿ÀÁö ¾Ê¾Æ¼­ ¹ß»ýµÇ´Â ¿¡·¯ÀÔ´Ï´Ù. GPG ¸í·É¾î ¸Þ¼¼Áö¿¡ Ãâ·ÂµÇ´Â Å° ID¸¦ ÅëÇØ °ø½Ä ¿ìºÐÅõ Å°¼­¹ö¿¡¼­ °ø°³Å°¸¦ °¡Á®¿ÂÈÄ ´Ù½Ã ½ÇÇàÇÕ´Ï´Ù.

# gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys FBB75451
gpg: requesting key FBB75451 from hkp server keyserver.ubuntu.com
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key FBB75451: public key "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1

# gpg --verify SHA256SUMS.gpg SHA256SUMS
»¡°£»ö¹Ú½ºÃ³·³ Good signature ¸Þ¼¼Áö È®ÀÎ


SHA256SUM ÆÄÀÏÀÇ ¹«°á¼ºÀ» °ËÁõÇÑ ÀÌÈÄ¿¡´Â SHA256SUM ÆÄÀÏ¿¡ ´ëÀÀÇϴ üũ¼¶°ª°ú ISO ÆÄÀÏ¿¡ SHA256 üũ¼¶À» ºñ±³ÇÕ´Ï´Ù. ¾Æ·¡¿Í °°Àº ¸í·É¾î·Î µÎ üũ¼¶°ªÀÇ ÀÏÄ¡ÇÔÀ» È®ÀÎÇϸé ÇØ´ç À̹ÌÁö´Â ¹«°á¼ºÀÌ È®ÀÎµÈ ISO À̹ÌÁö ÀÔ´Ï´Ù.

# sha256sum -c <(grep ubuntu-14.10-desktop-amd64.iso SHA256SUMS)
ubuntu-14.10-desktop-amd64.iso: OK

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.