coLinux(Debian)ã«sshfsãã¤ã³ã¹ãã¼ã«ãã¦ãªã¢ã¼ããµã¼ãã®ãã¡ã¤ã«ãç´æ¥ç·¨éãã(ã¤ã³ã¹ãã¼ã«ã¡ã¢)
shfsが超便利! - 2nd lifeãã
shfsã§SSHã§ãã°ã¤ã³ã§ãããµã¼ãã®ãã£ã¬ã¯ããªããã¦ã³ããã¦sambaã§å
±æãã¦ãã«ããã«ããã¨ã§ãããããã§ãã
ã¨ã¦ã便å©ããâ¦ã¨ãããã¨ã§è©¦ãã«ã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ãã
apt-cache search ã§æ¤ç´¢ããã¨sshfsã¨ããåã(?)ãã®ããã£ãã®ã§ãã¡ããã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ãã
sshfsã¯fuseã¨ããããã±ã¼ã¸ãå©ç¨ãã¦ããã®ã§ãããèªåã§ã³ã³ãã¤ã«ãã¦ãããªãã¨ãããªãããã§ãã
ä»åã®ç°å¢ã¯
- http://www2.starcat.ne.jp/~kanocl/colinux/colinuxscratch.htmãåèã«ãã¦ã¤ã³ã¹ãã¼ã«ããDebian
- coLinux-0.6.4
ã¤ã³ã¹ãã¼ã«ã¡ã¢
# ã¾ãã¯kernelãæ´æ° apt-get update apt-get dist-upgrade # å¿ è¦ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã« apt-get install kernel-package apt-get install module-init-tools apt-get install wget apt-get install fuse-source apt-get install sshfs apt-get install ssh apt-get install module-assistant apt-get install gcc-3.4 # gcc ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc # fuse-sourceãããã«ã¤ã³ã¹ãã¼ã«ããã¦ããã¯ã cd /usr/src # ç¾å¨å ¥ã£ã¦ãããã¼ã¸ã§ã³ã®kernel-source wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.tar.gz wget http://nchc.dl.sourceforge.net/sourceforge/colinux/coLinux-0.6.4-src.tar.gz tar zxf linux-2.6.11.tar.gz tar zxf coLinux-0.6.4-src.tar.gz tar jxf f*.bz2 ln -s linux-2.6.11 linux cd linux patch -p1 < ../coLinux-0.6.4/patch/linux cp ../coLinux-0.6.4/conf/linux-config .config make-kpkg --append-to-version '-co-0.6.4' modules_image cd .. dpkg -i *.deb # fuseã°ã«ã¼ãï¼ããã©ã«ãï¼ã«sshfsã使ãã¦ã¼ã¶ã追å ãã vi /etc/group
ããã§sshfsã使ããã¨ãåºæ¥ãããã«ãªãã¾ãã
ä¾:
sshfs sshusr@remotehost:/home/htdoc /mnt
ãã¦ã³ããããã£ã¬ã¯ããªã¯sshfsã³ãã³ããå®è¡ããã¦ã¼ã¶ããè¦ããªãã®ã§ãããè¨å®ãããããã§ãã(from:http://datafarm.apgrid.org/document/html/ja/user/samba-gfarmfs.html)
Samba ãçµç±ã㦠FUSE ã使ã£ããã¦ã³ããã¤ã³ãã«ã¢ã¯ã»ã¹ããã«ã¯ï¼ FUSE ã®ã»ãã¥ãªãã£ã«é¢ããè¨å®ãå¿ è¦ã«ãªãã¾ãï¼
FUSE 2.2.1 以åã§ã¯ï¼ä»¥ä¸ã® /etc/fuse.conf ã®è¨å®ã¯å¿ è¦ããã¾ããï¼(è£è¶³ãã覧ãã ããï¼)
/etc/fuse.conf ãä½æãï¼ä»¥ä¸ã®ããã«ç·¨éãã¾ãï¼ FUSE ã®ã¤ã³ã¹ãã¼ã«ç´å¾ã¯ï¼ãã®ãã¡ã¤ã«ãããã¾ããï¼/etc/fuse.conf user_allow_other
å¾ã¯sambaãã¤ã³ã¹ãã¼ã«ãã¦è¨å®ããã ãã§Windowsã§sshfsã§ãã¦ã³ããããã£ã¬ã¯ããªãè¦ããã¨ãåºæ¥ãã¨æãã¾ãã
ssh-agentãªã©ãå©ç¨ããã¨sshã§ã®ãã°ã¤ã³ãç°¡åã«ãããã¨ãåºæ¥ãããã«ãªããããªã®ã§ãããã¾ã 試ãã¦ãã¾ããã