Self hosted Web based code editors?

Red Squirrel

No Lifer
May 24, 2003
67,519
12,184
126
www.anyf.ca
Anyone know of any decent code editors that are self hosted and run from a browser? Ideally something php based that I can just drop on the web server and run. Ok if it needs a database for settings etc. Basically I'm looking for something like Kate or Notepad++ or something along those lines, but that runs in a web browser, and can edit/create code on the local server. Don't need anything too fancy, syntax highlighting and tabs mostly. Even tabs could maybe do without as I can just use browser tabs to open multiple instances. Is there such a thing?

I googled real quick but only finding cloud based ones but I want this to be 100% local. Also open to other solutions that I may not be considering. Basically this is for work. Workstation is windows and the server is Linux, and I need a way to write code and immediately see the changes in dev, I don't want to have to ftp each file each time. Normally I would do a samba or NFS share but it's against corporate policy, we don't even have home drives anymore, it's a little much. That's another reason I rather code straight on the server, at least that gets backed up. I tried to use a code editor via X11 over SSH, but that's bloody slow.
 

Red Squirrel

No Lifer
May 24, 2003
67,519
12,184
126
www.anyf.ca
Icecoder seems to be exactly what I need. I tested it on my own home environment and seems to work, on the work server it can't seem to write to anything, I think they have selinux or something setup so I may need them to fix it so that scripts can write to folders. I made a ticket so they can check that. I hope this works as I've been wanting to work on projects at work to make things better in the department but I just don't have a good coding workflow due to not having full access to the server and client infrastructure like at home.
 

purbeast0

No Lifer
Sep 13, 2001
52,871
5,742
126
Are you trying to load up a webapp (which is the editor) via http that is hosted on your server, into a browser on your local machine (like in chrome) , open and edit a file located on the server, and save it back to the server?

If so, that I am like 99% sure that is not possible. You are not able to edit anything via the web like that, even if it is a file located on the same machine the webserver is running. I believe it would open up a huge security issue and just is not allowed to be done via web protocols.

It works on your local machine most likely because you are accessing it from localhost or something and it knows the same machine accessing it in the browser is the same machine that the file also resides on.

I do a lot of coding remotely and VSCode has a way you can remote into a server. That is how I do my day to day work.
I log onto my AWS workstation, then I load up an EC2 instance inside of there, and then I run VSCode inside of my AWS workstation and inside of VSCode (using the remote stuff built into it) I ssh into my VM and edit files on my EC2 instance. I then run all of my apps from the EC2 instance and can hit them in my browser on my AWS workstation. It takes a bit of configuration but once I had it all setup it's super intuitive and easy. And I don't have to run anything like x2go or anything to develop on my EC2 instance.


Would something like that work for you?
 

Red Squirrel

No Lifer
May 24, 2003
67,519
12,184
126
www.anyf.ca
I found an editor and it does in fact work though it's a bit flaky. Unfortunately on the work server it doesn't and it does not sound like they're willing to fix the permissions to allow it (I don't have root access).

I tried SSHFS but it does not let me map anything outside my home folder, it might be a limitation of the Windows implementation. Someone at work mentioned WinSCP so I might research that more. I thought that was just a way to FTP stuff though.

Worse case scenario any tool that will let me sync files will work too, at least I just hit sync and wait rather than have to manually upload each file I changed. I'll have to play with the options further when I get the chance.

I'm trying to convince them to just enable Samba on the server and block it at the firewall. I can use a SSH tunnel to map the share. Will be secure that way.
 

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,101
126
Don't really know what access rights you have on Linux server. Only FTP and SSH?

I''m not Linux expert either.

Saw this

==
Oops, already mentioned by purbeast0

Also


versions
 
Last edited:

purbeast0

No Lifer
Sep 13, 2001
52,871
5,742
126
I found an editor and it does in fact work though it's a bit flaky. Unfortunately on the work server it doesn't and it does not sound like they're willing to fix the permissions to allow it (I don't have root access).

I tried SSHFS but it does not let me map anything outside my home folder, it might be a limitation of the Windows implementation. Someone at work mentioned WinSCP so I might research that more. I thought that was just a way to FTP stuff though.

Worse case scenario any tool that will let me sync files will work too, at least I just hit sync and wait rather than have to manually upload each file I changed. I'll have to play with the options further when I get the chance.

I'm trying to convince them to just enable Samba on the server and block it at the firewall. I can use a SSH tunnel to map the share. Will be secure that way.
Have you looked into VSCode as I mentioned? It sounds like it will do exactly what you are trying to do and does it very easily.
 
Reactions: mxnerd

Red Squirrel

No Lifer
May 24, 2003
67,519
12,184
126
www.anyf.ca
Have you looked into VSCode as I mentioned? It sounds like it will do exactly what you are trying to do and does it very easily.

Did not get a chance yet but will look at it when it's quiet. I always had the impression that was strictly for .net stuff and was a full blown IDE but I can look at it.
 

purbeast0

No Lifer
Sep 13, 2001
52,871
5,742
126
Did not get a chance yet but will look at it when it's quiet. I always had the impression that was strictly for .net stuff and was a full blown IDE but I can look at it.
Nah VSCode is an IDE for everything. I've been using it for like 5+ years now and I have never done .NET. I've been doing Java, Javascript, html, and css stuff in it the whole time.
 

Red Squirrel

No Lifer
May 24, 2003
67,519
12,184
126
www.anyf.ca
Looks like WinSCP may work, it lets you edit files directly from the interface, so that may work ok. Might still try VScode though just to see if it's even better.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |