NSLU2-Linux
view · edit · print · history

HowTo.UseInternationalCharactersOnOpenSlug History

Hide minor edits - Show changes to markup

April 14, 2009, at 10:45 PM by Tobbe -- Removed wiki link
Changed line 26 from:

If you want to use UTF8? you should install the following package instead of glibc-charmap-iso-8859-1

to:

If you want to use UTF-8 you should install the following package instead of glibc-charmap-iso-8859-1

April 14, 2009, at 10:43 PM by Tobbe -- Note about swap file size
Added lines 26-28:

If you want to use UTF8? you should install the following package instead of glibc-charmap-iso-8859-1

  • glibc-charmap-utf-8
Changed lines 42-43 from:

You might get a message that the process was killed. That means you need more RAM. Temporarily create a bigger swap partition.

to:

You might get a message that the process was killed. That means you need more RAM. Temporarily create a bigger swap partition. 32MB swap was not enough for me, so I created a 128MB swap file that I used.

January 20, 2008, at 01:00 PM by MuxF_anon -- Added a note about fixing a mising directory with openslug and localedef.
Changed lines 43-45 from:
to:

Note 2: With openslug, localedef gave an error "cannot create temporary file: No such file or directory". Checking with strace told that localedef tried to create a file in directory /usr/lib/locale, which didn't exist. mkdir /usr/lib/locale fixed that.

August 24, 2006, at 09:22 AM by nowrap --
Added line 6:
August 24, 2006, at 09:22 AM by nowrap --
Changed lines 6-7 from:
to:

NOTE: samba doesn't take the ISO 8859-15 chartset => conversion not supported

August 24, 2006, at 09:08 AM by nowrap --
Added lines 39-41:

Note: check if all directories needed are present! me gots an "no such file or directory" error. use localedef --help and check the System's directory

October 19, 2005, at 03:20 PM by Fabian -- Add dos charset
Changed lines 51-52 from:

test your configuration with testparm, if it complains about not being able to convert character sets, check you iconv setup

to:

test your configuration with testparm, if it complains about not being able to convert character sets, check you iconv setup. If you want to connect with a unix smbclient, be sure to add dos charset = UTF8 as they are using the dos level for communication. Also add 'codepage=utf8' as option to smbclient/smbmount. Changing the 'dos charset' is necessary in this case as it defaults to ASCII. You don't need a line, however, if you only intend to use XP/2K-clients.

October 15, 2005, at 08:22 PM by Becol_BE -- correction about ext2 IFS
Changed lines 3-4 from:

To this end, we will use an ISO 8859-1 character set. You can use another character set if you want/need, but ISO 8859-1 is required for compatibility with Ext2 IFS (http://www.fs-driver.org).

to:

To this end, we will use an ISO 8859-1 character set. You can use another character set if you want/need, but use the same one as your Windows machine (ISO 8859-1 in most cases) if you intend to use ext2 IFS (http://www.fs-driver.org).

October 11, 2005, at 11:00 AM by mathieu_xwave -- Added locale note for swiss french user
Added lines 24-25:

NOTE: If you want to install fr-CH in place of en-US, you should have installed glibc-localedata-fr-ch AND glibc-localedata-de-ch !

September 25, 2005, at 12:29 AM by uoams --
Changed lines 52-57 from:

restart samba & log out

to:

restart samba & log out


Setting Midnight Commander (mc)

go to Options->Display bits... and set ISO 8859-1

September 24, 2005, at 09:57 PM by Nikolaj Schumacher -- other locales might crash
Changed lines 32-33 from:

Configuring locale

edit /etc/profile and add the following lines:

to:

If, instead, you want an UTF-8 or other locale type something like

Added lines 34-39:

localedef -i en_US -f UTF-8 en_US.UTF-8 You might get a message that the process was killed. That means you need more RAM. Temporarily create a bigger swap partition.

Configuring locale

edit /etc/profile and add the following lines: \\

August 22, 2005, at 09:00 PM by becol_be --
Changed lines 3-4 from:

To this end, we will use an ISO 8859-1 character set. You can use another character set if you want/need, but ISO 8859-1 is required for compatibility with Ext2 IFS (http://www.fs-driver.org)

to:

To this end, we will use an ISO 8859-1 character set. You can use another character set if you want/need, but ISO 8859-1 is required for compatibility with Ext2 IFS (http://www.fs-driver.org).

TODO: someone should try this with the ISO 8859-15 character set and verify if it enables the euro curreny symbol.

Changed line 17 from:
to:

install the following packages from the feed:

Changed lines 23-24 from:

TODO: anything else?

to:
Changed lines 39-40 from:

TODO

to:

verify the iconv setup using iconv -l. 'ISO_8859-1' should be somewhere in that list. If not, you are missing one of the glibc-gconv-* packages.

August 22, 2005, at 07:10 PM by becol_be --
Changed lines 16-17 from:

TODO

to:
  • glibc-localedata-en-us
  • glibc-gconv-iso8859-1
  • glibc-utils
  • glibc-charmap-iso-8859-1
  • localedef

TODO: anything else?

August 22, 2005, at 07:06 PM by becol_be -- Configure locales and samba for non-Ascii characters
Added lines 1-41:

How to use international characters on OpenSlug

This howto provides you with the necessary instructions to correctly configure the locales on your OpenSlug and configure Samba so special characters display the same on the network as on the shell. To this end, we will use an ISO 8859-1 character set. You can use another character set if you want/need, but ISO 8859-1 is required for compatibility with Ext2 IFS (http://www.fs-driver.org)

Symptoms

  • when uploading files via SFTP, any non-Ascii character is replaced with an underscore when browsing the SMB share
  • when uploading files via SMB, any non-Ascii character will be seen as giberish when viewed via SFTP or on the shell
  • 8-bit characters in filenames are printed as '?' in the output of ls

Cause

  • the only available locales on the slug are 'C' and 'POSIX' which only support ASCII characters
  • by default, Samba will save all filenames as UTF-8

Required packages

TODO

Building locale


localedef -i en_US -f ISO-8859-1 en_US to make sure it worked: check the output of
locale -a it should include en_US and en_US.iso88591

Configuring locale

edit /etc/profile and add the following lines:
LC_CTYPE=en_US export LC_CTYPE

Iconv setup

TODO

Configuring samba

in the global section of /etc/samba/smb.conf, add a line that says unix charset = ISO-8859-1 test your configuration with testparm, if it complains about not being able to convert character sets, check you iconv setup

Done

restart samba & log out

view · edit · print · history · Last edited by Tobbe.
Based on work by Tobbe, MuxF_anon, nowrap, Fabian, Becol_BE, mathieu_xwave, uoams, Nikolaj Schumacher, and becol_be.
Originally by becol_be.
Page last modified on April 14, 2009, at 10:45 PM