1
|
1 gFTP README
|
|
2 -----------
|
|
3
|
|
4 [Requirements]
|
|
5
|
73
|
6 * GTK+ 1.2.3 or higher. GTK+/Glib is included with most systems now. If you
|
|
7 don't have it installed, you may want to check to see if your vendor has a
|
|
8 package available. If not, you can download the latest version of GTK+ and
|
261
|
9 Glib from ftp://ftp.gtk.org/pub/gtk. gFTP will work with either version 1.2
|
|
10 or 2.0 of GTK+, but I would recommend using GTK+ 2.0.
|
|
11 * pthread libraries. Most systems already satisfy this requirement. If you are
|
|
12 on a platform other than Linux, you may want to take a look at the FSU
|
|
13 Pthreads library at http://www.informatik.hu-berlin.de/~mueller/pthreads.
|
1
|
14
|
|
15 [Installation Instructions]
|
|
16
|
261
|
17 * If you do not want to compile gFTP yourself, you can check my webpage. I have
|
|
18 DEBs for Debian and RPMs for RedHat available. If you're looking for Solaris
|
|
19 binaries, check out http://www.sunfreeware.com.
|
1
|
20 * If you are compiling gFTP yourself, extract the files from the distribution
|
|
21 with tar -zxvf gftp-<version>.tar.gz
|
|
22 * Go to the gftp-<version> directory and type
|
|
23
|
|
24 ./configure
|
|
25 make
|
|
26
|
|
27 The configure script will generate a Makefile for your machine, and make
|
|
28 will compile a binary for your machine. By default, when you run
|
|
29 configure, it will install gFTP with the prefix /usr/local, so the gFTP
|
|
30 binary will be /usr/local/bin/gftp. You can change this by typing
|
261
|
31 configure --prefix=/usr, and it will then install the gFTP binary to
|
1
|
32 /usr/bin/gftp.
|
|
33 * If the compile suceeds without any errors, you can type make install to
|
|
34 install the binary. This will also copy some necessary
|
|
35 files to <install prefix>/share/gftp. If you do not have root on your
|
|
36 machine to install these files, copy the contents of the docs/sample.gftp/
|
|
37 directory to ~/.gftp.
|
|
38 * You may want to glance at the USERS-GUIDE file that comes with this
|
|
39 distribution. It contains a little bit of information about how to use it.
|
|
40
|
|
41 [Frequently Asked Questions]
|
|
42
|
|
43 Here is a list of frequently asked questions about gFTP. You can always find
|
261
|
44 the latest version of this FAQ on my website.
|
1
|
45
|
|
46 *******************************************************************************
|
|
47
|
|
48 Q: What systems is gFTP known to run on?
|
|
49
|
|
50 A: I develop gFTP on a Debian GNU/Linux machine. Here is a list of other
|
261
|
51 platforms I have received successful compile reports:
|
1
|
52
|
|
53 * FreeBSD/NetBSD/OpenBSD/BSDI
|
|
54 * Solaris
|
|
55 * IRIX
|
|
56 * Digital UNIX
|
|
57 * HP/UX 11
|
|
58
|
261
|
59 If gFTP compiles and runs on a platform not listed here, please email me
|
1
|
60 about it and I'll add it to this list. If you are having problems compiling
|
261
|
61 GTK+ or gFTP on another platform, try using GNU make instead of your vendor
|
|
62 supplied make.
|
1
|
63
|
|
64 *******************************************************************************
|
|
65
|
|
66 Q: I'm having problems getting SSH2 transfers to work. I keep getting the error:
|
|
67 Error: Message size XXXXXXXX too big from server
|
|
68
|
|
69 A: What probably is the problem, sftp-server isn't in your path on the remote
|
|
70 server. When you try to connect to the remote server, you'll see the command
|
|
71 gFTP is trying to run, and it'll look something like:
|
|
72
|
|
73 ssh -e none -l username hostname "echo -n xsftp ; sftp-server"
|
|
74
|
|
75 Try running this command. If you get a prompt asking:
|
|
76
|
|
77 The authenticity of host 'hostname (###.###.###.###)' can't be established.
|
|
78 RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
|
|
79 Are you sure you want to continue connecting (yes/no)?
|
|
80
|
|
81 Tell it yes. gFTP won't even try to answer this question for you at the
|
|
82 moment. Then, if you get the following output:
|
|
83
|
|
84 Enter passphrase for key '/home/brian/.ssh/id_dsa':
|
|
85 xsftp
|
|
86 bash: sftp-server: command not found
|
|
87
|
|
88 You'll have to set the path to the sftp-server program. Alternatively you
|
|
89 could go under FTP->Options->SSH and enable Use sftp subsys. If you enable
|
|
90 this, then you don't have to know the remote path to your sftp executable.
|
|
91 But if you enable this, gFTP won't be able to send your password over to
|
|
92 the ssh client. So if you're not using ssh-agent, then ssh will spawn the
|
|
93 ssh-askpass program to grab your password.
|
|
94
|
|
95 *******************************************************************************
|
|
96
|
|
97 Q: How do I force running the text or gtk+ version of gFTP?
|
|
98
|
|
99 A: To run the text port, you can type gftp-text or to run the gtk+ port, you
|
261
|
100 can run the gftp-gtk. The gftp command is just a shell script that checks
|
|
101 if your DISPLAY variable is set, and if so it'll run the appropriate version.
|
1
|
102
|
|
103 *******************************************************************************
|
|
104
|
|
105 Q: Is there a way for gFTP to download a bunch of files/directories and then
|
|
106 exit when it's completed?
|
|
107
|
|
108 A: Yes, the text port of gFTP supports this well. You can type:
|
|
109
|
|
110 gftp-text -d ftp://ftp.somesite.com/someplace
|
|
111
|
261
|
112 If someplace is a directory, it'll automatically download all of its
|
|
113 subdirectories as well. If you want to transfer a file through ssh instead
|
|
114 of ftp, just change the ftp:// to ssh://.
|
1
|
115
|
|
116 *******************************************************************************
|
|
117
|
|
118 Q: In the GTK+ version of gFTP, do I have to enter a port, username and password
|
|
119 to connect to a ftp server?
|
|
120
|
|
121 A: No you don't. If you leave the port blank, it'll default to the default port
|
|
122 for the protocol you selected (port 21 for FTP). If you leave the username
|
261
|
123 blank, it will default to logging in as anonymous.
|
1
|
124
|
|
125 *******************************************************************************
|
|
126
|
|
127 Q: How do I set up my HTTP Proxy server?
|
|
128
|
|
129 A: Go under FTP->Options and hit the FTP tab. Enter HTTP as the proxy type
|
|
130 and fill in your proxy server info on that screen. Then hit the HTTP tab
|
|
131 and enter your same proxy server info there.
|
|
132
|
|
133 *******************************************************************************
|
|
134
|
261
|
135 Q: When gFTP tries to get the remote directory listing, the remote server
|
|
136 complains about either the -a or -L argument to LIST.
|
1
|
137
|
261
|
138 A: If the server is complaining about the -L option, go under FTP->Options->FTP
|
|
139 and disable resolve remote symlinks. If it is complaining about the -a
|
|
140 option, go to FTP->Options->General and disable show hidden files.
|
1
|
141
|
|
142 *******************************************************************************
|
|
143
|
261
|
144 Q: When gFTP tries to get the remote directory listing, I receive the error:
|
|
145 Cannot create a data connection: Connection refused
|
1
|
146
|
|
147 A: Go under FTP->Options and turn off passive file transfers. Instead of
|
|
148 sending the PASV command to open up the data connection on the server side,
|
|
149 the data connection will be opened up on the client side, and the PORT
|
|
150 command will be sent to the server instead.
|
|
151
|
|
152 *******************************************************************************
|
|
153
|
|
154 Q: When I try to compile gFTP, I get some errors. One of them is undefined
|
261
|
155 symbol LC_ALL.
|
1
|
156
|
261
|
157 A: Try running make distclean ; configure --with-included-gettext. You could
|
|
158 alternatively pass --disable-nls to configure, and internationalization
|
|
159 support will not be compiled in.
|
1
|
160
|
|
161 *******************************************************************************
|
|
162
|
|
163 Q: How do I report bugs in gFTP?
|
|
164
|
261
|
165 A: If you find ANY bugs in gFTP, please check to make sure that you are using
|
|
166 the latest version of gFTP. If you are, please submit all bug reports to
|
|
167 GNOME's Bugzilla. When sending in bug reports, please try to be as
|
|
168 descriptive as possible. Send me what OS/version you are running, what
|
|
169 compiler you are compiling with, and any other important information. If
|
|
170 you get gFTP to crash, it would be very helpful if you could send me a
|
|
171 backtrace. If you do not know how to do a backtrace, download the source
|
|
172 code from my website. Edit the Makefile, and make sure that -g appear in
|
|
173 the CFLAGS variable. Then recompile gFTP, but do NOT do a make install
|
|
174 because it will install a stripped binary in $PREFIX/bin. Then type
|
|
175 gdb ./gftp. Once you have a (gdb) prompt, type r. When gFTP crashes,
|
|
176 go back to that terminal window, and type bt, and put that output in the
|
|
177 bug that you file with bugzilla.
|
1
|
178
|
261
|
179 I also have a gftp-users mailinglist setup. I have a link to the archives
|
|
180 on my main webpage.
|
1
|
181
|
|
182 *******************************************************************************
|
|
183
|
|
184 Q: Where does gFTP store it's options?
|
|
185
|
|
186 A: gFTP will automatically create a ~/.gftp directory when it is first run.
|
|
187 Your config file is ~/.gftp/gftprc, and this is where all of gFTP's
|
|
188 settings are stored. The config file is well commented, so take a glance
|
|
189 at it and see if there is anything you want to change. Your bookmarks are
|
|
190 stored in the file ~/.gftp/bookmarks
|
|
191
|
|
192 *******************************************************************************
|
|
193
|
|
194 Q: I am trying to compile your program and I get some parse errors before
|
|
195 GdkDragContext. What's wrong?
|
|
196
|
|
197 A: You have an older version of gtk installed on your system. If you are
|
|
198 using Red Hat or Debian Linux, simply remove the gtk and glib devel
|
|
199 packages. You can still leave the gtk 1.0 libraries installed.
|
|
200
|
|
201 *******************************************************************************
|
|
202
|
|
203 Q: I am having a hard time using the drag and drop in gFTP. How do I use it?
|
|
204
|
|
205 A: To drag from the file listboxes in gFTP, you have to drag with button #3.
|
|
206 On a two button mouse, you have to hold down both buttons. For this to work
|
|
207 tho, you have to edit your XF86Config file, and go to the Pointer section.
|
|
208 You have to make sure Emulate3Buttons is in there. Here's the section out of
|
|
209 my config file:
|
|
210
|
|
211 Section "Pointer"
|
|
212 Protocol "PS/2" # This will depend on your mouse
|
|
213 Device "/dev/mouse" # This will also depend on your mouse
|
|
214 Emulate3Buttons # You need this for a 2 button mouse
|
|
215 EndSection
|
|
216
|
|
217 *******************************************************************************
|
|
218
|
|
219 Q: I have a libc 5 based machine and everytime I run gFTP it instantly crashes.
|
|
220 I get an error something like: Gdk-ERROR **: an x io error occurred
|
|
221 What's wrong?
|
|
222
|
|
223 A: Your X libraries are not thread safe. They must be compiled with
|
|
224 -D_REENTRANT. You can either recompile your X libraries, or you can
|
|
225 download some from my webpage at
|
|
226 http://www.gftp.org/XFree86-libs-3.3-2_threading.i386.tgz
|
|
227
|
|
228
|
|
229 Brian Masney <masneyb@gftp.org>
|
|
230 gFTP Official Webpage - http://www.gftp.org/
|
|
231
|