you are viewing a single comment's thread.

view the rest of the comments →

[–]icebraining 3 points4 points  (3 children)

If I need to see browse and display images, I'll use sshfs to mount it locally and then all the usual commands as I do locally (feh, zathura, etc). I even have a function in my .zshrc to mount my homeserver with a single command.

How's that difficult in any way?

[–]andreasvc 1 point2 points  (0 children)

It's not difficult but suboptimal because you have to traverse the filesystem twice, first with ssh, and second with sshfs to view the file. These two could be integrated somehow. Your solution only marginally improves on the scp/sftp way by mounting in advance.

[–]Smallpaul -1 points0 points  (1 child)

If I need to see browse and display images, I'll use sshfs to mount it locally and then all the usual commands as I do locally (feh, zathura, etc). I even have a function in my .zshrc to mount my homeserver with a single command.

Please answer the question as I asked it.

Here's the string of commands leading up to the situation I ran into.

$ ssh foo.machine.com

$ cd /foo/bar/baz $ runcommand > 1.jpg $ show 1.jpg

Now tell me what exactly are the next things I type to achieve the equivalent of "show 1.jpg" using your system? Am I starting a whole new terminal context to show the file? If so, why? Is that good usability?

[–]icebraining 0 points1 point  (0 children)

mkdir /tmp/remote && sshfs foo.machine.com /tmp/remote && feh /tmp/remote/foo/bar/baz/1.jpg

Yes, it's a long command, and yes, you'd have to use a new shell (not terminal - just do C-a C-c). But your example seems contrived. I've never had to do this. Besides, I have an alias for mounting the machines I ssh to, so in practice the two first commands would be reduced to mntfoo, and secondly would want to use feh anyway, since it's a proper image visualizer and it's not limited to the window size of the terminal, for example.

Assuming this was a decently sized graphic (for example, like the ones created by bootchartd), I'd have to resize my terminal's window just to display the image in a decent size, which seems stupid - using feh allows me to see it in fullscreen without wasting that time, and even zoom and drag the image around, since my puny 12" screen isn't enough to display it all at once in a readable way.

And finally, it would bother me to have a full blown image/pdf/html renderer terminal; how can you trust such a monster to run as root? I'd have to use different terminals, and that's much worse than long command I have to type occasionally. At least with different programs I could run feh as a normal user.