Diff for /wikisrc/tutorials/how_to_use_fuse_in_netbsd.mdwn between versions 1.1 and 1.2

version 1.1, 2011/11/20 20:55:21 version 1.2, 2012/02/05 07:14:36
Line 1 Line 1
 **Contents**  **Contents**
   
 [[!toc]]  [[!toc]]
   
 #  Using the FUSE in NetBSD -current  #  Using the FUSE in NetBSD -current 
   
 #  Requirements  #  Requirements 
   
 You will need a current kernel and userland, and up to date pkgsrc-current (pkgsrc/filesystems)  You will need a current kernel and userland, and up to date pkgsrc-current (pkgsrc/filesystems) 
   
 #  Introduction  #  Introduction 
   
 The sources we refer to in this HowTo can exist anywhere on your system (normally in /usr)    The sources we refer to in this HowTo can exist anywhere on your system (normally in /usr)   
 That's why we use src/foo/bar (i.e src/lib/libpuffs) instead of full path.  That's why we use src/foo/bar (i.e src/lib/libpuffs) instead of full path. 
   
 #  Setup  #  Setup 
   
 Make sure that your Kernel configuration file contains the following option under filesystem  Make sure that your Kernel configuration file contains the following option under filesystem 
          
       file-system PUFFS          file-system PUFFS  
          
   
 And this under pseudo-devices  And this under pseudo-devices 
          
       pseudo-device putter        pseudo-device putter
          
   
 Add this to your /etc/mk.conf  Add this to your /etc/mk.conf 
          
       MKPUFFS=yes        MKPUFFS=yes 
          
   
 Build your kernel and update your userland.  Build your kernel and update your userland. 
   
 Make sure you run "make includes" in your source tree in src/sys if you at some point update your NetBSD sources so that you have proper header files.    Make sure you run "make includes" in your source tree in src/sys if you at some point update your NetBSD sources so that you have proper header files.   
 Most importantly the src/lib/libpuffs headers.  Most importantly the src/lib/libpuffs headers. 
          
       # cd src/sys        # cd src/sys
       # make USETOOLS=no includes        # make USETOOLS=no includes 
       # cd src/lib/libpuffs        # cd src/lib/libpuffs 
       # make USETOOLS=no includes        # make USETOOLS=no includes
          
   
 Check if libpuffs is properly installed  Check if libpuffs is properly installed 
          
       # cd src/lib/libpuffs        # cd src/lib/libpuffs 
       # make USETOOLS=no cleandir dependall        # make USETOOLS=no cleandir dependall
       # make USETOOLS=no install          # make USETOOLS=no install   
          
   
 Check if librefuse is properly installed.  Check if librefuse is properly installed. 
          
       # cd src/lib/librefuse        # cd src/lib/librefuse 
       # make USETOOLS=no cleandir dependall        # make USETOOLS=no cleandir dependall
       # make USETOOLS=no install        # make USETOOLS=no install
          
   
 Check if fusermount is up to date and installed  Check if fusermount is up to date and installed 
          
       # cd src/usr.sbin/fusermount        # cd src/usr.sbin/fusermount
       # make USETOOLS=no cleandir dependall        # make USETOOLS=no cleandir dependall
       # make USETOOLS=no cleandir install        # make USETOOLS=no cleandir install
          
   
 Check if puffs is up to date and installed  Check if puffs is up to date and installed 
          
       # cd src/usr.sbin/puffs        # cd src/usr.sbin/puffs
       # make USETOOLS=no cleandir dependall        # make USETOOLS=no cleandir dependall
       # make USETOOLS=no install        # make USETOOLS=no install
          
       This will compile and install mount_9p, mount_portal, mount_psshfs and mount_sysctlfs        This will compile and install mount_9p, mount_portal, mount_psshfs and mount_sysctlfs
          
   
 #  Install and Usage  #  Install and Usage 
   
 Mount_psshfs  Mount_psshfs 
   
 Mounting a remote filesystem over ssh  Mounting a remote filesystem over ssh 
          
        # mount_psshfs user@host:/path/to/directory /mountpoint         # mount_psshfs user@host:/path/to/directory /mountpoint 
        # umount /mountpoint         # umount /mountpoint 
                  
          
   
 Stuff from /usr/pkgsrc/filesystems.  Stuff from /usr/pkgsrc/filesystems. 
   
 Fuse-ntfs-3g  Fuse-ntfs-3g 
   
 Mounting a ntfs filesystem  Mounting a ntfs filesystem 
          
        # ntfs-3g /dev/device /mountpoint         # ntfs-3g /dev/device /mountpoint 
        # umount /mountpoint         # umount /mountpoint
          
   
 Fuse-obexftp  Fuse-obexftp 
   
 Mounting an obexfs filesystem (Make sure your bluetooth connection is established with your device)  Mounting an obexfs filesystem (Make sure your bluetooth connection is established with your device) 
          
        # obexfs -b 00:11:22:33:44:55 -B 10 /mnt/mountpoint         # obexfs -b 00:11:22:33:44:55 -B 10 /mnt/mountpoint 
          
   
 (Where the 00:11:22:33:44:55 is the address of your Bluetooth device )  (Where the 00:11:22:33:44:55 is the address of your Bluetooth device ) 
   
 Fuse-encfs  Fuse-encfs 
   
 Fuse-cryptofs  Fuse-cryptofs 
   
 Fuse-cddfs  Fuse-cddfs 
   
 Fuse-curlftps  Fuse-curlftps 
   

Removed from v.1.1  
changed lines
  Added in v.1.2


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb