LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-14-2008, 05:05 AM   #1
krypt0n.kr
LQ Newbie
 
Registered: Aug 2008
Posts: 8

Rep: Reputation: 0
X11 forwarding/Send app to background


Hello,

I'm using X11 forwarding on my server so I can use gFTP to download files on it.

How can I send gFTP to background in case I have to close the window and want the download to continue?

How can make gFTP continue if my connection to the server is cut.

I have always used "screen" with command line apps but I can't seem to figure out that one.

Thanks a lot.
 
Old 08-15-2008, 09:48 AM   #2
krypt0n.kr
LQ Newbie
 
Registered: Aug 2008
Posts: 8

Original Poster
Rep: Reputation: 0
anyone?

Please, I need this urgently.

Thanks
 
Old 08-15-2008, 11:15 AM   #3
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
use a vnc server, fire up the gftp in it, you can connect and disconnect all you want and it'll keep on running, kind of like screen but with a gui.
 
Old 08-15-2008, 11:49 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I assume you mean that you are using ssh and forwarding X11 using ssh? If so, why use FTP at all - scp would seem to be a lot more convenient.

If you want to forward some other port through an ssh tunnel, you do it like this when creating your ssh connection:
Code:
ssh -L port:host:hostport user@host
For example, for forward port 10000 on the local machine to port 21 (ftp) on the remote machine, you would do:
Code:
ssh -L 10000:localhost:21 user@host
You can then ftp to localhost port 10000, and it will connect to the remote machine on the FTP port:
Code:
ftp localhost 10000
Like I said though, you can do it all in one easy command using scp, and it supports more features - like recursive copying to get a whole directory tree. If you want to get even smarter, you might consider using rsync.
 
Old 08-16-2008, 12:21 PM   #5
krypt0n.kr
LQ Newbie
 
Registered: Aug 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks everyone for your replies.


Quote:
use a vnc server, fire up the gftp in it, you can connect and disconnect all you want and it'll keep on running, kind of like screen but with a gui.

Thank you for the suggestion. However, I'd rather keep running a vnc server as a last option.

Quote:
assume you mean that you are using ssh and forwarding X11 using ssh?
Correct.

Quote:
If so, why use FTP at all - scp would seem to be a lot more convenient.
I am aware of how unsecure the FTP protocol is, but in this case, I do not see any problem using it.

As a matter of fact, I do use scp when I need to transfer files to my server.


The thing is, in this case, I need the FTP client installed on server S to have a GUI, so it can connect to FTP server F and download files (to S).
A user from workstation W will be performing the tasks.

Code:
W ----> S ----> F
	^       |
	|_______|
A web based FTP client would have been ideal, but I can't seem to find a good one. The only one I found is part of the AutoIndex project, and lacks basic functionality.

And due to the bad quality of Internet links we have here (W ---> S), connection problems are frequent, that's why it would be great if I can send the app to background once it is started.


All suggestions are welcome.


Thanks everyone...
 
Old 08-17-2008, 04:18 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
How about filezilla? A few years ago there was only a windows version, but I think now there is an X11 port.
 
Old 08-18-2008, 04:32 AM   #7
krypt0n.kr
LQ Newbie
 
Registered: Aug 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
How about filezilla? A few years ago there was only a windows version, but I think now there is an X11 port.
Hello Matthew,

The issue is not a lack of an FTP client for Linux.

I need either of the following:

1) An FTP client that can be sent to background, or a program similar to 'screens' but can support GUI programs (without having to run a vnc server).

OR

2) A web based FTP client (similar to AutoIndex's embedded ftp client but with better functionality) so that W can control S using a browser (note that S should not be used as a tunnel, since files should be downloaded from F to S, and not to W).
 
Old 08-18-2008, 05:52 AM   #8
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Sorry for the mis-understanding, I think I get you now. There is xmove, which might do what you want.
 
  


Reply


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
X11 forwarding BigNate Linux - Software 16 06-21-2011 02:39 AM
X11 Forwarding BlueTornJacket Linux - Server 11 03-12-2007 06:00 PM
X11 forwarding paul_mat Linux - Newbie 3 12-12-2004 07:30 PM
X11 forwarding JanDeMan Mandriva 1 04-17-2004 10:02 PM
Need Help with X11 forwarding phatboyz Linux - General 3 04-16-2004 04:17 PM

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

All times are GMT -5. The time now is 12:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration