Problems with locale

Hello guys,
I’ve been starting using the BBB by re-installing the Debian official image from: http://beagleboard.org/latest-images
Than I apt-dist-updated everything.
My actual problem is that I can’t set properly locale: I have been following the Debian Locale wiki page with no success.
I had to create a test in my bashrc in order to have LANG setted… the weird stuff is that even apt doesn’t recognise it!
I definetly need an help.

Which BBB? 2GB/4GB?

We stripped almost all the locales to save space.

https://github.com/beagleboard/image-builder/blob/master/scripts/chroot.sh#L214

so remove: /etc/dpkg/dpkg.cfg.d/01_nodoc

Then either re-install locales-all or the one you want.

Regards,

dpkg-reconfigure locals. Of course this will only work if you have the local you want configured installed.

I had first to clean up lots of stuff (are they really needed in the official Debian image? I think lots of apps (like Chromium) and graphical stuff can be removed, as the user can install them) and then re-install locales, after having added italian folder to 01_nodoc.
Then I had

locale alias file/usr/share/locale/locale.alias’ not found: No such file or directory
`

when locale-gening.
The solution was to do by hand what Debian would have done by its own:

`

ln -s /etc/locale.alias /usr/share/locale/locale.alias

`

But when I use the applications they still are in english…
Will try installing locales-all, as I’ve fixed /etc/dpkg/dpkg.conf.d/01_nodoc as I wished to.

Seems that locales-all does nothing, so gonna re-install locales and waiting for a tip. :stuck_out_tongue:

Hi Giovanni,

I had first to clean up lots of stuff (are they really needed in the
official Debian image? I think lots of apps (like Chromium) and graphical
stuff can be removed, as the user can install them) and then re-install

Yeap, all those packages where asked for during the beta period.

locales, after having added italian folder to 01_nodoc.
Then I had
locale alias file `/usr/share/locale/locale.alias' not found: No such file
or directory
when locale-gening.
The solution was to do by hand what Debian would have done by its own:
# ln -s /etc/locale.alias /usr/share/locale/locale.alias

But when I use the applications they still are in english...
Will try installing locales-all, as I've fixed
/etc/dpkg/dpkg.conf.d/01_nodoc as I wished to.

It's always funny as more people use this image, we find more things.
During the beta period (jan 2014 - may 2014) this wasn't brought up.
I've had 2 or 3 personal requests this last week. :wink:

I just need to verify a couple more things, mainly that it still fits
in the 2GB image.

But you, regenerate an image right now with your proper locale:

Disable:
https://github.com/beagleboard/image-builder/blob/master/configs/bb.org-debian-stable.conf#L30

Change:
https://github.com/beagleboard/image-builder/blob/master/configs/bb.org-debian-stable.conf#L32

and it'll generate a proper image with your locale already set.

build directions:
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Build_Instructions

and yes, i'm also defining a minimal 'console' version.

Regards,

I’ve the 2GB eMMC BBB version, revision A5C :stuck_out_tongue:
Anyways, I’m trying to find a way in order to build it on my laptop instead of the BBB…
What do you suggest to me?

I've the 2GB eMMC BBB version, revision A5C :stuck_out_tongue:

So on the first pass without dropping stripping the locales, i run out
of space when running the 2gb image generator (it's actually 1.7GB,
has some manufactures decided to lie what "2gb" was..)

I think i'm going to drop chrome from the build, as only one person
really used it, it's slow, and i think locales are more important now
anyways.

Anyways, I'm trying to find a way in order to build it on my laptop instead
of the BBB...
What do you suggest to me?

Build it on the BBB, while running off the microSD..

Regards,

Ugh: locale are so costly:

2014-05-14:
debian@beaglebone:~$ du -sh /usr/share/locale/
43M /usr/share/locale/

keep all locales...
debian@beaglebone:~$ du -sh /usr/share/locale/
158M /usr/share/locale/

So what's more important for the eMMC, free space or the all the locales?

Regards,

I vote for free space and instructions on generating alternate locales.

I’ll build on the BBB, but when I’ll have my 8 GB uSD back… As for now I can do nothing, doh! D:

So by dumping "chrome" and keeping all the locales, such that they are
easy to generate.. We've netted +3.9Mb of space...

Regards,

Also, I removed also some icon themes and some documentations and I freed up about 300 MB without removing X/Gnome stuff…
Still continuing in Debian armhf qemu image. If someone is interested: http://people.debian.org/~aurel32/qemu/armhf/

Hi Giovanni,

First image with all the locales present is now uploaded:

https://rcn-ee.net/deb/testing/2014-07-01/bone-debian-7.5-lxde-2014-07-01-4gb.img.xz

sudo dpkg-reconfigure locales

Should be all that's required for you to select your locale..

Regards,

Downloading and going to test :slight_smile:
Will tell you what happens…
But I’m still thinking on this annoying thing, as I set up everything as in the Debian wiki for locales, I’ve the correct config files as for the wiki…
But still the OS (and for this nano, apt-get, else…) don’t get my locale… the just one who did was sometimes the dpkg-reconfigure UI.
I don’t get where this happens and this bothers and interest me… :stuck_out_tongue:
Anyways, will tell you what happens with the new image :smiley:

Hi guys,
haven’t been testing your ISO as I had no time because of exams.
Today, before the last oral one, I saw the light: actually, the locales files are not missing.
I’m missing all the locales from any other package…!
I mean that (for example) nano italian messages file are in
/usr/share/locale/it/LC_MESSAGES/nano.mo
And I’m still missing it.
So, I’ve to reinstall the packages for which I want the italian language. :slight_smile:

I've ripped out this space/size optimization, so this won't be a
problem for future releases.

https://github.com/RobertCNelson/omap-image-builder/commit/a6a17f1230eb5ca36b3dfa0771ea58a99bda8ef0

Regards,

Thanks mate, anyways my idea was correct; by reinstalling nano I got the italian language.
So maybe the file could be customised in order to have just the locale we need.
Anyways, after customising the no_doc file (this is for everybody) you can reinstall packages by doing:

`
sudo apt-get --reinstall install $(dpkg --get-selections | grep install | cut -f 1)

`
That’s all folks!