HOWTO set up sshfs on Ubuntu

ingredients

method

$ tar xzf fuse-2.4.2.tar.gz
$ cd fuse-2.4.2/
$ ./configure
$ make
$ export DESTDIR=/tmp/fuse_2.4.2_i386
$ umask 022
$ fakeroot make -e install
$ cd /tmp/fuse_2.4.2_i386
$ rm dev/fuse
$ mknod dev/fuse -m 0666 c 10 229 (not required if using "udev")
$ mkdir -m755 DEBIAN
..now edit DEBIAN/control to look like this:
Package: fuse
Version: 2.4.2
Architecture: i386
Maintainer: Your Name <youraccount@yourdomain>
Description: http://fuse.sourceforge.net/
 http://fuse.sourceforge.net/
..and DEBIAN/postinst to look like this:
#!/bin/sh
/sbin/depmod -a
/bin/chmod 4755 /usr/local/bin/fusermount
..now reset your umask and continue:
$ chmod +x DEBIAN/postinst
$ sudo chown root.root -R .
$ cd ..
$ dpkg -b fuse_2.4.2_i386
$ sudo dpkg -i fuse_2.4.2_i386.deb
..ensure that /usr/local/lib features in your /etc/ld.so.conf and finish:
$ sudo ldconfig

Try out the FUSE examples to check that your FUSE installation is good.

Now, for sshfs..

$ tar xzf sshfs-fuse-1.3.tar.gz
$ cd sshfs-fuse-1.3/
$ sudo apt-get install libglib2.0-dev
$ ./configure
$ make
$ export DESTDIR=/tmp/sshfs-fuse_1.3_i386
$ umask 022
$ make -e install
$ cd /tmp/sshfs-fuse_1.3_i386
$ mkdir -m755 DEBIAN
..now edit DEBIAN/control to look like this:
Package: sshfs-fuse
Architecture: i386
Version: 1.3
Maintainer: Your Name <youraccount@yourdomain>
Description: http://fuse.sourceforge.net/sshfs.html
 http://fuse.sourceforge.net/sshfs.html
..now reset your umask and continue:
$ sudo chown root.root -R .
$ cd ..
$ dpkg -b sshfs-fuse_1.3_i386
$ sudo dpkg -i sshfs-fuse_1.3_i386.deb
..now to test all that hard work:
sshfs yourhost: /path/to/your-mount-point
ls /path/to/your-mount-point
fusermount -u /path/to/your-mount-point

$Revision: 1.2 $, $Date: 2006/03/07 08:37:16 $

Valid HTML 4.01 Transitional