ÁÖ¸»¿¡ ¸¶Å¬ÀÌ º®µ¹ÀÌ µÇ´Â »ç°ÇÀÌ ¹ß´ÜµÇ¾ú½À´Ï´Ù.
ÀÌÀ¯´Â minidlna ¸¦ ¼³Ä¡ÇÏ´Ù°¡ ¶óÀ̺귯¸®¸¦ »õ·Î ¹Þ¾Æ Ãß°¡ÇÏ´ø µµÁß¿¡
°©Àڱ⠽©µµ ¾È¸ÔÈ÷°í Çϳª¾¿ ÇÁ·Î¼¼½º°¡ Á×´õ´Ï °á±¹ SSH ¸¶Àú ²÷°í³ª´Ï Âü ´äÀÌ ¾ø´õ±º¿ä.
´çÀå »ý°¢³ª´Â°Ô ±× ¾È¿¡ ±×µ¿¾Ï ¹¬ÇôµÐ »çÁøÀÌ¸ç °¡Á·µé µ¿¿µ»ó ¾î¶»°Ô ÇϳªºÎÅÍ »ý°¢ÀÌ
µé´õ±º¿ä. ±×·¡¼ ±ÞÈ÷ º®µ¹ º¹±¸ ÈÄ±â ¹× º¹±¸Èı⠺¸°í °Ü¿ì 3½Ã°£¸¸¿¡ º¹±¸¸¦ Çß½À´Ï´Ù.
Çϵ带 ºÐ¸® ¾ÈÇصµ ³ëÆ®ºÏ°ú °øÀ¯±â¸¸ ¿¬°áÇؼ 3.X Æß¿þ¾î À̹ÌÁö ¿Ã¸®´Â ¹æ¹ýÀ¸·Î
¿Ã¸®´Ï ´Ù½Ã ¸¶Å¬ÀÇ ÆĶõºÒÀÌ ¶ß¸ç °Ü¿ì ¼º°øÇ߳׿ä.
¿¸µç °¢¼³ÇÏ°í ±× ÈÄ Áß¿äÇÑ µð·ºÅ丮³ª ÆÄÀÏÀ» º°µµÀÇ Àå¼Ò¿¡ Çѹø¾¿ ¹é¾÷ÇØ¾ß°Ú´Ü »ý°¢ÀÌ
µé°í ±×·¡¼ Àû´çÈ÷ ¿ÜºÎ¿¡ °øÂ¥·Î ¿Ã¸± ¼ö Àִ Ŭ¶ó¿ìµå¸¦ ã´Ù°¡ ´Ùµé ¾Æ½Ã´Â Baidu Ŭ¶ó¿ìµå¸¦
¹ß°ßÇÏ°í´Â nas¿Í ¿¬°á ¹æ¹ýÀ» ãÀ¸´Ï
¾Æ·¡ µÕÀÌ-ÆÄÆÄ´ÔÀÌ ¿Ã·ÁÁֽŠ¼¹ö¿ë ¹ÙÀ̵ΠŬ¶ó¿ìµå¸¦ ¼³Ä¡ ÇÏ°Ô µÇ¾ú½À´Ï´Ù.
°ü·Ã ¸µÅ© : http://www.ppomppu.co.kr/zboard/view.php?id=nas&no=9809&keyword=bypy
±×·±µ¥ ¿©±â¼ ¾Ë·ÁÁִµ¥·Î µû¶óÇϴµ¥
easy install À» ÇÏ·Á°í Çϸé ÀÚ²Ù ¿¡·¯°¡ ³ª³×¿ä.
No module Named requests
±×·¡¼ ÇØ°á ¹æ¹ýÀ» ã¾Æº¸´Ï ¾Æ·¡ ³»¿ëÀÌ ÀÖ¾î¼ Àû¿ëÇÏ´Ï
ÆÄÀ̽㠰ü·ÃµÈ µ¿ÀÛÀÌ Á¤»óÀ¸·Î µ¿ÀÛ µË´Ï´Ù.
OSX/Linux Windows From Source (Universal)
Use $ sudo pip install requests if you have pip installed
On OSX you can also use sudo easy_install -U requests if you have easy_install installed.
Use > Path\easy_install.exe requests if you have a windows machine, where easy_install can be found in your Python*\scripts folder, if it was installed. (Note Path\easy_install.exe is an example, mine is C:\Python32\scripts\easy_install.exe)
If you don't have easy install and are running on a windows machine, you can get it here:http://www.lfd.uci.edu/~gohlke/pythonlibs/#distribute
If you manually want to add a library to a windows machine, you can download the compressed library, uncompress it, and then place it into the Lib folder of your python path.
For any missing library, the source is usually available at https://pypi.python.org/pypi/. Then:
On mac osx and windows, after downloading the source zip, uncompress it and from the termiminal/cmd run python setup.py install from the uncompressed dir.
|
ÆÄÀ̽㠹öÀü ¾÷±×·¹À̵å¿Í ÇÔ²² Request ¿¡·¯°¡ ³ª±æ·¡ ¾Æ·¡ ºÎºÐÀ» Ãß°¡ÇØ ÁÖ¾ú½À´Ï´Ù.
ÆÄÀ̽㠹öÀü ¾÷±×·¹À̵å
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
sudo easy_install -U requests
ÀÌ ºÎºÐÀ» ³Ö¾îÁÖ°í ÇÏ´Ï ¿¡·¯°¡ ¾È³ª³×¿ä.
±×¸®°í ¼³¸í´ë·Î ¹ÙÀ̵ΠÀÎÁõÀ»
python bypy.py info
¸¦ ³Ö°í Çϼż ÀÎÁõÄڵ带 ¹Þ¾Æ ÀÎÁõÇØ ÁÖ½Ã¸é ³Ñ¾î °©´Ï´Ù.
¿©±â±îÁö µÇ¸é ¸¶Å¬<-->¹ÙÀ̵ΠŬ¶ó¿ìµå ¼¹ö°£ ¿¬°áÀÌ µÇ¾ú´Ù´Â °ÍÀ̱¸¿ä.
ÀÌÈĴ ƯÁ¤ Æú´õ¸¦ gzipÀ¸·Î ¹¾î¼ Àü ¿Ã¸®±â¸¸ ÇÏ´Ï±î ¾Æ·¡Ã³·³ ½ºÅ©¸³Æ® Çϳª ¸¸µé¾î ½ÇÇà½ÃÄÑ ÁÖ½Ã¸é µË´Ï´Ù.
nano backup.sh
#! /bin/bash
sysd= `date +%Y%m%d`
tar cfvz /shares/Public/backup/picbakup_$sysd.tgz /shares/Public/'Shared Pictures'/ #³¯Â¥º° À̹ÌÁö µð·ºÅ丮 ¾ÐÃà ÆÄÀÏ »ý¼º
nohup bypy.py upload /shares/Public/backup/picbakup.tgz /backup/ & # ¹ÙÀ̵ηΠ¾÷·Îµå ½Ç½Ã
|
ctrol-O / Enter / ctrl-X
¸Ó ´ëÃæ ÀÌ·¸°Ô ¸¸µé°í¼ crontab °°Àº°÷¿¡ µî·ÏÇØµÎ¸é µÇ´Âµ¥ À̶§ ±âÁ¸ ÆÄÀÏ »èÁ¦Çϵµ·Ï ½©¿¡ »èÁ¦ Á¤µµ µÎ¾îµµ µÉ°Í °°½À´Ï´Ù.
¿¸µç µÕÀÌ-ÆÄÆÄ ´Ô²²¼ ¾Ë·ÁÁֽŠ¹ÙÀ̵οë Ŭ¶óÀ̾ðÆ®°¡ Á¤¸» À¯¿ëÇÒ°Í °°½À´Ï´Ù.
¿ä»õ ¸¶Å¬¹Ì·¯µî ÃֽŹöÀü¿¡ ¾ÛÀ¸·Î µå·Ó¹Ú½º ¿¬µ¿À» °¡´ÉÇÏ°Ô ÇØÁشٴµ¥
±×³É ÀÏ¹Ý ¸¶Å¬¿¡´Â ±×·± Áö¿øµµ ¾ø°í..¿·¿¡ ½Ã³î·ÎÁö ¾²´Â°Å º¸°í Çí³î·ÎÁö ¼³Ä¡µµ Çغ¼°¡ ÇÏ´Ù°¡
ÇѰǵ¥ Àß µ¿ÀÛÀÌ µÇ³×¿ä.
NAS »ç°í ¹é¾÷ °í¹Î¾ÈÇߴµ¥ ÀÌÂü¿¡ °í¹Îµµ Ç®¾ú½À´Ï´Ù...¹é¾÷ÀÇ Àý½ÇÇÔ..ÂÁ ¤Ì¤Ì
±Ùµ¥ ¾÷·Îµå´Â ¿ë·®ÀÌ Å©¸é ¸î±â°¡¾¿ ©¶ó ³Ö¾î¾ß ÇÒ°Í °°³×¿ä. Á¶±Ý ¾÷·Îµå ¼Óµµ°¡ ´À¸°µí ÇÕ´Ï´Ù.
Âü ¿¹Àü¿¡´Â ¸¶Å¬ 3.x ¿¡¼ 4.x·Î °¡¸é ¾ÈµÇ´Â°Ô ¸¹¾Ò´Âµ¥
ÀÌÂü¿¡ Æß¿þ¾î 4.x·Î °¡º¸´Ï transmission À̳ª minidlna ³ª ¼³Ä¡ÇÒ ¼ö ÀÖ´Â ¹æ¹ýµéÀÌ ¸¹ÀÌ »ý°å³×¿ä.
±×·¡¼ Æß¿þ¾î ¹öÀü ¾÷µµ Á¤¸» »ç°í³ª¼ ÷Çߴµ¥ ¼Óµµ ÈÄ·ÃÇÕ´Ï´Ù.
Ȥ¿©³ª Á¦°¡ ÇÑ ¹æ¹ý¿Ü¿¡ ¾ÈµÇ½Ã´Â ºÐµéÀº ¾Æ·¡ Âü°íÇØ º¸½Ã¾îµµ ÁÁÀ»°Í °°½À´Ï´Ù.
https://github.com/houtianze/bypy/issues/
|