* Re: [Sysadmins] ftp-server + кирилица
2009-11-25 21:06 [Sysadmins] ftp-server + кирилица Jurij Bogaevs'kyj
@ 2009-11-25 21:31 ` Led
2009-11-26 3:46 ` REAL
2009-11-26 8:36 ` Afanasov Dmitry
` (2 subsequent siblings)
3 siblings, 1 reply; 15+ messages in thread
From: Led @ 2009-11-25 21:31 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
On Wednesday, 25 November 2009 23:06:46 Jurij Bogaevs'kyj wrote:
> Здравствуйте всем.
> Подскажите пожалуйста, есть у нас в данный момент фтп-сервер, который
> нормально работает с кирилическими именами файлов (отображение,
> скачивание, закачивание)? Что бы у клиентов виндовых не возникало
> проблем с кодировкой, а также не нужно было бы каждый раз менять
> кодировку в браузере при просмотре страницы.
Есть. Но одно с другим не связано: "у клиентов виндовых" всё равно
будут "проблемы с кодировкой".
--
Led
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-25 21:31 ` Led
@ 2009-11-26 3:46 ` REAL
0 siblings, 0 replies; 15+ messages in thread
From: REAL @ 2009-11-26 3:46 UTC (permalink / raw)
To: ledest, ALT Linux sysadmin discuss
Led пишет:
>> Подскажите пожалуйста, есть у нас в данный момент фтп-сервер, который
>> нормально работает с кирилическими именами файлов (отображение,
>> скачивание, закачивание)? Что бы у клиентов виндовых не возникало
>> проблем с кодировкой, а также не нужно было бы каждый раз менять
>> кодировку в браузере при просмотре страницы.
>
> Есть. Но одно с другим не связано: "у клиентов виндовых" всё равно
> будут "проблемы с кодировкой".
Можно предложить вполне нормальное решение: запретить на ftp русские
буквы ;)
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-25 21:06 [Sysadmins] ftp-server + кирилица Jurij Bogaevs'kyj
2009-11-25 21:31 ` Led
@ 2009-11-26 8:36 ` Afanasov Dmitry
2009-11-26 16:37 ` Jurij Bogaevs'kyj
2009-11-26 17:29 ` Michael A. Kangin
2009-11-27 10:04 ` Anton Farygin
3 siblings, 1 reply; 15+ messages in thread
From: Afanasov Dmitry @ 2009-11-26 8:36 UTC (permalink / raw)
To: sysadmins
[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]
On Wed, Nov 25, 2009 at 11:06:46PM +0200, Jurij Bogaevs'kyj wrote:
> Подскажите пожалуйста, есть у нас в данный момент фтп-сервер, который
> нормально работает с кирилическими именами файлов (отображение,
> скачивание, закачивание)?
для решения данной проблемы есть три способа:
- поддержка команда протокола opts utf8 on
- перекодировка на лету.
- кодировка файловой системы одинаоковя, что и на клиенте
первые две функции должен поддерживать сервер, opts utf8 on обязан
поддерживать клиент. к слову - до сих не все клиенты его поддерживают.
сервера - vsftpd, proftpd, pure-ftpd точно знают opts utf8.
> Что бы у клиентов виндовых не возникало
> проблем с кодировкой, а также не нужно было бы каждый раз менять
> кодировку в браузере при просмотре страницы.
самый стабильный способ - третий. и на win и на lin сделать cp1251 и
никаких проблем не будет. если на lin хочется utf8, тогда opts utf8 on, но
с ним не все клиенты адекватно себя ведут, например: lftp
--
С уважением
Афанасов Дмитрий
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-26 8:36 ` Afanasov Dmitry
@ 2009-11-26 16:37 ` Jurij Bogaevs'kyj
2009-11-26 17:02 ` Andrey Rahmatullin
2009-11-27 9:20 ` Aksarin Alexander
0 siblings, 2 replies; 15+ messages in thread
From: Jurij Bogaevs'kyj @ 2009-11-26 16:37 UTC (permalink / raw)
To: sysadmins
On 26.11.09 10:36, Afanasov Dmitry wrote:
> On Wed, Nov 25, 2009 at 11:06:46PM +0200, Jurij Bogaevs'kyj wrote:
>> Подскажите пожалуйста, есть у нас в данный момент фтп-сервер, который
>> нормально работает с кирилическими именами файлов (отображение,
>> скачивание, закачивание)?
> для решения данной проблемы есть три способа:
> - поддержка команда протокола opts utf8 on
> - перекодировка на лету.
> - кодировка файловой системы одинаоковя, что и на клиенте
>
> первые две функции должен поддерживать сервер, opts utf8 on обязан
> поддерживать клиент. к слову - до сих не все клиенты его поддерживают.
> сервера - vsftpd, proftpd, pure-ftpd точно знают opts utf8.
Можно более подробно как этим пользоваться? Ситуация следующая: есть
сервер в городской локальной сети. Хочу на него залить музыку. Но файлы
во множестве своем кирилические. Клиенты, в основном, довольно далеки от
слова кодировка вообще, и пользуются для захода на сервак браузерами
(ФФ, ИЕ и т.д.). Нужно с одной стороны, чтобы я мог заливать без
переименования в транслит, так как музыки довольно много, да и на
будущее, а с другой, что бы клиент зашел на фтп и увидел все в читаемом
виде.
>
>
--
Jurij Bogaevs'kiy aka samuray
ICQ:248954815
Jabber:Jurij.Bogaevskyj_at_jabber.kiev.ua
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-26 16:37 ` Jurij Bogaevs'kyj
@ 2009-11-26 17:02 ` Andrey Rahmatullin
2009-11-26 17:23 ` Michael A. Kangin
2009-11-27 9:20 ` Aksarin Alexander
1 sibling, 1 reply; 15+ messages in thread
From: Andrey Rahmatullin @ 2009-11-26 17:02 UTC (permalink / raw)
To: sysadmins
[-- Attachment #1: Type: text/plain, Size: 910 bytes --]
On Thu, Nov 26, 2009 at 06:37:27PM +0200, Jurij Bogaevs'kyj wrote:
> Можно более подробно как этим пользоваться? Ситуация следующая: есть
> сервер в городской локальной сети. Хочу на него залить музыку. Но файлы
> во множестве своем кирилические. Клиенты, в основном, довольно далеки от
> слова кодировка вообще, и пользуются для захода на сервак браузерами
> (ФФ, ИЕ и т.д.). Нужно с одной стороны, чтобы я мог заливать без
> переименования в транслит, так как музыки довольно много, да и на
> будущее, а с другой, что бы клиент зашел на фтп и увидел все в читаемом
> виде.
Храните локально файлы в cp1251.
Возможно, поможет convmvfs.
--
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):
Текстовый инсталлятор не исправлялся и исправляться не будет по причине
невозможности определения ошибки в этом нагромождении жуткого перлового
кода.
-- darkstar in sisyphus@
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-26 17:02 ` Andrey Rahmatullin
@ 2009-11-26 17:23 ` Michael A. Kangin
2009-11-26 18:00 ` Andrey Rahmatullin
0 siblings, 1 reply; 15+ messages in thread
From: Michael A. Kangin @ 2009-11-26 17:23 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
On Четверг 26 ноября 2009 20:02:46 Andrey Rahmatullin wrote:
> > Можно более подробно как этим пользоваться? Ситуация следующая: есть
> > сервер в городской локальной сети. Хочу на него залить музыку. Но файлы
> > во множестве своем кирилические. Клиенты, в основном, довольно далеки от
> > слова кодировка вообще, и пользуются для захода на сервак браузерами
> > (ФФ, ИЕ и т.д.). Нужно с одной стороны, чтобы я мог заливать без
> > переименования в транслит, так как музыки довольно много, да и на
> > будущее, а с другой, что бы клиент зашел на фтп и увидел все в читаемом
> > виде.
>
> Храните локально файлы в cp1251.
> Возможно, поможет convmvfs.
-1
proftpd замечательно сейчас перекодирует из ютф8 во всё, что надо клиенту
--
WBR, Michael A. Kangin
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-26 17:23 ` Michael A. Kangin
@ 2009-11-26 18:00 ` Andrey Rahmatullin
2009-11-27 6:41 ` Michael A. Kangin
0 siblings, 1 reply; 15+ messages in thread
From: Andrey Rahmatullin @ 2009-11-26 18:00 UTC (permalink / raw)
To: sysadmins
[-- Attachment #1: Type: text/plain, Size: 489 bytes --]
On Thu, Nov 26, 2009 at 08:23:48PM +0300, Michael A. Kangin wrote:
> proftpd замечательно сейчас перекодирует из ютф8 во всё, что надо клиенту
> > > Ситуация следующая: есть сервер в городской локальной сети.
--
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):
> Извините, ниасилил интерфейс. Как создавать новые страницы?
> Создать несуществующую ссылку и вырастить из нее документ?
Ага. Это, по-моему, самая неочевидная вещь в вики.
-- ktirf in sisyphus@
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-26 18:00 ` Andrey Rahmatullin
@ 2009-11-27 6:41 ` Michael A. Kangin
0 siblings, 0 replies; 15+ messages in thread
From: Michael A. Kangin @ 2009-11-27 6:41 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
В сообщении от Четверг 26 ноября 2009 21:00:44 автор Andrey Rahmatullin
написал:
> > proftpd замечательно сейчас перекодирует из ютф8 во всё, что надо клиенту
> >
> > > > Ситуация следующая: есть сервер в городской локальной сети.
О, не заметил смены ситуации с "есть у нас сервер" на "есть у нас клиент" :)
Тогда lftp :)
--
wbr, Michael A. Kangin
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-26 16:37 ` Jurij Bogaevs'kyj
2009-11-26 17:02 ` Andrey Rahmatullin
@ 2009-11-27 9:20 ` Aksarin Alexander
1 sibling, 0 replies; 15+ messages in thread
From: Aksarin Alexander @ 2009-11-27 9:20 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
On 11/26/2009 09:37 PM, Jurij Bogaevs'kyj wrote:
> Можно более подробно как этим пользоваться? Ситуация следующая: есть
> сервер в городской локальной сети. Хочу на него залить музыку. Но файлы
> во множестве своем кирилические. Клиенты, в основном, довольно далеки от
> слова кодировка вообще, и пользуются для захода на сервак браузерами
> (ФФ, ИЕ и т.д.). Нужно с одной стороны, чтобы я мог заливать без
> переименования в транслит, так как музыки довольно много, да и на
> будущее, а с другой, что бы клиент зашел на фтп и увидел все в читаемом
> виде.
filezilla умеет разные кодировки для серверов
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-25 21:06 [Sysadmins] ftp-server + кирилица Jurij Bogaevs'kyj
2009-11-25 21:31 ` Led
2009-11-26 8:36 ` Afanasov Dmitry
@ 2009-11-26 17:29 ` Michael A. Kangin
2009-11-27 6:15 ` Afanasov Dmitry
2009-11-27 13:47 ` Jurij Bogaevs'kyj
2009-11-27 10:04 ` Anton Farygin
3 siblings, 2 replies; 15+ messages in thread
From: Michael A. Kangin @ 2009-11-26 17:29 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
On Четверг 26 ноября 2009 00:06:46 Jurij Bogaevs'kyj wrote:
> Подскажите пожалуйста, есть у нас в данный момент фтп-сервер, который
> нормально работает с кирилическими именами файлов (отображение,
> скачивание, закачивание)? Что бы у клиентов виндовых не возникало
> проблем с кодировкой, а также не нужно было бы каждый раз менять
> кодировку в браузере при просмотре страницы.
Например, proftpd.
Локально файлы хранятся в utf8, а клинтам (от клиентов) все отдается в
cp-1251:
LangEngine on
UseEncoding utf8 cp1251
Это снимает львиную долю проблем.
Остаются линуксячьи консольные всякие фтп-клиенты. Настройки для lftp:
$ cat .lftprc
set ftp:use-feat no
set ftp:charset cp1251
set ftp:use-telnet-iac no
--
WBR, Michael A. Kangin
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-26 17:29 ` Michael A. Kangin
@ 2009-11-27 6:15 ` Afanasov Dmitry
2009-11-27 14:14 ` Jurij Bogaevs'kyj
2009-11-27 13:47 ` Jurij Bogaevs'kyj
1 sibling, 1 reply; 15+ messages in thread
From: Afanasov Dmitry @ 2009-11-27 6:15 UTC (permalink / raw)
To: sysadmins
[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]
On Thu, Nov 26, 2009 at 08:29:49PM +0300, Michael A. Kangin wrote:
> On Четверг 26 ноября 2009 00:06:46 Jurij Bogaevs'kyj wrote:
>
> > Подскажите пожалуйста, есть у нас в данный момент фтп-сервер, который
> > нормально работает с кирилическими именами файлов (отображение,
> > скачивание, закачивание)? Что бы у клиентов виндовых не возникало
> > проблем с кодировкой, а также не нужно было бы каждый раз менять
> > кодировку в браузере при просмотре страницы.
>
> Например, proftpd.
> Локально файлы хранятся в utf8, а клинтам (от клиентов) все отдается в
> cp-1251:
> LangEngine on
> UseEncoding utf8 cp1251
либо
LangEngine on
UseEncoding on
модуль mod_lang (включен по умолчанию), читать на предмет UseEncoding
http://www.proftpd.org/docs/modules/mod_lang.html
там есть строка: By default, the mod_lang will automatically discover the
local character set. есть подозрение, что для работоспособности
/etc/sysconfig/i18n не должен быть C.
> Остаются линуксячьи консольные всякие фтп-клиенты. Настройки для lftp:
> $ cat .lftprc
> set ftp:use-feat no
> set ftp:charset cp1251
> set ftp:use-telnet-iac no
а вот за это спасибо, не знал :)
--
С уважением
Афанасов Дмитрий
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-27 6:15 ` Afanasov Dmitry
@ 2009-11-27 14:14 ` Jurij Bogaevs'kyj
0 siblings, 0 replies; 15+ messages in thread
From: Jurij Bogaevs'kyj @ 2009-11-27 14:14 UTC (permalink / raw)
To: sysadmins
On 27.11.09 08:15, Afanasov Dmitry wrote:
> On Thu, Nov 26, 2009 at 08:29:49PM +0300, Michael A. Kangin wrote:
>> On Четверг 26 ноября 2009 00:06:46 Jurij Bogaevs'kyj wrote:
>>
>>> Подскажите пожалуйста, есть у нас в данный момент фтп-сервер, который
>>> нормально работает с кирилическими именами файлов (отображение,
>>> скачивание, закачивание)? Что бы у клиентов виндовых не возникало
>>> проблем с кодировкой, а также не нужно было бы каждый раз менять
>>> кодировку в браузере при просмотре страницы.
>>
>> Например, proftpd.
>> Локально файлы хранятся в utf8, а клинтам (от клиентов) все отдается в
>> cp-1251:
>> LangEngine on
>> UseEncoding utf8 cp1251
> либо
> LangEngine on
> UseEncoding on
>
А вот это сработало, спасибо большое, проблема решена.
--
Jurij Bogaevs'kiy aka samuray
ICQ:248954815
Jabber:Jurij.Bogaevskyj_at_jabber.kiev.ua
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-26 17:29 ` Michael A. Kangin
2009-11-27 6:15 ` Afanasov Dmitry
@ 2009-11-27 13:47 ` Jurij Bogaevs'kyj
1 sibling, 0 replies; 15+ messages in thread
From: Jurij Bogaevs'kyj @ 2009-11-27 13:47 UTC (permalink / raw)
To: sysadmins
On 26.11.09 19:29, Michael A. Kangin wrote:
> On Четверг 26 ноября 2009 00:06:46 Jurij Bogaevs'kyj wrote:
>
>> Подскажите пожалуйста, есть у нас в данный момент фтп-сервер, который
>> нормально работает с кирилическими именами файлов (отображение,
>> скачивание, закачивание)? Что бы у клиентов виндовых не возникало
>> проблем с кодировкой, а также не нужно было бы каждый раз менять
>> кодировку в браузере при просмотре страницы.
>
> Например, proftpd.
> Локально файлы хранятся в utf8, а клинтам (от клиентов) все отдается в
> cp-1251:
> LangEngine on
> UseEncoding utf8 cp1251
>
Да пробовал, именно так у меня в конфиге и указано, но увы...
proftpd из бранча 4.1
> Это снимает львиную долю проблем.
> Остаются линуксячьи консольные всякие фтп-клиенты. Настройки для lftp:
> $ cat .lftprc
> set ftp:use-feat no
> set ftp:charset cp1251
> set ftp:use-telnet-iac no
>
>
--
Jurij Bogaevs'kiy aka samuray
ICQ:248954815
Jabber:Jurij.Bogaevskyj_at_jabber.kiev.ua
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Sysadmins] ftp-server + кирилица
2009-11-25 21:06 [Sysadmins] ftp-server + кирилица Jurij Bogaevs'kyj
` (2 preceding siblings ...)
2009-11-26 17:29 ` Michael A. Kangin
@ 2009-11-27 10:04 ` Anton Farygin
3 siblings, 0 replies; 15+ messages in thread
From: Anton Farygin @ 2009-11-27 10:04 UTC (permalink / raw)
To: sysadmins
26.11.2009 00:06, Jurij Bogaevs'kyj пишет:
> Здравствуйте всем.
> Подскажите пожалуйста, есть у нас в данный момент фтп-сервер, который
> нормально работает с кирилическими именами файлов (отображение,
> скачивание, закачивание)? Что бы у клиентов виндовых не возникало
> проблем с кодировкой, а также не нужно было бы каждый раз менять
> кодировку в браузере при просмотре страницы.
> Спасибо.
Я использую чуть чуть пропатченный vsftpd.
http://vsftpd.devnet.ru/rus/
^ permalink raw reply [flat|nested] 15+ messages in thread