freebsd: add info about locales

This commit is contained in:
Petr Velycko 2025-06-12 11:11:09 +02:00
parent 6f08e0850d
commit 411421c88a
Signed by: petrvel
GPG key ID: E8F909AFE649174F

View file

@ -66,6 +66,23 @@ wireguard_enable="YES"
wireguard_interfaces="wg0"
```
# Locales
In order to use the correct locale info for your area (e.g. if you want your computer to speak a different language than English), it is necessary to change the system locale in `/etc/login.conf` (or, alternatively, it can be set on per-user basis in `~/.login_conf`, the syntax is the same). In the `default` section (`me` in case of user settings, make sure it is uncommented first), change the `lang` variable to your preferred locale, for example `en_US.UTF-8` for American English or `de_DE.UTF-8` for German. You can see all available locales by running `locale -a`.
```
default:\
...
:lang=en_US.UTF-8:
```
After that don't forget to activate the changes by running the following command:
```
cap_mkdb /etc/login.conf # for system-wide setup
cap_mkdb ~/.login_conf # for per-user setup
```
# `pkg` package manager
During my adventures I stumbled upon some useful commands for the builtin `pkg` package manager that I feel like could be useful to others.