The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"Помогите с настройкой ftp-клиента"
Отправлено worm, 28-Авг-05 15:19 
>поставил ftp:charset cp1251
>Все равно не работает.
хм...
Зашел на фтп в локалке. Названия папок в виндовой кодировке.
[ftp] rtf-15:/pub/Study/PK> ls
drwxrwxr-x  21 root     (?)           512 Mar 18 12:13 .
drwxrwxr-x   6 root     (?)           512 Jan 30  2005 ..
drwxr-xr-x   2 knyaz    (?)           512 Feb 21  2005 Metrologiya
drwxr-xr-x   2 knyaz    (?)          1536 Feb 21  2005 Mikroelektronika(metoda)
drwxr-xr-x   2 knyaz    (?)           512 Jan 29  2005 OED
drwxr-xr-x   2 knyaz    (?)           512 Feb 21  2005 Tehnologii
drwxrwxr-x   2 root     (?)          1024 Nov 30  2004 VEA
drwxr-xr-x   2 knyaz    (?)           512 Mar  1 17:49 ekonomika(sem)
drwxr-xr-x   2 knyaz    (?)          1024 Mar  1 17:49 metoda EB(trans)
-rw-r--r--   1 ftp      wheel     3667273 Mar 18 11:47 pcad2001_book.pdf
drwxrwxr-x   2 root     (?)           512 Oct  7  2004 Ассемблер
drwxrwxr-x   2 root     (?)           512 Oct  7  2004 Еб
drwxrwxr-x   2 root     (?)           512 Oct  7  2004 Материалознавство
drwxrwxr-x   7 root     (?)           512 Oct  7  2004 Механика
drwxrwxr-x   3 root     (?)           512 Oct  7  2004 Оре
drwxrwxr-x   7 root     (?)           512 Oct  7  2004 Ртп
drwxrwxr-x   2 root     (?)           512 Oct  7  2004 Сапр
drwxrwxr-x   2 root     (?)           512 Oct  7  2004 Свч
drwxrwxr-x   2 root     (?)           512 Oct  7  2004 Схемотехника
drwxrwxr-x   2 root     (?)           512 Oct  7  2004 Ткмз
drwxr-xr-x   3 knyaz    (?)           512 Jan 29  2005 Физика
drwxrwxr-x   2 root     (?)           512 Oct  7  2004 Фток

Весь конфиг:
[14:14:17] worm@worm(ttyp6):~ # cat /usr/local/etc/lftp.conf
## some useful aliases
alias dir ls
alias less more
alias zless zmore
alias bzless bzmore
alias reconnect "close; cache flush; cd ."

## make prompt look better
set prompt "lftp \S\? \u\@\h:\w> "
## some may prefer colors (contributed by DA <mwormald@optushome.com.au>)
set prompt "\[\e[1;32m\][\[\e[0;34m\]f\[\e[1m\]t\[\e[37m\]p\[\e[32m\]] \[\e[34m\]\u\[\e[0;34m\]\@\[\e[1m\]\h\[\e[1;32m\]:\[\e[1;34m\]\w\[\e[1;32m\]>\[\e[0m\] "
## Uncomment the following two lines to make switch cls and ls, making
## cls the default.
alias ls command ls -a
alias hostls command ls

## default protocol selection
#set default-protocol/ftp.*     ftp
#set default-protocol/www.*     http
#set default-protocol/localhost file

## this makes lftp faster but doesn't work with some sites/routers
#set ftp:sync-mode off

## synchronous mode for broken servers and/or routers
set sync-mode/ftp.idsoftware.com on
set sync-mode/ftp.microsoft.com on
set sync-mode/sunsolve.sun.com on
## extended regex to match first server message for automatic sync-mode.
set auto-sync-mode "icrosoft FTP Service|MadGoat"

## if default ftp passive mode does not work, try this:
# set ftp:passive-mode off

## Set this to follow http redirections
set xfer:max-redirections 10

## Proxy can help to pass a firewall
## Environment variables ftp_proxy, http_proxy and no_proxy are used to
## initialize the below variables automatically. You can set them here too.
##
## ftp:proxy must communicate with client over ftp protocol, squid won't do.
## This can be e.g. TIS-FWTK or rftpd. User and password are optional.
# set ftp:proxy ftp://[user:pass@]your_ftp_proxy:port
## ...but squid still can be used to access ftp servers, using hftp protocol:
# set ftp:proxy http://your.squid.address:port
## ...if squid allows CONNECT to arbitrary ports, then you can use CONNECT
## instead of hftp:
# set ftp:use-hftp no
##
## no proxy for host
# set ftp:proxy/local_host ""
## or domain
# set ftp:proxy/*.domain.com ...
##
## http:proxy must communicate with client over http protocol, e.g. squid.
## Default port is 3128.
# set http:proxy your_http_proxy[:port]
## hftp:proxy must also be an http proxy. It is used for FTP over HTTP access.
# set hftp:proxy your_http_proxy[:port]
##
## net:no-proxy disables proxy usage for list of domains.
# set net:no-proxy .domain.com,.otherdom.net

## If you don't have direct ftp access, this setting can be useful to select
## hftp instead of ftp automatically.
# set ftp:proxy http://your.http.proxy:port

## This can be used for automatic saving of configuration
# set at-exit "set > ~/.lftp/settings"
# source ~/.lftp/settings

## and this is for remembring last site
## (combine with previous rule if you want)
# set at-exit "bo a last"
# open last

## Terminal strings to set titlebars for terminals that don't
## properly specify tsl and fsl capabilities.
## Use cmd:set-term-status to enable this.
set cmd:term-status/*screen* "\e_\T\e\\"
set cmd:term-status/*xterm* "\e[11;0]\e]2;\T\007\e[11]"
set cmd:term-status/*rxvt* "\e[11;0]\e]2;\T\007\e[11]"
set cmd:set-term-status on

## If you don't like advertising lftp or servers hate it, set this:
# set ftp:anon-pass "mozilla@"
# set ftp:client ""
# set http:user-agent "Mozilla/4.7 [en] (WinNT; I)"

set ftp:charset cp1251
В хоме своей посмотри .lftp внимательно.

[14:14:26] worm@worm(ttyp6):~ # uname -rs
FreeBSD 5.4-RELEASE-p6
[14:16:01] worm@worm(ttyp6):~ # locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_ALL=

Попробуй вариант mc+recode-patch - должно помочь.

 

Ваше сообщение
Имя*:
EMail:
Для отправки новых сообщений в текущей нити на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.

На сайте действует частичное премодерирование - после публикации некоторые сообщения от анонимов могут автоматически скрываться ботом. После проверки модератором ошибочно скрытые сообщения раскрываются. Для ускорения раскрытия можно воспользоваться ссылкой "Сообщить модератору", указав в качестве причины обращения "скрыто по ошибке".



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру