Solved

any free ftp text editor that works on linux (centos 5)?

Posted on 2010-11-22
27
604 Views
Last Modified: 2012-05-10
Hi

I want to know any free ftp text editor that works on linux (centos 5)?

Thank you!
Francis SZE
0
Comment
Question by:fsze88
  • 12
  • 11
  • 3
  • +1
27 Comments
 
LVL 14

Accepted Solution

by:
John-Charles-Herzberg earned 100 total points
Comment Utility
This might work for you.

Kate - Supports any protocol that is supported by KDE. (FTP, SSH...)
http://en.wikipedia.org/wiki/Kate_%28text_editor%29

KDevelop - Supports any protocol that is supported by KDE. (FTP, SSH...)
http://en.wikipedia.org/wiki/KDevelop

Quanta Plus - Supports any protocol that is supported by KDE. (FTP, SSH...)
http://en.wikipedia.org/wiki/Quanta_Plus
0
 
LVL 35

Expert Comment

by:torimar
Comment Utility
Gedit:
http://thecodecentral.com/2010/04/02/use-gedit-as-remote-file-editor-via-ftp-and-ssh-ubuntu

Vim (with the Netrw plugin script):
http://www.vim.org/scripts/script.php?script_id=1075


Generally, I'd rather like to advise against the use of remote editing as a default means for manipulating files on remote servers. It is insecure, especially when using FTP. It is better used as an exception and quick fix.
As such, the inherent editing functions as provided by FileZilla and other FTP clients is just sufficient for my personal use. All bigger modifications are made locally and re-uploaded.

0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
any tool(s) could be installed by yum?
Thank you!
Francis
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
Comment Utility
Yes KDevelop, Kate, anjutha, gedit, vim all can be installed by yum. But all those are gui based text editors. I am not sure what do you mean by ftp text editor?
0
 
LVL 35

Expert Comment

by:torimar
Comment Utility
Gedit is installed by default on a Gnome driven system (as CentOS is).

Vi/Vim should also be installed by default - depends on the distro though.
Kate and KDevelop are KDE software; they should run on Gnome too, but were not developed for it and may not have all the functionality available.
0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
up to now I interested in gedit.
What is  command to install gedit?
Thank you!
0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
yum command
0
 
LVL 35

Expert Comment

by:torimar
Comment Utility
yum install gedit
0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
Hi,
I tried gedit, it is unable to do ftp function
Please guide me how to install Quanta_Plus or kate3 please thank you!

Francis SZE
0
 
LVL 35

Expert Comment

by:torimar
Comment Utility
Did you actually follow the guide for Gedit I posted above?
( http://thecodecentral.com/2010/04/02/use-gedit-as-remote-file-editor-via-ftp-and-ssh-ubuntu )
It would have made you realize that you need to connect to a remote server first, then use Gedit and open files on the remote server via the Gedit bookmark feature. Gedit itself does not open a connection to a FTP server, but if you are connected already, then Gedit is able to edit remote files.

Kate3 is for KDE what Gedit is for Gnome. If Gedit doesn't work for you, and you don't run KDE (Gnome is the default desktop on CentOS), then there is no point in trying Kate.

Quanta Plus is a complete full-featured HTML editor (almost comparable to Dreamweaver), it is not a simple text editor.
You may try installing via:

yum install kdewebdev

0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
Comment Utility
You might be interested to look at this URL
http://forums.whirlpool.net.au/archive/1057483
0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
>>
It would have made you realize that you need to connect to a remote server first, then use Gedit and open files on the remote server via the Gedit bookmark feature. Gedit itself does not open a connection to a FTP server, but if you are connected already, then Gedit is able to edit remote files.

Bookmark feature? where is it?
Screenshot.png
0
 
LVL 14

Assisted Solution

by:Deepak Kosaraju
Deepak Kosaraju earned 100 total points
Comment Utility
Why don't u try with bluefish by openoffice.
http://bluefish.openoffice.nl/movies/working_with_remote_files.html
Installation should be easy
http://bfwiki.tellefsen.net/index.php/Installing_Bluefish
You can try either yum search bluefish to check if its in base repository.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 35

Expert Comment

by:torimar
Comment Utility
Bookmark feature? where is it?

You still did not read that link, did you?
Ok then, I'll repost the relevant passages here:

Once you are successfully connected to a server, fire up gedit.
Go to view and check "Side Panel" or press F9.
At bottom of side panel, click "File Browser" tab.
On top of the side panel drop down menu, select "Bookmarks".
Expand the server you are connecting to.
You now can edit remote files as they are local files.

And here's an explanatory screenshot, taken from that link as well:
0
 
LVL 35

Expert Comment

by:torimar
Comment Utility
Image didn't attach; so here it is:

 gedit.png
0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
that gedit is Ubuntu version
I am using centos version
they may be different
Screenshot-1.png
0
 
LVL 35

Assisted Solution

by:torimar
torimar earned 300 total points
Comment Utility
There is only one Gedit, no different versions for CentOS and Ubuntu. But some of the default settings may be different. CentOS usually is very spartanic when it comes to that and leaves all the configuring to the user.

Here are new steps that I tested myself:

1. Connecting to a remote server

-- Click the 'Computer' icon on the desktop to open the file manager
-- File > Connect to server...
-- Choose 'FTP with login', insert the server data, choose a name for the connection (which will serve as 'bookmark')
-- Click 'Connect'
-- The connection name should now appear under "Places" in the side pane (If you don't see a side pane, enable it under "View" or press F9)
-- Click the name and you will be asked for your login credentials, then the FTP files should appear in the file window

2. Edit FTP files with Gedit

-- Easiest solution: simply right-click a file and select 'Edit with text editor'; it will be opened in Gedit.

-- Longer solution (following the original link I posted):
---- Open Gedit (Applications > Accessories > Text Editor)
---- Edit > Preferences > Plugins: tick 'Enable file browser pane'
---- At the bottom of the pane a new tab will appear
---- Select it and then choose "Bookmarks" in the file pane dropdown menu
---- Double-click your connection name and files should be listed ready for editing
0
 
LVL 35

Expert Comment

by:torimar
Comment Utility
Sorry, forgot one step there:

The "connection name" is not yet a persistent bookmark.
For easy re-connections by just one double-click, add the following step to section #1 above:

-- Once the FTP folder is opened in the file manager, select Bookmark > Add bookmark.
The FTP server will now be added as a permanent location to the side pane.
0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
torimar,
Thanks for your help
I busy , I will make reply asap as I can, may be 2~3 days.
please don't angry
0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
torimar,
you right, I can open ftp file. but it said [Read Only]
How Could I solve this issue?
Thank you!
Francis SZE
0
 
LVL 35

Expert Comment

by:torimar
Comment Utility
In order to be able to edit a file via FTP it needs to either be owned by the ftpuser (this is usually the case for files that were uploaded via FTP as well), or the file permissions need to be set (chmod) to 777.

0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
I can edit file via windows ftp text editor(pspad) www.pspad.com, but not works on gedit......
I don't understand.......
0
 
LVL 35

Assisted Solution

by:torimar
torimar earned 300 total points
Comment Utility
This is very strange, but you are right : I could reproduce this phenomenon on two machines here, CentOS and Ubuntu.
I suppose this could be a setting in Nautilus (the Gnome file manager), although I found several other pages on the internet that recommend this method of editing remote files; they don't seem to get stuck with read-only files. Or it could have to do with the /tmp folder where the local copies for editing are created ...

I'm not sure if I'll find the time to look into this now.
For the time being I suggest you simply don't make the connection via Nautilus (the file manager), but via a regular FTP client. Then the permissions are set correctly. Just install gFTP via Applications > Add/Remove Software or via the terminal by typing:
yum install gftp

Then open the client (Applications > Internet > gFTP), go to FTP > Options in the menu (or press CTRL + O) , under General > Edit Program type: gedit, then connect to your FTP server, right-click the file and select 'Edit'. It will open Gedit with a writable copy of the file.

ps:
When opening the file in Gedit it will bear another name; nevermind that. This is the name of the temporary local copy of that file which was created by gFTP and sent to Gedit; when saving gFTP will write the changes to the original file.
0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
saving gFTP will write the changes to the original file?
how?
0
 
LVL 35

Expert Comment

by:torimar
Comment Utility
My sentence must be read like this:

"When saving the edited file, gFTP will write the changes back to the original file on the FTP server."
0
 
LVL 15

Author Comment

by:fsze88
Comment Utility
"When saving the edited file, gFTP will write the changes back to the original file on the FTP server."
it doesn't seem works, sorry.....
[press control -s] on gedit...

Thank you!
Francis SZE
0
 
LVL 35

Assisted Solution

by:torimar
torimar earned 300 total points
Comment Utility
Well, then saving and exiting Gedit.
The file is edited locally, so as long as you still keep Gedit open, chances are that modifications will continue, so gFTP may not consider it necessary to write the edited local file back to the server.

As I said in my first post: this is not and should not be the normal way of editing a web page. I use it only for small immediate changes to robots.txt and .htaccess, not for lomng editing sessions of a whole page, so I am not familiar with how this method will work under different circumstances. You need to do your trial and error yourself.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now