Instalacja pftp-fxp

rozpakowujemy zrodlo:

[root@yaro tmp]# tar zxvf pftpfxp-v0.11.4mew6.tar.gz

irssi/

irssi/relcatch-irssi.pl

mIRC-mew/

mIRC-mew/mew/

mIRC-mew/mew/mew.groups.lst

mIRC-mew/mew/mew.groupshelp.lst

mIRC-mew/mew/mew2.mrc

pftpfxp-autoconnect/

pftpfxp-autoconnect/pftp-daemon.pl

pftpfxp-autoconnect/pftp-init-client.c

pftpfxp-autoconnect/test.cfg

pftpfxp-autoconnect/README

pftpfxp-mew/

pftpfxp-mew/include/

pftpfxp-mew/include/displayhandler.h

pftpfxp-mew/include/keyhandler.h

pftpfxp-mew/include/server.h

pftpfxp-mew/include/tcp.h

pftpfxp-mew/include/tlsutil.h

pftpfxp-mew/include/defines.h

pftpfxp-mew/old/

pftpfxp-mew/old/README

pftpfxp-mew/old/README_SRC

pftpfxp-mew/old/HOWTO

pftpfxp-mew/old/README.TLS

pftpfxp-mew/old/CHANGELOG

pftpfxp-mew/src/

pftpfxp-mew/src/bookmark.cc

pftpfxp-mew/src/displayhandler.cc

pftpfxp-mew/src/Makefile.in

pftpfxp-mew/src/displayupdate.cc

pftpfxp-mew/src/keyhandler.cc

pftpfxp-mew/src/main.cc

pftpfxp-mew/src/opensitedialog.cc

pftpfxp-mew/src/server.cc

pftpfxp-mew/src/switchserver.cc

pftpfxp-mew/src/tcp.cc

pftpfxp-mew/src/tlsutil.cc

pftpfxp-mew/Makefile.in

pftpfxp-mew/.pftp/

pftpfxp-mew/.pftp/config

pftpfxp-mew/.pftp/keymap

pftpfxp-mew/configure

pftpfxp-mew/README.MEW

[root@yaro tmp]#

Wchodzimu do katalogu i odpalamy ./configure

[root@yaro tmp]# cd pftpfxp-mew/

[root@yaro pftpfxp-mew]# ./configure

pFTP configure utility by HoE...

Platform = Linux

Using make = gmake

OpenSSL dir = /usr

Done, you can do "gmake static" or "gmake dynamic" now...

[root@yaro pftpfxp-mew]#

a potem make

[root@yaro pftpfxp-mew]# make dynamic

cd src;gmake dynamic;cd ..

gmake[1]: Entering directory `/tmp/pftpfxp-mew/src'

g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS main.c

g++ -c -Wall -D_REENTRANT -I../include -O2 -I/usr/include -DTLS switchserver.cc

[...]

g++ -o pftp main.o switchserver.o tcp.o displayupdate.o server.o bookmark.o opensitedialog.o displayhandler.o keyhandler.o tlsutil.o -lpanel -lncurses -lpthread -L/usr/lib -lssl -lcrypto -DTLS -ldl

strip pftp

cp -f pftp ..

gmake[1]: Leaving directory `/tmp/pftpfxp-mew/src'

[root@yaro pftpfxp-mew]#

tworzymy kat dla prg w katalogu domowym:

root@yaro pftpfxp-mew]# mkdir ~/pftp

przegrywamy plik wykonywalny oraz katalog z ustawieniami prgz'a

[root@yaro pftpfxp-mew]# cp pftp ~/pftp/

[root@yaro pftpfxp-mew]# cp -R .pftp/ ~/pftp/

przechodzimy do katalogu z prgramem

[root@yaro pftpfxp-mew]# cd ~/pftp/

[root@yaro pftp]#

tworzymy katalog dla plikow tymczasowych:

[root@yaro pftp]# mkdir ok

przechodzimy do katalogu z konfigiem i edytujemu go:

[root@yaro pftp]# cd .pftp/

[root@yaro .pftp]# jed config

# pftp config file

#

# - the whole file isn't very userfriendly, so please JUST use the

# form as described. Otherwise unpredictable things may happen!

# - comments start with a "#" as the FIRST character, the whole line

# will be ignored

# - don't make empty lines, I'm not microshit where eveyone can fuck

# up configfiles without worrying

# - items have the form "ITEMNAME=VALUE". no spaces between, nothing.

#

#####################################################################

# DEBUG (values 0 or 1) 1 will turn on debug output to

# pftp.debug.log in your OKAY dir, send me that file

# if pftp crashes

#

#####################################################################

DEBUG=1

#####################################################################

# LOCALIP define ip of your computer seen from internet

#

# DEVICE if you are using a dialup or a machine with multiple

# network-devices, you have to use this item or you

# can't get linfxp to work. You can determine what

# devices you have by issuing "ifcfg".

# ex.: "DEVICE=ppp0" "DEVICE=eth0:13"...

#

# <ATTENTION> only specify LOCALIP or DEVICE - not both!

#

#####################################################################

#LOCALIP=192.168.0.1

DEVICE=eth0

#####################################################################

# VIEWFILTER set to 1 if you have terminal that can handle 8-bit

# characters (for example console :)), else use 0

#

#####################################################################

VIEWFILTER=0

#####################################################################

# MODE set to 1 for FTP mode,

# 2 for FTP chained mode or

# 3 for FXP mode

#

# defaults to 3, in case forgotten or non-valid value

#

# <ATTENTION> commandline switch '-mode=' overrides settings here

#

#####################################################################

MODE=3

#####################################################################

# FILELISTLEFTFORMAT/FILELISTRIGHTFORMAT

# 0 = filename, size

# 1 = filename

# 2 = filename, attributes, date

# 3 = filename, owner, group

# 4 = filename, size, owner

#

# defaults to 0, in case forgotten or non-valid value

#

#####################################################################

FILELISTLEFTFORMAT=0

FILELISTRIGHTFORMAT=0

#####################################################################

# FREEOLDFILELIST set to 1 to get the filelist window cleared

# before reading in the new filelist,

# set to 0 to use the old redraw filelist sheme

#

#####################################################################

FREEOLDFILELIST=1

#####################################################################

# DEFAULTFILTER list of excludes used for each site

#

#####################################################################

DEFAULTFILTER=.* *.bad

#####################################################################

# FIRSTFILEFILTER list of patterns to list first in filelists, these

# files will then also be first in a transfer queue

#

# FIRSTDIRFILTER ditto just for directories

#

#####################################################################

FIRSTFILESFILTER=*.sfv *.nfo

FIRSTDIRSFILTER=sampl*

#####################################################################

# OKAYDIR a (writable) dir where the .okay and .error files

# for transferred files are stored. Those are

# temporary files needed for internal synchronization,

# and nothing else. Dont worry about it, just wipe its

# contents every now and then.

# NEVER choose a dir where other users could put their

# stuff in too, like /tmp/ !

# NEVER use a relative dir, ALWAYS absolute!

# ex.: "OKAYDIR=/home/me/pftp/okays"

#

# remember, NEVER use /tmp/ here !

#

#####################################################################

OKAYDIR=/home/user/pftpfxp-mew/ok

[...]

musimy przeedytowac linie:

DEVICE=....

OKAYDIR=...

u mnie dla usera yaro wygladaja tak:

DEVICE=eth0

OKAYDIR=/home/yaro/pftp/ok

Wychodzimy i zapisujemy poprawki kombinacja klawiszy:

CTRL+X, CTRL+C, y

teraz:

[root@yaro .pftp]# cd ..

[root@yaro pftp]#

I odpalamy prgz:

[root@yaro pftp]# ./pftp

i dostajemy zgloszenie sie programu. klepiemy enter i podajemy haslo (min 6 znakow) jakim beda szyfrowane nasze wpisy w programie:

i zglasza sie nasz prgz:

Teraz SHIFT+O lub o - otwieramy bookmarki aby wpisac nowy FTP z ktorym chcemy sie polaczyc

po wpisaniu wybieramy wlasciwy i wybieramy litere L aby sie polaczyl w lewym oknie albo R dla prawego okna

- Pliki zaznaczamy spacja

- miedzy oknami placzamy sie tabulacja

- SHIFT+Z zmieniamy typ transferu z FXP na FTP (jesli chcemy cos sciagnac do SIEBIE to musimy przelaczyc sie na FTP!!)

mode: FXP

mode: FTP

- t sciagamy plik/katalog

- W zmianiamy recznie katalog

- M tworzymy katalog

- X uruchamiamy jakies polecenie SITE

- Q wychodzimy z programu

wiecej w pliku old/README w paczce z programem

ostatnie zmiany 29-10-2004