logo       

RE: Thinstation 2.1.beta4: Mount options for cyrilic filesysytem: msg#00115

network.thinstation.devel

Subject: RE: Thinstation 2.1.beta4: Mount options for cyrilic filesysytem

thanks for this. I'd like to further expand the locale support so includes
the kernel nls modules. will try to do this when I get time.

-----Original Message-----
From: Eraser [mailto:erasermail-o+MxOtu4lMCHXe+LvDLADg@xxxxxxxxxxxxxxxx]
Sent: Tuesday, 29 June 2004 12:04 a.m.
To: thinstation-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
Subject: [Thinstation-developer] Thinstation 2.1.beta4: Mount options
for cyrilic filesysytem


Thinstation 2.1.beta4

To mount cyrilic (Russian) filesystem correctly need do this
===================================
1. make kernel modules
/Thinstation-2.1beta4/kernel/modules-2.4.24/kernel/fs/nls:

nls_cp1251.o
nls_cp866.o
nls_koi8-r.o

2. add in build.conf section NLS

# -- Filesystem Support
# -- Every mounted device needs a filesystem, choose which ones are
supported below.

module isofs # ISO9960 file system support for CDRoms
module vfat # Fat and VFat file system support
#module ext2 # Ext2 file system support
#module ext3 # Ext3 file system support
module supermount # Supermount support for auto unmounting of
removable media
#package nfs # NFS file system support
#package smbfs # Samba client FS Support, allows you to mount
smb filesystems

# -- NLS for mount some non-US file system

#module nls_cp437
#module nls_iso8859-1
module nls_cp1251 # win-1251 codepage support (Russian for Windows
session)
#module nls_koi8-r # koi8-r codepage support (Russian for Linux
session)
module nls_cp866 # IBM 866 codepage support (Russian for all
session needed)

3. add in thinstation.conf.example in # --- General Options this subsection

# --- Specific option for mount file system correctly
# FS_CODEPAGE Codepage for file system (Russian=866 for vfat)
# FS_IOCHARSET Input/Output character set (Russian=cp1251 for
Windows,
koi8-r for Linux)

FS_CODEPAGE=866
FS_IOCHARSET=cp1251

4. edit file filesystem_local in base package
Thinstation-2.1beta4/packages/base/etc/init.d/filesystem_local
------------------------------------------------------------

#! /bin/sh

. $TS_GLOBAL

case "$1" in
init)
if ! pkg_initialized $PACKAGE; then

if [ ! -e /tmp/mnt ] ; then
mkdir /tmp/mnt
fi

get_filesystems

if lsmod | grep supermount ; then
if [ -e /dev/cdroms/cdrom0 ] ; then
mkdir /mnt/cdrom
mount -r -t supermount -o
fs=iso9660,dev=/dev/cdroms/cdrom0,--,iocharset=$FS_IOCHARSET \
/mnt/cdrom /mnt/cdrom
fi
if [ -e /dev/floppy/0 ] ; then
mkdir /mnt/floppy
mount -t supermount -o
fs=$filesystem,dev=/dev/floppy/0,--,iocharset=$FS_IOCHARSET,codepage=$FS_COD
EPAGE\
/mnt/floppy /mnt/floppy
fi
fi
if [ ! -z "$STORAGE_PATH" ] ; then
if [ ! -z "$STORAGE_PREFIX" ] ; then
STORAGE_PREFIX=`make_caps $STORAGE_PREFIX`
if [ "$STORAGE_PREFIX" = "M" ] ; then
PREFIX=$CLIENT_MAC
elif [ "$STORAGE_PREFIX" = "H" ] ; then
if [ "`hostname`" = "(none)" ] ; then
PREFIX="profile"
else
PREFIX=`hostname`
fi
else
PREFIX=`hostname -i`
fi
else
PREFIX="profile"
fi
echo "PREFIX=$PREFIX" >> $TS_RUNTIME
fi
# Mount all partitions
(ls -1 /dev/discs/; echo) |
while read discn
do
if ! [ -d /mnt/disc ]; then
mkdir /mnt/disc
fi
if [ ! -z "$discn" ]; then
(ls -1 /dev/discs/$discn/|grep part; echo) |
while read partn
do
if [ ! -z "$partn" ]; then
if ! [ -d /mnt/disc/$discn ]; then
mkdir /mnt/disc/$discn
fi
if ! [ -d /mnt/disc/$discn/$partn ]; then
mkdir /mnt/disc/$discn/$partn
fi
if lsmod | grep supermount ; then
mount -t supermount -o
fs=$filesystem,dev=/dev/discs/$discn/$partn,--,iocharset=$FS_IOCHARSET,codep
age=$FS_CODEPAGE
\
/mnt/disc/$discn/$partn
/mnt/disc/$discn/$partn
else
mount -t auto -o
iocharset=$FS_IOCHARSET,codepage=$FS_CODEPAGE
/dev/discs/$discn/$partn /mnt/disc/$discn/$partn
fi
fi
done
fi
done

pkg_set_init_flag $PACKAGE
fi
;;
help)
echo "Usage: $0 init"
;;
*)
exit 1
;;
esac

exit 0
------------------------------------------------------------
5. Change link name in
Thinstation-2.1beta4/packages/base/etc/rc0.d/S05network to S02network

because file thinstation.conf.network must read befor run filesystem_local
script

===================================
vfat, iso9660 tested with ICA client. Other fylesystem not tested

Mount options in
Thinstation-2.1beta4/packages/base/etc/hotplug.d/usb/storage.hotplug
also need add. mount option like
iocharset=$FS_IOCHARSET,codepage=$FS_CODEPAGE
but i can't test that

Vasily Khalus, mailto:erasermail-o+MxOtu4lMCHXe+LvDLADg@xxxxxxxxxxxxxxxx


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Thinstation-developer mailing list
Thinstation-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/thinstation-developer

==================================================
Attention:
The information contained in this message and/or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by person or entities other than the intended recipient
is prohibited. If you receive this in error, please contact the sender and
delete the material from your system and destroy any copies.
===================================================




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise