泚é
ç§ã¯ãHabrãåžžã«å€ãã®åé¡ã解決ããäžã§è²Žéãªæ å ±ã®ä¿ç®¡åº«ãšèããŠããŸããã ãããã£ãŠãåé¡ã«çŽé¢ããé©åãªè§£æ±ºçãèŠã€ããããã«ã èªåã®çµéšãå ±æããããšã«ããŸãã ã ç§ã¯ããã¥ã¢ã«ã§ã¯ãªããè¡åã®ã¬ã€ããæžãããšãè©Šã¿ãŸããã§ããããç§ã®èŠ³ç¹ãããç§ã®ããŒãºã«åºã¥ããŠããŸãã 誰ãã圹ã«ç«ã€ãšãããªã
Crashplanãšã¯ïŒããã³ãªãå¿
èŠãªã®ãïŒ
èæ¯
èªå·±çµç¹åãããNASã«ã¯å€ãã®ãœãªã¥ãŒã·ã§ã³ããããŸãããããã€ãã®çç±ã§FreeNASã«ç«ã¡å¯ããŸããã
- ZFSã®ãã€ãã£ããµããŒãã
- ADãLDAPãããã³ãã®ä»ã®ãã£ã¬ã¯ããªãµãŒãã¹ãšã®è¯å¥œãªçµ±åã
- ã·ã¹ãã ã¯FreeBSDäžã«æ§ç¯ãããŠããŸããã€ãŸããjailãšportsããããŸãã
èªå® ã ãã§ãªãè·å Žã§ã䜿çšããŠããã®ã§ããããŸã§ã®æ±ºå®ãåŸæããŠããŸããã
ç§ã¯Crashplanãé·ãé䜿çšããŠãããææã®ãµãã¹ã¯ãªãã·ã§ã³ãæã£ãŠããŸãã ã¯ãã¹ã¢ãŒã«ã€ããšã¯ã©ãŠããžã®ã¢ãŒã«ã€ãã®äž¡æ¹ã䜿çšããŸãã 説æãããã€ãã³ãã®åã«Linuxããã³Windowsã§ã®ã¿äœ¿çšãããŸãã
ãããã£ãŠãFreeNASïŒ9.3ïŒãå±éãããšããVirtualBoxãã€ã³ã¹ããŒã«ããåŸã«2çªç®ã«ãã£ãããšã¯ãCrashplanãå±éããããšã§ããã ãããŠãããã§ããã€ãã®é©ããç§ãåŸ ã£ãŠããŸããã Crashplanã®ã€ã³ã¹ããŒã«ã®åé¡ã«æåã«åºäŒã£ããšããç§ã¯å€ãFidoã®çæãžã§ãŒã¯ãæãåºããŸããã
å·ã¿ããããã£ã©ã¯ã¿ãŒã®åé¡
ãŠãŒã¶ãŒ-çæãèžãç·ã
ãã£ãŒãããã¯åå¿è ãŠãŒã¶ãŒã§ãããã¬ãŒããèžãããšã¯ãªããããã¬ãŒãã¯ååšããŸããã
ã¬ãŒããŒãšã¯ãã¬ãŒããå®æçã«èžããŠãŒã¶ãŒã§ãããã¬ãŒããååšããªãããšã確信ããŠããŸãã
çãå°é家ã¯ãåãã¬ãŒããæ»æããæ¹æ³ãç¥ã£ãŠãããŠãŒã¶ãŒã§ãã
åºãã¹ãã·ã£ãªã¹ããšã¯ãé¡ã«2ã€ä»¥äžã®ã³ãŒã³ããããŠãŒã¶ãŒã§ãã
ããã°ã©ãã¯ãçµæãã¬ãŒããèžãäžã§æãéèŠãªãã®ã§ãã ä»ã®ã¬ãŒããèžãã®ã«ããããããŠãèªåã§äœãã
äžçŽããã°ã©ããŒ-ãã¹ãŠã®ã¬ãŒãã«2å以äžã§ã¢ã¯ã»ã¹ã§ããããã°ã©ã ã
ã³ããŒã©ã€ãã£ã³ã°ã¯ãã¬ãŒãããŠãŒã¶ãŒã«çºçããããã«å©çšå¯èœãªééçæ©äŒã®æ°ãå¶éããæŠå¿µã§ãã
ã²ãŒããŒãšã¯ãã¬ãŒããèžãéã«ããã»ã¹ãæãéèŠãªãã®ã§ãã éåžžãç¬èªã®ã¬ãŒããäœæããããšã¯ã§ããŸããã
è©æ¬ºåž«-ã²ãŒããŒã®äžçš®ã ãã³ãã«ã«ãã©ãŒã ããããä»ããçæã§ã®ã¿äœ¿çšãããéåžžã¯1åã®ã¿ã§ãã
ããã«ãŒãšã¯ãå°å±ã«é ããŠããã¯ãããŠããå Žåã§ããçæãèžãããšãã§ãã人ã®ããšã§ãã
çæ³äž»çŸ©ã®ããã«ãŒã¯ããã¹ãŠã®äººãç¡å¶éã®æ°ã®çæãèžãæš©å©ãæã€é«è²ŽãªæŠéæ©ã§ãã
Microsoft-Corporationãã¬ãŒãã®çç£ã«ãããäžççãªãŒããŒ
ãã«ã»ã²ã€ã-ããã°ã©ããŒã®äŒæ¿ã«ç±æ¥ããç¥è©±äžã®çãç©ã æªé-çæã®å®è·ã
ã¢ããã°ã¬ãŒã-ãã¹ãŠã®æ°ããã¬ãŒããè³Œå ¥ããããã®æä¹ çãªãéã®ç¡é§é£ãã®ããã»ã¹ãããããã以åã®ãã®ãããçãã»ã©ã«åã£ãŠããŸãã
ããŒã¿ç-çæãèçŒã§èŠããããŒãžã§ã³ã
ãªãªãŒã¹ã¯ãçæã«èãæ£ãã°ã£ãŠããããŒãžã§ã³ã§ãã
ããŒãžã§ã³ã®äºææ§ã¯ãæ°ããã¬ãŒãã以åã®ã¬ãŒããšãŸã£ããåãããã«ãããããããšãå¯èœã«ããååã§ãã
Assemblerã¯ã1ç§éã«æ°çŸäžåã¬ãŒããèžãããšãã§ããããã°ã©ãã³ã°èšèªã§ãã
ããŒã«ã«ãšãªã¢ãããã¯ãŒã¯-ä»ã®èª°ããçæãèžãã å Žåã§ããé¡ã«ä¹ãããšãã§ããæè¡ã
ã€ã³ã¿ãŒãããã¯ãå°çã®å察åŽã«ããçæãèžãããšãå¯èœã«ããæè¡ã§ãã
ãããã¯ãŒã¯äŒè°-ãã¹ãŠã®äººãèªåèªèº«ã ãã§ãªããä»ã®äººã®çæã«ã足ãèžã¿å ¥ããããšãå¯èœã«ããæè¡ã
ãã·ã¢ã®ã³ãŒãã£ã³ã°-ã€ã³ã¿ãŒããããŠãŒã¶ãŒåãã®ã®ããã»ããã
䜿ããããã€ã³ã¿ãŒãã§ã€ã¹ã¯ãã¬ãŒãã®ãã³ãã«ã®ãŽã 補ã°ãªããã§ãã
æè»ãªïŒã«ã¹ã¿ãã€ãºå¯èœãªïŒã€ã³ã¿ãŒãã§ã€ã¹-çæã®ãã³ãã«ã®ããããé¡ã®é«ãã調æŽããããšã§ç§»åã§ããŸãã
ã°ã©ãã£ãã¯ã€ã³ã¿ãŒãã§ã€ã¹ã¯ãé¡ã«åœãã£ãåŸã®ç«è±ã®è²ãšåŒ·åºŠã調æŽã§ãããããã§ãã
ä¿¡é Œæ§ã®äœãã·ã¹ãã -èžãŸãªãå Žåã§ãããªããåãã¬ãŒãã
ä¿¡é Œæ§ã®é«ãã·ã¹ãã -èäžãç«ãŠãŠé¡ãå©ãçæã
ãã«ãã¿ã¹ã¯ã¯ãè€æ°ã®ã¬ãŒããåæã«èžãããšãå¯èœã«ããæŠå¿µã§ãã
ãªããžã§ã¯ãæåããã°ã©ãã³ã°ã¯ã人圢ã«åºã¥ããŠçæãäœãæ¹æ³ã§ãã
ããã¥ã¢ã«-çæãæ»æããããŸããŸãªæ¹æ³ã説æããæ¬ã ã©ããŒãããã«ãŒã䜿çšããããšã¯ãããŸããã é«åºŠãªããã°ã©ã ã¯ãåãã¬ãŒãã2åç®ã«èžãã åŸã«äœ¿çšããŸãã
ãã¯ãã«ã«ãµããŒããšã¯ãã¬ãŒããèžãã åŸã®å¯ŸåŠæ¹æ³ãã¢ããã€ã¹ãããµãŒãã¹ã§ãã éåžžã圌女ã®æåã®ã¢ããã€ã¹ã¯ãã¬ãŒããããäžåºŠèžãã§æèŠãæ¯èŒããããšã§ãã
ãã£ãŒãããã¯åå¿è ãŠãŒã¶ãŒã§ãããã¬ãŒããèžãããšã¯ãªããããã¬ãŒãã¯ååšããŸããã
ã¬ãŒããŒãšã¯ãã¬ãŒããå®æçã«èžããŠãŒã¶ãŒã§ãããã¬ãŒããååšããªãããšã確信ããŠããŸãã
çãå°é家ã¯ãåãã¬ãŒããæ»æããæ¹æ³ãç¥ã£ãŠãããŠãŒã¶ãŒã§ãã
åºãã¹ãã·ã£ãªã¹ããšã¯ãé¡ã«2ã€ä»¥äžã®ã³ãŒã³ããããŠãŒã¶ãŒã§ãã
ããã°ã©ãã¯ãçµæãã¬ãŒããèžãäžã§æãéèŠãªãã®ã§ãã ä»ã®ã¬ãŒããèžãã®ã«ããããããŠãèªåã§äœãã
äžçŽããã°ã©ããŒ-ãã¹ãŠã®ã¬ãŒãã«2å以äžã§ã¢ã¯ã»ã¹ã§ããããã°ã©ã ã
ã³ããŒã©ã€ãã£ã³ã°ã¯ãã¬ãŒãããŠãŒã¶ãŒã«çºçããããã«å©çšå¯èœãªééçæ©äŒã®æ°ãå¶éããæŠå¿µã§ãã
ã²ãŒããŒãšã¯ãã¬ãŒããèžãéã«ããã»ã¹ãæãéèŠãªãã®ã§ãã éåžžãç¬èªã®ã¬ãŒããäœæããããšã¯ã§ããŸããã
è©æ¬ºåž«-ã²ãŒããŒã®äžçš®ã ãã³ãã«ã«ãã©ãŒã ããããä»ããçæã§ã®ã¿äœ¿çšãããéåžžã¯1åã®ã¿ã§ãã
ããã«ãŒãšã¯ãå°å±ã«é ããŠããã¯ãããŠããå Žåã§ããçæãèžãããšãã§ãã人ã®ããšã§ãã
çæ³äž»çŸ©ã®ããã«ãŒã¯ããã¹ãŠã®äººãç¡å¶éã®æ°ã®çæãèžãæš©å©ãæã€é«è²ŽãªæŠéæ©ã§ãã
Microsoft-Corporationãã¬ãŒãã®çç£ã«ãããäžççãªãŒããŒ
ãã«ã»ã²ã€ã-ããã°ã©ããŒã®äŒæ¿ã«ç±æ¥ããç¥è©±äžã®çãç©ã æªé-çæã®å®è·ã
ã¢ããã°ã¬ãŒã-ãã¹ãŠã®æ°ããã¬ãŒããè³Œå ¥ããããã®æä¹ çãªãéã®ç¡é§é£ãã®ããã»ã¹ãããããã以åã®ãã®ãããçãã»ã©ã«åã£ãŠããŸãã
ããŒã¿ç-çæãèçŒã§èŠããããŒãžã§ã³ã
ãªãªãŒã¹ã¯ãçæã«èãæ£ãã°ã£ãŠããããŒãžã§ã³ã§ãã
ããŒãžã§ã³ã®äºææ§ã¯ãæ°ããã¬ãŒãã以åã®ã¬ãŒããšãŸã£ããåãããã«ãããããããšãå¯èœã«ããååã§ãã
Assemblerã¯ã1ç§éã«æ°çŸäžåã¬ãŒããèžãããšãã§ããããã°ã©ãã³ã°èšèªã§ãã
ããŒã«ã«ãšãªã¢ãããã¯ãŒã¯-ä»ã®èª°ããçæãèžãã å Žåã§ããé¡ã«ä¹ãããšãã§ããæè¡ã
ã€ã³ã¿ãŒãããã¯ãå°çã®å察åŽã«ããçæãèžãããšãå¯èœã«ããæè¡ã§ãã
ãããã¯ãŒã¯äŒè°-ãã¹ãŠã®äººãèªåèªèº«ã ãã§ãªããä»ã®äººã®çæã«ã足ãèžã¿å ¥ããããšãå¯èœã«ããæè¡ã
ãã·ã¢ã®ã³ãŒãã£ã³ã°-ã€ã³ã¿ãŒããããŠãŒã¶ãŒåãã®ã®ããã»ããã
䜿ããããã€ã³ã¿ãŒãã§ã€ã¹ã¯ãã¬ãŒãã®ãã³ãã«ã®ãŽã 補ã°ãªããã§ãã
æè»ãªïŒã«ã¹ã¿ãã€ãºå¯èœãªïŒã€ã³ã¿ãŒãã§ã€ã¹-çæã®ãã³ãã«ã®ããããé¡ã®é«ãã調æŽããããšã§ç§»åã§ããŸãã
ã°ã©ãã£ãã¯ã€ã³ã¿ãŒãã§ã€ã¹ã¯ãé¡ã«åœãã£ãåŸã®ç«è±ã®è²ãšåŒ·åºŠã調æŽã§ãããããã§ãã
ä¿¡é Œæ§ã®äœãã·ã¹ãã -èžãŸãªãå Žåã§ãããªããåãã¬ãŒãã
ä¿¡é Œæ§ã®é«ãã·ã¹ãã -èäžãç«ãŠãŠé¡ãå©ãçæã
ãã«ãã¿ã¹ã¯ã¯ãè€æ°ã®ã¬ãŒããåæã«èžãããšãå¯èœã«ããæŠå¿µã§ãã
ãªããžã§ã¯ãæåããã°ã©ãã³ã°ã¯ã人圢ã«åºã¥ããŠçæãäœãæ¹æ³ã§ãã
ããã¥ã¢ã«-çæãæ»æããããŸããŸãªæ¹æ³ã説æããæ¬ã ã©ããŒãããã«ãŒã䜿çšããããšã¯ãããŸããã é«åºŠãªããã°ã©ã ã¯ãåãã¬ãŒãã2åç®ã«èžãã åŸã«äœ¿çšããŸãã
ãã¯ãã«ã«ãµããŒããšã¯ãã¬ãŒããèžãã åŸã®å¯ŸåŠæ¹æ³ãã¢ããã€ã¹ãããµãŒãã¹ã§ãã éåžžã圌女ã®æåã®ã¢ããã€ã¹ã¯ãã¬ãŒããããäžåºŠèžãã§æèŠãæ¯èŒããããšã§ãã
ããããããã€ãã®çæïŒããã³ãããããã®åé圢ïŒããããŸããã
æåã®ãã³ãïŒãŸãã¯ããªã«æåã§ã¯éåžžã«æªãïŒ
ã¡ãã£ãš
ãã©ã°ã€ã³ã®ãªã¹ã
Crashplanãã©ã°ã€ã³ãå©çšå¯èœã§ããããšãããããŸãã ãããå
¥ããŠã¿ãŠãã ããã
ãHow-toïŒCrashplanïŒFreenasããåºæ¬ãšããŠãã·ã£ãŒãã³ãšã¿ã³ããªã³ã§èžã-CrashplanãæŽæ°ããŸããã€ãŸã ã /usr/pbi/crashplan-amd64/share/crashplan/bin/run.confã®å¿ èŠæ§ãå¿ããŸããäž¡è¡
ãã®ãããªãã©ã¡ãŒã¿
-Djava.nio.channels.spi.SelectorProvider = sun.nio.ch.PollSelectorProvider
ãã¡ã€ã«ã¯æ¬¡ã®ããã«ãªããŸã
SRV_JAVA_OPTS = " -Djava.nio.channels.spi.SelectorProvider = sun.nio.ch.PollSelectorProvider -Dfile.encoding = UTF-8 -Dapp = CrashPlanService -DappBaseName = CrashPlan -Xms20m -Xjpv51212 Dsun.net.inetaddr.ttl = 300 -Dnetworkaddress.cache.ttl = 300 -Dsun.net.inetaddr.negative.ttl = 0 -Dnetworkaddress.cache.negative.ttl = 0 -Dc42.native.md5.enabled = false "
GUI_JAVA_OPTS = " -Djava.nio.channels.spi.SelectorProvider = sun.nio.ch.PollSelectorProvider -Dfile.encoding = UTF-8 -Dapp = CrashPlanDesktop -DappBaseName = CrashPlan -Xms20m -Xjava4.vpd = 5 Dsun.net.inetaddr.ttl = 300 -Dnetworkaddress.cache.ttl = 300 -Dsun.net.inetaddr.negative.ttl = 0 -Dnetworkaddress.cache.negative.ttl = 0 -Dc42.native.md5.enabled = false "
ãã¡ã€ã«ã¯æ¬¡ã®ããã«ãªããŸã
SRV_JAVA_OPTS = " -Djava.nio.channels.spi.SelectorProvider = sun.nio.ch.PollSelectorProvider -Dfile.encoding = UTF-8 -Dapp = CrashPlanService -DappBaseName = CrashPlan -Xms20m -Xjpv51212 Dsun.net.inetaddr.ttl = 300 -Dnetworkaddress.cache.ttl = 300 -Dsun.net.inetaddr.negative.ttl = 0 -Dnetworkaddress.cache.negative.ttl = 0 -Dc42.native.md5.enabled = false "
GUI_JAVA_OPTS = " -Djava.nio.channels.spi.SelectorProvider = sun.nio.ch.PollSelectorProvider -Dfile.encoding = UTF-8 -Dapp = CrashPlanDesktop -DappBaseName = CrashPlan -Xms20m -Xjava4.vpd = 5 Dsun.net.inetaddr.ttl = 300 -Dnetworkaddress.cache.ttl = 300 -Dsun.net.inetaddr.negative.ttl = 0 -Dnetworkaddress.cache.negative.ttl = 0 -Dc42.native.md5.enabled = false "
æ¥ç¶ãããŠãããããªã«æåãæ£ãã衚瀺ãããŠããªãããšãããããŸãã
ã¯ã©ãã«ãŒãèŠã
ãããããã³ããã§ãã
ãœãªã¥ãŒã·ã§ã³ãæ€çŽ¢ãã
ïŒGoogleã䜿çšããŠïŒé¡ã«è§£æ±ºçãèŠã€ããããšã§ã ãFreeBSD + CrashPlan + / compat / linux = krakozyabryããšããåé¡ã«ç§ã ãã§ã¯ãªãããã«ãªããŸããã
ããã€ãã®ãœãªã¥ãŒã·ã§ã³ãéžé ãããŠããŸããã
- ãã©ã°ã€ã³ã§ããªã«æåã®æ£ãã衚瀺ãèšå®ããŠã¿ãŠãã ããã æšãŠããã©ã°ã€ã³ã¯pbiãã¡ã€ã«ãšããŠäœæãããŸãããã®ãã¡ã€ã«ã¯ãå±éæã«æšæºã®jailãã£ã¬ã¯ããªã䜿çšããã«ãç¬èªã«äœæããŸãã ãããç解ããè©Šã¿ã¯äœã«ãã€ãªãããŸããã§ãããç§ã¯æ§é ã®è€éãã«drããç¶ç¶ããªãããšã«æ±ºããŸããã
- ãã³ãã¬ãŒãããlinux-jailãã€ã³ã¹ããŒã«ããŸãã æšãŠãããŒãžã§ã³9.3ã§ã¯ã9.2ã®ãã³ãã¬ãŒãã¯æ£åžžã«åäœããŸããã§ããïŒDebianãšCentOSãè©ŠããŸããïŒ-ååæå ã®ãããã¯ãŒã¯ã¯åäœããããããŸããã§ããããæ®å¿µã§ãã
- VirtualBoxã§Linuxãèµ·åããŸãïŒäŸïŒDebianïŒã 延æããVirtualBoxã§ã¯ãFreeNASã¯32ãããã«ãŒãã«ã®ã¿ãå®è¡ã§ããŸãã ããã¯éªéã§ã¯ãããŸããããã©ãããããããã£ã¬ã¯ããªãä»®æ³ãã·ã³ã«ããŠã³ãããå¿ èŠããããŸãã ããã€ãã®ãªãã·ã§ã³ããããŸãïŒnfsïŒãã¹ããããããŒã¿ã»ããã®åé¡ïŒãsmb / cifsïŒæãæ©èœãããœãªã¥ãŒã·ã§ã³ã§ãããsmb-ballsãå¿ èŠãšããããã¯åžžã«å¯èœã§ãããšã¯éããŸããïŒãVirtualBoxã®ãªãœãŒã¹ãå ±æããŸãïŒäœããã®çç±ã§ãåžžã«æ©èœããŸããïŒã ç§ã¯æåŸã®æ段ãšããŠãã®æ±ºå®ã延æããŸããã
- ã¯ãªãŒã³ãªjailãã€ã³ã¹ããŒã«ããLinux BSDãšãã¥ã¬ãŒã¿ãŒã§Crashplanãå®è¡ããŸãã
æ£çŽãªãšãããç§ã¯ãã¹ãŠã®ãªãã·ã§ã³ãïŒãããŠç€ºãããŠããé åºã§ïŒè©ŠããŸããã 圌ã¯ã¢ã€ãã 4ãç²åŸããŸãããããã«ã€ããŠèª¬æããŸãã
ãã³ãã«ã®çµããã«å ããããŸããïŒ ïŒæ°ããã¬ãŒãïŒ
ãœãªã¥ãŒã·ã§ã³ãèŠã€ãããšã FreeNAS 9.1 Jailã®[How-To] CrashPlanïŒ32ãããã§ãã¹ãæžã¿ïŒãšããèšäºã«å°ãããŸããã
ãããŠã圌ãã¯è¡ããŸããïŒãŸãã¯ãããªãã奜ããªããã«é£ã³ãŸããïŒã
æºåäœæ¥
FreeNASã®åæã»ããã¢ããã®ãã¹ãŠã®ç¬éãæåã®æã¡äžãã®åŸãç§ã¯çç¥ããŸããããã«ã€ããŠã¯ããããæžãããŠããŸãã
- sshçµç±ã§FreeNASã«æ¥ç¶ããŸãã
- Linuxã®ã«ãŒãã«ã¢ãžã¥ãŒã«ãããŒããããŠãããã©ããã確èªããŸãã
kldstat | grep linux
次ã®ãããªãã®ãããå ŽåïŒ
22 2 0xffffffff81d09000 46855 linux.ko
ãã®åŸããã§ã«ããŠã³ããŒãããŠããŸãããããã§ãªãå ŽåïŒ
kldload linux
- ã·ã¹ãã ã§linux-compatãæå¹ã«ããŸã
Webã€ã³ã¿ãŒãã§ãŒã¹ã§linux-compatãæå¹ã«ãããšãlinux.koã«ãŒãã«ã¢ãžã¥ãŒã«ãèªåçã«ããŒãããããããlinux_loadãã©ã¡ãŒã¿ãŒãçç¥ã§ããŸãã
- ååæãäœæããŸãã
ã®äœæããã©ã«ãèšå®ã¯å€æŽã§ããŸããã VIMAGEãã©ã¡ãŒã¿ãŒã¯ãªã³ã®ãŸãŸã§ãã
ãããŠãã€ã³ã¹ããŒã«ãå®äºããã®ãåŸ ã£ãŠããŸã
ãã®ããã»ã¹ã«ã¯10ã45åããããŸãã
Crashplanãšå¿ èŠãªãã®ãã¹ãŠãååæã«ã€ã³ã¹ããŒã«ãã
ã¢ã¯ã·ã§ã³ã¯ssh FreeNASã§å®è¡ãããŸãïŒç¹ã«æå®ããªãéãïŒã
- ç§ãã¡ã¯ååæã®IDã決å®ããŸã
jls
ç§ãã¡ã¯ãã®ãããªçããåŸã
jail ID = 2ã§ããããšããããå Žæããã
- ç§ãã¡ã¯ååæã«æ¥ç¶ãããŠããŸãã
jexec 2 /bin/tcsh
- jailã®ããã±ãŒãžãšããŒããæŽæ°ãã
pkg update pkg upgrade portsnap fetch extract
å®æãåŸ ã£ãŠããŸãã
- nanoãšãã£ã¿ãŒãã€ã³ã¹ããŒã«ããŸãïŒviæ奜家ã¯ãã®é
ç®ãã¹ãããããŸãïŒ
cd /usr/ports/editors/nano make install clean
- fedora-linuxãšãã¥ã¬ãŒã¿ãŒãã€ã³ã¹ããŒã«ãã
cd /usr/ports/emulators/linux_base-f10/ make install clean
- procfsãšãã¥ã¬ãŒã¿ãŒãã€ã³ã¹ããŒã«ãã
cd /usr/ports/sysutils/linux-f10-procps/ make install clean
- Linuxçšã®JREãã€ã³ã¹ããŒã«ãã
cd /usr/ports/java/linux-sun-jre17 make install clean
ãããŠåŸãééã
ããã¯ãOracleããã®ãã¡ã€ã«ãçŽæ¥ããŠã³ããŒãããããšãçŠããŠããããã§ãã ãããã£ãŠããã®ãªã³ã¯ã«åŸã£ãŠãã¡ã€ã«jre-7u75-linux-i586.tar.gzãããŠã³ããŒãããŠãã ãã ïŒã©ã€ã»ã³ã¹ã«åæããããšãå¿ããªãã§ãã ããïŒã ããŠã³ããŒããããã¡ã€ã«ã¯ããã£ã¬ã¯ããª/ usr / ports / distfiles ïŒjailã®ãã¹ïŒãŸãã¯FreeNASã®ãã£ã¬ã¯ããª/ <jailãžã®ãã¹> / <jail name> / usr / ports / distfiles ïŒããšãã°ããã¹ããã/ mnt / poolz / jail / crashplan / usr / ports / distfiles ïŒ
ãããŠç¹°ãè¿ã
cd /usr/ports/java/linux-sun-jre17 make install clean
ãããŠãã€ã³ã¹ããŒã«ãå®äºããã®ãåŸ ã£ãŠããŸãã
- FreeNASã§ã®Linuxçšprocfsã®ããŠã³ã
ååæãåºã
exit
ã³ãã³ãã©ã€ã³FreeNASã«è¡ããŸãã ã«ãŒãFSãæžã蟌ã¿ã¢ãŒãã«åããŠã³ãããŸãã
mount -uw /
procfsããŠã³ãã¹ã¯ãªãããäœæããŸãã
nano /conf/base/etc/rc.d/mountproc
ã¹ã¯ãªããããã¹ãïŒä¿®æ£åŸïŒ#!/bin/sh # PROVIDE mountproc # REQUIRE LOGIN # BEFORE: ix-jail . /etc/rc.subr name=mountproc rcvar=mountproc_enable start_cmd="${name}_start" stop_cmd="${name}_stop" mountproc_start () { /sbin/mount -t linprocfs linproc /mnt/poolz/jail/crashplan/compat/linux/proc/ } mountproc_stop() { echo "--- mountproc stopped ---" } load_rc_config $name run_rc_command "$1"
éèŠïŒ mountproc_startãè¡ã®æåã®äœçœ®ããéå§ããããšã確èªããŠãã ããïŒ
ãã¹/ mnt / poolz / jail / crashplan / compat / linux / proc /㯠ãç¬èªã®ãã®ã«å€æŽãããŸãïŒåã®æ®µèœãšåæ§ïŒã
ã¹ã¯ãªãããå®è¡å¯èœã«ããŸãã
chmod +x /conf/base/etc/rc.d/mountproc
èªåèµ·åã¹ã¯ãªããããªã³ã«ããŸã
æå¹ã«ããæ¹æ³
- ãã¹ãŠãæ£ããè¡ããããã©ããã確èªãïŒäž»ã«ã¹ã¯ãªããããã¹ãïŒãFreeNASããªãŒããŒããŒãããŸãã
- åèµ·ååŸãèšå®ãæå¹ã«ãªã£ãŠãããã©ããã確èªããŸãã
kldstat | grep linux mount | grep linprocfs
2çªç®ã®ã³ãã³ãã®åŸã«æ¬¡ã®ãããªè¡ã衚瀺ãããªãå ŽåïŒ
linprocfs on /mnt/poolz/jail/crashplan/compat/linux/proc (linprocfs, local)
次ã«ãã¹ã¯ãªãããäœæãããã€ã³ãã«æ»ãããšã©ãŒãæ¢ããŸãã
ãã¹ãŠãé 調ã§ããã°ãç¶è¡ããŸãã
- ã¯ã©ãã·ã¥ãã©ã³ã眮ã
ååæã«è¡ããŸãïŒæåã®2ã€ã®ãã€ã³ããšåæ§ïŒïŒ
jls jexec <jail_id> /bin/tcsh
/ compat / linuxãã£ã¬ã¯ããªã«ç§»åããCrashplanãããŠã³ããŒããã解åããŠã€ã³ã¹ããŒã«ããŸãã
cd /compat/linux fetch http://download1.us.code42.com/installs/linux/install/CrashPlan/CrashPlan_3.7.0_Linux.tgz tar -xzf CrashPlan_3.7.0_Linux.tgz cd CrashPlan-install /compat/linux/bin/bash /compat/linux/CrashPlan-install/install.sh
ã©ã€ã»ã³ã¹å¥çŽãèªãã§åæããŸãã
ååãšããŠãããã©ã«ãã§ãã¹ãŠãæ®ãããšãã§ããŸãã äœããå€æŽãããå Žåã¯ãæ éã«å€æŽããŠãã ããïŒ
ã€ã³ã¹ããŒã«åŸã CrashPlan_3.7.0_Linux.tgzãã¡ã€ã«ãšCrashPlan-installãã£ã¬ã¯ããªã/ compat / linuxãã£ã¬ã¯ããªããåé€ã§ããŸãããããã¯äžèŠã§ãã
- run.confã¯ã©ãã·ã¥ãã©ã³ã®ç·šéã
nano /compat/linux/usr/local/crashplan/bin/run.conf
åè¡ã®æåã®æåSRV_JAVA_OPTS = "ããã³GUI_JAVA_OPTS ="ã®åŸã« insert
-Djava.nio.channels.spi.SelectorProvider = sun.nio.ch.PollSelectorProvider ã
ãã®çµæãåä¿¡ããå¿ èŠããããŸãïŒ
SRV_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -Xmx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0 -Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false" GUI_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanDesktop -DappBaseName=CrashPlan -Xms20m -Xmx512m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0 -Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false"
- javaãžã®ãã¹ãæ£ãããã¹ã«ä¿®æ£ããŸãã
ããã©ã«ãã§ã¯ãCrashplanã¯ãã¹/ usr / local / crashplan / jre / bin / javaã䜿çšããŸã
/usr/local/linux-sun-jre1.7.0/bin/javaããŒãããã€ã³ã¹ããŒã«ãããjavaãã¹ã«å€æŽããŸã
nano /compat/linux/usr/local/crashplan/install.vars
JAVACOMMONå€æ°ã§ ããã¹ã/usr/local/linux-sun-jre1.7.0/bin/javaã«å€æŽããŸã
ãããªæãTARGETDIR=/usr/local/crashplan BINSDIR=/usr/local/bin MANIFESTDIR=/usr/local/var/crashplan INITDIR=/etc/init.d RUNLVLDIR=/etc/rc.d INSTALLDATE=20150314 APP_BASENAME=CrashPlan DIR_BASENAME=crashplan JRE_X64_DOWNLOAD_URL=http://download.code42.com/installs/proserver/jre/jre-7u45-linux-x64.tgz JRE_I586_DOWNLOAD_URL=http://download.code42.com/installs/proserver/jre/jre-7u45-linux-i586.tgz JAVACOMMON=/usr/local/linux-sun-jre1.7.0/bin/java
- ããã©ãŒãã³ã¹ããã§ãã¯ããŸãã
ååæãã
/compat/linux/bin/bash /compat/linux/usr/local/crashplan/bin/CrashPlanEngine start /compat/linux/bin/bash /compat/linux/usr/local/crashplan/bin/CrashPlanEngine status
FreeNASãã
jexec <jail_id> /compat/linux/bin/bash /compat/linux/usr/local/crashplan/bin/CrashPlanEngine start jexec <jail_id> /compat/linux/bin/bash /compat/linux/usr/local/crashplan/bin/CrashPlanEngine status
èµ·åæã«ãOKãã«ãªããã¹ããŒã¿ã¹ã確èªãããšãã«å€ãã®PIDã衚瀺ãããå Žåããã¹ãŠãæ©èœããŠããŸãã
- Crashplanèªåå®è¡ã®ã»ããã¢ãã
ååæã«è¡ããŸãïŒ
jexec <jail_id> /bin/tcsh
èªåå®è¡ã¹ã¯ãªãããäœæããŸãã
nano /etc/rc.d/crashplan
ã¹ã¯ãªããããã¹ã#!/bin/sh # PROVIDE crashplan # REQUIRE LOGIN . /etc/rc.subr name=crashplan rcvar=crashplan_enable start_cmd="${name}_start" stop_cmd="${name}_stop" crashplan_start() { /compat/linux/bin/bash /compat/linux/usr/local/crashplan/bin/CrashPlanEngine start } crashplan_stop() { /compat/linux/bin/bash /compat/linux/usr/local/crashplan/bin/CrashPlanEngine stop } load_rc_config $name run_rc_command "$1"
crashplan_startããã³crashplan_stopã³ãã³ããè¡ã®æåã®äœçœ®ã«ããããšã確èªããŠãã ããïŒ
ã¹ã¯ãªãããå®è¡å¯èœã«ããŸãã
chmod +x /etc/rc.d/crashplan
rc.confã¹ã¯ãªããã®ç·šéã
nano /etc/rc.conf
è¡ãè¿œå ãã
crashplan_enable="YES"
ã«ãŒã«ã«æ²¿ã£ãŠ
sshd_enable="YES" hostname="crashplan"
SSHãæå¹ã«ããŠãã¹ãåãå°ããŸãã
- ä¿ç®¡ãã©ã«ããŒãååæã«ããŠã³ãããŸãã
ååæå ã®ãã©ã«ããæ¥ç¶ããæ¹æ³ã¯ã ããã¥ã¡ã³ãã«è©³ãã説æãããŠããŸã ã
Crashplanã®ãã¡ã€ã«ã·ã¹ãã ã®ã«ãŒãã¯jailïŒãã£ã¬ã¯ããª/ ïŒã®ã«ãŒãã§ã¯ãªãããã£ã¬ã¯ããª/ compat / linuxã«ãªãããšã«æ³šæããŠãã ãã !!!
ã€ãŸããããšãã°ã / mntãã£ã¬ã¯ããªã§ã¯ãªãã / compat / linux / mntãã£ã¬ã¯ããªã«æ¥ç¶ããå¿ èŠããããŸããããããªããšãCrashplanã¯ãã£ã¬ã¯ããªã衚瀺ããŸããã
ãŸãããã¹ããããããŒã¿ã»ãããç»é²ããå¿ èŠãããããšãå¿ããªãã§ãã ããïŒ
- SSHã®æåŸã®ä»äžãã
ã«ãŒãã®ãã¹ã¯ãŒããèšå®ããŸãã
passwd
éèŠïŒ FreeBSDïŒããã³FreeNAS jailïŒã§ã¯ãsshãä»ããã«ãŒããã°ã€ã³ã¯çŠæ¢ãããŠããŸãã sshçµç±ã§ãã°ã€ã³ããã«ã¯ããŠãŒã¶ãŒãè¿œå ãããïŒåœŒãwheelã°ã«ãŒãã«å«ããŠsuã«ããŠãã ãã ïŒã / etc / ssh / sshd_configãã¡ã€ã«ãç·šéããå¿ èŠããããŸãã ã»ãã¥ãªãã£ã®èŠ³ç¹ããèŠããšãæåã®ãªãã·ã§ã³ã¯ããèªã¿æžããã§ããŸãã
adduserã³ãã³ãã®äœ¿çšæ¹æ³ã¯èª¬æããŸãããã2çªç®ã®ãªãã·ã§ã³ã«ã€ããŠèª¬æããŸãã
sshd_configãã¡ã€ã«ã®ç·šéïŒ
nano /etc/ssh/sshd_config
æååãæ¢ããŠããŸã
#PermitRootLogin no #PasswordAuthentication no
ã«å€æŽããŸã
PermitRootLogin yes PasswordAuthentication yes
SSHãä¿åããŠå®è¡ããŸãã
service sshd start
ãŸãã¯åèµ·åïŒ
service sshd restart
ã¯ã©ãã·ã¥ãã©ã³ã®ã»ããã¢ãã
Crashplanãå®è¡ãããŠãããã©ããã確èªããå®è¡ãããŠããªãå Žåã¯å®è¡ããŸãã
æ¥ç¶ãšã»ããã¢ããèªäœã«ã€ããŠã¯ã ããããã¬ã¹ã³ã³ãã¥ãŒã¿ãŒã§ã®ã¯ã©ã¹ãã©ã³ã®äœ¿çšãã§è©³ãã説æãããŠããŸãã
誰ãããããå¿ èŠãšãããªããç§ã¯ãããæãããšãã§ããŸãã
ãããŠãæ¥ç¶åŸãçµæã確èªããŸãã
ãã£ãïŒ çšŒãã ïŒ
åèµ·ååŸããã¹ãŠãæ©èœããŸãïŒ
PS建èšçãªæ¹å€ãèãããã§ãã
PPSã¹ã¯ãªããã®ãšã©ãŒãä¿®æ£