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

Re: Anybody here know what a rock64 is?



On Friday 20 April 2018 07:36:53 Alan Corey wrote:

> So, you can't just bring up raspi-config?  It's just a script anyway.
> The locale section:
>
raspi.config is pi-3b specific. For starters the pi is armhf, the rock64 
is arm64, a whole new rig 50x faster than any pi. It would take around 3 
days to build the pi's kernel on the pi. It can be done in something 
less than an hour on the rock64.

> do_change_locale() {
>   if [ "$INTERACTIVE" = True ]; then
>     dpkg-reconfigure locales
>   else
>     local LOCALE="$1"
>     if ! LOCALE_LINE="$(grep "^$LOCALE " /usr/share/i18n/SUPPORTED)";
> then return 1
>     fi
>     local ENCODING="$(echo $LOCALE_LINE | cut -f2 -d " ")"
>     echo "$LOCALE $ENCODING" > /etc/locale.gen
>     sed -i "s/^\s*LANG=\S*/LANG=$LOCALE/" /etc/default/locale
>     dpkg-reconfigure -f noninteractive locales
>   fi
> }
>
> locale is a command and a man page on its own but I think it just
> reads.  On this pi at the moment it says
>
> LANG=en_US
> LANGUAGE=
> LC_CTYPE="en_US"
> LC_NUMERIC="en_US"
> LC_TIME="en_US"
> LC_COLLATE="en_US"
> LC_MONETARY="en_US"
> LC_MESSAGES="en_US"
> LC_PAPER="en_US"
> LC_NAME="en_US"
> LC_ADDRESS="en_US"
> LC_TELEPHONE="en_US"
> LC_MEASUREMENT="en_US"
> LC_IDENTIFICATION="en_US"
> LC_ALL=
>
> dpkg-reconfigure locales is the way to fix it under Debian probably,
> files live in /usr/share/i18n/locales
>
> On 4/20/18, Punit Agrawal <punitagrawal@gmail.com> wrote:
> > On Fri, Apr 20, 2018 at 3:29 AM, Gene Heskett <gheskett@shentel.net> 
wrote:
> >> I just did an update on it, running stretch, 70 files updated, and
> >> now the locale is trashed.
> >>
> >> Running xfce for an x11 gui, and the desktop clock/calendar, while
> >> using an EN_US-UTF8 font, is not in english, making orage a bit
> >> useless.
> >>
> >> Ideas how to fix it when there apparently is not an update.locale
> >> file to be found.
> >
> > For my locale related trouble, I normally run "sudo dpkg-reconfigure
> > locales".
> >
> > That's the extent of locale related knowledge. :)



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: