==================================================
Author: Pino Cuccaro
Date: 01-11-2021
This How-To explains how to change the language setting of GhostBSD's desktop environment.
It is based on the description of user "SashaDim" posted in the GhostBSD Telegram group.
As the originally used "slick-greeter" is not able to manage different languages we need to replace it.
1.) Crate zfs snapshot to be able to revert if something goes wrong:
#beadm create before_language_change
Code: Select all
beadm create before_language_change
2.) install "lightdm-gtk-greeter" and "lightdm-gtk-greeter-settings"
#pkg install lightdm-gtk-greeter lightdm-gtk-greeter-settings
Code: Select all
pkg install lightdm-gtk-greeter lightdm-gtk-greeter-settings
and modified the field "greeter-session" from "slick-greeter" to "lightdm-gtk-greeter"
Code: Select all
/usr/local/etc/lightdm/lightdm.conf
Code: Select all
lightdm-gtk-greeter
You might have to enable to show not used elements in order for "Keyboard layout" to show up in the available options.
Code: Select all
sudo lightdm-gtk-greeter-setting
Code: Select all
reboot
In case you want to revert to the original state because of some unexpected issues, you can do so by simply selecting option
"8. Boot Environments" at the loader stage and selecting the zfs snapshot you created before making the changes.
In our case this snapshot is called "before_language_change".
Notes:
I am not at my home now, so I cannot check. But I remember having set something like
: lang = de_CH.UTF-8
In fact my actual greeter is in German. And there I select English as DE language.
see no changes in /etc/login.conf
I see a few other changes in different files in my home dir:
.profile
CHARSET=UTF-8; export CHARSET
LANG=de_DE.UTF-8; export LANG
.xprofile
#!/bin/sh
setxkbmap -model dellsk8125 -layout ch -variant de_sundeadkeys