LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2007, 07:54 AM   #1
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Rep: Reputation: 17
editing files on the server directly


Hi,

I am just wondering whether there is program/method to modify document files on ftp server.

I want to know this because I am writing some php code and the environment on the localhost and the webserver is a little ifferent so I can't check the validity on the local machine.

Thanx in advance.
 
Old 08-29-2007, 08:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there are dozens of ways, but all you've said is that there is ftp... can you ssh to it? if so just use vi locally or some such. if not, you could use ftpfs to mount the remote drive and edit it as if it were local. most gui ftp clients, like winscp, will allow for you to directly "edit" a file buy copying it across, opening it, and copying it back again afterwards.
 
Old 08-29-2007, 09:06 AM   #3
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
i love using vim, but shell access is not permitted on this server.(I know, but I didn't choose this hosting).

But how do you normally ssh into ftp server?

I've only used ssh to only ssh servers, so I would like to know how.

But for the time being, I'll have look at winscp

Thanks for the reply Chris.

Cheers
 
Old 08-30-2007, 01:51 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you don't ssh to an ftp server, you ssh to ssh servers... i was just assuming your service wasn't pants!
 
Old 08-30-2007, 02:05 AM   #5
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
It's a pity that I cannot ssh into it.

Hmm. I figured out winscp is a windows program. Is there any substitute of this for linux?
 
Old 08-30-2007, 02:21 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sorry, i'm always inclined to assume it's a windows user to a linux enviroment there...

well better than that, use the fuse project, with ftp. then you just access the files as if they were on your local machine however you see fit. http://wiki.thiesen.org/page/Fuseftp or http://curlftpfs.sourceforge.net/

Last edited by acid_kewpie; 08-30-2007 at 02:28 AM.
 
Old 08-30-2007, 05:45 AM   #7
Fusi
Member
 
Registered: May 2003
Location: Saarland, Germany
Distribution: Arch
Posts: 36

Rep: Reputation: 15
if you open a ftp session with konqueror (when you use kde), you can directly edit your files with an editor running with X, e.g. kate. the editor will store the file locally and upload it after you've saved it.
 
Old 08-30-2007, 11:14 PM   #8
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
I don't run KDE because my notebook is slow as, and I am very impatient on certain things . Thanks for the reply though, Fusi.

I'll try Fuseftp once I get home today.

Thanks again Chris
 
Old 08-31-2007, 02:43 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i'd expect that gftp or other clietns will also do this... i just generally like the idea of making remote filesystems appear local, then there is no need to treat those files specially at any stage.
 
Old 08-31-2007, 10:04 PM   #10
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
I tried to install and run but it wouldn't work.
Is there any particular instructions other than d/ling version 0.8 and follow the instructions given?


Can't locate Fuse.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/bin/fuseftp line 44.
BEGIN failed--compilation aborted at /usr/bin/fuseftp line 44.

This is the error that I get
 
Old 09-01-2007, 03:38 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sounds like there's a perl-fuse package or similar that you'll also need.
 
Old 09-01-2007, 06:07 AM   #12
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
I tried to search the web but I couldn't get a clear answer.

I do have perl but do I have to download few things and install them in a certain order other than fuse 0.8?

sorry to hassle you Chris.
 
Old 09-01-2007, 08:24 AM   #13
Fusi
Member
 
Registered: May 2003
Location: Saarland, Germany
Distribution: Arch
Posts: 36

Rep: Reputation: 15
i can't help you with fuse, but did you try midnight commander for your task? it isn't graphical, but easy to use with a curses interface
 
Old 09-02-2007, 08:21 PM   #14
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
Thanx for the reply Fusi.

I think i'll try to use mc till I get fuse to work.

I'll try to use it once I get home
 
Old 09-02-2007, 08:53 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Assuming you're trying to install Fuse locally, login as root, then
perl -e shell -MCPAN
which will get you into the Perl installer tool. Then use
install Fuse
which should installl Fuse.pm and dependencies (although it will ask for confirmations)
 
  


Reply



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
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 08:36 AM
Saving/opening files directly on/from FTP server saurya_s Linux - Software 0 02-03-2004 02:54 PM
Printing directly pdf files christophe27 Linux - Software 0 11-26-2003 08:24 AM
Cannot read files directly off Windows-network via Samba duaux Linux - Networking 0 11-20-2003 04:29 PM
Cannot directly access files from server via browser on FTP MasterC Linux - Networking 10 01-15-2003 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:08 AM.

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