openpogoã®ã»ããã¢ãã
ããŒã«ã«ç°å¢ã§PogoDriveãä»ããŠã³ããŒãããšé
ãã®ãšããã¡ã€ã«ã®æŽæ°æ¥æããšã¯ã¹ãããŒã©ã§ã³ããŒããæãšéããããŸã«çŸåšæå»ã«ãªã£ãŠããŸãã®ã§sambaãå°å
¥ããããšæ±ºããã èªåèªèº«ãžã®ã¡ã¢ãšããŠããŸãã¯OpenpogoåãŸã§ã®æé ã
以äžã®ãµã€ããåèã«ãããŠããããŸããã
http://www.geekwind.net/2011/0525/pogoplug%e3%81%abopenpogo%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/ http://blog.goo.ne.jp/_memento/e/3e3ff2c11bb9e7625fe4f904a613d95a http://ameblo.jp/uassist-ceo/entry-10853801756.html http://ichi84.blogspot.com/2011/04/pogoplugopenpogo.html http://blog.tufu.org/archives/606
æ¥æ¬åãã¢ãã«ã®ãPogoplug POGO-P25ã
äœæ¥æç¹ã§ã®ããŒãžã§ã³ã UIããŒãžã§ã³ïŒ3.1.2 ãµãŒãã¹ã»ããŒãžã§ã³ïŒ3.1.2.0
pogoplugãžã®SSHã¢ã¯ã»ã¹ãæå¹åãã
my.pogoplug.comãžã¢ã¯ã»ã¹ããã»ãã¥ãªãã£èšå®ããããã®Pogplugæ©åšãžã®SSHæ¥ç¶ãæå¹ã«ãããããã§ãã¯ããŠæå¹åã
ããã¹ã¯ãŒãã倿Žãã§èšå®ãããã¹ã¯ãŒããrootã®ãã¹ã¯ãŒããšãªãã
æ¥ç¶ããŠããHDDãå
šãŠã¯ãã
Webã®ç®¡çç»é¢ãããHDDãéžæãããã®ãã©ã€ããå®å
šã«åãå€ãããå®è¡ããã
USBã¡ã¢ãªã®ãã©ãŒããã
Openpogoãã€ã³ã¹ããŒã«ããUSBã¡ã¢ãªã®ãã©ãŒããããè¡ãã
ãã©ãŒãããããŒã«ãããŠã³ããŒãããã
以äžã®ã¢ãã¬ã¹ããååŸãã http://plugapps.com/os/pogoplug/mke2fs ããŠã³ããŒãããããŒã«ã«å®è¡æš©éã远å
# cd /tmp # wget http://plugapps.com/os/pogoplug/mke2fs # chmod 755 mke2fs
pogoplugã®ããŒã¢ã³ããã»ã¹ã忢ããã
ãhbwdããšããããã»ã¹ãäžæçã«åæ¢ã pogoplugã®æ©èœãå©çšäžå¯ã«ããã
USMã¡ã¢ãªããããŠãããã€ã¹ã®ç¢ºèª
å©çšãããUSBã¡ã¢ãªãããã ã©ã®ããã€ã¹ãå©çšããŠãããã確èªã
# /sbin/fdisk -l Disk /dev/sdb: 4009 MB, 4009754624 bytes 145 heads, 48 sectors/track, 1125 cylinders Units = cylinders of 6960 * 512 = 3563520 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 1126 3915752 b Win95 FAT32
WinXPã§4GBã®USBã¡ã¢ãªãfat32ã§ãã©ãŒãããããç©ããããæã¯äžèšã®ããã«ãªã£ãã sdbã«ããŒãã£ã·ã§ã³sdb1ãïŒã€ååšããŠããç¶æ
ã ã¡ãªã¿ã«ãèé¢ã®äžçªäžïŒ3ã€ç®ïŒã®ããŒãã«ãããã
USBã¡ã¢ãªã®å
容ãåé€ããŠãæ°èŠã«ããŒãã£ã·ã§ã³ãäœæ
確èªããããã€ã¹ã®USBã¡ã¢ãªã®ããŒãã£ã·ã§ã³ãåäœæããã fdiskã®ãã°ã¯ä»¥äžã®ãšããã
# /sbin/fdisk /dev/sdb The number of cylinders for this disk is set to 1125. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): help h: unknown command Command Action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): d Selected partition 1 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1125, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1125, default 1125): Using default value 1125 Command (m for help): p Disk /dev/sdb: 4009 MB, 4009754624 bytes 145 heads, 48 sectors/track, 1125 cylinders Units = cylinders of 6960 * 512 = 3563520 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 1125 3914976 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table
USBã¡ã¢ãªããã©ãŒãããããã
äœæããããŒãã£ã·ã§ã³ããã©ãŒãããããã fdiskã§ããŒãã£ã·ã§ã³ã確èªã
# /sbin/fdisk -l Disk /dev/sdb: 4009 MB, 4009754624 bytes 145 heads, 48 sectors/track, 1125 cylinders Units = cylinders of 6960 * 512 = 3563520 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 1125 3914976 83 Linux
sdb1ã®ããŒãã£ã·ã§ã³ãæ°èŠäœæãããã€ãªã®ã§ãããã«ããŠã³ããŒãããŠããmke2fsã³ãã³ãã§ãã©ãŒãããããã
# ./mke2fs /dev/sdb1 mke2fs 1.41.9 (22-Aug-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 244800 inodes, 978744 blocks 48937 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1002438656 30 block groups 32768 blocks per group, 32768 fragments per group 8160 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 20 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
USBã¡ã¢ãªãæããŠããåèµ·å
ãã©ãŒãããããUSBã¡ã¢ãªãæãã åèµ·åã¯ã以äžã®ã³ãã³ãã
OpenPogoãã€ã³ã¹ããŒã«ãã
åèµ·åãããUSBã¡ã¢ãªãå·®ã蟌ãã§ç¢ºèªã
#df -h Filesystem Size Used Available Use% Mounted on ubi0:rootfs 102.1M 11.1M 91.0M 11% / none 61.4M 12.0K 61.4M 0% /tmp /tmp/.cemnt/sda1 3.7G 7.5M 3.5G 0% /tmp/.cemnt/mnt_sda1
sad1ã®ããã€ã¹ãšããŠèªèãããŠããã ããŠã³ããããããç®æã¯ > mnt_sda1 ãšããåç§°ã«ãªã£ãŠããã
USBã®ããŠã³ããã€ã³ãã«ç§»åããã
åŸã®äœæ¥ã¯USBå
ã§ããã»ããæ¥œãããªã®ã§ç§»åããšãã
# cd /tmp/.cemnt/mnt_sda1/
openpogoãããŠã³ããŒãããŠè§£å
ããã«ããã http://www.pogoplugged.com/download/12124/Create-an-openpogo-base-system-on-a-USB-drive/ pogodriveãSCPã䜿ã£ãŠUSBã¡ã¢ãªå
ã«è»¢éããŠãããããä»åã¯wgetã§ååŸããšãã
# wget http://www.pogoplugged.com/downloads/file/1656/opt.tar.gz
USBå
ã«ä¿åã§ãããè§£å
USBã¡ã¢ãªã®çŽäžã«ãã.optããã£ã¬ã¯ããªãåºæ¥ãŠããã¯ãã
ã«ãŒããã£ã¬ã¯ããªããªããŠã³ã
/optãã£ã¬ã¯ããªãopenpogoçšã®ãã£ã¬ã¯ããªã«ããããèµ·åçšã¹ã¯ãªãããä¿®æ£ãããããã®ã§ãæžã蟌ã¿å¯èœãªããã«ãªããŠã³ãããã
optã«ã·ã³ããªãã¯ãªã³ã¯ãäœæããã
/optã«/tmp/mnt_opt/.optã®ã·ã³ããªãã¯ãªã³ã¯ãäœæããã ãŸã /tmp/mnt_opt/.optã¯ååšããŠããªãã¯ãã ããåŸã«èšè¿°ããèµ·åã¹ã¯ãªããã®äžã§ããã«openpogoãããŠã³ããããããã«ãªãã
# ln -s /tmp/mnt_opt/.opt /opt
èµ·åã¹ã¯ãªããã®äœæ
openpogoãèµ·åæã«èªåçã«æå¹åãããããã«ãèµ·åã¹ã¯ãªãããäœæããã
/etc/init.d/mount_opt ã®äœæ
èµ·åæã«/tmp/mnt_opt/ã«ããŠã³ãããããã¹ã¯ãªããã¯openpogoã«ããã®ã§ããããã³ããŒããšãã
# cp /tmp/.cemnt/mnt_sda1/.opt/mount_opt /etc/init.d/ # chmod 755 /etc/init.d/mount_opt
ããŸãããŠã³ããããªãã£ãã®ã§èª¿ã¹ãŠã¿ããšã/dev/sdaã®èªèã®ã¿ã€ãã³ã°ã§ããŸããããªããããã åŸè¿°ããrcSã«ã¹ãªãŒããå
¥ããããšã§å¯Ÿå¿ããã
念ã®ãããããã¯ã¢ãããåã£ãŠããæåŸå°Ÿã«è¿œèšã
# cp /etc/init.d/rcS /etc/init.d/rcS.back
èµ·åã¹ã¯ãªããã®ä¿®æ£ã æåŸã«openpogoãã€ã³ã¹ããŒã«ããŠããUSBãããŠã³ãããŠãinitiåŠçããããããã«ããã
# vi /etc/init.d/rcS ## 以äžãæåŸå°Ÿã«è¿œèš ## ããã€ã¹ã®èªèã«æéãããã£ãŠããŠã³ãã«å€±æããŠããã®ã§sleepã5åå
¥ãã sleep 300 /etc/init.d/mount_opt /opt/etc/init
以äžã®ãšããã«äœæããã
# vi /etc/profile #!/bin/bash export PATH=/opt/bin:/opt/sbin:/usr/bin:/usr/sbin:/bin:/sbin
åèµ·åããŠç¢ºèªããã
ããŠã³ããããŠããŠãã£ã¬ã¯ããªã«ç§»åã§ããŠããã°OKã
openpogoã®ã»ããã¢ããã¯ãããŸã§ã 次åã¯ãå®éã«ããã±ãŒãžãã€ã³ã¹ããŒã«ããæé ãæžãäºå®ã