[Sugar-devel] Some questions about Sugar and Sugar Live Build

James Cameron quozl at laptop.org
Thu Nov 12 16:38:21 EST 2020


On Thu, Nov 12, 2020 at 02:04:01PM +0000, Martin Guy wrote:
> Hi all
>   I have a couple of questions about Sugar and SLB that I haven't
> managed to answer yet, so if anyone knows, that would be a boost for
> me.
> 
> * What difference does it make if one selects a different age group
>   at the startup screen?

One or two activities use the value to set starting conditions.  You
can find them by searching for the birth-timestamp settings key.  The
first one I found when searching is Speak.

> Also, if it's "nothing" as it seems, where would I look to change
> SLB to make it skip the color and age selection screens?

Give the settings keys a value and create the SSH owner key.

On OLPC OS, based on Ubuntu, shell script /usr/bin/sugar detects UID
of 99, presence of /rofs, and username ubuntu, and responds by doing
this;

    gsettings set org.sugarlabs.user nick 'You'
    gsettings set org.sugarlabs.user gender ''
    gsettings set org.sugarlabs.user birth-timestamp 689659403
    gsettings set org.sugarlabs.user group-label 'Adult'
    gsettings set org.sugarlabs.user color '#808080,#c0c0c0'
    gconftool-2 --set /desktop/sugar/user/color --type string '#808080,#c0c0c0'
    gconftool-2 --set /desktop/sugar/user/nick --type string 'You'
    ssh-keygen -q -t dsa -f .sugar/default/owner.key -C '' -N '' # 0.250 sec

> * With a Live system, how does one change the language and
>   keyboard layout?

For a live system, Sugar's My Settings should do a restart.
https://help.sugarlabs.org/en/my_settings.html

Otherwise prompt for it at boot.  Fedora SoaS, last I checked, does
this in the bootloader, passes the language choice as a kernel command
line, extracted from /proc/cmdline and stored in environment variable
LANG or file ~/.i18n (not sure which), and then /usr/bin/sugar shell
script uses it.

For OLPC XO laptops, LANG was stored as a firmware setting at point of
manufacture, and can be changed in the field.

-- 
James Cameron
http://quozl.netrek.org/


More information about the Sugar-devel mailing list