LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-18-2020, 01:53 AM   #1
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Rep: Reputation: 8
Edit text remote file via WEB


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?
 
Old 09-18-2020, 02:12 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,708

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
Webmin?
 
Old 09-18-2020, 02:31 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,258
Blog Entries: 3

Rep: Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713
Or a web-based SSH client runnig nano on the remote system. There are a few options but many require some setup on the remote machine first.
 
Old 09-18-2020, 02:41 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,691

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
if I remember well even midnight commander was able to edit a file on a remote host, but obviously it should be configured (to be able to do that).
 
Old 09-18-2020, 05:45 AM   #5
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
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".
 
Old 09-18-2020, 05:50 AM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,258
Blog Entries: 3

Rep: Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713
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.
 
Old 09-18-2020, 09:38 AM   #7
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Yes, its possible and easy to implement. But what if the file should be edited from tablet or phone?
 
Old 09-18-2020, 10:41 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,691

Rep: Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274Reputation: 7274
Quote:
Originally Posted by mackowiakp View Post
Yes, its possible and easy to implement. But what if the file should be edited from tablet or phone?
I would say you need to upload/download files and edit locally.
 
Old 09-18-2020, 11:53 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by mackowiakp View Post
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.
 
Old 09-18-2020, 12:47 PM   #10
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
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.
 
Old 09-18-2020, 04:47 PM   #11
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,573

Rep: Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533Reputation: 2533

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.

 
Old 09-21-2020, 01:14 PM   #12
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
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.
 
Old 09-21-2020, 01:24 PM   #13
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,258
Blog Entries: 3

Rep: Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713
Quote:
Originally Posted by mackowiakp View Post
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.
 
Old 09-21-2020, 01:36 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by mackowiakp View Post
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?
 
Old 09-21-2020, 01:46 PM   #15
mackowiakp
Member
 
Registered: Jun 2014
Location: Poland/Gdynia
Distribution: Mageia 9, SH4, Debian
Posts: 367

Original Poster
Rep: Reputation: 8
Isnt HTTPS with user/pass auth enough secure?
 
  


Reply

Tags
editor, ubuntu, web


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grep text from remote log file, enter text and rename on remote server vanish78 Linux - Newbie 1 07-30-2012 05:32 PM
[SOLVED] Bash command to 'cut' text into another text file & modifying text. velgasius Programming 4 10-17-2011 04:55 AM
Delete line of text from text file via shell? zizou86 Programming 3 01-13-2010 11:25 AM
How to parse text file to a set text column width and output to new text file? jsstevenson Programming 12 04-23-2008 02:36 PM
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration