[SOLVED] Text Editor for files on a server

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Text Editor for files on a server

Postby hankivy » Mar 25th, '17, 06:03

I have a Mageia 5 system using the KDE desktop, and a server on the Internet, with files that I wish to edit locally, using ftp, (or scp, sftp, etc.) to retrieve and update the files. I could run kate on the server using my local system as an X11 server, but it runs very slowly.

What do you recommend I use? :?:

P.S. I tried gedit, but the gedit window does not have the normal "File", "edit", "View", ..., "Help" tabs.
Last edited by hankivy on Mar 29th, '17, 05:42, edited 1 time in total.
hankivy
 
Posts: 128
Joined: May 19th, '14, 20:36

Re: Text Editor for files on a server

Postby xboxboy » Mar 25th, '17, 09:22

How I do it is in dolphin I connect to the server via sftp, then I can browse the file system and edit the files locally using the local programs. Shout out if you need more info.
xboxboy
 
Posts: 401
Joined: Jun 2nd, '13, 06:41

Re: Text Editor for files on a server

Postby hankivy » Mar 25th, '17, 23:16

I need more specificity

What buttons do you click to get Dolphin to connect to the server via sftp? :?:

I can run "sftp me@server.com" in a Konsole window, and connect
But that does not seem to offer an useful options in my Dolphin window.
The Dolphin Help Handbook does not seem to mention "ftp".
hankivy
 
Posts: 128
Joined: May 19th, '14, 20:36

Re: Text Editor for files on a server

Postby doktor5000 » Mar 26th, '17, 01:49

Click in the left panel on network (or enter remote:/ in the adress bar) and then add a new connection using sftp.
You can also use directly fish:/ or sftp:/ kio slaves via the adress bar. See also https://www.maketecheasier.com/quick-ea ... io-slaves/ for an overview over the kio slaves.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Text Editor for files on a server

Postby xboxboy » Mar 26th, '17, 05:19

I agree regarding the Dolphin handbook, bit thin on info.

Seems the Suse handbook is better: https://www.suse.com/documentation/sled ... twork.html

Given you can connect via CLI, then you've got all the credentials right. I had trouble with dolphin in a previous version, but as far as I'm aware the current upto date mageia version 4.14.3, is fine for me.

Once I learnt how to connect the boxes through my house with sftp and dolphin, there's been no looking back. I even use dolphin and sftp to move stuff around with my android phone. Well, the bits that I don't use nextcloud to manage :)

Sing out if you're still stuck.
xboxboy
 
Posts: 401
Joined: Jun 2nd, '13, 06:41

Re: Text Editor for files on a server

Postby hankivy » Mar 26th, '17, 23:05

Still no success. :(

Trials:
Looked at documentation on Mageia, and Suse. On Mageia, the "help" button on the "Network Folder Wizard" window was very good.
But neither distro offered access to diagnostic messages in the event of a failure.
I ran Dolphin from the GUI window.
I ran Dolphin from the command line, so any ERROROUT would appear in my terminal window. Nothing appeared there.
I tried both the fully qualified host name for the server, and its TCP/IP address.
And filled in all of the fields as described in the documentation.
The Dolphin (or KDE) version is 4.14.3.
hankivy
 
Posts: 128
Joined: May 19th, '14, 20:36

Re: Text Editor for files on a server

Postby isadora » Mar 27th, '17, 09:05

The solutions given by doktor5000 work for me since i was born. :)
E.g. fish://ip-address-host
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Text Editor for files on a server

Postby hankivy » Mar 27th, '17, 19:34

Thank you, one and all. :D

Using FISH as the protocol in the "Network Folder Wizard" window made it work.
hankivy
 
Posts: 128
Joined: May 19th, '14, 20:36

Re: Text Editor for files on a server

Postby isadora » Mar 27th, '17, 19:45

Please hankivy, don't forget to mark the topic [SOLVED].
You can do so, by editing the subject/title in the first message in this topic.
Write [SOLVED] to the left of subject/title, thanks ahead. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Text Editor for files on a server

Postby hankivy » Mar 27th, '17, 20:19

While the remote network files are listed in Dolphin, I am still working with my original question.
What I have used so far is awkward. Later I will post a reply with the best I have found and flag the topic with [SOLVED].
hankivy
 
Posts: 128
Joined: May 19th, '14, 20:36

Re: Text Editor for files on a server

Postby doktor5000 » Mar 27th, '17, 22:02

Well, maybe you want to rephrase your original question. Neither gedit or any X11 editor are suitable for a "server".
Usually people will use a CLI editor, like vi, emacs, nano, joe, mcedit or whatever you prefer.

And establishing connections to a server via ssh, sftp or other means is not part of the tasks a text editor should perform.
If you establish a connection via one of the mentioned kio slaves, that should net you a bookmark in the places panel in dolphin, which is also visible from the regular KDE filepicker dialog.
Click on it and you can transparently oen the files from the remote server as if they were local files.

Otherwise you may want to look into sshfs to mount some remote folder via ssh as a local mountpoint. See e.g. https://www.cyberciti.biz/faq/how-to-mo ... -on-linux/ or https://wiki.archlinux.org/index.php/SSHFS for some examples
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Text Editor for files on a server

Postby hankivy » Mar 29th, '17, 05:42

It is solved. Thank you, again. :D :D :D

The following might be flawed, but it is my best memory. [Some times, I set a meaningful config. value, or something else with persistence; and forget it.]

Open dolphin. In the left column, there are two lists: "places" and "devices".
In "places", select "Network". In the right column, there will appear items like: "Network", "Samba Shares", and "Add Network Folder".
Select "Add Network Folder", and then click the magnifier icon with the label "Find". A new text field will appear.
In the new text field, enter something like "fish://username@hostname", and type the Enter key.

My memory is fuzzy. Some where I was given a chance to enter a name to call that network folder. I did so.
The name I gave then appeared in the left column under places.
Last edited by hankivy on Aug 25th, '17, 23:09, edited 1 time in total.
hankivy
 
Posts: 128
Joined: May 19th, '14, 20:36

Re: [SOLVED] Text Editor for files on a server

Postby wintpe » Mar 30th, '17, 17:32

just to add my two peneth, this is a very odd approach to editing server files.

it might work for you, but ssh/vi is the basic required entry point to editing anything on a server

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: [SOLVED] Text Editor for files on a server

Postby xboxboy » Mar 31st, '17, 00:33

Peter, I agree. But this is a new era, machines are powerful, there's a whole generation that never use CLI. I also manage stuff this way, for example, sometimes I'll work on a Libre Office spreadsheet from another pc if it's convenient. So, yes server config files certainly can be done with ssh and vi, knowing how to set up sftp as a local directory is another blade in the gnu/linux swiss army knife.

In fact, from what I understand, doing it over ssh this way is probably safer than opening a samba/nfs type share?
xboxboy
 
Posts: 401
Joined: Jun 2nd, '13, 06:41

Re: [SOLVED] Text Editor for files on a server

Postby doktor5000 » Mar 31st, '17, 02:24

xboxboy wrote:In fact, from what I understand, doing it over ssh this way is probably safer than opening a samba/nfs type share?

Yes, as neither samba nor nfs offers encryption.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest