comparison README @ 1:8b1883341c6f

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