-
Notifications
You must be signed in to change notification settings - Fork 520
Update readme and fix python tests #238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
1631a9f
006b1fa
dc950df
3a7bc12
f594fc2
ca7d695
865c92f
954fc37
bb51c78
a1d58ae
03ee1f8
56b6763
a91d12f
ab21324
f923cd0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,8 +69,9 @@ umount ~/mnt/sshfs | |
1. It is recommended to run SSHFS as a regular user (NOT as root). For this to work, the mount point | ||
must be owned by the user. Therefore, mounting into a `mount` or `mnt` directory you create | ||
inside your home directory is a good practice. | ||
1. If the username is omitted, SSHFS will use the local username. | ||
1. If the directory is omitted, SSHFS will mount the (remote) home directory. | ||
1. If the username (`user@` part of the command) is omitted, SSHFS will use the local username. | ||
1. If the directory is omitted (while keeping the colon `:` just before it), SSHFS will mount the | ||
(remote) home directory. | ||
1. If you need to enter a password, SSHFS will ask for it (actually, it just runs `ssh` which asks | ||
for the password if needed). | ||
|
||
|
@@ -89,7 +90,7 @@ and BSD (as opposed to MacOS), you will also need to install [libfuse][libfuse] | |
MacOS, you need [OSXFUSE][OSXFUSE] instead. Finally, you need the [Glib][Glib] library with | ||
development headers, which should be available from your operating system's package manager. | ||
|
||
To build and install, we recommend you use [Meson][Meson] (version 0.38 or newer) and | ||
To build and install, you must use [Meson][Meson] (version 0.38 or newer) and | ||
[Ninja][Ninja]. After extracting the `sshfs` tarball, create a (temporary) build directory and run | ||
Meson: | ||
|
||
|
@@ -177,11 +178,13 @@ change it there too. --> | |
``` | ||
For [sample test output, see here](test/README.md). | ||
1. Install `sshfs`: | ||
1. Normal method: | ||
1. Normal method. This installs `sshfs` at `/usr/local/bin/sshfs`, whereas your normal Linux | ||
distribution's executable is likely in `/usr/bin/sshfs`. | ||
```bash | ||
# To install | ||
sudo ninja install | ||
``` | ||
1. "Light" method. This technique simply creates a symlink to the executable in your `~/bin` | ||
1. Alternative method. This technique simply creates a symlink to the executable in your `~/bin` | ||
dir so your Linux distro's install still remain's intact and untouched. (For Ubuntu). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the case also when using ninja install. Your system's sshfs is in /usr/bin, ninja install into /usr/local/bin. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the ninja uninstall command? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know. But I also don't see the connection to what I'm saying...? If you install in /usr/locl, then your Linux distro's install remains intact and untouched. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Agreed. So, if someone wants to go back to using their Linux distro's version of For the "Alternative method" here, I show: A few options to uninstall the rm /usr/local/bin/sshfs Or: modify the path to include There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you tried running |
||
```bash | ||
# "Install" via a symlink. Note: ensure you are in the same dir as the new `sshfs` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why it's important to have example output? The tests clearly state if they fail or pass....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took my a lot of effort and time to get the tests to pass, as you can see from my ssh setup instructions, so I was never able to see what was being tested or what was supposed to happen until I had solved many problems and gotten the tests to run. This removes that mystery.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That being said, there's not a ton of value in it. It's just nice to see what's supposed to happen is all.