Want to play around with sshfs? Sshfs allows you to mount a filesystem of any computer you have ssh access to.
This is all you need to do after booting your PC or Mac with the Ubuntu 5.10 (breezy badger) live cd:
$ wget -O - http://nerdnotes.org/scripts/sshfs.sh.php | sudo sh
Scared to just execute a shell script from the web?
Check it out with:
$ wget -O - http://nerdnotes.org/scripts/sshfs.sh.php | less
#!/bin/sh
#
# LiveCD demo script for playing around with sshfs
#
# Run this script after a fresh boot of the ubuntu 5.10
# (Breezy Badger) live cd.
#
# Copyright (C) 2006 brammeleman@nerdnotes.org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# update sources.list for using the universe repositories
TMPFILE=`mktemp`
sed '/universe/s/# //' /etc/apt/sources.list > $TMPFILE
mv /etc/apt/sources.list /etc/apt/sources.list.old
mv $TMPFILE /etc/apt/sources.list
chmod go+r /etc/apt/sources.list
apt-get update
# install sshfs packages
apt-get -y install sshfs
# load kernel module
modprobe fuse
# instead of adding ubuntu to the 'fuse' group
# just...
chgrp ubuntu /usr/bin/fusermount
chmod u+s /usr/bin/fusermount
# create mount point
if [ ! -d /home/ubuntu/remotefs ]
then
echo Creating mountpoint remotefs
su - ubuntu mkdir /home/ubuntu/remotefs
fi
# usage hint
echo To mount the stuff directory on example.com, use:
echo
echo \$ sshfs user@example.com:stuff remotefs
echo
echo
echo To unmount:
echo
echo fusermount -u remotefs
exit 0
kijk DAT is nou handig!!!
meteen maar gebruikt
Hi Thomas,
Great isn’t it!?
You can do a lot of stuff just using an Ubuntu Live CD as a starting point. I have some scripts in the same directory. dapperxgl.sh is an attempt to demonstrate Xgl with the Dapper Drake live cd (flight 5), the next Ubuntu version. It manages to install the required packages but then it enters a loop in which the X server keeps on crashing. This is just beyond the limits of what’s currently possible with these kind of live scripts. For nice demo of Xgl, just download an cd image from kororaa.org.
I’ve been searching for a fuse port for Mac OS X.
Currently Linux 2.4.x, 2.6.x and FreeBSD are supported. Let’s keep an eye on http://fuse.sourceforge.net/wiki/index.php/OperatingSystems !