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
|
|
9 Glib from ftp://ftp.gtk.org/pub/gtk. gFTP will work with version 1.2 or 2.0
|
|
10 of GTK+, I would suggest using GTK+ 2.0, but installing GTK+ 2.0 does
|
|
11 require installing more packages onto your system.
|
1
|
12 * pthread libraries. If you have a libc6 based machine (Debian >= 2.x, Red Hat
|
|
13 >= 5.x), you should already have the pthread libraries installed. If you
|
|
14 have a libc5 based machine (Slackware < 7.0), you will need to install
|
|
15 LinuxThreads from my website. Also, if you don't have LinuxThreads installed,
|
|
16 you most likely don't have thread safe X libraries. You must have thread
|
|
17 safe X libraries or gFTP will constantly crash. You can download some thread
|
|
18 safe X libraries off my website. If you are on a platform other than Linux,
|
|
19 you may want to take a look at the FSU Pthreads library at
|
|
20 http://www.informatik.hu-berlin.de/~mueller/pthreads.
|
|
21 * I would recommend running X in at least 800x600 mode.
|
|
22 * pkgconfig 0.9.0 or newer. pkgconfig is available at
|
|
23 http://www.freedesktop.org/software/pkgconfig.
|
|
24
|
|
25 [Installation Instructions]
|
|
26
|
|
27 * If you do not want to compile this program yourself, you can check my
|
73
|
28 webpage. I have DEBs for Debian and RPMs for RedHat available. If you're
|
|
29 looking for Solaris binaries, check out http://www.sunfreeware.com
|
1
|
30 * If you are compiling gFTP yourself, extract the files from the distribution
|
|
31 with tar -zxvf gftp-<version>.tar.gz
|
|
32 * Go to the gftp-<version> directory and type
|
|
33
|
|
34 ./configure
|
|
35 make
|
|
36
|
|
37 The configure script will generate a Makefile for your machine, and make
|
|
38 will compile a binary for your machine. By default, when you run
|
|
39 configure, it will install gFTP with the prefix /usr/local, so the gFTP
|
|
40 binary will be /usr/local/bin/gftp. You can change this by typing
|
|
41 configure --prefix=/usr, and it will then install the gFTP binary in
|
|
42 /usr/bin/gftp.
|
|
43 * If the compile suceeds without any errors, you can type make install to
|
|
44 install the binary. This will also copy some necessary
|
|
45 files to <install prefix>/share/gftp. If you do not have root on your
|
|
46 machine to install these files, copy the contents of the docs/sample.gftp/
|
|
47 directory to ~/.gftp.
|
|
48 * [OPTIONAL] If you compiled gFTP on a platform other than Linux, could you
|
|
49 please send me your OS name/version and I will post on my website
|
|
50 the operating systems gFTP has been successfully compiled on.
|
|
51 * You may want to glance at the USERS-GUIDE file that comes with this
|
|
52 distribution. It contains a little bit of information about how to use it.
|
|
53
|
|
54 [Frequently Asked Questions]
|
|
55
|
|
56 Here is a list of frequently asked questions about gFTP. You can always find
|
|
57 the latest version of this FAQ off my website.
|
|
58
|
|
59 *******************************************************************************
|
|
60
|
|
61 Q: I'm having problems with installing the RPMs off of your website.
|
|
62
|
|
63 A: If the RPM installs fine, but when you run gFTP, if you get an error about the symbol GCC_3.0 not found, then you need to recompile the RPM. Or if you try to install the RPM and you get an error about unresolved dependency libreadline.so.1 and you have the readline RPM installed, you'll also have to get a different gFTP RPM. The RPMs on my website I built on a Debian GNU/Linux i386 box with gcc 3.0.3.
|
|
64
|
|
65 I would first suggest checking your distributions development tree (RedHat Rawhide or Mandrake Cooker for example), they probably have a RPM of the latest gFTP there. If not, download the SRC RPM and type rpm -i gftp-version-1.src.rpm. It will build a RPM and put it in /usr/src/redhat/RPMS/arch or /usr/src/rpm/RPMS/arch (arch is i386, sparc, axp, etc...)
|
|
66
|
|
67
|
|
68 *******************************************************************************
|
|
69
|
|
70 Q: What systems is gFTP known to run on?
|
|
71
|
|
72 A: I develop gFTP on a Debian GNU/Linux machine. Here is a list of other
|
|
73 platforms I have received successful compile reports on:
|
|
74
|
|
75 * FreeBSD/NetBSD/OpenBSD/BSDI
|
|
76 * Solaris
|
|
77 * IRIX
|
|
78 * Digital UNIX
|
|
79 * HP/UX 11
|
|
80
|
|
81 If you got gFTP to compile on a platform not listed here, please email me
|
|
82 about it and I'll add it to this list. If you are having problems compiling
|
|
83 gtk+ or gFTP on another platform, try using GNU make instead of your vendor
|
|
84 supplied make. Most of the vendor supplied makes are brain-dead.
|
|
85
|
|
86 *******************************************************************************
|
|
87
|
|
88 Q: I'm having problems getting SSH2 transfers to work. I keep getting the error:
|
|
89 Error: Message size XXXXXXXX too big from server
|
|
90
|
|
91 A: What probably is the problem, sftp-server isn't in your path on the remote
|
|
92 server. When you try to connect to the remote server, you'll see the command
|
|
93 gFTP is trying to run, and it'll look something like:
|
|
94
|
|
95 ssh -e none -l username hostname "echo -n xsftp ; sftp-server"
|
|
96
|
|
97 Try running this command. If you get a prompt asking:
|
|
98
|
|
99 The authenticity of host 'hostname (###.###.###.###)' can't be established.
|
|
100 RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
|
|
101 Are you sure you want to continue connecting (yes/no)?
|
|
102
|
|
103 Tell it yes. gFTP won't even try to answer this question for you at the
|
|
104 moment. Then, if you get the following output:
|
|
105
|
|
106 Enter passphrase for key '/home/brian/.ssh/id_dsa':
|
|
107 xsftp
|
|
108 bash: sftp-server: command not found
|
|
109
|
|
110 You'll have to set the path to the sftp-server program. Alternatively you
|
|
111 could go under FTP->Options->SSH and enable Use sftp subsys. If you enable
|
|
112 this, then you don't have to know the remote path to your sftp executable.
|
|
113 But if you enable this, gFTP won't be able to send your password over to
|
|
114 the ssh client. So if you're not using ssh-agent, then ssh will spawn the
|
|
115 ssh-askpass program to grab your password.
|
|
116
|
|
117 *******************************************************************************
|
|
118
|
|
119 Q: What is the difference between the SSH and SSH2 protocols?
|
|
120
|
|
121 A: The SSH protocol uses sftp >= 0.7 from http://www.xbill.org/sftp. SSH2 uses
|
|
122 the native file transfers found in the commercial SSH2 and in later versions
|
|
123 of OpenSSH. The SSH2 protocol uses the sftp-server executable on the remote
|
|
124 host and the SSH protocol uses the sftpserv executable.
|
|
125
|
|
126 *******************************************************************************
|
|
127
|
|
128 Q: How do I force running the text or gtk+ version of gFTP?
|
|
129
|
|
130 A: To run the text port, you can type gftp-text or to run the gtk+ port, you
|
|
131 can run the gftp-gtk. The gftp command is just a shell script that sees
|
|
132 if your DISPLAY variable is set, and if so it'll run the appropriate version
|
|
133
|
|
134 *******************************************************************************
|
|
135
|
|
136 Q: Is there a way for gFTP to download a bunch of files/directories and then
|
|
137 exit when it's completed?
|
|
138
|
|
139 A: Yes, the text port of gFTP supports this well. You can type:
|
|
140
|
|
141 gftp-text -d ftp://ftp.somesite.com/someplace
|
|
142
|
|
143 If someplace is a directory, it'll automatically download all its subdirs
|
|
144 as well. If you want to transfer a file through ssh instead of ftp, just
|
|
145 change the ftp:// to ssh://
|
|
146
|
|
147 *******************************************************************************
|
|
148
|
|
149 Q: In the GTK+ version of gFTP, do I have to enter a port, username and password
|
|
150 to connect to a ftp server?
|
|
151
|
|
152 A: No you don't. If you leave the port blank, it'll default to the default port
|
|
153 for the protocol you selected (port 21 for FTP). If you leave the username
|
|
154 blank, it will default to logging in as anonymous
|
|
155
|
|
156 *******************************************************************************
|
|
157
|
|
158 Q: How do I set up my HTTP Proxy server?
|
|
159
|
|
160 A: Go under FTP->Options and hit the FTP tab. Enter HTTP as the proxy type
|
|
161 and fill in your proxy server info on that screen. Then hit the HTTP tab
|
|
162 and enter your same proxy server info there.
|
|
163
|
|
164 *******************************************************************************
|
|
165
|
|
166 Q: When gFTP tries to get the remote directory listing, it sends LIST -L, but
|
|
167 the remote server sends an error back
|
|
168
|
|
169 A: Go to FTP->Options and turn off resolve remote symlinks. gFTP will then send
|
|
170 LIST instead of LIST -L. You should only have to do this if you are
|
|
171 connecting to Novell servers.
|
|
172
|
|
173 *******************************************************************************
|
|
174
|
|
175 Q: When gFTP tries to get the remote directory listing, I get an error that
|
|
176 says: Cannot create a data connection: Connection refused
|
|
177
|
|
178 A: Go under FTP->Options and turn off passive file transfers. Instead of
|
|
179 sending the PASV command to open up the data connection on the server side,
|
|
180 the data connection will be opened up on the client side, and the PORT
|
|
181 command will be sent to the server instead.
|
|
182
|
|
183 *******************************************************************************
|
|
184
|
|
185 Q: When I try to compile gFTP, I get some errors. One of them is undefined
|
|
186 symbol LC_ALL
|
|
187
|
|
188 A: Try typing make distclean ; configure --with-included-gettext and it
|
|
189 should compile fine then.
|
|
190
|
|
191 *******************************************************************************
|
|
192
|
|
193 Q: How do I report bugs in gFTP?
|
|
194
|
|
195 A: If you find ANY bugs in gFTP, please email them to me at
|
|
196 masneyb@gftp.org. If there is a newer version of gFTP available,
|
|
197 please try it first before you send me a bug report. If the problem
|
|
198 exists in that version, feel free to email me about it. When sending in
|
|
199 bug reports, please try to be as descriptive as possible. Send me what
|
|
200 OS/version you are running, what compiler you are compiling with, and any
|
|
201 other important information. If you get gFTP to crash, it would be very
|
|
202 helpful if you could send me a backtrace. If you do not know how to do a
|
|
203 backtrace, download the source code from my website. Edit the Makefile,
|
|
204 and make sure that -g appear in the CFLAGS variable. Then recompile gFTP,
|
|
205 but do NOT do a make install because it will install a stripped binary in
|
|
206 $PREFIX/bin. Then type gdb ./gftp. Once you have a (gdb) prompt, type r.
|
|
207 Once you get gFTP to crash, go back to that terminal window, and type bt,
|
|
208 and send me that output in an email message along with a short description
|
|
209 of how it happened.
|
|
210
|
|
211 *******************************************************************************
|
|
212
|
|
213 Q: I downloaded a binary off the internet and everytime I run gFTP I get an
|
|
214 error saying: undefined symbol :__register_frame_info
|
|
215
|
|
216 A: ObiTuarY <obituary@freshmeat.net> says:
|
|
217
|
|
218 "This happens when you compile a library with egcs. The library then has
|
|
219 the __register_frame_info symbol. If you link a program to it, it will
|
|
220 require this symbol. Now if you have the exact same library compiled with
|
|
221 gcc 2.7.2.3 it won't have this symbol. The thing about glibc 2.1 under Red
|
|
222 Hat 6 is it was compiled with egcs and glibc 2.0.x under Red Hat 5.x was
|
|
223 compiled with gcc 2.7.2.3, therefore it's not an incompatibility between
|
|
224 glibc 2.0.x and 2.1.x. What some people do for that is they get the .o file
|
|
225 of egcs with __register_frame_info in it and link into the program so it's
|
|
226 always there, that way it works with libs compiled with egcs or gcc 2.7.2.3.
|
|
227 (in /usr/lib/gcc-lib/i386-*-linux/egcs-*/ )"
|
|
228
|
|
229 Another alternative, is to recompile gFTP on your machine, or you can
|
|
230 download some RPMs off my website that were compiled against Red Hat 5.2.
|
|
231
|
|
232 *******************************************************************************
|
|
233
|
|
234 Q: I upgraded to a newer version of gFTP and now I am getting some warnings
|
|
235 about some config file lines not having enough arguments, and it cannot find
|
|
236 html.xpm.
|
|
237
|
|
238 A: This is from upgrading from a very old version of gFTP to a newer version.
|
|
239 I removed some icons from the distribution (0.20 to 0.21). Edit your
|
|
240 ~/.gftp/gftprc file. At the bottom of the file, there are some ext= lines.
|
|
241 Some of them have html.xpm, rpm.xpm and pdf.xpm. Remove these lines and gFTP
|
|
242 will startup fine. Don't worry about fixing he warnings...they will go away
|
|
243 themselves.
|
|
244
|
|
245 *******************************************************************************
|
|
246
|
|
247 Q: Where does gFTP store it's options?
|
|
248
|
|
249 A: gFTP will automatically create a ~/.gftp directory when it is first run.
|
|
250 Your config file is ~/.gftp/gftprc, and this is where all of gFTP's
|
|
251 settings are stored. The config file is well commented, so take a glance
|
|
252 at it and see if there is anything you want to change. Your bookmarks are
|
|
253 stored in the file ~/.gftp/bookmarks
|
|
254
|
|
255 *******************************************************************************
|
|
256
|
|
257 Q: I am trying to compile your program and I get some parse errors before
|
|
258 GdkDragContext. What's wrong?
|
|
259
|
|
260 A: You have an older version of gtk installed on your system. If you are
|
|
261 using Red Hat or Debian Linux, simply remove the gtk and glib devel
|
|
262 packages. You can still leave the gtk 1.0 libraries installed.
|
|
263
|
|
264 *******************************************************************************
|
|
265
|
|
266 Q: I am having a hard time using the drag and drop in gFTP. How do I use it?
|
|
267
|
|
268 A: To drag from the file listboxes in gFTP, you have to drag with button #3.
|
|
269 On a two button mouse, you have to hold down both buttons. For this to work
|
|
270 tho, you have to edit your XF86Config file, and go to the Pointer section.
|
|
271 You have to make sure Emulate3Buttons is in there. Here's the section out of
|
|
272 my config file:
|
|
273
|
|
274 Section "Pointer"
|
|
275 Protocol "PS/2" # This will depend on your mouse
|
|
276 Device "/dev/mouse" # This will also depend on your mouse
|
|
277 Emulate3Buttons # You need this for a 2 button mouse
|
|
278 EndSection
|
|
279
|
|
280 *******************************************************************************
|
|
281
|
|
282 Q: I have a libc 5 based machine and everytime I run gFTP it instantly crashes.
|
|
283 I get an error something like: Gdk-ERROR **: an x io error occurred
|
|
284 What's wrong?
|
|
285
|
|
286 A: Your X libraries are not thread safe. They must be compiled with
|
|
287 -D_REENTRANT. You can either recompile your X libraries, or you can
|
|
288 download some from my webpage at
|
|
289 http://www.gftp.org/XFree86-libs-3.3-2_threading.i386.tgz
|
|
290
|
|
291
|
|
292 Brian Masney <masneyb@gftp.org>
|
|
293 gFTP Official Webpage - http://www.gftp.org/
|
|
294
|