diff --git a/content/tech/freebsd.md b/content/tech/freebsd.md index b2e79ac..ffbcf9f 100644 --- a/content/tech/freebsd.md +++ b/content/tech/freebsd.md @@ -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.