[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] How to add iocharset to fstab



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 16. Juli 2003 08:21 schrieb Nick Niktaris:
> Hello,
> I have managed to add Greek support to knoppix and the
> all works very well and the first public reactions are
> very good considering that neither debian nor any
> other live-cd distro has Greek support but I notest
> one problem, on the vfat partitions, the cdroms and
> floppy Greek are shown as questionmarks (??????) this
> is a result from the wrong enconding. The solution is
> to put iocharset=8859-7 codepage=737 on each line that
> corresponts to a vfat partition, a cdrom, or floppy in
> the fstab file.
> After trying this out manualy ( adding
> iocharset=8859-7 codepage=737 to the vfat partition in
> /etc/fstab) all worked fine.
> My question is how do I setup knoppix-autoconfig (or
> any other script that is responsable for this) to add
> the iocharset=8859-7 codepage=737 option to fstab.
> This problem should apply to all non ascii encondings
> ( russian, cyrillic, etc)
> I am sure that it is easy to solve.

yeah, it is.

Hi! 

Please make sure, to only add it if greek or any other is choosen.

Best imho would be to use an new Variable called:

gr)
# greek support (sorry, dont' know if gr is right :-/ )
COUNTRY="gr"
[...]
KDEKEYBOARDS="us,de,fr"
IOCHARSET="8859-7"
IOCODEPAGE="737"
;;

Then you need to patch:

echo "LANG=\"$LANG\""                  > /etc/sysconfig/i18n
echo "COUNTRY=\"$COUNTRY\""           >> /etc/sysconfig/i18n
echo "LANG=\"$LANG\""                 >> /etc/sysconfig/i18n
echo "LANGUAGE=\"$LANGUAGE\""         >> /etc/sysconfig/i18n
echo "CHARSET=\"$CHARSET\""           >> /etc/sysconfig/i18n
echo "XMODIFIERS=\"$XMODIFIERS\""     >> /etc/sysconfig/i18n
echo IOCHARSET"=\"$IOCHARSET\""     >> /etc/sysconfig/i18n
echo "IOCODEPAGE=\"$IOCODEPAGE\""     >> /etc/sysconfig/i18n

to add it to there ...

And then last program to patch is:

/usr/sbin/rebuildfstab

And there you add:

. /etc/sysconfig/i18n
[ -n $IOCHARSET ] && IOCHARSET=",iocharset=$IOCHARSET"
[ -n $IOCODEPAGE ] && IOCODEPAGE=",iocodepage=$IOCODEPAGE"
[...]
    vfat|msdos) options="${options},umask=000,uid=knoppix,gid=knoppix" ;;

I think that is the solution I would think about now ...

Hm, cdroms and flopyp are managed about the auto-mounter that could be a bit 
more work ... :-/

But with the proposed infrastructure you would have it stored somewhere to 
have a start ...

cu

Fabian

> Thanks
>
> Nick Niktaris
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> _______________________________________________
> debian-knoppix mailing list
> debian-knoppix@linuxtag.org
> http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE/FTjkI0lSH7CXz7MRAtXMAJwJWtSa6Ax5ExSTIctn3lE1+/I1wACggS2s
lXbd8Qd+VtkRw9ZQkw9CUao=
=OR2Y
-----END PGP SIGNATURE-----

_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: