Mounting server directories under Linux

From Dreamwidth Notes
Revision as of 12:14, 8 April 2009 by 84.92.123.183 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Mostly taken straight from the Mac equivalent page.

This will let you mount a directory on your computer so you can transparently browse, edit, and save files on a server. Basically, it makes the files on the server a part of your filesystem while you are connected. Opening and saving things will be slower than native files, but not too horrible if you have a decent internet connection speed. You also probably wouldn't want to run any scripts from these directories natively, either, as they are unlikely to work properly. These instructions are for Ubuntu, but should be easily translatable.

Install sshfs

sudo apt-get install sshfs

or whatever your equivalent method is - you can use any command-line or GUI package manager.

Mounting

Make a directory to mount to:

mkdir dw

Then connect to your Dreamhack:

sshfs dh-user@hack.dreamwidth.net:  dw -oauto_cache,reconnect

This should prompt for your password. Once you have successfully connected, you should be able to access the files through the directory you mounted to, as if they were on your own computer (...but slower).

Disconnecting

To disconnect, you can use the command:

umount dw