ãã®ãœãªã¥ãŒã·ã§ã³ã¯ãå人ã®Dropboxã¢ããã°ã倢èŠãŠãã人ã«é©ããŠããŸãããã¡ã€ã«ã¯ãä»ã®å Žæãã«ä¿åããããç¹å®ã®ç©çã¡ãã£ã¢ã«ä¿åãããããªã¥ãŒã ã«ãã£ãŠã®ã¿å¶éããããã®ããªã¥ãŒã ã«å¯ŸããŠæ¯ææ¯æãå¿ èŠã¯ãããŸããïŒã€ã³ã¿ãŒãããã®æé¡ãµãã¹ã¯ãªãã·ã§ã³æéãç¡èŠããé»æ°ä»£ïŒã
ãã®åé¡ã®ã»ãšãã©ã®è§£æ±ºçã¯ãã€ã³ã¿ãŒãããäžã§å€ãã®ç©Žãæãå¿ èŠããããLinuxã·ã¹ãã ã®ååãªç¥èã«äŸåããŠããŸãã ãã®æçš¿ã§ã¯ãç§èªèº«ãã€ã³ã¿ãŒãããã§çºèŠããããšã®ãªãããã·ã¢èªã§æãå®å šã§é©åãªHOW-TOãæäŸããããšããŸãã éåžžã«å€ãã®ããšã¯ãããªãèªèº«ã®å±éºãšãªã¹ã¯ã§è©Šè¡é¯èª€ã«ãã£ãŠè¡ãããªããã°ãªããŸããã§ããã ãã®ãœãªã¥ãŒã·ã§ã³ã®å®è£ ã«ã¯ãLinuxã®åºæ¬çãªç¥èã¯å¿ èŠãããŸããããã¹ãŠã®æ¹æ³ããæãã¢ã¯ã»ã¹ããããæ¹æ³ã§æ®µéçã«èª¬æããŠãããŸãã
ããªããããããæ¥ããã®ã«èå³ããããªããç«ãžããããã
ãŸã第äžã«ãMyBook Liveã§ã®ãã¹ãŠã®æäœã¯ãèªåã®è²¬ä»»ã§ã®ã¿è¡ã£ãŠãã ããã çè«çã«ã¯ãã¢ã¯ã·ã§ã³ã®é åºãééã£ãŠãããšãåäœããªããªãå¯èœæ§ããããŸããã»ãšãã©ã®å Žåã ããã¯ã¹ã埩掻ãã ãŠããŒã¿ãä¿å ã§ããŸãã ããšã«ããå¥ã®ã¡ãã£ã¢ã«ã³ã³ãã³ããããã¯ã¢ããããŠã¿ãŠãã ããã ãŸãã¯ããã®ãããªæ©äŒãããå Žåã¯ã空çœã®ã¡ãã£ã¢ã§äœæ¥ããããšããå§ãããŸãã
ææ°ã®WD MyBook Liveã©ã€ã³ã¯ã800 MHzããã»ããµã256 MBã®RAMãããã³å®è³ªçã«æ¬æ Œçãªãã¡ãŒã ãŠã§ã¢ãšããŠã®Debian Linuxã®ããŒãžã§ã³ã§ãããWDããã®ãã¡ãŒã ãŠã§ã¢ãã¡ã€ã«ã®æ··åãPPCã¢ãŒããã¯ãã£ã§ãLennyã«ãã£ãŠãµããŒããããªããªããŸãããããã«ãããããããããã¯å¿ èŠã«ãªããŸãããããã§ã¯apt-getãwgetãããã³dpkgãæãäžè¬çã§ããã€ãŸãããªããžããªã§ã®äœæ¥ã¯æ倧éã«å¯èœã§ãã
ownCloudã«é¢ããhabrã®èšäºã¯æ¢ã«ãããŸãã ããã®ãããäžè¬çãªå Žåã®ã€ã³ã¹ããŒã«æ¹æ³ã«ã€ããŠã¯èª¬æããŸãããMBLã®è©³çŽ°ã«çŽæ¥é²ã¿ãŸãã ãŸããownCloudã¯DropboxãGoogle Driveãªã©ãšå¯èœãªéãå¯æ¥ã«é£æºãããµãŒããŒã¢ããªã±ãŒã·ã§ã³ã§ããããŒããŠã§ã¢ã§ãã¹ããããŠããã ãã§ãå®å šã«ç¡æã§ãããMBLã¯ãã®ãããªãœãªã¥ãŒã·ã§ã³ããã¹ãããããã®ææªã®éžæè¢ã§ã¯ãããŸããã
ãŸããSSHãä»ããŠMBLã«ã¢ã¯ã»ã¹ã§ããããã«ããå¿ èŠããããŸãã ããã¯ãã¢ãã¬ã¹ã«ç§»åããããšã«ãã£ãŠéåžžã«ç°¡åã«è¡ãããŸã
mybooklive/UI/ssh
mybooklive/UI/ssh
ãšSSHãããã³ã«ã®
mybooklive/UI/ssh
ïŒ
ã芧ã®ãšãããã¢ã¯ã»ã¹ã®ããã©ã«ãã®ãã¹ã¯ãŒãã¯welc0meã§ãã
ããšã¯ãã¿ãŒããã«ããSSHçµç±ã§ãã°ã€ã³ããã ãã§ãïŒWindowsãã·ã³ã§PuTTYã䜿çšã§ããŸãïŒã
ssh root@192.168.XX
ãŸãã passwdã³ãã³ãã䜿çšããŠãã¹ã¯ãŒãããã匷åãªãã¹ã¯ãŒãã«å€æŽããããšããå§ãããŸãïŒåŸã§ã€ã³ã¿ãŒãããçµç±ã§ã¢ã¯ã»ã¹ãéãå Žåã¯ããã«ããããããšïŒããã®åŸãæ°ãããã¹ã¯ãŒãã2åå ¥åããå¿ èŠããããŸãã
éèŠïŒ
ãã£ã¹ããªãã¥ãŒã·ã§ã³ãã¡ãžã£ãŒããŒãžã§ã³ã«ã¢ããã°ã¬ãŒãããããšã¯ããŸãããããã«ã¢ããã°ã¬ãŒããã»ãŒãã¢ããã°ã¬ãŒãããŸãã¯ãã®ä»ã®ã¢ããã°ã¬ãŒãã³ãã³ãã®ååšãå¿ããŠããŸããšãå¿
ç¶çã«ããã€ã¹ãããŠã³ããŒãã§ããªããªããŸãã ããã€ã¹ãæåã§å解ããã¬ã³ã¬ã解ããŠå埩ããããšã§ã奜å¥å¿ãæããªããã°ãªããŸããã§ããã èŽåœçãªããšã¯ãããŸããããéåžžã«äžå¿«ã§æéãããããŸãã
ãŸããã€ã³ã¹ããŒã«ãŸãã¯ã¢ã³ã€ã³ã¹ããŒã«ããããã±ãŒãžã泚ææ·±ãç£èŠããããšããå§ãããŸãã ãã®ãããããããå€ãã®äžèŠãªã¬ããŒãžãåé€ã§ããŸããææªã®å ŽåãäžèŠãªããã±ãŒãžãäŸåé¢ä¿ãšãšãã«åé€ãããšãéèŠãªäœããã¯ã©ãã·ã¥ããŸãã ãããã£ãŠãããšãã°ãsshãå®è¡ããå Žåãããã¯ã¹ãå ã®ç¶æ ã«æ»ãå¯äžã®ãªãã·ã§ã³ã¯ã解æãšã¬ã³ã¬é ãã®ã¯ãªãŒã³ã¢ããã§ãã
æåŸã«ããŸã£ããã§ããªãã®ã¯udevã«è§Šããããšã§ããæŽæ°ããã®ã¯å±éºã§ãããã®å ŽåãMy Book Liveã®ä»£ããã«åŸ©å ã«é©ããªãã¬ã³ã¬ãååŸããå±éºããããŸãã 次ã®ã³ãã³ãã§ã®æŽæ°ãçŠæ¢ããããã«ã眪ããé¢ããããšãæåã§ãã
ããã«ããããã®ããã±ãŒãžãããªãŒãºããæŽæ°ãããå¯èœæ§ããªããªããŸãã
ãŸããã€ã³ã¹ããŒã«ãŸãã¯ã¢ã³ã€ã³ã¹ããŒã«ããããã±ãŒãžã泚ææ·±ãç£èŠããããšããå§ãããŸãã ãã®ãããããããå€ãã®äžèŠãªã¬ããŒãžãåé€ã§ããŸããææªã®å ŽåãäžèŠãªããã±ãŒãžãäŸåé¢ä¿ãšãšãã«åé€ãããšãéèŠãªäœããã¯ã©ãã·ã¥ããŸãã ãããã£ãŠãããšãã°ãsshãå®è¡ããå Žåãããã¯ã¹ãå ã®ç¶æ ã«æ»ãå¯äžã®ãªãã·ã§ã³ã¯ã解æãšã¬ã³ã¬é ãã®ã¯ãªãŒã³ã¢ããã§ãã
æåŸã«ããŸã£ããã§ããªãã®ã¯udevã«è§Šããããšã§ããæŽæ°ããã®ã¯å±éºã§ãããã®å ŽåãMy Book Liveã®ä»£ããã«åŸ©å ã«é©ããªãã¬ã³ã¬ãååŸããå±éºããããŸãã 次ã®ã³ãã³ãã§ã®æŽæ°ãçŠæ¢ããããã«ã眪ããé¢ããããšãæåã§ãã
aptitude hold udev
ããã«ããããã®ããã±ãŒãžãããªãŒãºããæŽæ°ãããå¯èœæ§ããªããªããŸãã
次ã«ããµãŒãããŒãã£ãœãããŠã§ã¢ãã€ã³ã¹ããŒã«ããããã®ãã©ãããã©ãŒã ãæºåããå¿ èŠããããŸãã ãããŠãããã§éèŠãªããšã¯wd-nasããã±ãŒãžãåé€ããããšã§ããããã®ããapt-getã¯ããããäºçŽ°ãªäºæã«ã€ããŠå°æ¥çã«èªãããšã¯ãããŸããã å¥åŠãªããšã«ããã®æ å ±ã¯å ¬åŒãœãŒã¹ãé€ããŠã©ãã§ãå©çšã§ããŸããïŒ
rm -f /var/lib/dpkg/info/wd-nas.*
ããã«ããããã¡ãŒã ãŠã§ã¢äŸåããã±ãŒãžãåé€ãããŸãã
次ã®ã¹ãããã§ã¯ãå©çšå¯èœãªãªããžããªã®ãªã¹ãã«2ã€ã®ãªã³ã¯ãè¿œå ããå¿ èŠããããŸãã ããã¯ã次ã®ã³ãã³ãã䜿çšããŠnanoãšãã£ã¿ãŒã§æã䟿å©ã«å®è¡ãããŸãã
nano /etc/apt/sources.list
ãããŠãããã«è¿œå ããå¿ èŠããããã®ããããŸãïŒ
deb http://ftp.us.debian.org/debian/ squeeze main deb-src http://ftp.us.debian.org/debian/ squeeze main
ãããã誰ãã質åãããã§ããããWDMBLèªäœã®ããŒãžã§ã³ãlennyã§ããå Žåãsqueezeãªããžããªãè¿œå ããã®ã¯ãªãã§ããïŒ ç§ã®çãã¯ãlennyã2012幎2æ以éãµããŒããããªããªã£ãããã§ããããã®ããã«å¿ èŠãªããã±ãŒãžã®ã»ãšãã©ã¯å€ãã解決ã§ããªãäŸåé¢ä¿ã«ã€ãªããå¯èœæ§ããããŸãïŒæåã®è©Šè¡ã倱æããåŸãå·¥å Žèšå®ã«ããŒã«ããã¯ããå¿ èŠããããŸããïŒã ã€ã³ã¿ãŒãããã«ã¯ããã¹ããã©ã³ããªã©ãè¿œå ã§ããä»ã®ãªããžããªã«é¢ããå€ãã®ãã³ãããããŸãããããŸãæ°ã«ããªãã§ãã ãããäœãããŠããã®ãããããªããŠãããã®ã¯ã€ãã¯ããã¯ã¹ã掻æ°ã®ãªãã¬ã³ã¬ã«å€ããããšãã§ããŸãã
æ··ä¹±ãé¿ãããããsources.listã®å
容ãåŒçšããŸãã
å¿ èŠãªè¡ãè¿œå ãããªããžããªã®ãªã¹ããä¿åãããã次ã®ã³ãã³ãã§æŽæ°ãè©Šè¡ããå¿ èŠããããŸãã
apt-get update
ãã ããownCloudã¯PHPã§èšè¿°ãããŠããããšãå¿ããªãã§ãã ããããã®ãããPHP5ã®çŸåšã®ããŒãžã§ã³ãšããã€ãã®å¿ èŠãªã¢ãžã¥ãŒã«ãå«ãå€æ°ã®å¿ èŠãªããã±ãŒãžãã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã
apt-get install php5 php5-gd php-xml-parser php5-intl zlib1g
ã€ã³ã¹ããŒã©ãŒã¯ãä¿¡é Œã§ããªãããã±ãŒãžãèªãå ŽåããããŸãã ããã¯ãDebianãªããžããªã®çœ²åä»ãããŒããã¯ãé¢ä¿ãªãããã§ãã ãã®åé¡ã«ã¯è§£æ±ºçããããŸããããYããæ°åã¯ãªãã¯ããã ãã§èŠåãç¡èŠããããšãã§ããŸãã ãŸããã€ã³ã¹ããŒã«ããã»ã¹äžã«ãããã±ãŒãžã®ããŸããŸãªããŒãžã§ã³ã®ç«¶åãçºçããå¯èœæ§ãããããã®äžéšã¯ã·ã¹ãã ã«ããªã€ã³ã¹ããŒã«ãããŠããŸãã ããã©ã«ãã§ã¯ããã§ã«ã€ã³ã¹ããŒã«ãããŠããããã±ãŒãžïŒããã¯DebianïŒãåªå ãããããããã®æ±ºå®ã«åæããããšã¯ååå¯èœã§ãïŒãã ãããããã®ããã±ãŒãžãæ°ããããã±ãŒãžã«çœ®ãæããŠããäœãæªãããšã¯èµ·ãããŸããïŒã
ãã¹ãŠãããŸããã£ãããä»ããownCloudã®ã€ã³ã¹ããŒã«ã«è¡ããŸãããã ããã¯ããªãåçŽãªéšåã§ãã ãã£ã¬ã¯ããª/ www /ã«ç§»åããwgetã䜿çšããŠããã«Webã€ã³ã¹ããŒã©ãŒãããŠã³ããŒãããå¿ èŠããããŸãã ãŸããé©åãªã°ã«ãŒãæžã蟌ã¿èš±å¯ãèšå®ãããŠããããšã確èªããŠãã ããã
cd /var/www/ wget https://download.owncloud.com/download/community/setup-owncloud.php --no-check-certificate chmod 755 setup-owncloud.php chgrp www-data /var/www chmod g+w /var/www
次ã«ããã©ãŠã¶ã«ã¢ã¯ã»ã¹ããŸã
mybooklive/setup-owncloud.php
mybooklive/setup-owncloud.php
ã€ã³ã¹ããŒã«ãç¶è¡ããŸãã ownCloudã¯ä»»æã®ãã£ã¬ã¯ããªã«ã€ã³ã¹ããŒã«ã§ããŸãããä»åŸæ··ä¹±ããªãããã«ãåãååã®/ owncloud /ãã£ã¬ã¯ããªã«é 眮ããããšããå§ãããŸãã
ã€ã³ã¹ããŒã«ã®æåŸã«è¡šç€ºãããå Žå
åæ§ã®åç
æãããªãã§ã æåŸã®æé ã§å¿
èŠãªã¢ãžã¥ãŒã«ããã¹ãŠã€ã³ã¹ããŒã«ããŸããããããããæ©èœããããã«ã¯ãApache WebãµãŒããŒãåèµ·åããã ãã§ãã
/etc/init.d/apache2 restart
çŸæç¹ã§ã¯ãããè¡ããŸããããå°ãåŸã§åèµ·åããããã§ãã
ã€ã³ã¹ããŒã«ãã£ã¬ã¯ããªã決å®ããããhttpããã³SSL httpsã®å€éšã¢ã¯ã»ã¹ã§ãã¡ã€ã«ãçµäºããã°ã«ãŒãã®æš©éã/ www /ã«æ»ãã ãã§ãã ãããè¡ãã«ã¯ã次ã®è¡ãç»é²ããå¿ èŠããããŸãã
<Directory /var/www/owncloud/> AllowOverride All Options +FollowSymLinks </Directory> <Directory /var/www/owncloud/data> Order deny,allow Deny from all </Directory>
次ã®ãã¡ã€ã«ã®é¡äŒŒã¢ãžã¥ãŒã«é
...
nano /etc/apache2/sites-enabled/000-wdnas
nano /etc/apache2/sites-enabled/000-wdnas-ssl
ããã§ãApacheãåèµ·åããŠã / www /ã®ã¢ã¯ã»ã¹æš©ãè¿ãããšãã§ããŸãã
/etc/init.d/apache2 restart chmod gw /var/www
æè¡çã«ã¯ãæ°ããã€ã³ã¹ããŒã«ãããowncloudã®ããŒã¿ã¯ããŒããã©ã€ãã«ãããŸãããè«ççã«ã¯2GBã®å¶éãããMBLã·ã¹ãã ããŒãã£ã·ã§ã³ã«å±ããŸãã 䜿çšå¯èœãªããªã¥ãŒã å šäœãowncloudã§äœ¿çšã§ããããã«ããããã«ïŒæ£çŽãªãšããã誰ãããªããããå¿ èŠã«ãªãã®ãããã¹ãŠã®3TBããŒã¿ãè©°ãŸãã®ãäœå¹Žã«ãªãã®ãããããªãïŒãã·ã¹ãã ããŒãã£ã·ã§ã³ã«éå®ããããã¡ã€ã³ã®DataVolumeã»ã¯ã·ã§ã³ãžã®ã·ã³ããªãã¯ãªã³ã¯ãäœæããŸãã以åã¯æäœã®æéã«Apacheãåæ¢ããŠããŸããã
/etc/init.d/apache2 stop mv /var/www/owncloud/data /DataVolume/owncloud_data chgrp www-data /DataVolume/owncloud_data chmod 770 /DataVolume/owncloud_data ln -s /DataVolume/owncloud_data /var/www/owncloud/data
ã»ãã¥ãªãã£äžã®çç±ããããããªãã¯ãã©ã«ããŒã«ãªã³ã¯ãããããããªãããšã匷ããå§ãããŸãã
å®éãApacheãåèµ·åããã ãã§ãäž»ãªç®æšãéæãããŸãã
/etc/init.d/apache2 start
ä»ã§
mybooklive/owncloud
mybooklive/owncloud
ç¬èªã®ã¯ã©ãŠãã䜿çšããŠãWinãMacãLinuxãAndroidãããã«iOSãããã¢ã¯ã»ã¹ã§ããèšå€§ãªæ°ã®ããã¥ã¡ã³ããå軞ã®ãã€ãã£ãã¯ã©ã€ã¢ã³ãã䜿çšããŠä¿æããåæã§ããŸããäœæã
åå©ã®ããã§ãã
ããã...
å®éã«ã¯ãããã¯åå©ã«ã¯ã»ã©é ãã§ãããéäžã§ãããããŸããã
mybooklive/owncloud
mybooklive/owncloud
ã¯ããŒã«ã«ã§ãããã¯ã©ãŠãã¯ããŒã ãããã¯ãŒã¯å ã§ã®ã¿æ©èœããããããã®ã¡ãªããã¯ã»ãšãã©ãããŸããã ããããããããå ŽæããownCloudã䜿çšããã«ã¯ã©ãããã°ããã§ããããïŒ åœç¶ãéçIPã®å¹žéãªææè ã¯ãã¢ãã¬ã¹ã®ãmybookliveããããã€ã¹ã®IPã¢ãã¬ã¹ã«çœ®ãæããã ãã§ã以åã«å¿ èŠãªããŒããã«ãŒã¿ãŒçµç±ã§è»¢éããŠããã®ã§ãæ£ãããšèšãã§ãããã ãããã誰ãããããªã«èŽ æ²¢ãªããã§ã¯ãªãã倧å€æ°ã®ãŠãŒã¶ãŒã¯ãåžžã«å€åããæãäžè¬çãªåçIPããŸã æã£ãŠãããããããã€ã¹ãæ°ããã¢ãã¬ã¹ãæã€ãã³ã«ãªããŸãã
å¥åŠãªããšã«ããã®ã¿ã¹ã¯ã«ã¯ããªãåçŽãªãœãªã¥ãŒã·ã§ã³ããããŸãã ããããäžäŸ¿ãªwd2goãµãŒãã¹ã®æ¹åã«ç®ãåãããšã¯æããªãã§ãã ããïŒããã䜿çšããæ¹æ³ãããã€ããããŸããïŒãããã©ããããç§ãã¡ã¯åã³é ãåãããDynamic DNSãªã©ã®äŸ¿å©ãªãã®ã䜿çšããŸãã
ãã®ããã«å¿ èŠãªãã®ïŒ
- ãã¡ã€ã³ãç»é²ããŸãã
- DynDNSãæäŸãããµãŒãã¹ã«ç»é²ããŸãã
- MyBookLiveã«DynDNSã¯ã©ã€ã¢ã³ããã€ã³ã¹ããŒã«ãã
æåã®ç¹ã«ã€ããŠã¯ãç¡æã®ç¬¬3ã¬ãã«ãã¡ã€ã³ïŒåŒ·æã§ã°ãŒã°ã«ïŒã§ãããéåžžã«é©ããŠããŸããããã¡ãããç¬èªã®ãã¡ã€ã³ãç»é²ããããšããå§ãããŸãã éåžžã«å®äŸ¡ãªãã¡ã€ã³ãŸãŒã³ããããŸããããšãã°ã .pwãŸãŒã³ïŒãã©ãªè«žå³¶ãäžéšã®ã¬ãžã¹ãã©ã¯Professional Webã®ããã«å®£äŒããŠããŸã ïŒã®ãã¡ã€ã³ã¯ã幎é7ãŠãŒã匱ã®ã³ã¹ãã§ãã ãªãã·ã§ã³ãšããŠ-GoDaddyã®æ ªãèŠãŠãã ããïŒããã5ãã«ã§ã¡ãã£ãšããæ å ±ãæã«å ¥ããããšãã§ããŸãïŒã
DynDNSãµãŒããŒãšããŠãç§ã¯å人çã«freedns.afraid.orgããå®å šã«ç¡æãéžæããŸãããäœæ ãdyn.com/dnsããã®æªäœ¿çšãããã«å¹Žéæäœãµãã¹ã¯ãªãã·ã§ã³ãæ¯æããããªãããã§ã ã ç§ãã¡ã®ã¿ã¹ã¯ã§ã¯ãæãæå°éã®æ©èœãå®ç§ã§ãã ãã®èšäºã®ãã¬ãŒã ã¯ãŒã¯ã§ãã¡ã€ã³ãç»é²ããDynDNSãµãŒãã¹ã«ãã€ã³ãããæé ã«ã€ããŠã¯è©³ãã説æããŸããã ãµãŒãã¹ã«ç»é²ãã freedns.afraid.org / domainããŒãžã§ãFreeDNSã«ãã¡ã€ã³ãè¿œå ããšããé ç®ãèŠã€ããŠã次ã®nsãµãŒããŒãã¬ãžã¹ãã©ãŒã®DNSãšããŠè¿œå ããŸãã
NS1.AFRAID.ORG NS2.AFRAID.ORG NS3.AFRAID.ORG NS4.AFRAID.ORG
åæã«ã Brokenã®èµ€ãã¹ããŒã¿ã¹ãæããªãã§ãã ããããã¹ãŠãæ£åžžã§ããã°ã24æé以å ã«æ¶ããŸãã
次ã«ããã€ãããã¯DNSã¯ã©ã€ã¢ã³ããéžæããŠMyBookLiveã«ã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã å®éãããã¯ç°¡åãªã¿ã¹ã¯ã§ã¯ãããŸãããPerlãPythonãPHPã«ã¯ãã®ãããªãœãªã¥ãŒã·ã§ã³ãæ¬åœã«ãããããããããããçš®é¡ãšã¹ãã©ã€ãã®* nixçšã®åå¥ã®ããŒã¢ã³ããããŸãã é©åãªãœãªã¥ãŒã·ã§ã³ãèŠã€ããåã«ãç§ã¯å€ãã®ãªãã·ã§ã³ãè©Šããªããã°ãªããŸããã§ããããã©ããã§ããŸããããªããã®ããããŸããã1ãæã§ã»ããã¢ãããããšå®å®æ§ãæ©èœããŸããã çµå±ãç§ã¯æå°ã§ãæãåçŽã§ãæãåçŽãªinadynã¯ã©ã€ã¢ã³ãã«ãšã©ãŸãããšã«ããŸããã å©ç¹-軜快ãªäœæ¥ãéåžžã«å°ãããµã€ãºãéžæãããµãŒããŒãšã®äºææ§ãéåžžã«æè»ãªæ§æãã¯ã©ãŠã³ã®ãµããŒããããŒã¢ã³ã¢ãŒãã§ã®èµ·åãæå®ããééã§ã®IPã®æŽæ°ã ãã€ãã¹ã®ãã¡ãããããGUIãååšããªãããããã®ãããªã³ã³ãœãŒã«ãŠãŒãã£ãªãã£ã«ãšã£ãŠããã€ãã¹ã§ã¯ãããŸããã
次ã®ã³ãã³ãã§ç°¡åã«ã€ã³ã¹ããŒã«ã§ããŸãã
apt-get install inadyn
ãŸããinadynãã€ã³ã¹ããŒã«ãããŠããªãå Žåãinadynãåäœããããã«curlãå¿ èŠã«ãªãå Žåãããããšã«æ³šæããããšãéèŠã§ãã 次ã®ããã«è§£æ±ºãããŸãã
apt-get install curl
次ã«ãã¢ã«ãŠã³ãã§freedns.afraid.org/dynamicã«ãã°ã€ã³ãã å ã»ã©ãªã³ã¯ãããã¡ã€ã³ã®å察åŽã®Direct URLã¢ã€ãã ãéžæããå¿ èŠããããŸãã ãã©ãŠã¶ã®è¡ã«ãåæ§ã®ãã®ãããããšã«æ³šæããŠãã ããã
http://freedns.afraid.org/dynamic/update.php?OHphN3RsHY0SEFtZ1JrQ2V2Z1pTOjk2NzEwOTTVM1cc=
å³åŽã®ãã¹ãŠã«èå³ããããŸããïŒ ã ããã¯ããã¡ã€ã³ã§ã®ã¿æå¹ãªããã·ã¥ã§ãïŒäŸã®å€ã¯å€æŽãããŠããŸãïŒã ã©ããã«ã³ããŒããŠãã ãããããã«å¿ èŠã«ãªããŸãã
次ã®ã³ãã³ãã§inadynæ§æãã¡ã€ã«ãäœæããŸãã
nano /etc/inadyn.conf
å¿ èŠãªèšå®ãæ¿å ¥ããŠä¿åããŸãïŒ
--username <_> --password <> --update_period_sec 60 --forced_update_period 120 --alias <_>,<> --background --dyndns_system default@freedns.afraid.org --syslog
誰ãæ°ã«ããã解èª
- ãŠãŒã¶ãŒå-ããã§ã¯ã freedns.afraid.orgã«ç»é²ãããŠãŒã¶ãŒã®ååã瀺ããŸã
- ãã¹ã¯ãŒã-ããããã®ãã¹ã¯ãŒã
- update_period_sec-IPããã§ãã¯ããã³æŽæ°ããé »åºŠïŒå€æŽãããå ŽåïŒç§
- forced_update_period-ç§åäœã®åŒ·å¶IPãªãã¬ãã·ã¥ã¬ãŒã
- alias-ãã¡ã€ã³ãšãã®ããã·ã¥ã瀺ãè¡ã§ã以åã«èšè¿°ãããã®ã§ãã³ã³ãã§åºåãããŠããŸã
- background-ããã¯ã°ã©ãŠã³ãã§å®è¡ããããæ瀺ãã
- dyndns_system default@freedns.afraid.orgã®è¡ã¯å€æŽããã«ãæ å ±ãã©ã®ãµãŒããŒã§åŠçãããŠããããããã°ã©ã ã«äŒããŸãïŒå éšäº€æãããã³ã«ã瀺ããŸãïŒ
- syslog-ã·ã¹ãã ãã°ã«ã€ãã³ããæžã蟌ã¿ãŸã
ããã§ãåèµ·åæã«èªåã€ãã³ããšããŠinadynãã¯ã©ãŠã³ã«è¿œå ããå¿ èŠããããŸããããã«ãããMyBookLiveãåèµ·åããããã³ã«èªåçã«éå§ãããŸãã ãããè¡ãã«ã¯ïŒ
crontab -e
次ã®è¡ãè¿œå ããŸãã
@reboot /usr/sbin/inadyn
æäœåŸã«ããã°ã©ã ã®æ©èœã確èªããã«ã¯ãMBLã³ãã³ãããªããŒãã§ããŸã
reboot
ãã®åŸãåèµ·åããŠèµ·åãããŸã§3ã5ååŸ ã£ãŠãããããã»ã¹ã確èªããŸãã
ps -A | grep inadyn
pingã³ãã³ãã䜿çšããŠããã¡ã€ã³åã§maybookã®å¯çšæ§ã確èªããã ãã§ãã
ping <yourdomain.com>
ãã¹ãŠãããŸããããéä¿¡ããããã±ãããå°çããããå®å šã«
yourdomain.com/owncloud
yourdomain.com/owncloud
ãšçŽ æŽãããææãã楜ãã¿ãã ããã
owncloudãã¹ã¯ãããããã³ã¢ãã€ã«ã¯ã©ã€ã¢ã³ããã»ããã¢ãããããšãã¯ãæååå šäœãã¢ãã¬ã¹ãšããŠæå®ããå¿ èŠããããŸã
yourdomain.com/owncloud
yourdomain.com/owncloud
䜿çšããŠã / owncloud /ã®å Žæãç解ããŸãã
PSèšäºã®å·çäžãè©Šè¡é¯èª€ã«ãããå·¥å Žåºè·æã®èšå®ã«äžåºŠãœãããŠã§ã¢ãå®å šã«ãªã»ããããããã€ã¹ã2åå解ããŠåŸ©æŽ»ãããå¿ èŠããããŸããïŒ ããããã®æ瀺ã«åŸã£ãŠïŒã®ã§ãèªåã®è²¬ä»»ãšæ©äŒãç解ããŠããã¹ãŠã®èŠåãçå£ã«åãæ¢ããŠãã ããéçãå°ç¡ãã«ããŠãæ å ±ã倱ããŸãã ãŸããMyBookLiveã¯äœãããäºç®ã®nasã§ããããŸã æ¬æ ŒçãªãµãŒããŒãšããŠäœ¿çšãã¹ãã§ã¯ãªãããšãå¿ããªãã§ãã ãããããã«ã¯ãã£ãšé©åãªãœãªã¥ãŒã·ã§ã³ããããŸãã
ãšã©ãŒãäžæ£ç¢ºãã«ã€ããŠã®PPSã¯ããã©ã€ããŒãã¡ãã»ãŒãžã«èšå ¥ããŠãã ããã ãã®ãããã¯ã¯å人çã«éåžžã«èå³æ·±ããã®ã§ãããLinux管çã®åºç€ç¥èã¯ããŸããªããããã³ã¡ã³ãã¯éåžžã«æçšã§ãã èšäºã¯ããã«è£è¶³ãæ¡åŒµãããå¯èœæ§ããããå¿ èŠã«å¿ããŠã第2éšãååŸããå¯èœæ§ããããŸãïŒMyBookLiveãã¢ããã°ã¬ãŒãããæ¹æ³ã«ã€ããŠãããã«ããã€ãã®ã¢ã€ãã¢ããããŸãïŒ
質åãžã®åçïŒ
質åïŒ Apacheãã€ã³ã¹ããŒã«ããå¿ èŠããããŸããïŒ èšäºã«ã¯ããã«ã€ããŠã®èšèã¯ãããŸããã
åçïŒããããMyBookLiveã®Apacheã¯ããã©ã«ãã§ã€ã³ã¹ããŒã«ãããŸãã åããŠæ¥ç¶ããå Žåãèšå®ã¯æ¬¡ã®Webã€ã³ã¿ãŒãã§ã€ã¹ãä»ããŠè¡ãããŸãã
mybooklive.local
mybooklive.local
ã Apacheã誀ã£ãŠæŽæ°ãŸãã¯å€æŽããå ŽåãWebã€ã³ã¿ãŒãã§ãŒã¹ã倱ãããå·¥å Žåºè·æã®èšå®ã«ãªã»ããããªããšèµ·åã§ããªãç¶æ³ã«é¥ãããšããããŸãã ãããç¡æèã«æŽæ°ããããšã䟡å€ããããŸããã äžæº¶æ§ã®äŸåé¢ä¿ã«åºãããããšããããŸãããLennyãPPCã¢ãŒããã¯ãã£åãã®ä»£æ¿ãªãã·ã§ã³ã¯ããŸããããŸããã
質åïŒå®éšã¯ã©ã®ããŒãžã§ã³ã®ãã¡ãŒã ãŠã§ã¢ã§è¡ãããŸãããïŒ
åçïŒãã¹ãŠã¯02.42.03-027ã§è¡ãããŸããããçè«çã«ã¯ä»¥åã®ããŒãžã§ã³ã§ãåäœããã¯ãã§ãã æ®å¿µãªãããããŸããŸãªãã¡ãŒã ãŠã§ã¢ã«é¢ããæ å ±ã¯ãããŸããã
質åïŒ Feature Pack Managerã¯ãèšäºã«èšèŒãããŠããå 容ã«äœããã®åœ±é¿ãäžããããšãã§ããŸããïŒ
åçïŒãã®æ žãšãªãfpkmgrã¯ããŠãŒã¶ãŒãéžæããããã±ãŒãžã®ã»ãããã€ã³ã¹ããŒã«ãããããçš®ã®é«åºŠãªããã±ãŒãžãããŒãžã£ãŒã§ãã fpkmgrãšowncloudããã®éä¿¡ã¯ãMBLã§äžŠè¡ããŠéãã«åäœããŸããã ããããã競åããå¯èœæ§ã®ããfpkmgrã䜿çšããŠã€ã³ã¹ããŒã«ãããããã±ãŒãžãããã€ããããŸãããããã«é¢ããæ å ±ã¯ãŸã ãããŸããã 誰ããåºäŒã£ãŠããã«ã€ããŠæžããããããã«ã³ã¡ã³ããå ¥ããŸãã
質åïŒãã®èšäºã§èª¬æãããŠããæé ã®åŸãMBLãã¹ãªãŒãç¶æ ã«ãªããšãowncloudã¯åæãããŸããïŒ
åçïŒæãèå³æ·±ãã®ã¯ãLEDã®åäœããå€æããŠãç§ãçé»åããªãã«ãããŸã§ã¹ãªãŒãç¶æ ã«ãªã£ãããšã§ãã å®éãæè¡çã«ç§ã¯ãã®åŽé¢ãç 究ããŠããŸããã§ãããããã©ãŠã¶ããå ¥ã£ããšãã«ããŠã§ã€ã¯ã¢ãããããŠowncloudã®ã³ã³ãã³ãã衚瀺ããã®ã«å°ãé ããŠåããŸããã çé»åããªãã«ãããšããã¹ãŠãæ£åžžã«æ©èœããŸãã
質åïŒæ瀺ã«åŸã£ãŠãã¹ãŠãå®è¡ããŸããããã¢ã¯ã»ã¹ããããšãããšããµãŒããŒã«æ¥ç¶ã§ããªããšè¡šç€ºãããŸãã ã©ããã
åçïŒé©åãªã¯ã©ãŠããé©åã«æ©èœãããã«ã¯ãã«ãŒã¿ãŒã®ããŒã80ãš443ã転éããå¿ èŠããããŸãã
ææïŒ
- wstd.lithium.com/t5/My-Book-Live/GUIDE-Installing-OwnCloud-Server-on-My-Book-Live/td-p/561699
- ubuntuforums.org/showthread.php?t=1758930
- support.wdc.com/product/download.asp?groupid=902&lang=en
- doc.owncloud.org
- www.inatech.eu/inadyn/readme.html
- wstd.lithium.com/t5/My-Book-Live/Access-My-Book-Live-across-internet-without-WD2GO/mp/534963#M18215
- colekcolek.com/2011/12/20/hack-wd-book-live
- mybookworld.wikidot.com/mybook-live
- vas3k.ru/blog/338