Archive for October 2006
30
Auto mounting using SSHFS and your /etc/fstab file (in Ubuntu)
7 Comments | Posted by admin in Linux
Unfortunately, Ubuntu (Edgy and previous versions of Ubuntu) doesn’t seem to have a handy little script called mount.fuse which should come with the fuse-utils package.
This basically means it’s impossible to get Ubuntu to mount sshfs mounts upon startup (nicely), or using a nice and simple mount command like:
mount /my/sshfs/mount/point/
Anyway, personally, I find it really annoying. Yes, there are probably good reasons why they don’t include the script, but no I don’t care. Well, not until someone can tell me an easier/cleaner way of doing this.
First, you’ll need to:
sudo apt-get install sshfs
sudo apt-get install fuse-utils
Then, download mount.fuse (works with Edgy Eft Ubuntu, not sure about anything else!).. stick it in /sbin/ and then sudo chmod 777 /sbin/mount.fuse (or you could be more careful with those permissions).
You’ll want to add lines with this format to your /etc/fstab file:
sshfs#jrh@alf:/ /sshfs/alf fuse defaults,noauto,user 0 0
I’ve found there’s a lot of mount.fuse scripts out there, which expect the fstab lines to be in a different format..so it’s quite important to use the right mount.fuse with the right fstab formatting!
Finally, if this happens when trying to mount:
fusermount: mount failed: Operation not permitted
try this.. it’ll allow your normal user to run fusermount (as root iirc):
sudo chmod 4755 /usr/bin/fusermount
It continues to amaze me how few people actually use this method of mounting with sshfs…it just seemed to make sense to me! Please leave a comment if you have a problem with this so I can add more info if needs be.
Perhaps I’m a bit late in posting this, but version 6.10 of Ubuntu was released this week. I highly recommend you give it a go..there’s no need to install anything, you can boot the whole OS from the CD (and then choose to install if you like it). I’m using the live CD now to write this, neat huh?
Even if you can’t be bothered with that, I recommend you find out what all the fuss is about anyway:
Ubuntu is really starting to impress me quite a lot. This latest version comes with almost out of the box support for all those fancy 3d effects you may have seen on Youtube.
I’ve created a news site which aggregates the feeds of several web developers and web development oriented websites. You can check it out here:
The site uses the cool PlanetPlanet Feed Reader, highly recommended peice of software. It’s pretty cool because it’s simple and good!
If you’d like me to add your feed, please get in touch (johnrhunt_ATNOSPAM_gmail.com).
Finally, we can watch youtube and google video properly without stupid lag (or random browser crashing). Thanks to Adobe and the linux flash team!!
Get it here: Flash 9 beta for Linux.
Read about it here: Penguin SWF.
Having said that, it is still beta..although it’s more than likely much more stable than the current ’stable’ version.
Yup, Microsoft’s IE7 is finally out. You’ll notice every link here actually goes to www.getfirefox.com instead of Microsoft’s site. This is because there’s no point in getting IE7 as firefox has been able to do everything IE7 does and more, and still continues to. Check it out, it’s far more stable, you can get loads of cool extensions for it and it doesn’t support Microsoft.
Using IE7 also makes it much harder for people like me (web master guy), as we now have to make work arounds for yet another of Microsoft’s buggy browsers that don’t support well known standards. Can you imagine being a kettle maker and having to supply 6 different plugs for your kettle? Same thing.
Head over to Burning Burrito to check out Nick’s stupid blog.
