help use gedit to edit server files
clanlaw at googlemail.com
Wed Apr 21 19:43:59 UTC 2010
On 21 April 2010 18:23, Luis A. Paulo <luis.barbas at gmail.com> wrote:
> On Wed, 21 Apr 2010 17:48:30 +0100, Colin Law wrote:
>> 2010/4/21 if-ifone <hellocyf at gmail.com>:
>>> In windows ,I use winscp edit ubuntu server file.with command sudo
>>> /../sftp-server to connect,and can edit server file. I want change my
>>> work station to ubuntu.use place->connect to server,set as ssh login.It
>>> can explore files.seems as local files.but cannt edit root files,lose
>>> powfull tools and this prevent
>>> me switch php code to linux .
>>> I see some artitle advice install X in server,this is not good ways,I
>>> will not install x on server.
>>> May be "connect to server" can add sudo command like winscp.so we can
>>> use gedit to edit Server files.
>> In a terminal you can use
>> ssh server_ip_or_name
>> which will log you into the server, then use gksu gedit file_to_edit
>> No doubt there are other ways also.
> Sorry, Colin
> That will not work. I think because there's no gedit on the
> server_ip_or_name side (no X).
Yes, you are right of course.
> I also have a mchine/server with no X.
> I log with ssh and use nano to edit most files
> To use graphical editors you have (?) to use them on your "work station",
> synchronizing the files back to the server
> Synchronizing here being a loose term. There are several ways you can do
> that, already discussed on this mailing list:
> nfs, sshfs, ftp, rsync, cvs, ...
> And the easiest of them all, probably
> Use nautilus, Places -> Connect to Server..., select SSH, enter ip and
> user, click connect.
> And you will be graphical browsing your server and editing files with
> whatever tools you have on your workstation
I think that is what the OP is doing, but the problem is that he
cannot edit files that require sudo to edit them.
More information about the ubuntu-users