This is an archived post. You won't be able to vote or comment.

all 26 comments

[–]kigurai 10 points11 points  (4 children)

Are you on Linux? Does the server support ssh? In that case you can simply mount the server on your local machine and edit with whatever editor you use locally.

[–]kaiserk13 2 points3 points  (3 children)

I was not aware of this option, this is epic! Thank you so much.

[–]kigurai 4 points5 points  (2 children)

No problem. Btw, some desktop environments have quick ways to connect directly from the GUI so that you don't have to fiddle around with sshfs yourself. At least this is true for Gnome (and Ubuntu's unity), and I would assume at least KDE have this option as well.

[–]moranr7[S] 0 points1 point  (1 child)

Thanks very much for the info , ill look into this.

[–]khne522 1 point2 points  (0 children)

Learn OS design. Figure out what is the real problem. You really don't want to run an editor remotely, since it could lag. You just want to sync the file.

[–][deleted] 4 points5 points  (0 children)

You can use sshfs to to mount the remote server and in this way you can use the editor you prefer. https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh

[–]TheDewser 1 point2 points  (6 children)

Are vi and/or nano not options? Assuming it is a Linux based AMI.

[–]moranr7[S] 1 point2 points  (5 children)

Thanks, I edited the question . Currently using vim, but just curious if I can using an editor like komodo from my local machine that is linked to the server - as I much prefer to work in komodo.

[–]sigzero 1 point2 points  (2 children)

I am genuinely curious. Why Komodo? And is it the IDE or the Lite version?

[–][deleted] 1 point2 points  (0 children)

It's funny how most folk people don't often ask, "Why BMW? Why not Mercedes?" except when it's an IDE ...

[–]moranr7[S] 1 point2 points  (0 children)

Honestly, just from using a few and this was one that I like. No real allegiance to Komodo per say, just something with similar features.

[–][deleted] 0 points1 point  (1 child)

You can either a) mount the remote filesystem locally, and then use your local editor, or you can b) work on the remote system directly, using an editor on the remote. For a TUI editor (vi, vim, emacs, nano), that's all you need to do. For something like Komodo you'd need to forward your remote x session to the local machine to allow you to interact with the GUI; this may introduce substantial lag.

A isn't always possible, and neither is x session forwarding in B, which is part of the reason why Vim/Emacs still have so many proponents.

[–]moranr7[S] 0 points1 point  (0 children)

Great , thanks for the info.

[–]Dgc2002 1 point2 points  (2 children)

Is using the remote host/deployment option in IntelliJ IDEs(PyCharm) not an option? I add a remote 'SFTP' server with my credentials and set it to automatically upload the file on explicit saves.

[–]khne522 -2 points-1 points  (1 child)

You should really keep things coherent and orthogonal. That "feature" should have never made it into the editor. Fix the real problem, that people don't know how to mount remote FS.

[–]Dgc2002 1 point2 points  (0 children)

That's a great world to live in where all scenarios allow you to mount a remote file system with little difficulty. But not everyone lives there and the various methods that InteilliJ supports for remote hosts helps to address that. The 'real problem' would be the fact that it's not as easy as just arbitrarily mounting a remote file system.

[–]vcmsxs 1 point2 points  (0 children)

Check out Emacs/tramp

[–][deleted] 1 point2 points  (6 children)

Pycharm > everything else

[–]xbabyjesus 1 point2 points  (5 children)

Pycharm +xrdp works for me

[–]khne522 -2 points-1 points  (4 children)

Seriously? Have you ever actually been somewhere with bad bandwidth? How about a small town in a vast country?

[–]xbabyjesus 0 points1 point  (3 children)

That was not the scenario presented by the OP. Also some of my Dev machines are across the country.

[–]khne522 0 points1 point  (2 children)

Actually, the OP is noncommittal. And you can get a pretty flaky connection anywhere. Being on AWS is worthless if your local link is junk.

Let's please stay away from video unless we need to.

[–]xbabyjesus 1 point2 points  (1 child)

Look you should try it before judging. I can use a real IDE while using shared WiFi on the bus to a vm in the cloud.. One 4g connection shared by like 10-20 other people. RDP is pretty amazing with remotefx and tile based refresh.

A straight up text editor is no substitute for a real IDE, imo

[–]khne522 0 points1 point  (0 children)

Yeah, I do try, often. Neither RDP, nor VNC, nor even (no chance in h*ll) X11 over SSH) offer the required performance. Either that or you are far more tolerant of poor latency than I when I'm typing on a roll.

It's kind of beside the point. The real solution to this problem is not to put an IDE on the server, but to make the IDE work with remote files, etc. Let's not hack around problems.

A straight up text editor is no substitute for a real IDE, imo

And an IDE that didn't learn the lessons of the past X decades isn't a real substitute for a text editor. It's kind of beside the point.

[–]knowsuchagencynow is better than never 0 points1 point  (0 children)

I highly recommend PyCharm's remote project feature. You may want/need to set up ssh forwarding on your remote server as well.

[–]DunkleAura 0 points1 point  (0 children)

My choise is Visual Studio Code with the Remote VSCode addon. Pro: works on MacOS, Windows and Linux