1. When to use it
Useful on freshly installed servers or machines showing wrong characters and keyboard layout.
locale | LANG | loadkeys | UTF-8 | console
2. Base setup
export LANG=it_IT.UTF-8
loadkeys it
localedef -i it_IT -f UTF-8 it_IT.UTF-8
printf 'export LANG=it_IT.UTF-8\n' >> /etc/profile.d/lang.sh
Adjust host names, IPs, interfaces, paths, and versions to the real system before making the change persistent.
3. Quick verification
locale
echo "$LANG"
dumpkeys | head
Confirm that the output matches the expected state before considering the intervention complete.
4. Operational notes
Keep console keymap and user locale aligned, otherwise terminal administration becomes awkward.
Quick checklist
[ ] Steps completed\n[ ] Config updated\n[ ] Tests executed\n[ ] Rollback ready\n[ ] Logs checked