ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vyt <vyt@vzljot.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Samba
Date: Mon Jun 18 15:51:01 2001
Message-ID: <20010618160011.2bfe93f7.vyt@vzljot.ru> (raw)
In-Reply-To: <713787641.20010616101609@rambler.ru>

On Sat, 16 Jun 2001 10:16:09 +0400
Leonid Mogilevskiy <leonid.khimki@rambler.ru> wrote:

> Hello mandrake-russian,
> 
>   Как заставить самбу показывать файлы на русском по-русски.
>   Кодировки файлов KOI8-R и CPP1251.

Для случая "хочу монтировать samba как клиентом виндовые разделы
с русскими именами файлов" я делал так (и это уже было в
рассылке, можно добавить в FAQ):

Предполагается, что все для сборки rpm установлено, пользователь
добавлен в группу rpm.
Устанавливаем пользователем kernel[24]-*.src.rpm.
В /usr/src/RPM/SOURCES копируем нужный конфиг (в моем случае это
kernel-2.4.5-i686-up.config) под именем *-custom.config
(например, kernel-2.4.5-i686-custom.config) и правим в указанных
разделах:

---cut---
#
# Network File Systems
#
#Кодировка, в которой хранятся имена файлов на удаленном (вин)
#ресурсе
#Было:
#CONFIG_SMB_NLS_REMOTE="cp1251"
#Стало
CONFIG_SMB_NLS_REMOTE="cp866"

#
# Native Language Support
#
#Локальный NLS по умолчанию
#Было:
#CONFIG_NLS_DEFAULT="iso8859-1"
#Стало:
CONFIG_NLS_DEFAULT="koi8-r"
---cut---

Затем в spec-файле ядра в каталоге
/usr/src/RPM/SPECS
(в моем случае kernel-2.4.spec) в строке
%define BUILD_CUSTOM 0
нужно поменять 0 на 1, чтобы собиралось ядро с конфигом custom.

Теперь можно
rpm -ba kernel-2.4.spec
или другой kernel-spec. Не забудьте проверить настройки
загрузчика и можно перезагружаться. Пользователям всех доставших
драйверов от nvidia придется их пересобрать или переустановить в
модули нового ядра.

Я делал это для ядер 2.2.19-alt2 и 2.4.5-alt3, для остальных
аналогично :)

Есть еще патчи для самбы, вроде бы для перекодировки, но я не
слышал о них положительных отзывов (как и отрицательных).
Ссылка на них:
http://www.hojdpunkten.ac.se/054/samba/index.html

-- 
Regards, Vyt
mailto:vyt@vzljot.ru



  parent reply	other threads:[~2001-06-18 15:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-16 10:07 Leonid Mogilevskiy
2001-06-16 15:52 ` Roman S
2001-06-18 15:51 ` Vyt [this message]
2001-06-18 17:10   ` [mdk-re] Новый gcc Mikhail Nikitin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010618160011.2bfe93f7.vyt@vzljot.ru \
    --to=vyt@vzljot.ru \
    --cc=mandrake-russian@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git