Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am looking for most simple/lightweight WEB based tool for edit (without necessity to install whole WEB tools) text file (UTF-8 encoded) on remote Linux based node. It could be something like https://github.com/kalcaddle/KodExplorer but much less complicated that is less code because limited resources on target device. It needs to be installed on small home automation device (ARM7, single core), based on Debian/Ubuntu. I meat long time ego such tool but I dont remember the name. Maybe somebody use such app?
Of course. vi/nano over ssh, midnight commander over ssh (WORS!) etc. But I am looking for solution dedicated for "non-computer" people. Lets say "housewife proof".
Have you tried LibreOffice's option to open and edit a remote file? It should be there somewhere in the File menu? The only trick with that approach would be ensuring that the file gets saved as text and not ODF or one of the many DOCX variants.
Yes, its possible and easy to implement. But what if the file should be edited from tablet or phone?
I'd strongly recommend you NEVER allow this for anything that matters. You're talking about giving read/write to (essentially) anyone who can access that web page. From a security standpoint, that is horrible.
Please think carefully about what you're doing and evaluate the reasons why you want to do it. Downloading and re-uploading (as pan64 recommended), is FAR better.
What TB0ne and pan64 said: this is for convenience and if you can conveniently edit a text file on your system from the Internet, so can a bad actor. At minimum, it opens a door into your network that does not need to be opened. Maybe put the file in a cloud service and edit from there or as suggested, download and edit then upload.
mackowiakp, please clarify exactly what it is you are wanting to do, including who would be editing what and why?
If you have a home network with a local server and suitable authentication in place there is nothing wrong with allowing remote editing of files by other machines in that network.
Even allowing access via the Internet, again with appropriate security precautions in place, is not a problem.
I don't understand the download/modify/upload posts - any such system needs security too - and is not a magic bullet, but certainly would be a pain in the arse for the users, making them less likely to want to bother with editing the files.
So in short words. I made - by adding some software I wrote - from a Linux-based satellite receiver, a radio receiver streaming Internet radios. It works independently of the Sat function.
The software contains a text file with lines containing the name of the internet station and the URL to it. And it is this file (for example) I would like to be easy to edit. Such editing would not allow access to any file other than those indicated.
And once I saw an application that allowed my dad to edit via WEB. It had the form as below.
Code:
name_of_application file1 file2 file3 # set of files for editing
In the displayed WEB page, a column with files to be edited was displayed on the left side, and the screen rest was occupied by the file you clicked on in the list in the right column.
It was definitely a project from GitHub. But I don't remember his name. Hence my question.
It was definitely a project from GitHub. But I don't remember his name. Hence my question.
That will require a lot of detective work. There are very, very many projects there in various stages of completion there and not a proper index or catalog.
If he will be sitting at a GNU/Linux machine, it would be easy to make an icon which would launch an SSH session with a restricted shell and an easy editor like nano. Or sshfs could be used to mount a specific remote directory containing copies of the files and that way the graphical editor of your choice could be used. For that you'd have to have incron watching those copies.
However, since you mention tablet or phone that makes the task worlds more difficult. You might just have to search in the search engines for "web-based linux editor" or similar and then slog through the results, keeping note of what is worth a second look.
So in short words. I made - by adding some software I wrote - from a Linux-based satellite receiver, a radio receiver streaming Internet radios. It works independently of the Sat function. The software contains a text file with lines containing the name of the internet station and the URL to it. And it is this file (for example) I would like to be easy to edit. Such editing would not allow access to any file other than those indicated. And once I saw an application that allowed my dad to edit via WEB. It had the form as below.
Code:
name_of_application file1 file2 file3 # set of files for editing
In the displayed WEB page, a column with files to be edited was displayed on the left side, and the screen rest was occupied by the file you clicked on in the list in the right column. It was definitely a project from GitHub. But I don't remember his name. Hence my question.
Sorry, but no...ANY file you put out for editing is an attack vector into your system, and if you truly believe that only your dad is going to be able to edit that file, you're mistaken. Again, this is *ABSOLUTELY HORRIBLE* in terms of security.
But why don't you approach the problem in a more secure way? Why not have your dad email a specific address, and you have a local program that checks that email address for emails from your dad, and simply download the mail-body into that file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.